Website file alerts
ServerNest tells you when files on your websites change in ways that often mean a hack. It works on every server, with nothing extra to install or run.
What it looks for
Every few minutes, the ServerNest agent on your server looks at the files in each app's folder that changed since the last look. It tells you about:
- A script in an upload folder (urgent). Upload folders, like WordPress's
wp-content/uploads, should only hold pictures and documents. A PHP file there is the most common sign of a hacked site. - Malware (urgent), when ClamAV is on. ClamAV checks changed files every few minutes, and all files once a night.
- A changed settings file:
wp-config.php,.htaccess,.user.iniorphp.ini. Attackers change these to hide a site or send visitors elsewhere. - Changed PHP files: one alert per app, with how many files changed.
Changes that ServerNest makes itself, like a deploy, a restore or a WordPress install, are not reported. Updates you start from your app's own admin page, or files you upload by SFTP, are reported, because ServerNest can't tell them apart from someone else's change.
A small empty index.php in an upload folder, which many plugins add so the folder can't be listed, is not reported. Folders like node_modules, .git, logs and caches are skipped.
Where you see the alerts
- In your notifications in the dashboard, with the app, the file and when it changed.
- On the server's Security page, under Website file alerts, with the alerts of the last 30 days.
- By email: urgent ones by default. To also get the others, choose "urgent problems and website file alerts" in Settings. See monitoring and alerts. On the Free plan, only urgent alerts are emailed; the others are still in your notifications.
The same kind of change in the same app is reported once an hour at most, so a big update doesn't fill your inbox.
Turn it off for an app
It is on for every app by default. Owners and admins can turn it off for the whole server or for some apps: open the server, then Security, then Website file alerts. This helps for an app that changes its own PHP files often. New apps are watched from the start.
What leaves your server
Only the app's name, the file's path inside the app's folder and the time. Never what is in your files. The check only reads file details, it never changes or deletes anything, and it needs no open ports.
If you get an urgent alert
Don't delete the file first: it shows how the attacker got in. Follow your PHP site was hacked: the first steps.
Website file alerts or Wazuh?
Website file alerts cover the most common signs of a hacked website, and need nothing else. Wazuh is optional and goes further: it also reads your logs for attacks and keeps a history on a Wazuh server you run. You can use both.