What the scanner checks

Many false alarms in WordPress security scanners come from reading every file for suspicious patterns. Keptstone first proves which files are the vendor’s own, and reads only the rest:

Part of the site How it is checked
WordPress core Every file against WordPress.org’s checksums for the installed version and language
WordPress’s own folders PHP files in the root, wp-admin and wp-includes that WordPress does not ship
Plugins from WordPress.org Every file against that version’s checksums, or the official zip where WordPress.org publishes no checksums (WooCommerce among them), and PHP files the version does not ship
Themes from WordPress.org Every code file against the official zip of that version
Premium plugins and themes Against the agency’s Library zip of that version, or against what at least three of the agency’s other sites with that version hold
Custom code, must-use plugins, drop-ins Every PHP file read for malware signatures
Uploads PHP files (only media belongs there), images that are really PHP, and JavaScript card skimmers
Hidden folders PHP in any folder whose name starts with a dot inside wp-content
wp-config.php Split into statements; anything a configuration file never needs (eval, decoders, file writes) is listed by line, without the file’s values leaving the site
Server settings .htaccess, .user.ini and php.ini that run code first, run images as PHP, or redirect search engine or phone visitors elsewhere
Around WordPress Folders inside the WordPress folder that are not its own (an old copy of the site, a tool someone uploaded), the site’s folder above it, and, from one site per server, the places attackers leave code in the server’s other sites
Database Options and posts with hidden scripts and invisible frames

Signatures cover what WordPress malware usually looks like: decoded code run with eval, code run straight from the request, known web shells, droppers, files that copy themselves or make themselves read-only, a filter that hides an administrator or a plugin, and card skimmers in JavaScript.

How a scan runs

  1. Each night, each protected site gets a full scan in its own hour between 01:00 and 05:00 in the client’s time zone. A site scanned in the last 20 hours is skipped.
  2. In steps. The scan works in steps of about 20 seconds and saves its place between them, with a 2-second pause, so no host’s time limit is hit.
  3. After anything critical. A new administrator, a plugin installed by a person, a payment method switched on, a changed site address or a login from an unusual country starts a scan at once (at most every 30 minutes per site), so a dropped file is found within minutes, not at night.
  4. On request. Scan now on the site’s Security tab.

Sites behind host firewalls that block outside tools, such as SiteGround, run their scan steps at their check-ins, so they are scanned too.

Between scans: the watch and the code watch

The 15-minute watch. At every heartbeat the connector spends up to 8 seconds walking the site and reports PHP, .htaccess, .user.ini, php.ini and JavaScript files added or changed since the last look. It goes by the file’s change time, which cannot be set back, so malware with a faked modification date is still seen. Files WordPress updated in the last 3 hours are left alone. The watch also notices an administrator written straight into the database, and scheduled tasks that run code from uploads or from code built at run time.

The code watch. At the end of every request the connector looks at which PHP files actually ran. Code that ran from uploads, from a hidden folder or from outside WordPress raises a critical event at once and starts a scan.

Keptstone’s own malware engine

The connector’s signatures are a short list run in PHP on the site. Files that nothing could verify go to Keptstone’s engine, which runs YARA on Keptstone’s own server with two open rule sets: web shell rules (a match means known malware) and php-malware-finder (a match means it looks suspicious and a person should look). Each finding names the rules that matched.

Keptstone asks the site for up to 20 such files at a time, at most 1 MB each, code files only. Files whose names say they hold passwords or keys are never sent, whatever is asked. The file is read and deleted; only the verdict is kept, by the file’s fingerprint, so a file seen on many sites is read once.

Repair tools, and what stays with a person

Finding What you can do from Keptstone
A changed or missing WordPress file Restore original: downloaded for the installed version and written only if it matches WordPress.org’s checksum
WordPress core changed in many places Reinstall WordPress core: every downloaded file checked first, changed files moved to quarantine before they are replaced
A changed WordPress.org plugin Reinstall plugin at the same version, with a restore point first; an active plugin stays active
Unknown PHP, PHP in uploads, malware elsewhere Quarantine: moved to wp-content/keptstone-quarantine/, renamed so it cannot run, and it can be put back
A changed premium file Install the Library zip over it
A changed theme file Update or reinstall the theme in WordPress (there is no theme reinstall button yet)
Database scripts, server settings, wp-config.php Shown with the matching code, to fix by hand

Known malware with a sure signature is quarantined by itself, but only where WordPress never loads code from: uploads, and unknown files among WordPress’s own. Plugin and theme files are only listed, because moving one could take the site down. Mark as fine hides a finding until that file changes again. Every repair is logged in the site’s activity log.

For a full cleanup after a break-in, follow our guide to removing malware from WordPress and, if the site was hacked through a login, what to do when a WordPress site has been hacked.

What the agency and the client see

The agency gets “Possible malware on …” by email and Slack for serious findings, “N changed files on …” for the rest, each saying whether the scan, the watch or the engine found it. A changed file with no malware signature is read by the malware engine before anyone is emailed: the clean ones go in one morning digest instead of an alert each. The site’s Security tab shows the findings, 40 at a time, with their repairs. Alerts go out when a finding first appears and when its file changes, not every night.

The client sees the last scan on the Site care page inside their WordPress (date, files checked, clean or not), and the monthly report counts the month’s scans and says “The latest found nothing out of place” only when it did.

Its limits

  • Malware scanning and repair tools, not a removal service. Keptstone does not clean sites for you.
  • Not everything has a button. Database entries, server settings and wp-config.php are fixed by hand, and there is no theme reinstall yet.
  • Server tasks are out of WordPress’s sight. Malware that puts itself back from the server’s own cron is invisible to any plugin. On Cloudways, the agency can connect its account and Keptstone reads every app’s scheduled tasks each hour.
  • False alarms happen. Plugins that write PHP into uploads, or hosts that change core files, can look odd. Exceptions are made only where a file is provably the vendor’s own or provably inert.
  • No scan is a guarantee. Pair it with the firewall and hardening, which stop most break-ins before there is anything to find.

Which plan it is in

Malware scans, the watch, the code watch and the engine are on Care + Protect + Speed, $4 a site a month, with the firewall and virtual patches. Care ($2) has no scans. See pricing for volume discounts.

Questions

Does Keptstone remove malware for me?

It gives you malware scanning and repair tools, not a done-for-you cleanup service. Some repairs run in one click, and known malware in uploads is quarantined by itself. Database entries, server settings and wp-config.php are shown to you to fix by hand.

How often are client sites scanned?

Every protected site gets a full scan each night in its client's time zone, a scan on Scan now, and a scan within minutes after anything critical, such as a new administrator or a plugin installed by a person. Between scans, the watch looks at what changed every 15 minutes.

Can a scan slow the site down?

A scan runs in steps of about 20 seconds with a pause between them, so no host time limit is hit and PHP keeps serving visitors. The heavy reading of unknown files happens on Keptstone's own server, not on the client's.

Are my clients' files sent to Keptstone?

Only files the site cannot verify, at most 20 at a time and 1 MB each, are fetched for the engine. Files that hold passwords or keys, such as wp-config.php and .env files, are never sent. A file is deleted as soon as it has been read, and only its verdict is kept.