Katrangan
SMEPlan Security Shield is a free, open-source security plugin built around a practical WordPress operations checklist: it watches the 3 most common attack surfaces (OWASP-class attacks plus WordPress-specific ones, persistence mechanisms, and entry vectors), detects issues with baseline/checksum + signature + thresholded heuristics, and remediates safely (quarantine instead of outright deletion; 1-click rollback).
Key features
- Batched, checkpointed file scanning: prioritizes
mu-plugins, drop-ins, the active theme/plugins, anduploads; never loads the whole file tree into RAM at once. - Safe database scanning: keyset pagination (no
OFFSET) overoptions/posts/postmeta; only flags a row when it decodes into an actually executable PHP/JS token, skipping image data URIs. - Configuration checks:
.htaccess/.user.inirules that map media extensions to PHP,auto_prepend_file, file/directory permissions, weak salts/keys, unusual cron entries. - Baseline/integrity: compares core files against WordPress.org’s official checksums; automatically builds a SHA-256 baseline for every plugin/theme on install/update; 1-click restore of any mismatched core file from a signature-verified WordPress.org package, with the current file quarantined first.
- Quarantine & rollback: moves suspicious files aside (never deletes), with a full transaction log and 1-click rollback.
- Per-component backups: a “last confirmed good” snapshot of each plugin/theme, refreshed on every trusted update, checksum-verified before every restore, with a best-effort local tamper-resistance layer.
- Maintenance mode with a TTL that turns on automatically when remediation touches a hot path or a large batch, and turns itself off once a health-check passes.
- Hardening: login rate-limit/lockout by IP + IP/username (real IP behind a CDN via trusted proxies), disables XML-RPC pingback + caps
system.multicall, security headers (HSTS/X-Frame-Options/CSP Report-Only), controlled auto-updates (low-traffic time window, skips VCS-managed sites, health-check after updating). - Multi-layer scan scheduling: WP-Cron + an internal watchdog + an HMAC-signed REST endpoint (for system cron/remote pings) + a WP-CLI command — the schedule keeps running even when WP-Cron is unreliable.
- Multisite: enumerates every site by
blog_id, scanning each site’s ownuploadsfolder and tables.
Two hardening behaviours worth knowing about before you enable them, because they change how the site answers requests that are not this plugin’s own:
- User-enumeration blocking is on by default. For visitors who are not signed in, the core
wp/v2/usersREST routes stop being served and?author=<id>links redirect to the home page. This is a deliberate part of the login-hardening layer, but it is a change to an API this plugin does not own — a headless front end, a mobile app or a third-party integration that reads the public user list will see it disappear. Turn it off under Hardening if something depends on it. (rc-47) wp smeplan-ss scan runexits 75 when a scan is already running. 75 isEX_TEMPFAIL— “temporary failure, try again” — rather than 0, so a wrapper running underset -ewill treat a busy lock as a failed command. Handle 75 explicitly if you schedule the command that way. (rc-49)
Not yet in this release (planned for later versions)
- 2FA (TOTP) and CAPTCHA for the login page.
- Anonymous telemetry (opt-in).
- Translations (every string is already wrapped in
__(), ready for translators via translate.wordpress.org — no translation is bundled with the plugin itself). - Action Scheduler integration for enterprise-grade durable queuing.
Privacy Policy
By default, this plugin does not send any data outside of the site it is installed on. Everything it collects (scan findings, logs, baseline data) stays in the local WordPress database and in a protected local storage folder inside the uploads directory (wp-content/uploads/smeplan-security-shield/, blocked from direct web access).
Two features send data off-site, and both are entirely opt-in — off unless the site admin explicitly sets them up:
- Alert email: if enabled, a summary of new findings is emailed to the site’s configured admin email address (
admin_email) using WordPress’s ownwp_mail(). - Alert webhook: if the admin enters a Webhook URL in Policies, a summary (site URL, alert subject, malicious/suspicious counts, timestamp — no personal or visitor data) is sent as JSON to that admin-provided URL whenever new findings are detected. Nothing is sent anywhere unless the admin fills in this field themselves.
That storage folder outlives the plugin on purpose: deleting the plugin removes its options, cron events and capabilities, but leaves the folder in place so a quarantined file is never destroyed by an uninstall performed mid-incident. See the FAQ entry “What is removed when I delete the plugin?” for the reasoning and for how to remove it yourself.
The plugin does not phone home to any SMEPlan-operated server, does not track usage/analytics, and does not include any third-party tracking or advertising code.
Pemasangan
- Upload the plugin to
wp-content/plugins/or install it through the Plugins screen. - Activate the plugin.
- Go to Security Shield Wizard to check WP-Cron/loopback and configure trusted proxies if the site sits behind a CDN.
- See Security Shield Policies to turn hardening features on/off as needed.
FAQ
-
Does the plugin delete suspicious files automatically?
-
No. Files at the “malicious” level are moved into quarantine (
wp-content/uploads/smeplan-security-shield/quarantine/) rather than deleted, and can be rolled back with 1 click. Files at the “suspicious” level are only recorded, waiting for manual review on the Findings page.Quarantined files are kept for a limited time: once a session is older than the retention period set under Policies (14 days by default), it is removed automatically to stop the quarantine folder growing without bound. Roll back anything you want to keep before that window closes, or raise the retention setting.
-
What is removed when I delete the plugin?
-
Deleting the plugin removes every option it created, its scheduled events, and the three custom capabilities it grants. It deliberately does not remove its storage folder at
wp-content/uploads/smeplan-security-shield/, which holds the quarantine, the file baseline, the event log and any component backups.This is a deliberate choice, not an oversight. Quarantined files are moved, not copied — the folder holds the only remaining copy of anything the plugin took out of the site. Deleting a plugin is easy to do in the middle of handling an incident, or by someone who is not the person investigating, and having that click silently destroy both the only rollback path and the only forensic evidence would be the wrong default for a security plugin. Reinstalling brings the previous quarantine and logs straight back.
To remove it, delete that folder yourself over SFTP or your host’s file manager once you are sure nothing in it is still needed. Read the caution first: the
quarantine/subfolder can contain live malicious files that were pulled off the site. Delete them, do not move them back into place. -
Does the plugin automatically edit database content or the .htaccess file?
-
No. Every finding in the database or in configuration files (.htaccess/.user.ini) is only reported, never auto-fixed, to avoid breaking a site’s legitimate functionality.
-
Does this plugin change how WordPress updates itself?
-
No. It never supplies its own update source: there is no bundled update checker, no third-party update server, no filtering of the plugin-information API, and nothing written to the transients core caches available updates in. Everything WordPress installs still comes from WordPress.org, fetched and verified by WordPress itself.
What it does offer — off by default, and only if you switch it on in Policies — is control over when an update WordPress has already found and verified gets applied. Using core’s own public
auto_update_core/auto_update_plugin/auto_update_themefilters, it can hold an update back until the low-traffic window you configure, skip it while the site is under load, and skip any plugin or theme directory that is under version control (updating those breaks a deploy). It only ever delays WordPress’s own updates; it never substitutes them.Since 0.7.32 it can also refuse one: a plugin or theme package is scanned while still in its temporary folder, and if a file in it matches malware detection the install is stopped before anything is written. A manual update can be allowed through once from the dashboard notice; an automatic one is refused and reported. This uses core’s own
upgrader_source_selectionfilter, changes nothing about where updates come from, and can be switched off in Policies.Automated scanners flag any use of those filters for a human to look at, which is why this is spelled out here.
-
What environment does it need?
-
WordPress 6.1+, PHP 7.4+. Works best when WP-Cron runs normally; if the site has
DISABLE_WP_CRONset or blocks loopback requests, use system cron/WP-CLI following the instructions on the Wizard page.
Mācā ulang
There are no reviews for this plugin.
Contributors & Developers
“SMEPlan Security Shield” is open source software. The following people have contributed to this plugin.
KontributorTranslate “SMEPlan Security Shield” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Caathetan Owahan
Newest release only — WordPress.org truncates this section at 5,000
characters. The full history is in changelog.txt, shipped with the plugin.
0.7.38
Security release, recommended for everyone. A third full-codebase review of 0.7.37 found sixteen critical findings; this release fixes all sixteen.
- The rules re-validation pass could never finish. Every page view re-seeded the queue, so after 0.7.36’s rules bump a site re-scanned the same three components every minute forever and never re-scored its accepted files. The pass now leaves a queue in progress alone.
- The same pass signed any baseline it found, including one written by whoever can write to uploads. It now refuses one it cannot authenticate and lets the scanner rebuild it.
- A failed quarantine left a session that looked like a successful one, and “Restore and accept” on it whitelisted the still-live file. A failed move now takes its session with it, and “already restored” is only reported when the file at the original path is the one recorded.
- A directory quarantine had no checksum, so anything added to it in uploads was restored into the plugins directory as the original. Directory sessions now record a tree digest and are refused when it no longer matches.
- Purge followed a symlink planted in the quarantine folder and deleted its target. It no longer does.
- On multisite, any site administrator could move or restore files shared by every site. Actions that change files now require a super admin on a network; single sites are unaffected.
- “Allow this update once” could be spent by WP-Cron installing a different package of the same component with no scan. An unattended install never uses the override.
- A form path lost its percent-encoded bytes, so the file accepted or quarantined could differ from the one shown. Paths are now validated without being rewritten.
- A backup containing accepted files was never re-checked on restore; it is now, so a file whose acceptance the rules have since revoked is caught before extraction. A re-check cut short by its time cap no longer counts as clean, and the pseudo-component
plugin_.(the whole plugins directory) is rejected. - Three “checked, clean” stamps could be earned by a failure: an unreachable checksum API, a failed database query and an unreadable subdirectory each now report as incomplete instead of verified. A rules-driven revoke that lost its write is now logged rather than counted as done.
- A database row that kept killing the scan tick froze the scanner at that row while the dashboard stayed green. A position that fails three ticks in a row is now reported and skipped, so the file, config and core checks run again.
- Behind a trusted proxy, a client-settable header chose the lockout bucket, and every new value left two rows in the options table forever. The proxy’s own X-Forwarded-For entry now wins, and stale rate-limit rows are cleaned up daily.
- Core repair re-downloaded the 10–25 MB package on every click and usually died inside the download on shared hosting. The verified package is now kept between clicks; every file taken from it is still checked against the official checksum before it is written.
0.7.37
Observability, and three ways a defence could be switched off without anyone seeing it.
- Every database finding shared one index key, so however many injected rows a scan found, the index kept one — and which one is steerable by anyone who can write postmeta. Records without the file-shaped fields now key on the fields they actually carry.
- One partial write could switch off fourteen hardening flags at once, because the boolean branch of the settings sanitiser was the only one with no
isset()guard and the only one that reset rather than preserved. A marker submitted by the Policies form now tells a form save apart from a programmatic write. - A settings change now leaves a trail. Nothing recorded one before, so there was no way to show when a site stopped being hardened — or that a fix had taken effect. Secrets are recorded as changed, never quoted.
- Rotating cron_secret made the entire event log unreadable, silently blanking Findings, the badge and the REST listing while the history sat intact on disk under its old name. Reads now fall back to the previous generation.
- “Trust this IP” no longer claims more than it does — a username lockout is a separate bucket it never cleared — and the exemption is now recorded with the actor.
Older releases: see changelog.txt, included with the plugin.

