CS · EN

Webhosting - Compromised Website

This guide addresses websites compromised by malicious software. If you are dealing with other website issues, follow the article Webhosting – Website troubleshooting.

In this guide, you will learn:


Symptoms of a compromised website

A compromised website most often manifests itself through one or more of the following symptoms:

  • Spamming. Malicious software uses unsecured contact forms, or generally the PHP function mail() to send out spam mail. On our side, spamming is limited by setting a daily limit on the number of sent emails, and we strictly monitor approaching or reaching the limit. When we record increased volumes of sent mail contrary to the rules and sending limits for emails ⧉, we may completely disable the mail() function on our side.
  • Redirecting. The user is redirected to another website immediately after arriving on the page. Such a compromise cannot be reliably detected on our side, because any redirection may also be intentional.
  • Phishing pages or other unwanted content. In addition to, or instead of, legitimate content, the website contains fraudulent pages, intentionally harmful content, or an entirely blank page. Phishing is most often reported by users or the police. Deleted content may be either the result of an attack or a failure of the content management system (for example WordPress white death ⧉).
  • Scripts attacking other targets. This type of compromise often has no easily noticeable symptoms, and it is only revealed by a response to suspicious traffic from the server IP address in the form of a report or direct blacklisting.
  • PHP backdoor (crypt PHP). This file allows attackers access to the website even without the proper authorization and to repeatedly upload problematic pages and scripts that you delete.
Sample phishing - a copy of the VEDOS administration login on a suspicious address
Sample phishing – a copy of the VEDOS administration login on a suspicious address

Dealing with a compromised website

VEDOS handles a compromised website to the extent necessary to prevent damage in the following cases:

  • Spamming that endangers the reputation of emails sent by our servers. Here we disable the PHP function mail(), or block the SMTP server of the Webhosting mail services. We send information about the set restriction to the service billing email.
  • Phishing, where there is a risk of leakage or misuse of sensitive visitor data. Immediately after verifying the situation, we block access to the website and send information about the set restriction to the service billing email.
  • An attack on other targets within or outside our infrastructure. Depending on the severity, we usually first communicate with the hosting owner via the billing email; in extreme cases, we shut down the website until the malicious software is removed.

VEDOS primarily contacts the website owner via the billing email; in serious cases, SMS is sent. If there is no response to the request, we contact the email or phone number (again only via SMS) of the customer account owner where the relevant service is located.

In other cases, where there is no immediate danger, the problem is entirely in the hands of the hosting service owner or webmaster. We recommend following these steps:

  1. Back up the website. Even a compromised website may contain files and data you do not want to lose. You can find more information about backups in the article Webhosting – Backup.
  2. Run an antivirus scan and clean the files on FTP. The goal of the scan is to find and remove malicious scripts. Various approaches are available depending on the content management system used:
    • Full scan. Download the entire website content from FTP and scan it with antivirus software. Replace damaged files with clean ones from an older backup. After completing the scan, upload the website back to the cleaned FTP.
    • Reinstallation. Download and check only the user components of the content management system (for example the wp-content/uploads directory in WordPress). Delete the rest of the FTP contents and replace it with a clean installation of the content management system. Then connect it to the original database and upload the checked data.
  3. Secure the website against further compromise. Also scan all devices that have access to website administration with antivirus software. Change the login passwords for the website administration and FTP. Make sure the website uses the current version of the content management system and plugins.

If you do not know how to clean a website from malware, contact a specialist. You can find contact information, for example, on the VEDOS profi ⧉ website.


Preventing website compromise

To best prevent a website compromise, follow these rules:

  • Regularly update the content management system, all templates, and plugins. If no update has been released for a component for a long time, check whether it is outdated and, if so, replace it with another, continuously updated solution.
  • Block unused FTP accounts. You can find instructions in the article Webhosting – FTP Accounts.
  • Update the PHP version. If your system allows it, keep the PHP version as high as possible. If you encounter compatibility issues, find out which part of the content management system is incompatible and consider whether it is outdated and poses a security risk.
  • Follow the security recommendations of the content management system. For many content management systems, you can find security recommendations directly from their developers. For example, for WordPress you can find them at https://codex.wordpress.org/Hardening_WordPress ⧉.

Frequently asked questions

Can you clean the website from malware on your side?

No, we do not clean customer websites from malware on our side. Try looking for help on the VEDOS profi ⧉ website.

How do I clean the website when you have shut it down?

In the event of a website compromise, we shut down HTTP(S), but you still have access to FTP and databases.

The website was successfully cleaned, but it is still blocked on your side. What should I do now?

Contact us either by replying to the email notification about the website compromise sent by our technician, or via the contact form. In your communication, include the website name and the measures you took to resolve the problem.

I want to restore the website from backup, how should I proceed?

You can find all the necessary information about backups in the article Webhosting – Backup.