Steps to cleaning malware
Unfortunately fixing a malware infection can be a complicated issue, in some cases it might be best to seek advise from a developer so they can resolve the issue and stop it from happening again.
- Remove infected files or if the files are required replace them with clean copies of the files.
You can obtain these from any available JetBackups - although we strongly recommend you maintain your own independent off-site backups too.
- Update any passwords such as cPanel and website admin logins.
- Make sure any Content Management System (CMS) you are using, including any plug-ins are up to date.
- Use the highest version of PHP possible.
You can change the version of PHP you're using yourself within cPanel.
These basic steps are the same whether you have a static site, or are using a CMS like Wordpress, Drupal, Joomla or Magento.
More sophisticated attacks can also cause damage to your sites database. And in these cases your options, depending on your site type would be to either have the database cleaned or restore the database from a backup - as well as making all the changes above to ensure your site doesn't get re-infected.
WordPress specific malware cleaning
- Update WordPress to the latest version.
- Change all passwords, including cPanel and MySQL.
- Check WordPress for any additional users that might have been created.
- Change all WordPress user passwords.
- Change your WordPress access hashes in wp-config.php
- Update all plug-ins
- Update all themes (and remove any unused ones).
Review the site for evidence of any malicious files (with the assistance of your developer who should be able to identify malicious or unrecognised files).
You may be able to see the attack vector via your cPanel Raw Access logs and looking for 'POST' requests to PHP files that would ordinarily not be posted to or more POST's than you would expect.
External assistance / cleaning services for WordPress
If you are not confident cleaning your site yourself there are a number of services available, that will not only clean your site, but also then offer continued protection via a WordPress Application Firewall (WAF).
Whilst we have firewalls and security scanning in place, no single solution will ever be 100% effective - so it is important that you take steps to secure and protect your site.