ACTIVE THREAT PATTERN — JAPANESE KEYWORD HACK

How to fix a WordPress spam sitemap injection sitemap666.xml

A backdoor script is generating spam pages faster than you can delete them. Deleting the sitemap in Search Console won’t stop it — here’s the full four-phase recovery.

CategoryWordPress Security
Threat typeJapanese Keyword Hack
Recovery time~4 weeks to full de-index
DifficultyIntermediate / Server access required
server-scan.log
root@yoursite:/public_html
FOUND/sitemap666.xml10,800+ spam URLs generated
FOUND/wp-content/uploads/x7d.phpexecutable backdoor
FLAGGEDwp_options → base64 payloadencoded injection
FLAGGEDwp_posts → 日本語 keyword spamJapanese character strings
CLEANcore, themes, plugins reinstalledverified against WordPress.org

Finding a file like sitemap666.xml on your server is a clear sign of trouble. This indicates a classic Japanese keyword hack, where a hidden backdoor script rapidly generates spam pages that Google crawls and indexes. Removing the sitemap in Search Console is not enough — the malware remains and will simply regenerate the files. Full recovery means killing the backdoor, stopping Google from indexing the spam, and locking the site down for good.

01Explanation of the hack

The Japanese keyword hack relies on a backdoor planted somewhere in your WordPress installation. Attackers use it to auto-generate malicious sitemaps and spam pages on a schedule — one real-world case resulted in over 10,800 spam pages indexed by Google before it was caught. The first sign is usually a sudden spike in indexed pages, discovered when you check your sitemap and find thousands of URLs you never created. The fix has to target the root cause on your server, not just the symptoms showing up in search results.

02Benefits of a complete cleanup

Rankings

Search rankings recover once Google drops the 404/410 spam pages from its index.

Visitors

Your audience is protected from malware, redirects, and phishing pages served in your name.

Ownership

You regain total administrative control over your own site and hosting environment.

03Features of the attack

04Who this guide is for

This guide is for you if you’ve noticed unfamiliar search results pointing to your own domain. It’s built specifically for WordPress administrators dealing with unauthorized .xml files sitting in their root directory, and it applies just as much if you’ve discovered rogue admin accounts you never created.

05Examples of malicious files

Zero tolerance rule: the uploads directory should hold zero executable PHP files. Anything found there is malware, full stop.

06Best practices for recovery

Recovery happens across four phases, in order, so the backdoor is closed permanently rather than just hidden.

Isolate & control access

Lock every door before you start cleaning

Clean the server

Remove the code, not just the symptoms

Remove spam from Google

Clean up what’s already indexed

07Tips for securing your site

08Common mistakes to avoid

Never block spam URLs in robots.txt — if Google can’t crawl the page, it can’t confirm the 404 and the page stays indexed indefinitely.

Never assume simply removing the sitemap fixes the problem — the backdoor will just regenerate it.

Never leave .php files sitting inside your uploads directory.

09FAQs

How do I know if my site has a spam sitemap injection? +

You’ll typically find odd files like sitemap666.xml on your server, or discover thousands of unauthorized pages indexed in Google Search Console.

Will deleting the sitemap in Search Console fix the hack? +

No. Removing the sitemap in Search Console only stops Google from reading that specific file list. The malware stays on your server and will regenerate the file.

Why do I need to change my WordPress SALT keys? +

New SALT keys force every active login session to expire immediately, which kicks the attacker out of your system right away.

Should I block the spam pages in robots.txt? +

No. Google needs to crawl the spam URLs to see they return a 404 or 410 error. Blocking them in robots.txt keeps them indexed forever.

Are PHP files allowed in the WordPress uploads folder? +

No. That directory should contain zero executable .php files. Anything found there is malware and needs to be deleted.

How long until Google drops the spam pages? +

By around week two, Googlebot typically recrawls the URLs and finds the 404 errors. By week four, your indexed page count should be back to normal.

Why delete inactive themes and plugins? +

Dormant, unused files are still exploitable by attackers, even when they’re not active. Delete anything you’re not actively using.

What tools can I use to scan for backdoors? +

Run a full malware scan at high sensitivity using a security plugin like Wordfence or Sucuri to confirm no backdoors remain.

10Conclusion

Recovering from a spam sitemap injection takes a methodical approach. By working through the four phases — isolating access, cleaning the server, clearing Google’s index, and hardening security — you can permanently close the door on the Japanese keyword hack. Security isn’t a one-time fix; keep your software updated and keep an eye on your search presence.

Found weird URLs indexed on your domain?

Start Phase A right now: back up your site and change every password before you touch anything else.

Jump to Phase A →
Share this guide

Related reading

External resources