Lockora Security Audit
Lockora Security Audit checks WordPress security posture, hardening, core integrity, vulnerabilities, and optional AI reports.
Install in
Lockora Security Audit helps site owners and agencies review a WordPress site’s security posture from the admin area.
Built and maintained by WP Server Guard, WordPress server security and hardening specialists.
Works well with Who Changed It?
Lockora finds security weaknesses. Who Changed It? – Activity Log shows what changed, who changed it, and when, with severity classification, field-level diffs, and alerts. Use both together to connect a security finding to the activity that caused it.
Current prototype features include:
- Manual security scans, plus optional scheduled scans (twice daily, daily, or weekly) through WP-Cron.
- Email and webhook alerts when a scheduled scan finds failures or warnings that are new or worse than the previous scan. Webhooks receive a Slack-compatible JSON payload.
- Weighted security score out of 100.
- Bounded scan history with current-versus-previous finding comparisons.
- WordPress core file integrity checks using official checksums, with CSV and TXT exports.
- Bounded wp-content anomaly scanning for executable uploads, unexpected PHP files outside standard code directories, runtime executables, and exposed backup or secret-like files, with CSV/TXT exports and clipboard copying.
- WordPress authentication key and salt checks, with explicit actions to generate missing salts or rotate the keys stored in wp-config.php.
- Must-use plugin and drop-in inventory with file hashes that flags entries added or changed since the previous scan.
- Web-root exposure checks for
.git,.env, database dumps, backup copies, archives, and logs, confirmed with loopback requests that tell a real download from a “200 OK” error page. - Environment awareness: on local and development copies served from a local host name, server-specific checks (HTTPS, debug output, web-root files, and similar) are relaxed to warnings. Public sites that declare a non-production environment are flagged and keep full checks.
- PHP version status using WordPress.org Serve Happy data.
- HTTPS and HTTP security header checks.
- WordPress core, plugin, and theme update posture checks.
- Administrator account posture checks for default usernames, excess admins, inactive admins, user ID 1 exposure, administrator application passwords, and an admin username/email inventory.
- Privileged account auditing that detects Administrators hidden from normal queries, direct capability grants, privileged custom roles, runtime-granted privileges, and multisite super administrators.
- Public exposure checks: debug.log and readme.html reachability, uploads directory listing, PHP execution inside uploads, author archive user enumeration, and sensitive files in the web root.
- SSL certificate expiry check, database table prefix check, automatic update posture check, and detection of login protection / two-factor plugins.
- Site Health integration: scan summary plus key configuration checks appear under Tools > Site Health > Status.
- WP-CLI support:
wp lockora scanandwp lockora report, with--format=jsonand a--strictflag for CI pipelines. - Optional known vulnerability matching with a configured Wordfence Intelligence API key.
- Optional AI client reports on WordPress 7.0+ when the site’s AI Connector is configured.
- Reversible hardening toggles for XML-RPC, REST user routes, generator tag output, and basic security headers.
- A
lockora_scan_completedaction for integrations that need scan scores and finding counts.
External Services
Lockora Security Audit may connect to external services only when a scan runs (started by an administrator, by WP-CLI, or by a scheduled scan the administrator enabled), when an alert is sent, or when an administrator generates an AI client report.
During a scan the plugin also sends HTTP requests to the site’s own public URL (loopback requests) to inspect response headers, debug.log and readme.html reachability, uploads directory behavior, author archive redirects, and whether files such as /.git/HEAD, /.env, or backups in the web root can be downloaded, and it opens a TLS connection to the site’s own hostname to read the SSL certificate expiry date. These requests stay within the site being scanned and send no data to third parties.
WordPress.org APIs:
* Used for WordPress core checksums, PHP version support status, and WordPress core/plugin/theme update data. When WordPress’s cached update data is missing or older than its normal refresh interval, a scan asks WordPress to refresh it using the core update functions.
* Data sent: the site’s WordPress version and locale for core checksums and PHP compatibility; WordPress itself may send installed plugin and theme slugs/versions to WordPress.org when update data is refreshed.
* WordPress.org terms: https://wordpress.org/about/terms/
* WordPress.org privacy policy: https://wordpress.org/about/privacy/
Wordfence Intelligence:
* Optional.
* Used only when a Wordfence Intelligence API key is configured and an administrator runs a scan that includes vulnerability matching.
* Used to retrieve vulnerability data and match it locally against installed WordPress core, plugin, and theme versions.
* Data sent: the configured Wordfence Intelligence API key is sent in an Authorization header when requesting the vulnerability feed. Installed software details are not sent by this plugin to the Wordfence Intelligence endpoint; matching is performed locally after the feed is retrieved.
* Wordfence Intelligence terms: https://www.wordfence.com/wordfence-intelligence-terms-and-conditions/
* Wordfence privacy policy: https://www.wordfence.com/privacy-policy/
Alert webhook:
* Optional.
* Used only when an administrator saves a webhook URL under Scheduled Scans and Alerts, when a scheduled scan finds new or worsened findings, or when the administrator sends a test alert.
* Data sent: site URL and name, scan time, environment type, score and counts, and the ID, status, severity, title, and recommendation of each new or worsened finding. Evidence (which can contain account names, email addresses, or file paths) is not sent.
* The service that receives the webhook is chosen by the administrator. Review that service’s terms and privacy policy before saving a webhook URL.
Alert emails are sent through WordPress’s own wp_mail() to the recipients the administrator configures, and include the evidence of each new or worsened finding.
WordPress AI Client / Connectors:
* Optional.
* Used only when the administrator clicks Generate Client Report.
* Data sent: sanitized scan findings, score, counts, and recommendations needed to generate a client-facing report. The plugin is designed not to send passwords, salts, API keys, raw logs, full user lists, or file contents.
* The configured AI provider is controlled by the site owner’s WordPress Connector settings.
* Terms and privacy policy: these depend on the AI provider configured by the site owner in WordPress. Site owners should review the selected provider’s terms and privacy policy before enabling AI reports.
Written by Joobi from the project's own listing. See the source page
0.6.0
- Added scheduled scans (twice daily, daily, weekly) with email and webhook alerts for findings that are new or worse than the previous scan, plus a test alert button.
- Added environment awareness: server-specific checks are relaxed on local and development copies served from a local host name, and public sites that declare a non-production environment are flagged.
- Added a web-root exposure check for .git, .env, database dumps, backup copies, archives, and logs, with loopback probes that distinguish real downloads from error pages.
- Added a must-use plugin and drop-in inventory that flags entries added or changed since the previous scan. It replaces the mu-plugins directory check, which reported a missing directory as a failure.
- Security: on multisite, Lockora now requires network administrator rights. Sub-site administrators could previously rotate wp-config.php salts for the whole network and export the super administrator list.
- Fixed: the debug display check failed on almost every production site, because WP_DEBUG_DISPLAY defaults to true even though it only applies while WP_DEBUG is on. It now checks WP_DEBUG together with WP_DEBUG_DISPLAY and the server’s display_errors setting.
- Fixed: the privileged account audit only examined the oldest 2,000 users, so on large sites the newest (most likely malicious) accounts were never checked. Role and capability records are now checked for every account, and runtime grants are checked newest first.
- Fixed: an unreadable directory inside wp-admin or wp-includes crashed the core integrity scan.
- Fixed: normal site-root files such as robots.txt, ads.txt, and verification files, and a deleted readme.html, failed the core integrity check. Executable files in the site root are now a warning; executable extras inside wp-admin and wp-includes still fail.
- Fixed: the privileged account CSV export wrote a PHP 8.4 deprecation notice into the downloaded file.
- Fixed:
wp lockora scan --format=jsonand--format=csvprinted progress and score lines to standard output, breaking JSON and CSV parsing in CI. Progress now goes to standard error. - Fixed: opening the Lockora page after an update ran a full scan inside the page request, which could exceed the PHP time limit. The scan now runs in the background while the previous results are shown.
- Fixed: missing or stale WordPress update data was reported as “no updates available”. Scans now refresh stale update data and report when it is unavailable.
- Fixed: an exception from the AI Client could leave the report lock set. AI reports now request structured JSON output when the provider supports it.
- Fixed: rewriting wp-config.php reset its permissions to 0644 and was not atomic. Writes now keep the existing permissions and replace the file atomically where the filesystem allows it.
- Changed: AI availability no longer counts as a security warning, and application passwords are only a warning when administrator accounts have them.
- Changed: the Wordfence feed is downloaded only when installed plugins or themes change or the 12-hour cache expires; version updates are re-matched locally. Feed severity ratings are used when available.
- Changed: the optional HSTS header no longer includes includeSubDomains by default (filter:
lockora_hsts_header_value). - Changed: the client report footer can name your agency instead of the default credit.
- Changed: only one scan runs at a time, and legacy pre-release constant names are no longer read (a notice names any that are still defined).
0.5.0
- Added a privileged account audit that compares raw user capability records with normal WordPress Administrator queries.
- Added detection and listing for hidden Administrators, direct capability grants, privileged custom roles, runtime-granted privileges, duplicate or malformed capability metadata, and multisite super administrators.
- Added CSV, TXT, and clipboard exports for the privileged account inventory.
0.4.3
- Tested with WordPress 7.1.
- Fixed: an unreadable directory during the wp-content anomaly scan crashed the scan instead of reporting a warning, because the error path called a helper that does not exist.
- Fixed: findings supplied through the
lockora_vulnerability_findingsfilter are now validated before they are counted, scored, stored, or displayed, so a malformed entry from another plugin can no longer break a scan. - Fixed: core integrity and wp-content CSV exports no longer write a PHP 8.4 deprecation notice into the downloaded file.
- Fixed: the temporary PHP execution probe is now removed from the uploads directory even when the loopback request times out, and stale probes are cleared at the start of every scan so they are no longer reported as executable uploads.
- Added: vendor links in the plugin header, the plugin description, and the client report footer.
0.4.2
- Refined finding cards with stronger visual hierarchy, compact file metrics, categorized path previews, and unified file action toolbars.
0.4.1
- Added CSV and TXT exports plus clipboard copying for reported wp-content anomaly paths.
0.4.0
- Added a bounded wp-content anomaly scan for executable uploads, unexpected executables outside standard code directories, runtime executables, and backup or secret-like files.
- Added filters for wp-content allowlists, exclusions, executable and sensitive extensions, and scan/reporting limits.
0.3.2
- Moved the Who Changed It? integration action from individual finding cards to a single action at the top of Findings.
0.3.1
- Added CSV and TXT exports for WordPress core integrity results.
- Added a clipboard action for unexpected WordPress core files.
- Added guarded one-click rotation of authentication keys and salts stored directly in wp-config.php.
0.3.0
- Added bounded scan history and current-versus-previous finding comparisons.
- Added contextual links from findings to Who Changed It? or its WordPress.org listing.
- Added the
lockora_scan_completedaction for scan-result integrations.
0.2.2
- Added: style altered WordPress core files list items and heading in red color (#b32d2e) for enhanced visibility.
0.2.1
- Fixed: core integrity checks now show the full list of altered/missing/extra files through an interactive collapsible UI details panel when there are more than 5 files.
- Added: auto-trigger scan update when loading the admin dashboard after plugin upgrade, ensuring the detailed file lists are populated immediately without manual intervention.
0.2.0
- Fixed: wp-config.php can now be found one directory above the WordPress root, matching core behavior.
- Fixed: authentication salt checks now use runtime constants, so salts defined outside wp-config.php (for example Bedrock-style configs) are no longer reported as missing and can no longer receive duplicate defines.
- Fixed: generated salts can no longer be corrupted by regex replacement characters, and wp-config.php writes are now verified and rolled back if the written file does not match.
- Fixed: admin notices are stored server-side instead of being read from the URL, removing a notice spoofing vector.
- Fixed: network-activated plugins are no longer reported as inactive on multisite.
- Fixed: the inactive administrator check now uses recorded last-login times instead of short-lived session tokens, removing false positives.
- Fixed: the security header check falls back to GET when a server rejects HEAD requests, and the default fallback theme now follows WP_DEFAULT_THEME.
- Added: public exposure checks for debug.log, readme.html, uploads directory listing, PHP execution in uploads, and author enumeration.
- Added: SSL certificate expiry, database table prefix, automatic update posture, and login protection plugin checks.
- Added: Site Health integration with a scan summary and key configuration tests.
- Added: WP-CLI commands
wp lockora scanandwp lockora reportwith JSON output and a –strict flag for CI. - Added: uninstall cleanup that removes all plugin options, transients, and user meta on deletion.
- Hardened: AI report generation now uses a lock against concurrent requests, sanitizes finding text before prompting, and instructs the model to treat finding text as untrusted data.
0.1.2
- Lowered the required WordPress version to 6.0 for non-AI security scanning and hardening checks.
- Kept AI client reports disabled unless WordPress 7.0+ AI Client support is available.
0.1.1
- Fixed HTTP security header scanning when a server returns duplicate headers as arrays.
0.1.0
- Initial prototype with manual scans, hardening checks, core integrity checks, PHP version checks, vulnerability posture checks, optional Wordfence feed matching, and optional client-ready AI reports.
Follow this listing's changes (Atom feed)