Initial assessment without passwords Quote before intervention One accountable specialist from start to finish

Malware & Security

WordPress Japanese Keyword Hack: Detection and Cleanup

Google indexes Japanese pages you never made because the payload only serves crawlers. Here is how to detect the cloaking and clean it.

Short answer: an attacker is generating spam pages on your domain and showing them to search engines while your own visits look normal. That cloaking is the defining trait, and it is why owners usually find it through Search Console rather than by browsing.

Confirm it the way a crawler sees it

Search site:yourdomain.com for Japanese or unexpected-language results, and open Search Console › Pages and Security & Manual Actions. Use the URL Inspection tool with “Test live URL” on a flagged page — it fetches as Googlebot and reveals the spam your browser is not shown. Checking the page in your own browser proves nothing, because the code inspects the request and only serves spam to crawlers.

Find and remove the generator

  • Search files for obfuscation: grep -RIlE 'eval\s*\(|base64_decode\s*\(|gzinflate\s*\(|str_rot13\s*\(|assert\s*\(|create_function\s*\(' wp-content/ across the install, including uploads and mu-plugins.
  • Reinstall WordPress core over itself and reinstall plugins from clean sources so injected core/plugin files are overwritten.
  • Audit the database: injected wp_posts spam, altered wp_options, and rogue sitemap entries the attacker created.
  • Check wp_users for unauthorised administrators and the cron array for a regeneration task.

Close the entry point

The infection almost always came through a vulnerable plugin/theme or stolen credentials. Update or replace the vulnerable component and rotate all credentials, or the spam simply regenerates.

Recover search visibility properly

Cleaning files is half the job. The spam URLs are indexed, so they must return the correct status (404/410), your legitimate sitemap must be accurate, and any manual action needs a reconsideration request that honestly describes what happened and what was fixed — submitted only once the site is genuinely clean. Then monitor indexed pages for weeks; a missed backdoor shows up as a slow return of spam URLs.

WP REPAIR INCIDENT STANDARD

Safe intervention sequence

Japanese keyword spam commonly combines cloaking, generated URLs and persistence. Cleaning visible pages without removing the generator and controlling indexed URLs leaves the incident unfinished.

WP RepairDiagnostic model
1Trigger2Payload3Persistence4Entry point
Follow the chain until you find the first point that stops behaving as expected.
  1. Confirm affected URLs through Search Console and live inspection, not only your browser.
  2. Map whether spam is stored in posts/options or generated dynamically from files and rewrite rules.
  3. Audit sitemaps, users and cron for mechanisms that create or advertise new URLs.
  4. Return correct 404 or 410 responses for removed spam instead of redirecting everything to the home page.

What must be verified

  • Live inspection shows legitimate content to crawlers.
  • Spam URLs return the intended status and disappear from sitemaps.
  • No new unexpected-language URLs appear over the following weeks.

BEFORE YOU SEND THE REQUEST

Frequently asked questions.

Do you ask for passwords in the form?+

No. The public form never requests access. Secure credentials are requested only after the scope and quote are approved.

Who reviews the incident?+

The request goes to Jordi Ensenyat, founder of Code Barcelona and a WordPress specialist with more than 15 years of experience.

Is anything changed before the quote?+

No. Visible symptoms and scope are reviewed first. Intervention begins after approval and with a rollback path prepared.

Do you work internationally?+

Yes. WP Repair handles WordPress and WooCommerce incidents in English and Spanish through a remote service.

Assess my incident