Here’s a new attack that occurred this afternoon: bot networks are searching for backup copies of wp-config.php. They searched for these four files on the root level of one of my web sites.
The probes came from these four IP addresses, all within one minute of one another:
- 188.8.131.52 – Ukraine, no rDNS
- 184.108.40.206 – Ukraine, no rDNS
- 220.127.116.11 – Ukraine, 193-106-65-146.vega-tv.com.ua.
- 18.104.22.168 – Turkey, no rDNS
You should do two things:
- Search your site’s root directories for old “backup” copies of your site’s configuration files. And if you find any, you need to remove them. You may want to consider removing wp-config-sample.php if it exists as well. Heck, remove readme.html and license.html too. There is no reason for those files to be available on your web site.
- If your web server and host supports it, move your wp-config.php file up one directory out of your public web site. So if your WordPress installation is installed in /var/www/html/example.com/ , move wp-config.php to be in the html directory, not the com directory. This should remove the configuration file from the public.
Followup: September 30th, 2012: Just had a few new probes for wp-config.txt from 22.214.171.124, dslb-088-074-117-009.pools.arcor-ip.net, Germany.