Changelog
Last updated: 2026-11-12
All notable changes to RatSweepr are documented here. The format is based on Keep a Changelog and RatSweepr follows Semantic Versioning.
[2.9.31] - 2026-11-11
Fixed
- A scan that skipped something can no longer read as clean. If the database scan could not connect, or the core or plugin checksum checks could not run, the verdict could still say “no known malware found”. Those cases now give
VERDICT: INCOMPLETE, list what did not run in the report, and say why. A database connection failure used to only print a warning; it is now a report row that points you to the database settings inwp-config.php. - Every YARA rule now runs without a YARA engine. On servers with no YARA installed, the built-in matcher silently skipped 17 of the 40 rules. All 40 are now covered, either natively or by an explicit fallback, and the log prints the real coverage instead of claiming full coverage.
- Severity now follows each rule’s own rating. YARA findings took their severity from the rule name instead of the rating written in the rule. One rule (
RS_injected_html_comment_marker) moves from HIGH to MED as a result. - The free edition rewrote its local indicator list on every run because its version check didn’t recognise the
-freesuffix. - Files with old-style line endings are now normalised before the remaining four detection checks that read them line by line.
Changed
scannow exits with the same codes asscan-all, including3for an incomplete scan. If you script aroundscan, check your exit-code handling.- The sample
ratsweepr-sigs.confis now generated from the built-in patterns, and the test suite fails if the two drift apart. - The help text now lists
quarantine-dbandrestore-db, and the self-test runs in CI.
[2.9.30] - 2026-10-27
Fixed
- Files with old-style line endings can no longer hide code. PHP ends a
//or#comment at a bare carriage return just like at a newline. RatSweepr’s “known-benign” checks only looked for newlines, so a file using only carriage-return line endings could make real code look like part of a comment. Line endings are now normalised before any of those checks run, and the case is covered by the self-test.
[2.9.29] - 2026-10-26
Fixed
- Comment tricks can no longer downgrade a real finding. PHP ends a
//or#comment early at the first?>, so code hidden after a fake// ?>was being thrown away along with the comment before the “is this harmless?” check ran. Every such check now looks at the raw file first and only accepts a single leading<?phptag with at most one closing tag at the very end. - PHP string interpolation is no longer treated as plain data. A double-quoted string containing
$or{(for example"{$a()}") can run code in PHP, so it no longer counts as a harmless data file.
Changed
selftestnow includes 18 must-stay-HIGH cases and 2 must-clear cases, so these checks can’t quietly regress.
[2.9.28] - 2026-10-26
Fixed
- Stricter “known-benign” downgrades. The rules that turn a finding into an informational note (data-only font files, 404 stub files, the stock Wordfence firewall bootstrap) now accept only an exact, known-good shape instead of looking for the absence of bad words. A call hidden inside an array or between quotes no longer slips through.
- A line containing two
<?phptags was counted as one. It is now counted correctly. - The free edition printed two usage lines twice.
Added
ratsweepr.sh selftestruns a regression corpus of must-stay-HIGH fixtures against every suppression rule. It needs no WordPress site and runs as part ofmake test.
[2.9.27] - 2026-10-26
Added
- Persistence-family detection. New checks for payload containers (a compressed, base64-encoded blob stored in a file that looks like data), PHP disguised with data-file extensions, the same random suffix reused across many directories, PHP hidden inside dot-directories, fake security or SEO plugin headers, known class and database-option indicators, external scripts enqueued from unexpected places, and user-hiding code that uses a hard-coded user ID.
- Account-area scan. A bounded, read-only look at the folder above the web root for leftover copies and hidden directories.
- Orphaned admin metadata (rows left behind after an admin account was deleted) is now a HIGH finding, and admin session review flags crawler-like user agents and many different IP addresses.
trust-pathcommand. Lets you mark a verified file or directory as trusted, pinned to its hash so a later change is noticed.- Every known-benign downgrade is now listed in a
Suppressed as known-benign: Nline before the verdict, so nothing is hidden silently.
Fixed
- Fewer false HIGH findings: data-only font definition files, 404 stub files, the stock firewall bootstrap, premium plugins whose files are checksum-verified, and the one-line
eval()of a vendored template engine. - The scan header now shows the real PHP and MySQL versions.
- Files that changed during an incident window are summarised once per directory instead of one line per file.
[2.9.26] - 2026-10-26
Added
- User triage. Lists every elevated-role account read straight from the database tables (so a plugin that hides users from
wp user listcan’t hide a row), with registration date, post count, last login, and flags for generated-looking logins and accounts created inside an infection window.--known-userand--known-domainmark accounts you have verified. scan-all. Finds every WordPress install under common shared-hosting layouts, scans each, and prints one summary table. Sites that share a database are scanned once.fix-plan(paid edition). Generates a dry-run-by-default script with copy-paste commands to strip a detected database loader. RatSweepr never runs it for you.- Two new MED checks for leftover one-time-login helper plugins and stale login tokens.
[2.9.25] - 2026-10-26
Added
- Post-content loader detection. A structural detector for a script loader injected into post content and its revisions. It flags on several behaviours together rather than one fixed name, and it decodes and reports the real target URL.
- Supply-chain remnants. Detection for the analytics-module, fake core file and
wp-config.phpinjection pattern described in public advisories about compromised plugin families. - One new YARA rule (40 rules in total).
Changed
- Honest verdict.
COMPROMISEDnow needs a HIGH finding in a category that really confirms compromise. An integrity-only HIGH readsNEEDS REVIEW, and no HIGH readsNO KNOWN MALWARE FOUND, neverCLEAN, because a scanner can’t prove absence. - Reports move out of the web root. They now go to
~/ratsweepr-reports(private permissions), or wherever--report-dirpoints, with a warning if that is inside the web root.
Fixed
- Six false-positive HIGH findings, each decided on content or hash and never on a file name alone: locale-specific core files, the stock firewall bootstrap, host-managed must-use plugins, empty uploads stub files, and a vendored library’s own API host.
[2.9.24] - 2026-10-22
Fixed
- Scans on locked-down cPanel hosts. Some shared hosts (for example CloudLinux/CageFS) don’t provide
/dev/fd, which broke core and plugin verification and made later checks run against every core file, so the scan looked stuck. RatSweepr now uses temporary files instead, with one code path on every host. - No more false “done”. If a check can’t run (failed checksum download, empty response, missing input), it is reported as a finding and the summary shows
SCAN INCOMPLETEwith anINCOMPLETEverdict, neverCLEAN. - Clean exit on Ctrl+C. Interrupting a scan or the share-report prompt now stops right away and removes all temporary files, including the ones used for redaction.
Added
RS_DEBUG=1prints per-check timing to help diagnose slow hosts.
Tested in an Ubuntu container with /dev/fd removed, as a non-root user, and on macOS.
[2.9.23] - 2026-10-20
Added
- Gzip hidden as a normal asset. Flags files named like images, CSS, JS or fonts whose contents actually start with a gzip header — a common way SEO cloakers hide a compressed payload next to a theme.
- PHP inside non-PHP files. Raises a high finding when a
.js(or other non-PHP) file contains real PHP, instead of only noting it as an unexpected extra file. compress.zlib://stream loaders. Catches PHP that loads a file through PHP’s zlib stream wrapper and then includes or evaluates it — the short loader idiom used to keep the payload off disk as plain text..user.ini/.htaccessauto-prepend persistence. Flagsauto_prepend_fileandauto_append_filedrops under the site (and reports the path they point at).- Optional low-confidence markers for known cloaker tokens (
cf1988,ys001) as review breadcrumbs, not as primary proof.
Fixed
ratsweepr.shis executable in the repository again (100755).
Every new check was validated against inert fixtures that reproduce the missed shapes from a lab re-test of a real SEO-cloaking pattern, plus negative controls on clean assets (including a real minified jQuery and a legitimate .css.gz). Magic-byte reads use dd + od so the same code path works on Ubuntu hosts and macOS/BSD.
[2.9.22] - 2026-10-19
Fixed
- Cache age check on Linux hosts (GNU
stat) that caused “unbound variable” and “integer expression expected” errors.statresults are now validated before arithmetic, with a Linux CI smoke test.
Changed
- Kit: the download zip now extracts into a single
ratsweepr-kit-<version>/folder.
[2.9.21] - 2026-10-19
Fixed
- Files containing embedded binary base64 (images or fonts) no longer print “ignored null byte” warnings during a scan, and those blobs are now decoded correctly instead of being silently corrupted.
Changed
- Build and release pipeline updated to current tooling.
[2.9.20] - 2026-10-19
Added
- Database-injected head scripts. Catches scripts injected into every page’s
<head>from values stored in database options. - Keyed REST API backdoors. Catches open REST endpoints that run code when a secret key is sent.
- Split-string include loaders. Catches code that assembles a file path from fragments and includes it to hide the payload.
- Secret-gated command execution. Catches files that only run commands when a hidden password or token is supplied.
- Plugin header mismatch. Flags plugins whose author or text domain doesn’t match the plugin they claim to be.
- Blockchain-hosted JavaScript loaders. Catches base64-hidden scripts that fetch their payload from a blockchain.
- Database checks: malicious options (the paid edition can export them and then remove them), admin accounts created during an exploit (correlated with customizer changesets), exploit test-post patterns, admin session review, gaps in user IDs, and an estimated compromise date.
- A final VERDICT line at the end of every scan: CLEAN, SUSPICIOUS or COMPROMISED.
- YARA rules expanded from 33 to 36.
Fixed
- Empty rows no longer appear in reports.
- Missing files from bundled themes are grouped into one finding per theme or plugin instead of one per file.
- Fewer false positives in Gravity Forms and WPBakery.
- Database checks now work on macOS and BSD systems.
[2.9.19] - 2026-10-19
Replaced the old WPScan integration with an optional, free Wordfence Intelligence vulnerability-feed check: bring your own free Wordfence key and the scan will flag outdated-and-vulnerable WordPress core, plugins and themes, with a link to the advisory and the patched version. No key needed for two other new checks: a hand-picked list of actively-exploited plugin CVEs, and a free wordpress.org-based outdated-plugin check for everything else. Also added detection for the October 2026 Rank Math SEO PRO supply-chain compromise (a second backdoored plugin’s fake maintenance tool, a fake core file, a .htaccess/.cache execution trick, and published indicators), a second known variant of the UpdraftCentral key-compromise backdoor, and a correction to the UpdraftPlus entry (an older, separate code vulnerability now shows as actively exploited per a fresh advisory, clearly distinguished from the unrelated, no-CVE key-compromise incident that affects every version). A pre-existing gap was also fixed: a backdoor-type signature match inside a trusted/allowlisted path is now always reported at full severity instead of being quietly downgraded.
Added
- Optional check against the Wordfence Intelligence vulnerability feed. Requires a free API key from wordfence.com (your own account, never required). Checks installed WordPress core, plugins and themes; results show the issue, the installed and patched versions, and a link to the advisory. Required attribution text is included automatically whenever a result is shown. The feed is downloaded at most once a day and reused from cache if Wordfence is unreachable.
- Free check (no key needed) comparing every wordpress.org-hosted plugin’s installed version against the latest version on wordpress.org. Reports plainly as ‘outdated’, never ‘vulnerable’, unless a vulnerability was already confirmed by the hand-picked list or the Wordfence feed. Plugins not sold on wordpress.org are reported as ‘can’t check automatically, verify with the vendor’ instead of guessing.
- Detection for the October 2026 Rank Math SEO PRO supply-chain compromise: a hand-picked entry flags the exact compromised version by its own name, a new signature matches its published malicious code markers, a dedicated check looks for its fake core file and its .htaccess/.cache execution trick, and read-only extras surface its published database and cron indicators without changing anything.
- Added a signature for a second known variant of the October 2026 UpdraftCentral key-compromise backdoor (one that also hides its planted account from admin-list lookups), plus read-only checks for its published account/plugin-name indicators. Separately corrected the hand-picked UpdraftPlus entry: a different, older code vulnerability is now marked actively exploited per a fresh advisory, and its wording now clearly distinguishes it from the unrelated key-compromise incident, which has no CVE and affects every version.
Fixed
- A signature match for a backdoor-type rule can no longer be silently downgraded to informational just because it’s inside a trusted/allowlisted path. Backdoor-class findings are now always reported at full severity.
Removed
- Removed the WPScan API integration and all related configuration and documentation. WPScan’s free tier isn’t licensed for commercial use, so it’s been fully replaced by the two checks above.
[2.9.18] - 2026-10-19
New detection rules for three live campaigns reported in October 2026: a fake ‘maintenance toolkit’ plugin tied to a stolen UpdraftCentral signing key, a hidden-admin-account backdoor delivered through a chain of plugin vulnerabilities, and malicious PHP files dropped into specific plugin upload folders. Also added a short, hand-picked list of plugin versions with known, often actively-exploited vulnerabilities, reported clearly as ‘outdated/vulnerable’ rather than ‘infected’.
Added
- New signature for the October 2026 UpdraftCentral key-compromise campaign: a fake maintenance-toolkit plugin that creates a hidden admin session. Sites running UpdraftPlus also get a one-time advisory note about checking for and removing a specific leftover option, and reviewing access logs for a specific file signature.
- New signatures for the specific file paths and a revealing code comment used by an October 2026 hidden-admin-account campaign chained through several plugin vulnerabilities. These do not rely on file modification times, which this particular attacker deliberately backdates.
- Specific, high-confidence upload-folder paths tied to recent exploits (plus a specific suspicious filename pattern anywhere under uploads) now report at a higher severity than a generic ‘PHP file found in uploads’ finding.
- New, pure-bash check comparing an installed plugin’s version (read from its own plugin header) against a short, hand-picked list of public CVEs. Reported as ‘outdated/vulnerable’, with the CVE and a link to the advisory - never worded as ‘infected’. Entries marked as actively exploited report at a higher severity.
[2.9.17] - 2026-10-18
quarantine_from_report (and clean_core, defensively) now refuse to ever move, rename or overwrite wp-config.php - matched by basename AND resolved real path, so a same-named decoy elsewhere in the tree is unaffected and wp-config-sample.php stays quarantinable. scan_wpconfig_content now records the exact flagged line number(s) in the report DETAIL. New read-only wp-config-review subcommand shows flagged lines with 2 lines of context, secrets masked. No detection logic, category, or severity changed; ratsweepr.yar unchanged (still 29 rules, unaffected by this pass).
Changed
- New helper used by quarantine_from_report (primary) and clean_core (defense-in-depth; structurally unreachable there since wp-config.php is never in the official core-checksum manifest). Matches by basename AND resolved real path against $WPROOT/wp-config.php or $WPROOT/../wp-config.php
- Wp-config-rogue-include and wp-config-injected-code DETAIL now starts with ‘L
: ’ (exact grep -n line number) or ‘line unknown, review the whole file’ as a fallback; detection regexes, categories, and severities unchanged - New helper redacts DB_PASSWORD and any _KEY/_SALT define() value to MASKED before any flagged-line text is printed (scan report DETAIL, the quarantine [ACTION] block, and wp-config-review)
- New read-only CLI subcommand: prints every flagged wp-config.php line with 2 lines of context, secrets masked, each displayed line truncated to ~160 chars
[2.9.15] - 2026-10-16
Added
- Goto-obfuscated malware detection. Catches PHP that hides an eval/base64 payload behind scrambled
gotojumps, a trick seen injected into a premium plugin’s view file. Normalgotoloops are not flagged. - Self-bootstrapping backdoor detection. Catches standalone files that climb directories looking for
wp-load.phpand then run commands sent in a request. Legitimate plugin bootstraps are not flagged. - Reassembled superglobal detection. Catches code that rebuilds names like
_COOKIE(or function names) from string fragments to feedeval(base64_decode(...)), a common scanner-evasion trick. - External script injection detection. Catches plaintext
<script src>tags pointing at typosquatted CDNs (for examplecoredelivr/quickdelivr), known payload paths, or spam-TLD hosts inside theme and plugin files. Real CDNs such as jsDelivr and Google Tag Manager are excluded. - Fake plugin detection. Flags plugin folders named like
word-<random hex>and plugins that ship a barepayload.php. Works even on hosts where PHP is restricted; files are still content-scanned.
Every new rule was validated against real malware samples collected during cleanups and checked for false positives against legitimate code.
[2.9.14] - 2026-10-16
Fixed
Fewer false positives burying real findings. Strong signals (real code statements, PHP shells, backdoor and injection rules) stay fully active; only weak signals were narrowed.
wp-config.phprogue-include check no longer fires on the stock WordPress comment, only on realrequire/includestatements.- The CVE-2026-87902 marker check now scans only
.php/.phtmlfiles and skips.sqldumps and backup-plugin folders. - Normal
eval/packusage inside well-known vendor libraries (PDF, UTF-8 and CSS libraries) is downgraded to INFO. Backdoor and injection rules are never downgraded, so a shell hidden in a vendor folder still reports HIGH. - Legitimate host and management mu-plugins are allowlisted, but only when their content is clean. Attackers imitating those file names are still flagged.
- Leftover license keys from premium plugins/themes are flagged HIGH only when the plugin or theme is actually missing (a true orphan); otherwise you get an INFO “verify your license” note.
[2.9.13] - 2026-10-16
Added
- Scanning of
mu-pluginsfor unexpected PHP files (a favorite auto-loading backdoor spot), with an escape hatch for trusted vendors. - Content inspection of
wp-config.php, which checksum verification can’t cover. - Detection of hardcoded URL-key admin-login bypasses.
- Detection of fake cache plugins acting as a proxy to a remote command server.
Changed
- Self-hiding plugin detection broadened to catch plugins that remove themselves from the plugin list.
[2.9.12] - 2026-10-16
Added
- Detection for CVE-2026-87902, an actively exploited unauthenticated path-traversal to remote code execution issue affecting WordPress 4.7.0–7.1.1 (fixed in 7.1.2). Affected versions are reported HIGH with a temporary WAF mitigation.
- A database-independent hunt for known exploit payload files, so sites that were already exploited are caught even after updating.
[2.9.11] - 2026-10-16
Removed
- The Go/TUI version. RatSweepr is now a single bash script with one codebase and one version number. Releases ship the script only, with no compiled binaries, and CI now lints the bash code.