Security Check
Plugin Guard is a powerful security plugin designed to protect your WordPress site from unauthorized plugin
by Shadab alam · github.com/shadabrcspl/plugin-guard · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/shadabrcspl/plugin-guard/archive/refs/heads/main.zipPlugin Guard (Security Check)
Plugin Guard is a powerful, all-in-one security suite designed to protect your WordPress site from unauthorized plugins, malware, brute force attacks, and core file modifications.
Tags: security, malware scanner, firewall, login protection, hardening, plugins management Requires at least: 5.0 Tested up to: 6.4 Stable tag: 1.2 License: GPLv2 or later
Description
Plugin Security Check (Plugin Guard) is an essential security tool for WordPress administrators who want to ensure the integrity of their website. It actively monitors for hacks, blocks unauthorized actions, and provides a powerful suite of hardening tools to keep your site safe.
Key Features
- Unauthorized Plugin Protection: Automatically blocks any unapproved plugins from being activated or installed. Requires an admin to manually review and approve new plugins.
- Core Integrity Scanner: Scans your WordPress core files against the official WordPress.org checksums to detect malicious backdoors or modifications. Includes a one-click "Repair Core Files" feature to seamlessly reinstall a clean version of WordPress if compromised.
- Malware & DB Scanner: Heuristically scans
wp-contentdirectories (plugins, themes, uploads) for suspicious PHP payloads (e.g.,eval,base64). Scans your database for injected payloads and warns if your database prefix is vulnerable. - Advanced Monitoring: Automatically creates baselines of your plugin and theme directories. Warns you if files are modified outside of standard upgrades. Detects suspicious scheduled cron jobs.
- Rogue Admin Defense: Maintains a secure list of known administrators. Automatically locks and demotes any unknown admin accounts created via exploits.
- Uploads Directory Protection: Blocks PHP execution in the
wp-content/uploads/directory to neutralize uploaded web shells. Automatically handles.htaccessgeneration (with NGINX instructions provided). - WordPress Hardening:
- Disable the built-in Theme and Plugin editors (
DISALLOW_FILE_EDIT). - Disable Plugin/Theme installations (
DISALLOW_FILE_MODS). - Hide the WordPress version number from page source and asset URLs.
- Disable Application Passwords.
- Disable XML-RPC to block brute-force and DDoS attacks.
- Restrict the entire REST API to authenticated users.
- Block User Enumeration via
?author=1and REST API endpoints. - Disable Directory Browsing.
- Protect
wp-config.phpfrom direct web access.
- Disable the built-in Theme and Plugin editors (
- Email Alerts: Receive immediate notifications for new admin users, privilege escalations, theme changes, new plugin installations, and daily malware scan results.
- Live Testing Tool: An integrated loopback testing tool allows you to manually verify that your security settings (like blocking
wp-config.phporxmlrpc.php) are actively working on your live server.
Installation
- Upload the plugin files to the
/wp-content/plugins/plugin-security-checkdirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress.
- Configure the settings by navigating to Plugin Approvals in the WordPress admin dashboard.
Frequently Asked Questions
I'm locked out or a plugin won't activate! Go to the "Plugin Approvals" tab in the admin menu. You will see a list of plugins pending approval. Click "Approve" to whitelist and activate them.
My server runs NGINX. Will the Uploads protection work?
NGINX ignores .htaccess files. The plugin will detect this and provide you with the exact NGINX configuration block you need to copy into your server's nginx.conf file to ensure protection.
Does this slow down my website?
No. The core protections rely on lightweight WordPress hooks and server-level rules (.htaccess). The heavier scans (Malware and Baseline checks) are scheduled efficiently via WP-Cron to run once daily in the background.
Changelog
1.2
- Added Core Integrity Scanner and Repair tool.
- Added Database payload scanner.
- Added CSRF protection to all administrative actions.
- Added advanced monitoring for cron jobs and rogue admin accounts.
- Added live loopback testing tool.
- Refactored settings into a tabbed dashboard.
1.1
- Added
.htaccessprotections for uploads directory, directory browsing, andwp-config.php. - Added options to disable XML-RPC, REST API, Application Passwords, and File Editors.
- Fixed self-identification bug preventing the plugin from activating itself.
1.0
- Initial release. Basic plugin approval queue.