SEO Poisoning and the Japanese Keyword Hack: How Attackers Hijack Your Rankings
A hacked site can be filled with thousands of cloaked spam pages that steal its Google rankings and get it flagged as dangerous. Here is how the attack works and how to shut the door.
One of the most damaging things that can happen to a website is not that it goes down, but that it stays up and quietly starts working for someone else. SEO poisoning, and its most common form, the Japanese keyword hack, does exactly that: an attacker compromises your site and injects thousands of auto-generated spam pages, then cloaks them so Google sees the spam while your human visitors see a normal site. Your domain, with all the ranking authority you built, is hijacked to rank pages for counterfeit goods, fake pharmaceuticals, and affiliate scams, and often the first sign you get is a customer asking why Google labels your site as hacked (Google Search Central1). I build website protection for a living, and this attack is worth understanding precisely because it targets the asset small businesses most underrate: their search rankings. This guide explains what the attack is, how it destroys your rankings and reputation, how attackers get in, and how to shut the door, including where filtering at the edge and static hosting genuinely help and where they do not. One honest note up front: no setup makes a site unhackable, so the goal here is to remove the ways in and remove the thing attackers inject into, not to promise perfection.
What is SEO poisoning and the Japanese keyword hack?
SEO poisoning is a class of attack where a compromised website is used to manipulate search rankings, and the Japanese keyword hack is its most recognizable form. After breaking in, the attacker injects large numbers of auto-generated pages, often in Japanese text, stuffed with links to counterfeit goods, fake pharmaceuticals, and other shady merchandise, and these pages get indexed by search engines under your domain. The whole point is to borrow your site’s existing ranking authority: a brand-new spam domain ranks for nothing, but spam pages hosted on an established, trusted site can rank quickly, which is why attackers hijack real sites rather than building their own (Google Search Central1).
The mechanism that makes it so hard to notice is cloaking. The injected pages are configured to show one thing to search engine crawlers and another to human visitors: the crawler is served the spam so it gets indexed, while a normal person browsing your site sees your ordinary pages, or nothing unusual at all. That is why owners so often miss it for weeks. You can be looking at your own site, seeing everything normal, while Google is indexing thousands of spam URLs on your domain in the background. The hack is designed specifically to be invisible from the front door and visible only to the search engines it is trying to manipulate.
It helps to be clear about what this is and is not. It is not usually a defacement that replaces your homepage, and it is not primarily about stealing your data; it is about quietly converting your search presence into a spam distribution engine. That distinction matters because the defenses and the damage are different from a typical breach. The harm is measured in lost rankings and reputation rather than a dramatic outage, and the fix involves both cleaning the injection and recovering your standing with search engines. The diagram below shows the shape of the attack from break-in to hijacked rankings.
How does it destroy your rankings and reputation?
It attacks the two things that take years to build and minutes to lose: your search visibility and the trust attached to your name in search results. Once the spam pages are indexed, your domain’s authority is being spent ranking someone else’s counterfeit and pharmaceutical spam instead of your own pages, and search engines begin to associate your site with that content. In the clearest cases, Google flags the site directly in its results with a "This site may be hacked" notice, which appears under your listing and collapses click-through even for people searching your brand by name. That label alone can do more immediate revenue damage than the ranking loss, because it turns your search presence into a warning.
Beyond the label, the ranking harm compounds. Thousands of low-quality, spammy URLs suddenly attached to your domain can drag on how search engines assess your whole site, and you can lose position for the real terms your business depends on. In more serious cases a site picks up a manual action for hacked content, which suppresses it in results until the problem is fixed and the site is reviewed and cleared. The macro backdrop is that websites are under constant automated pressure of exactly the kind that leads to these compromises, and card-not-present and web-based fraud sit in the billions of dollars annually (FBI IC3 20253), so this is not a rare edge case, it is a standing threat to any site with rankings worth stealing.
The recovery cost is what makes it so damaging in practice. Cleaning an SEO-poisoning hack is not just deleting a few files; it means finding and removing every injected page and backdoor, closing the entry point that let the attacker in, and then asking search engines to recrawl and reassess the site, which takes time. During that window your rankings and any warning label persist, so the business impact continues well after the technical cleanup. That gap between fixing the site and recovering your standing is exactly why preventing the compromise is worth far more than reacting to it.
How do attackers get into your site in the first place?
Through a small number of well-worn doors, almost all of which are found and opened by automated bots rather than a human picking your site specifically. Google names the common entry points plainly: out-of-date CMS core versions, old or abandoned plugins and themes with known vulnerabilities, and weak passwords or inadequate login protection (Google Search Central1). None of these requires the attacker to know or care who you are. Bots continuously scan the web for sites running a plugin version with a public vulnerability, or hammer login pages with credential-stuffing and brute-force attempts, and any site that matches gets exploited automatically. Your site is not targeted so much as caught.
The scale of that automation is the part owners underestimate. Automated traffic is now the majority of the web, and bad bots alone make up roughly 37 percent of all internet traffic (Imperva Bad Bot Report 20262), and a large share of that is precisely the vulnerability scanning and login attacks that lead to these compromises. This is why an unpatched plugin or a weak admin password is not a small risk that might eventually matter; it is a door that automated systems are actively trying, at volume, every day. The time between a vulnerability becoming public and bots mass-exploiting it is often measured in hours.
Understanding that the attack is automated is what points to the right defense, because it means most compromises come from the bulk, opportunistic layer rather than a determined human adversary. Close the known doors, patch and remove vulnerable plugins and themes, use strong authentication, and you defeat the majority of attempts outright. Then reduce the volume of automated attacks that reach your site at all, and remove the thing they inject into where you can, and you have addressed the attack at its actual source. The table below maps each entry point to what closes it.
How do you prevent SEO poisoning, and where does edge protection fit?
You prevent it in layers, and it is important to be honest about which layer does what, because no single control makes a site unhackable. The foundation is hygiene, and it is non-negotiable: keep your CMS core, plugins, and themes updated, remove anything abandoned or unused, use strong unique passwords with two-factor authentication on every admin account, and apply least privilege so a single compromised login cannot do maximum damage. This alone defeats the large majority of automated attacks, because most of them rely on an unpatched vulnerability or a guessable credential. Any prevention story that skips this step is selling you a shortcut that does not exist.
Edge protection then reduces the automated attack surface that reaches your site at all. A filtering layer in front of your origin refuses the vulnerability-scanning bots probing for known-vulnerable plugins and the credential-stuffing traffic hammering your login, before those requests ever reach your CMS, which cuts down the bulk, opportunistic attacks that cause most SEO-poisoning compromises. It is not a substitute for patching, a determined attacker with a stolen valid credential is a different problem, but since the overwhelming majority of these hacks come from automated volume, removing that volume removes most of the risk. As we covered in the piece on stopping brute force and credential stuffing on WordPress, filtering those attacks at the edge is far more effective than trying to absorb them at the origin.
The strongest structural defense against this specific attack is to remove the thing it injects into. SEO poisoning works by writing spam pages into a live, dynamic origin, your CMS and its database, so a site served as static files from the edge, with no live WordPress or PHP layer exposed to the internet, simply has no dynamic origin for an attacker to inject pages into. You cannot poison a database that is not in the request path. That is the argument we make in detail in static edge hosting versus WordPress: moving to the edge does not just filter attacks, it removes the attack surface this hack depends on. For sites where that fits, it is the most complete answer; for sites that must stay dynamic, edge filtering plus disciplined hygiene is the practical one. Either path starts at RankShield edge protection. The self-check below shows how exposed your current setup is.
What is the real defense against SEO poisoning?
Close the doors, cut the automated volume, and where you can, remove the thing the attack injects into. SEO poisoning and the Japanese keyword hack are so damaging because they turn your own hard-won search authority against you: a compromise lets an attacker inject thousands of cloaked spam pages that Google indexes while your visitors see nothing wrong, hijacking your rankings and often getting your site labeled as hacked in results. The harm lands on the asset small businesses most underrate, their search visibility, and recovery is slow because you must clean the injection, close the entry point, and then wait for search engines to reassess your site. The attack is overwhelmingly automated and opportunistic, exploiting outdated plugins, weak passwords, and unpatched cores that bots find at scale.
That automated, opportunistic nature is also the good news, because it means disciplined defense works. Patch and harden so the common doors are shut, filter the vulnerability scanners and login attacks at the edge so the bulk of automated attempts never reach your CMS, and, for sites that can be static, serve from the edge so there is no live dynamic origin for spam to be injected into at all. No approach makes a site unhackable, and strong authentication and updates remain essential regardless, but combining hygiene with edge filtering and, where it fits, removing the injectable origin addresses this attack at its actual source rather than after your rankings are already gone. To reduce the automated attack surface or remove the dynamic origin entirely, start at RankShield edge protection.
Questions, answered.
What is the Japanese keyword hack?
The Japanese keyword hack is a common form of SEO poisoning in which an attacker compromises a website and injects large numbers of auto-generated spam pages, typically containing Japanese text and links to counterfeit goods, fake pharmaceuticals, and affiliate scams. The goal is to hijack the ranking authority of the hacked site: spam on a brand-new domain ranks for nothing, but the same spam hosted on an established, trusted site can rank quickly in search results, so attackers hijack real sites rather than building their own. What makes it especially insidious is cloaking, where the injected pages show the spam to search engine crawlers so it gets indexed, while showing human visitors your normal site or nothing unusual. As a result, owners frequently have no idea it is happening; they look at their own site, everything appears normal, and meanwhile Google is indexing thousands of spam URLs on their domain. It is not a defacement and usually not primarily a data theft; it is a quiet conversion of your search presence into a spam distribution channel. Attackers get in through the usual doors, out-of-date CMS core, vulnerable or abandoned plugins and themes, and weak or stolen login credentials, almost always found and exploited automatically by bots rather than by someone targeting your business specifically.
How do I know if my site has been hit by SEO poisoning?
The fastest check is a site: search on your own domain: type site:yourdomain.com into Google and look through the results for pages you did not create, especially ones with foreign-language text, pharmaceutical or counterfeit-goods keywords, or gibberish URLs. Because the spam is cloaked, you often cannot find it by simply browsing your own website, since the hack hides the pages from human visitors, so the search index is where it shows up. Google Search Console is your other key tool: check the Security Issues report, which will flag detected hacked content, and watch for a sudden, unexplained spike in indexed pages or in impressions for terms that have nothing to do with your business, both of which are classic signs. You can also use the URL Inspection tool in Search Console to see the version of a suspicious page that Google sees, which reveals cloaking when the crawler-facing content differs from what you see in a browser. Other warning signs include a "This site may be hacked" label appearing under your listing in search results, customers or your host notifying you, and unexpected new files or admin users on your site. Because the attack is designed to stay invisible from the front end, the discipline that catches it is periodically checking the search index and Search Console rather than relying on the site looking fine when you visit it.
Why is SEO poisoning so damaging to my business?
Because it attacks your search rankings and your reputation, the two assets that take years to build and can be lost in a way that keeps hurting long after the technical cleanup. Once the spam pages are indexed, your domain authority is being spent ranking someone else’s counterfeit and pharmaceutical spam instead of your own pages, and search engines start associating your site with that content. In clear cases Google shows a "This site may be hacked" warning directly under your listing in results, which collapses click-through even for people searching your brand by name, so you can lose customers who were specifically looking for you. Beyond the label, thousands of low-quality spam URLs attached to your domain can drag down how search engines assess your whole site, costing you rankings for the real terms your business depends on, and in serious cases a manual action for hacked content can suppress your site in results until it is fixed and reviewed. The recovery is slow, because you must find and remove every injected page and backdoor, close the entry point, and then wait for search engines to recrawl and reassess your site, during which the ranking loss and any warning persist. That lag between fixing the site and recovering your standing is why the business impact of SEO poisoning is so much larger than the technical severity of the hack suggests, and why prevention is worth far more than remediation.
Can edge protection stop my site from being hacked?
Edge protection significantly reduces the risk but does not, on its own, make a site unhackable, and it is important to be precise about that. SEO poisoning requires a compromise, and the overwhelming majority of compromises are automated and opportunistic: bots scan the web at scale for sites running a plugin with a known vulnerability, or hammer login pages with credential-stuffing and brute-force attempts, and any matching site gets exploited automatically. A filtering layer at the edge refuses much of that automated traffic, the vulnerability scanners and the login attacks, before it ever reaches your CMS, which removes the bulk attacks responsible for most of these hacks. That is a large reduction in real risk, because you are cutting off the opportunistic volume that causes the majority of compromises. What edge filtering does not do is substitute for basic hygiene: a determined attacker using a stolen but valid credential, or a vulnerability in software you failed to patch, is a different problem that filtering alone will not fully solve. So the honest framing is that edge protection is a powerful layer that eliminates most of the automated attack surface, and it works best combined with keeping your software patched and your authentication strong. For the specific injection mechanism of SEO poisoning, the most complete defense is a step further: removing the dynamic origin entirely with static edge hosting, so there is no live CMS or database for spam pages to be injected into in the first place.
Does static hosting really prevent this kind of hack?
For this specific attack, static hosting removes the mechanism the hack depends on, which is why it is the most complete structural defense available. SEO poisoning works by writing spam pages into a live, dynamic origin: your CMS, its database, and the server-side code that generates pages on request. That dynamic layer is what the attacker injects into. When a site is served as static files from the edge, with no live WordPress, PHP, or database exposed to the internet, there is no dynamic origin for an attacker to inject pages into, so the primary attack surface for this hack simply is not present. You cannot poison a database that is not in the request path, and you cannot inject auto-generated pages into a site that has no server-side generation exposed. This is a genuine structural difference, not just more filtering, because it eliminates the target rather than trying to guard it. The honest caveats are that static hosting is not a fit for every site, since some genuinely need dynamic functionality, and that it is not a blanket claim of total security, because your build process, your source, and your accounts still need to be protected. But for the large category of sites that are effectively static, brochure sites, small business sites, blogs, content sites, moving to the edge does not just reduce the odds of an SEO-poisoning hack, it removes the specific thing that this attack requires to work, which is why it is the strongest answer where it applies.
How do I recover if my site is already poisoned?
Recovery has three stages, and skipping any of them tends to cause reinfection or a lingering ranking penalty. First, clean the site completely: identify and remove every injected spam page and, critically, every backdoor the attacker left to regain access, because removing the visible spam while leaving a backdoor means it comes straight back. This usually means scanning the file system and database for injected content and unfamiliar admin users, and if you are not confident you have found everything, restoring from a known-clean backup taken before the compromise is often safer than trying to surgically remove it. Second, close the entry point that let them in, whether that was an outdated plugin, a vulnerable theme, or a weak credential, because a clean site with the same open door will simply be re-hacked, often within days. This is where hardening and edge filtering matter, so the same automated attack cannot succeed again. Third, recover your standing with search engines: once the site is genuinely clean and secured, use Google Search Console to request a review if you received a manual action or security warning, and resubmit your sitemap to prompt a recrawl so the spam URLs drop out of the index and your real pages are reassessed. This last stage takes time and patience, since rankings and any warning label persist until search engines recrawl and re-evaluate the site, which is precisely why preventing the compromise in the first place is so much cheaper than recovering from it. If you are cleaning up a hack, hardening against the next one, by closing the doors and removing or shielding the dynamic origin, should be part of the same effort, not a later step.
References
- Google Search Central. #NoHacked: Identifying and Diagnosing Injected Gibberish URL Hacking (injected auto-generated spam pages, cloaking to crawlers, common entry points, detection via site: search and URL Inspection, and recovery via cleanup and review).
- Imperva (Thales). Bad Bot Report 2026 (automated traffic exceeded half of all web traffic; bad bots approximately 37 percent, including the vulnerability scanning and credential-stuffing that lead to these compromises).
- FBI Internet Crime Complaint Center (IC3). 2025 Internet Crime Report (macro context for the scale of web-based and card-not-present fraud that automated website attacks feed).
Jamie Kloncz
Founder & CEO, RankShield
Jamie Kloncz is the founder and CEO of RankShield, the verifiable AI and quantum security platform. He started the company after two attacks landed in a single week: his phone was cloned, and his business was hit by a click-fraud campaign. One targeted him as a person, the other his livelihood, and no single tool defended both. That experience, together with surviving an AI voice-clone scam, shaped RankShield’s core belief: the threats of the AI age are personal first, and trust should be something you can check, not just extend.
Make every AI action provable.
RankShield is the verifiable, quantum-safe AI security platform, protection you can check, not just trust.