CryptoPHP is a threat that uses backdoored Joomla, WordPress andn Drupal themes and plug-ins to compromise webservers on a large scale. More information about this threat can be found on the referenced link below.
- Fox-IT: CryptoPHP - Analysis of a hidden threat inside popular content management systems
- Attackers Using Compromised Web Plug-Ins in CryptoPHP Blackhat SEO Campaign
This infection almost certainly means that the infected web site has used pirated plugins from the nulledstylez.com, dailynulled.com sites or some other site that specializes in providing "nulled" (pirated) software. Fox-IT's research has shown that every pirated theme or plug-in on these two sites has been infested with the cryptophp malware.
Fox-IT has publishedÂ a new blog itemÂ on this infection. Fox-IT has written two Python scripts that should be very good at finding these infections: check_url.py and check_filesystems.py. The first script scans a web site to find the infection, the second is used for scanning the web site's filesystem to find the infection. Please go to the above Fox-IT link to obtain these scripts and further instructions.
Fox-IT recommends that you shouldÂ NOTÂ try to "repair" the infection. The infected account should be reinstalled from scratch.
I shall repeat the previous paragraph:Â removing the "social.png" file DOES NOT remove the infection. "social.png" is only just one small piece of it. The infected account should be reinstalled from scratch.
We noticed that our advice in our paper wasnâ€™t clear to everyone. Spamhaus received a lot of inquiries about what to do with affected servers or how to find them. For this reason weâ€™ve added this section to explain this a bit better.
We have created two Python scripts to help administrators detect CryptoPHP:
Both scripts can be found on our GitHub repo:Â https://www.github.com/fox-it/cryptophp/scripts/
check_filesystem.py is for scanning the filesystem for the CryptoPHP backdoor files. It will find all â€œsocial*.pngâ€ files and determine if itâ€™s malicious.
And check_url.py script can scan a website to determine if the website is affected by CryptoPHP. This can be useful if you have multiple virtual hosts and donâ€™t know which one is affected.
If CryptoPHP has been found we recommend the following steps:
- Remove the â€œincludeâ€ of the backdoor. For example, find the script that contains: â€œ<?php include(â€˜images/social.pngâ€™); ?>â€. Note that this path can vary.
- Remove the backdoor (social*.png) itself by deleting it.
- Check your database to see if any extra administrator accounts were added and remove them
- Reset the credentials of your own CMS account and other administrators (they were most likely compromised)
The steps above should be sufficient to remove the impactÂ CryptoPHPÂ has had on your website. We do however recommend performing a complete reinstall of your CMS since the system integrity may have been compromised. An attacker may have gained system wide access for example.
For both security and legal reasons we would advise not to install this kind of pirated (nulled) content.