coiai Logo

This article is an English translation of the original Japanese post. Read the Japanese original →

On a WordPress Malware Infection

October 25, 2025

Categories: 未分類

On a WordPress Malware Infection

A WordPress site I run recently got hit by malware.

Luckily I had backups, so I was able to recover, but I wanted to write up what I learned as a reference for future prevention.

File Damage

The image above is what the files looked like in my FTP client.
You can see that a suffix of __8997da9 was appended to the filenames.

Once I removed that suffix and restored the .php extension, I was able to open the files and view them as they originally were.

about.php

A file called about.php had been created, and it turned out to be doing the following:

— that's the pattern of code I found.

revisions.php

A file called wp-includes/revisions.php had also been created, and checking the access logs showed an abnormal volume of requests to it.

Access Logs

Total abnormal request count

Most of the traffic was Googlebot

According to the report broken down by organization, "66.249" (Googlebot's IP range) accounted for 98.9% of all requests.

IP OrganizationRequestsShare
66.249 (Googlebot)420,98198.9%
20.xxx3,7790.19%
52.xxx8350.32%
OtherSmall numbers–

Googlebot itself wasn't at fault here — it seems that Google mistook the "malicious URLs generated by the infection" for legitimate pages and crawled them.

Requests concentrated on the malicious files