What a hosting scanner looks for
A malware scanner on a hosting server checks customer site files for malicious code. Instead of Windows viruses it hunts for web shells (PHP files that let an attacker control the server through a browser), spam scripts, injected hidden ads or redirects, and cryptocurrency miners. Such code usually arrives through a vulnerable CMS or plugin, a stolen FTP password or a compromised admin account. Common tools include open-source ClamAV and Linux Malware Detect (maldet), and commercial products such as ImunifyAV and Imunify360 from CloudLinux. The free ImunifyAV edition focuses on detection and alerts, while automatic cleanup comes with paid editions; check the official documentation for exact features.
Signatures, heuristics and real-time mode
Signature scanning compares files with a database of known malicious code: precise, but it only finds known samples. Heuristic analysis looks for dangerous combinations, such as decoding a string and executing it at once, running user input as a command, or a PHP file in an images folder. Scheduled scans sweep all files nightly or weekly, whereas real-time mode watches the file system and checks new or changed files immediately, catching many shells the moment they are uploaded.
What happens on detection
| Action | Benefit | Risk |
|---|---|---|
| Notify only | Site keeps working | Malicious code keeps running |
| Quarantine | Code stops at once, file can be restored | If the file is needed, the site errors |
| Auto-clean | Fast, no human needed | File may be cut wrongly or left empty |
If malicious code is injected into the main index.php, cleaning can leave the file empty and the site shows a blank page. Auto-cleaning must therefore go hand in hand with fresh backups, so a damaged file can be restored and cleaned by hand.
False positives
Encoded commercial plugins, file-manager tools and backup plugins are frequent false positives. Before restoring a file, find out how it got there. For WordPress, WP-CLI compares files with official checksums:
wp core verify-checksums --path=/var/www/misol/data/www/misol.uz
wp plugin verify-checksums --all --path=/var/www/misol/data/www/misol.uz
sha256sum wp-content/plugins/forma-plagini/forma.php
Scanning yourself with ClamAV and maldet
On a VPS you can run open-source scanners yourself. The -i option prints only infected files:
freshclam
clamscan -r -i --log=/root/scan-misol.log /var/www/misol/data/www/misol.uz
maldet -a /var/www/misol/data/www/misol.uz
maldet --report
ClamAV is a general antivirus and does not always catch PHP shells, while maldet uses signatures aimed at hosting threats, so combining them or adding manual review helps. No scanner gives a hundred per cent guarantee.
A practical routine after an alert
The owner of a furniture maker's site in Namangan was told that a suspicious PHP file in wp-content/uploads had been quarantined. The site kept working, but the file had been uploaded somehow, so the entry point was still open. A gallery plugin not updated for over a year turned out to be the cause, and repeat detections stopped once it was updated.
- Save the file path and detection name.
- Decide whether the file belongs to your site.
- If not, update the CMS, plugins and themes and remove unused ones.
- Change hosting, FTP, database and admin passwords.
- Watch for new detections over the next few days.
If you believe a detection is false or need a quarantined file back, ask hosting support with the path and reason rather than restoring it yourself; sayt.uz customers can do this through a ticket in the cabinet. Remember that a scanner only reveals the problem: closing the vulnerability and keeping the site updated is what actually ends it.