P-ivo File Integrity Monitor
P-ivo File Integrity Monitor monitors the integrity of WordPress core, plugin, theme, mu-plugin, and wp-content drop-in (advanced-cache.php, object-cache.php, db.php…) files, and sends an email alert after the next scan detects that one of them has been changed, added, or deleted WITHOUT the change
P-ivo File Integrity Monitor monitors the integrity of WordPress core, plugin, theme, mu-plugin, and wp-content drop-in (advanced-cache.php, object-cache.php, db.php…) files, and sends an email alert after the next scan detects that one of them has been changed, added, or deleted WITHOUT the change going through an official WP update mechanism. This is often the earliest sign that a site has been compromised (malware injection, backdoor, defacement).
It reports file changes. It does not scan file contents for malware signatures, and it does not clean or repair anything.
How it works
- On activation, the plugin builds a “baseline” — a SHA-256 hash of every tracked file, stored in its own database tables (not wp_options, because of the large number of files).
- A recurring scan compares the current state of files against the baseline and reports differences as events: added, modified, deleted. You choose how often it runs in Settings > Scan interval: every 15 minutes, every 30 minutes, hourly, twice daily, or once daily. The default is once a day at 03:00 (site time). You can also start a scan yourself at any time with “Scan now” — there is no limit on how often.
- Scanning runs in batches (configurable, 500 files per pass by default) so it doesn’t time out even on sites with lots of files. “Scan now” runs the batches back to back until the whole pass is finished, with a progress indicator while it works. The automatic scan does the same in the background: a large site is scanned in several consecutive steps, which depends on WP-Cron.
- When you update a plugin, theme, or WordPress core through WP admin (or WP-CLI, including automatic background updates), the plugin recognizes this and automatically refreshes the baseline for those files — you won’t get false alerts for legitimate updates. This covers plugins that live in their own folder; single-file plugins (such as hello.php) are not covered by the update tracker and will show up as changes after an update.
- Every other change is listed as New. Once an alert email has been sent for it, its status becomes Notified (it still needs your review). You then review it in the dashboard: “Accept as correct” updates the baseline (status becomes Accepted), while “Mark as reviewed” (status becomes Acknowledged) leaves the baseline unchanged — the file stays listed under Acknowledged and no new alert is sent for it unless its contents change again. Apart from the initial baseline build and an explicit “Accept as correct”, the baseline is NEVER changed except through a recognized WP update — this is a deliberate security choice, not an oversight.