SEO spam occurs when attackers secretly inject unwanted pages, hidden links, or spam keywords into a website. Their goal is often to manipulate search engine rankings or redirect visitors to fraudulent websites without the owner’s knowledge.