What it is for
Finding planted code early, and putting things right without FTP. A scan compares what can be compared with official copies, and reads everything else for malware.
When sites are scanned
- Every night, in the client’s time zone, in the site’s own hour between 01:00 and 05:00. Scans run in short steps with pauses between them, so the site keeps serving visitors.
- At once 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 (at most once per site every 30 minutes).
- On Scan now, on the site’s Security tab.
- Between scans, the watch looks at every file added or changed since its last look, every 15 minutes, and a code watch notes PHP that ran from where code does not belong (uploads, a hidden folder, outside WordPress) on the first request that runs it.
What a scan checks
| Part | How |
|---|---|
| WordPress core | Every file against WordPress.org’s checksums for the installed version; PHP files WordPress does not ship |
| Plugins and themes from WordPress.org | Against that version’s checksums or official zip |
| Premium plugins and themes | Against your Library zip of that version, or what most of your other sites with that version hold |
| Everything else (custom code, must-use plugins, drop-ins) | Read for malware signatures |
| Uploads | PHP files, images that are really PHP, card skimmer scripts |
wp-config.php |
Code a configuration file never needs (eval, decoders, file writes), by line number; nothing of the file leaves the site |
| Server settings | .htaccess, .user.ini and php.ini lines that run PHP first or redirect search engines and phones elsewhere |
| Database | Options and posts with scripts and hidden frames |
| Scheduled tasks | WP-Cron tasks that run code from uploads, from outside WordPress or made at run time |
Files nothing can verify (up to 40 a scan) go to Keptstone’s malware engine, which reads them with two open rule sets and keeps only a verdict per file, never its content.
Steps: read and repair a scan
- Open the site’s Security tab. The scan card says when the last scan ran, how many files and records it checked, and Nothing found or how many to look at. Click Scan now to run one.
- Read each finding: its kind (WordPress file changed, Unknown file in a plugin, Malware, Script in a setting, Code ran from where it does not belong and others), the path, and the signature it matched. The card shows 40; Show all lists the rest.
- Choose the repair on the finding:
| Finding | Button | What it does |
|---|---|---|
| A changed or missing WordPress file | Restore original | Downloads it for the installed version and writes it only if it matches WordPress.org’s checksum |
| A changed plugin file | Reinstall plugin | The same version from WordPress.org, with a restore point first; an active plugin stays active |
| An unknown file, PHP in uploads, malware | Quarantine | Moves the file to wp-content/keptstone-quarantine/, renamed so it cannot run; it is kept, not deleted, and can be put back |
| A folder of PHP files in uploads | Quarantine folder | Moves the whole folder |
| A file you know is fine | Mark as fine | Hides it until the file changes |
- For a site with many changed files, use Clean copies from WordPress.org above the findings: Reinstall WordPress core (every downloaded file is checked against WordPress.org first;
wp-contentandwp-config.phpare not touched) or reinstall every changed plugin at its version. - A fresh scan follows each repair. Each repair is listed in the site’s activity log as “Repaired a scan finding”.
Findings without a button
- Script in a setting or in content: the setting or post is shown with the matching code. Fix it in WordPress.
- Server setting: the matching line is shown. Fix it in the hosting panel or over SFTP.
- Code in wp-config.php: the finding gives the line numbers and what each does. Clean the file by hand, keeping a copy first.
- A changed theme file: there is no theme reinstall yet. Update or reinstall the theme in WordPress.
- A changed premium file: install your Library zip of that version over it.
Automatic quarantine
On by default (Quarantine known malware automatically in the protection settings). When a scan finishes, files with a sure malware signature are quarantined at once, but only where WordPress never loads code from: PHP in uploads and unknown files among WordPress’s own files. Plugin and theme files are only listed, because moving one could take the site down. The alert “Malware quarantined on …” lists what moved.
Alerts
New findings email your owners and admins and go to Slack: “Possible malware on …” for malware, PHP in uploads, unknown files, database scripts, server settings and scheduled tasks, or “N changed files on …” otherwise. Each says what found it: the scan, Keptstone’s 15-minute watch, or its malware engine. A rescan that no longer finds a false alarm clears it silently.
A changed or unknown file with no malware signature waits for the malware engine before anyone is emailed. If the engine flags it, the alert goes out. If it finds the file clean, the file goes in one morning digest at 08:00 in your time zone instead of an alert of its own. If the engine cannot read it within 30 minutes, the alert goes out anyway, once a day per file. Malware signatures, the engine’s known malware and code that ran from uploads are alerted at once. Every finding is on the site’s Security tab from the moment it is found.
The checkout watch
On WooCommerce sites, the site’s Payments card lists the payment methods and the checkout page’s script hosts. A new payment method, one switched on, or a new script on the checkout page alerts you: that is how card skimmers show themselves.
What can go wrong
- Quarantined files come back. Something loads or rewrites them: a must-use plugin, a line in
wp-config.php, a WP-Cron task, or a task in the server’s own cron. Find and remove that first. On Cloudways, connect your account on the Security page so Keptstone reads each app’s server cron tasks hourly and flags suspicious ones. - A core file restore fails. Some managed hosts keep core read-only; GoDaddy’s managed build is recognized and not flagged.
- A finding on legitimate code. Custom and nulled plugins often use code that looks like malware. Check it, then Mark as fine.
- No scans on a site. It is on Care, or protection is not switched on. Scans are part of Care + Protect + Speed, $4 a site a month.
For the whole cleanup process, see how to fix a hacked WordPress site.
Questions
Does Keptstone remove malware for me?
Keptstone gives you the tools: findings with the file and the reason, one-click repairs, and automatic quarantine of known malware in places WordPress never loads code from. Deciding what to repair, and finding what put the malware there, is your team's work.
Does the scan send my client's files to Keptstone?
Only files that cannot be verified any other way, up to 1 MB each, are read by Keptstone's malware engine, and then deleted. wp-config.php, .env files and anything named like it holds passwords or keys is never sent.
What does Mark as fine do?
It hides that finding until the file changes again. Use it for a file you have checked and know to be legitimate, such as a custom plugin file the scan cannot verify.