Description

This check ensures that the latest Monarx malware scan of every VPS found no malicious and no compromised files. It reads the scan metrics reported by the Hostinger VPS malware scanner. Each VPS with the scanner installed is evaluated separately.

Rationale

Malicious or compromised files show that the server has been infected, for example through a vulnerable plugin or a stolen password. An infected server can leak data, serve malware to visitors, send spam or be used to attack other systems. Detected files must be removed and the cause of the infection fixed.

Impact

  • Removing files can break a website if a legitimate file was infected; keep a copy and restore a clean version of the file

  • Automatic cleanup requires a paid Monarx license; without one, files must be removed or quarantined manually

  • A clean file scan does not prove the infection is gone: the scanner does not check databases, and the original entry point must also be fixed

Default Value

Not applicable. The result depends on the files present on the server.

Pre-Requisites

  • The malware scanner installed on the VPS (see hostinger_vps_malware_scanner_installed)

  • SSH or root access to the VPS to review and remove files

  • A recent backup of the VPS

Remediation

Test Plan

  1. Log in to hPanel at https://hpanel.hostinger.com.

  2. Go to VPS and click Manage next to the server.

  3. In the left sidebar, select Security → Malware Scanner.

  4. Review the latest scan results. If any malicious or compromised files are listed, the check fails for this VPS.

  5. Repeat for each VPS in the account.

Implementation Steps

  1. Log in to hPanel at https://hpanel.hostinger.com.

  2. Go to VPS and click Manage next to the server.

  3. In the left sidebar, select Security → Malware Scanner and note every file listed as malicious or compromised.

  4. If you have a Monarx license, turn on automatic removal so that the scanner cleans the files. Otherwise, connect to the VPS over SSH and delete or quarantine each file (for example move it to a folder outside the web root that is not executable). Replace infected legitimate files with clean copies.

  5. Find and fix the cause: update the operating system, web applications, plugins and themes; remove unknown users, SSH keys and cron jobs; and change the root, panel, application and database passwords.

  6. If the server cannot be cleaned with confidence, restore a backup taken before the infection (Backups & Monitoring → Snapshots & Backups). Restoring overwrites all current data on the VPS.

  7. Wait for the next scan and confirm that no malicious or compromised files are reported.

Backout Plan

  1. If a legitimate file was removed by mistake, copy it back from the quarantine folder or from your own backup copy of the website.

  2. If needed, restore the whole VPS from Backups & Monitoring → Snapshots & Backups. Restoring overwrites all current data on the VPS.

Note: Never restore a file that the scanner reported as malicious unless it has been confirmed as a false positive.

Reference