phpwarden vs. Wordfence CLI
Wordfence CLI, the command-line scanner for WordPress malware and vulnerabilities, is being wound down (no new licences are available; Free licences ended 2026-10-14). phpwarden scans WordPress plus the PHP engine and Composer, ranked by CISA KEV, then EPSS. What it replaces and what it does not.
vuln-scan, phpwarden replaces it directly. For malware-scan, phpwarden has a file integrity
check that catches tampered and injected files, but it is not a signature scanner. The
migration table below maps each command.Feature comparison
| Wordfence CLI | phpwarden | |
|---|---|---|
| WordPress core / plugin / theme CVEs | ✓ Yes | ✓ Yes |
| Malware signatures (known malware families) | ✓ Yes | ✗ No |
| File integrity vs wordpress.org checksums | check their docs | ✓ core + plugins |
| Injected files and common backdoor code | ✓ Yes | ✓ heuristic |
| Composer dependency CVEs | ✗ No | ✓ Yes |
| PHP engine version CVEs (per branch/SAPI) | ✗ No | ✓ Yes |
| Exploitation ranking (CISA KEV + EPSS) | ✗ own severity | ✓ Yes |
| Runtime protection (PHP-FPM guard) | ✗ No | ✓ paid: dry-run on Pro, enforce on Team |
| Scans your own PHP code (whole program, framework-aware) | ✗ No | ✓ 89 rules, cross-file, WordPress-aware |
| Live check of the running site from outside | ✗ No | ✓ read-only, ownership-verified |
| Signed-in live check (versions only visible when logged in) | ✗ No | ✓ since 2.5.0: test account or cookie, GET/HEAD only |
| Imports Trivy results (npm, OS packages, IaC, secrets) | ✗ No | ✓ phpwarden trivy-import, assess --trivy |
| Editor integration | ✗ No | ✓ VS Code extension (Marketplace); PhpStorm plugin from disk |
| Client reports for agencies | ✗ No | ✓ client-ready report free; your logo on Team |
| One combined, ranked verdict (versions, code, live site, logs) | ✗ No | ✓ phpwarden assess |
| WAF rules you run yourself | ✗ No | ✓ ModSecurity / nginx; log-only trial |
| Blocks exploits of the vulnerabilities installed, inside PHP | ✗ No | ✓ shield: per-site rules, log-only first |
| Vulnerability data freshness | needs a licence | bundled; free weekly update; twice daily on Pro; exploited CVEs within 24 hours |
| Runs offline / free vuln scanning | ✗ needs a licence; Free licences ended 2026-10-14 | ✓ Yes |
| Open source | ✓ GPLv3 | ✓ Apache-2.0 engine |
| Language / runtime | Python 3.8+, libpcre | Python 3.8+, zero deps |
| New licences available | ✗ closed Oct 2026 | ✓ Yes |
| JSON / SARIF output | ✗ CSV/TSV and line-delimited only | ✓ Yes |
| Cost | No longer sold | Free; Pro $39/mo; Team $149/mo |
Replacing Wordfence CLI, command by command
| Wordfence CLI | phpwarden | What you keep, what you lose |
|---|---|---|
| wordfence vuln-scan /var/www/site | phpwarden wordpress /var/www/site | Same job. You gain exploitation ranking, JSON and SARIF output and a non-zero exit code on findings. |
| wordfence malware-scan /var/www/site | phpwarden integrity /var/www/site | Finds modified core and plugin files, files that do not belong, PHP in uploads and common backdoor code. No malware signatures: malware inside a premium plugin or a theme is not covered, and the report lists what it could not verify. |
| wordfence remediate | none | Reinstall the flagged component: wp core download --force --version=X, or wp plugin install SLUG --force --version=Y. |
| wordfence db-scan | none | phpwarden does not scan the database. |
| cron + email output | --json, exit codes, --report-to | Pipe JSON to your own tooling, or send results to the dashboard for a fleet view and alerts. |
Scanning every site on a server:
for d in /var/www/*/public_html; do
phpwarden wordpress "$d" --json > "/var/log/phpwarden/$(basename "$(dirname "$d")").json"
phpwarden integrity "$d" || echo "TAMPERED: $d"
done
If malware signatures are a hard requirement, keep a signature scanner alongside: the Wordfence plugin on each site, or a server-level scanner such as Imunify360 or ClamAV with PHP malware rules.
What Wordfence CLI did well
Wordfence CLI is an open-source (GPLv3), high-performance Python scanner from the Wordfence team. Its
vuln-scan checked a WordPress tree against the Wordfence Intelligence vulnerability database; its
malware-scan detected malicious PHP files using Wordfence malware signatures. For a WordPress operator who needs to find injected
malware, that malware capability is something phpwarden does not offer at all.
Where phpwarden differs
- Whole-stack, not WordPress-only. Many WordPress sites also ship Composer dependencies and run on a specific PHP version. phpwarden scans all three from one tool: WordPress (about 12,300 WordPress advisories in its feed, ranked by exploitation), Composer, and the PHP engine per branch.
- Exploitation ranking. phpwarden orders findings by CISA KEV and EPSS, not by a vendor severity label, so you see the actively-exploited plugin bug first. (See which WordPress CVEs are actually being exploited.)
- Integrity check, not malware signatures.
phpwarden integritycompares WordPress core and every wordpress.org plugin with the official checksums, and flags injected files and common backdoor code. That is how most compromised sites show up. It has no signature database, so it cannot name a malware family or find malware in files that have no public checksum. - More views of the same site. A whole-program scan (89 rules) of your own plugin or theme code, a read-only
check of the live site from outside (since 2.5.0 optionally signed in with a low-privilege test account, still GET and
HEAD only),
phpwarden shieldto block exploits of the vulnerabilities that site has (log-only until promoted), WAF rules with a log-only trial, Trivy import for the non-PHP parts, andphpwarden assess, which ranks everything together. There is a VS Code extension on the Visual Studio Marketplace and a PhpStorm plugin you install from disk. The maintained feed is rebuilt twice a day, with newly exploited vulnerabilities added within 24 hours (commitment). - Pricing. The CLI is free. Pro is $39/month (maintained feed, up to 25 projects, weekly live check of each verified site, alerts when a vulnerability on a site becomes exploited). Team is $149/month (unlimited projects, client reports with your logo, free view-only client logins, 5 staff seats).
When to keep Wordfence CLI for now
If you hold a Premium CLI licence that is still in term, its signature-based malware scan remains the stronger tool for cleaning a site that is already compromised. Plan the move before the licence ends: phpwarden covers the vulnerability scan and tamper detection, across WordPress and Composer and the PHP engine, ranked by exploitation.
Try phpwarden on your project
Zero dependencies, offline, Apache-2.0. Ranks findings by CISA KEV → EPSS → CVSS.
composer require --dev phpwarden/phpwarden # PHP projects → vendor/bin/phpwarden
vendor/bin/phpwarden deps composer.lock # Composer
vendor/bin/phpwarden scan # PHP engine on this host
vendor/bin/phpwarden wordpress /var/www/html # WordPress core, plugins, themes
No Composer? pipx install phpwarden or the single-file phpwarden.pyz. In CI: oroma-alfred/phpwarden-action@v1.