Integrity check
Compare a site's WordPress core and plugin files with their official copies, and find PHP where it must not be. What it checks, what it misses, and next steps.
The integrity check asks WordPress whether the files on your site are the files WordPress and the plugin authors published. It runs once a week on every running environment, and you can run it when you like. It changes nothing on your site.
Needs WordPress on the environment. See Run a site without WordPress.
It is an integrity check. It is not a malware scanner, and it does not fix anything. A site can be hacked in ways it cannot see, and a clean result is not a promise that a site is safe.
What it checks
- WordPress core. Every core file against the official checksums from wordpress.org, with WP-CLI. It finds a core file that was changed, a file in a core folder that WordPress does not ship, and a core file that is gone.
- Plugins from wordpress.org. Every file of every plugin that has official checksums, the same way. A plugin that is not on wordpress.org, such as a premium plugin, cannot be compared and counts as unverified. It is not a finding.
- PHP in the uploads folder. PHP must not run there, so a PHP file in
wp-content/uploadsis worth a look. Some files that plugins write there are ignored: theindex.phpthat says "Silence is golden", the smallindex.phpthat WPForms, All-in-One WP Migration, Shield, and WP STAGING write to hide a folder's listing (each byte for byte), and the settings and log files of All In One Security and Sucuri, which start with a line that stops PHP and then hold plain data. The same file with anything added to the first lines, or in another folder, is listed. - Well known web shell file names, such as
c99.php,r57.php, andwso.php, anywhere in the site, and PHP files whose names start with a dot. - Plugin files that are the official copy. Some plugins ship a settings file for a coding tool, with a name that starts with a dot, such as
.php-cs-fixer.php, inside theirvendorfolder. A file like that inside a plugin from the WordPress directory is left out when it is exactly the file that WordPress.org publishes for that plugin and version. The check compares the file's checksum, never its name. The same file name with other content is listed, and so is a file in a plugin that is not in the WordPress directory (a premium plugin has no official copy to compare with). If WordPress.org does not answer, the file is listed. - Placeholder files that a plugin does not have. Plugins ship an
index.htmlorindex.phpthat only hides a folder's listing. If one of those is missing, the check does not list it when WordPress.org publishes a known placeholder for that file (an empty file, a "Silence is golden" comment, or a page that says "Nothing here."). Any other missing file is still listed as a note. - Changes to read-only code. Code in Git mode is a read-only release. Any file that differs from the release as it was built is listed. Nothing can write code there, so a difference is worth a look.
It runs WP-CLI with plugins and themes switched off, and reads the file list. It does not open, run, or change a file it finds.
What it cannot find
- Malware that matches an official copy, or that sits in the database, in a theme, in a premium plugin, or in your own code.
- A change to a theme. Themes have no official checksums at wordpress.org, so a theme gets only the file name and PHP checks above.
- A site on a server with older WP Waterfall software. Starting a check there answers that the server needs an update, and the weekly run skips it.
- Anything on a site it could not compare. The result says so (see below).
Where you see the result
The Scans card on the Protection tab shows what the last check found: its files are in the same list as the malware scan's, one row for each file, with the reason it was listed. The first five show, then Show all. Until a scan has run, the card says so.
| Result | What the sentence says |
|---|---|
| Nothing to review | Nothing to review. |
| Files to review | N files to review. |
| Incomplete | Could not compare every file, for example when WordPress could not reach wordpress.org. It found nothing to review in the rest. |
A missing file is only a note: it is listed in the details, and it does not make the result "files to review".
When a check finds files to review, the owners of the company get one notification. They do not get another for the same files, and they get a new one if the files change or the problem comes back after a clean result. A clean or incomplete result sends nothing.
Run a check now
- Open the site's Protection tab, in the environment you want.
- Choose Scan now on the Scans card (people who may run tools can). It starts the integrity check and a malware scan together.
The check is a job. It shows in your jobs list when you start it, and it stays out of your lists when WP Waterfall starts it. An environment that is asleep is not checked by the weekly run, so a check never wakes a site. Starting one yourself wakes it.
What to do with a result
- Open the Scans card and read the path and the reason of each file.
- If you know why (you edited a core file on purpose, or a plugin puts a file in uploads), you can leave it. The note will come back each week until the file matches again.
- If you do not know why, treat the site as possibly compromised: restore a backup from before the date (see Backups), change your WordPress and hosting passwords, update everything, and ask support if you need help.
WP Waterfall does not clean a hacked site for you through this check.
Ask an assistant
An assistant connected through MCP can use check_site_integrity to start a check. It returns a job, and wait_for_job returns the status and the findings.
API
POST /v1/environments/{id}/integrity-checkstarts a check. It returns202with the job.GET /v1/environments/{id}/integrityreturns the latest result, orlatest: nullbefore the first check. It lists up to 200 findings with a path and a sentence each.- Starting needs the
sites:writescope and the permission to run tools. Reading needssites:read.
Still stuck?
Email support at wpwaterfall dot com with your site name and what you tried, or send us a message.