Security
Running a scan
What a scan checks, what uses an AI credit, and what to do with a finding.
Run a scan
- 1
Open Security, then Scan
Start a scan. It runs as a background job in short steps, so you can leave the page.
- 2
Files are hashed
Every PHP and JavaScript file is hashed on your site.
- 3
Official files are set aside
Each hash is compared with the official wordpress.org checksum for the exact version of core, the plugin or the theme you have installed. A match means the file is the published one.
- 4
The rest is analysed
Files that are new or changed, and are not verified official files, are uploaded and analysed. Comments are removed before the code reaches the model. Known malicious patterns are also matched by signature.
- 5
Read the results
Findings are listed with the file, the reasons and advice on what to do. A badge on the Scan tab shows how many need attention.
What uses a credit
- One credit analyses one file that is new or changed and has not been analysed before
- A file that matches the official release never uses a credit
- A file that has already been analysed, on your site or anywhere else, does not use one either: verdicts are stored by the file's hash
- Credits are counted per calendar month. The plugin shows how many are left
The first scan of a site with custom code or premium plugins uses the most credits, because none of that code can be checked against wordpress.org. Later scans only analyse what changed.
Premium plugins and themes
Code that is not hosted on wordpress.org has no official checksum, so it is treated as unverified and analysed. That is expected. It does not mean anything is wrong with it.
Acting on a finding
Nothing is changed on your site automatically. For each finding you choose one of three actions:
| Action | What it does | Use it when |
|---|---|---|
| Quarantine | Stops the file from running. Nothing is deleted | The file should not be there, or you are not sure |
| Restore the official file | Replaces a changed file with the published copy | A core, plugin or theme file was modified |
| Ignore | Keeps the file and stops reporting it | You know the file and trust it, such as your own custom code |
A finding is the start, not the end
Malware is usually a symptom. After you deal with the file, finish the clean-up: update the vulnerable component, change administrator passwords and review recently added users. If you have a verified backup from before the infection, restoring it is often the cleanest fix.
Vulnerability alerts
The Vulnerabilities tab is separate from the file scan. It compares the versions of your plugins, themes and WordPress core with a vulnerability feed, and lists the ones with known problems, each with the version that fixes it and an update button.
The data comes from the Wordfence Intelligence feed. Each alert links to its source record and carries the copyright notices its licence requires.
Your PHP version
Each vulnerability check also compares the site's PHP version with the security releases php.net has published for its branch. The result is the PHP check on the Hardening tab, not a row on the Vulnerabilities tab: it says how many security releases the version is behind, when the oldest missing fix came out, and, for the flaws we track as critical, which CVEs were fixed in which version.
Ubuntu, Debian and Red Hat patch PHP without changing its version number, so a fully patched server can report an older version. When the check warns, ask your host whether the fixes it names are applied. If they are, choose Leave out of the score for that check.
The PHP check needs vulnerability data in your licence. Without it, or when the service has not answered for a few days, the check still tells you whether your PHP branch gets security fixes, and says the patch level could not be checked.
Written for Swiftkeep 2.1.6. Under white label, the plugin shows your agency's name where this guide says Swiftkeep.