Enterprise-Grade WordPress Malware Detection, Web Application Firewall (WAF), Core Integrity Auditing & Forensic Threat Intelligence
Current release metadata:
{"version": "0.0.3"}
WebCare Pro Security & Firewall is a modern, high-performance WordPress security, malware detection, and forensic auditing plugin engineered by Mir Alamin (WebCare Pro).
Note
Supported platform. Single-site WordPress 7.0+ with PHP 8.3+. WebCare Pro Security & Firewall is developed by Mir Alamin. WordPress Multisite activation and runtime are blocked.
The WordPress dashboard brings together malware findings, file integrity, firewall events, authentication, and scan health. Large scans run in batches that can hand work to a background worker.
Important
Zero Plaintext Credentials in Database or SQL Backups with Authenticated AEAD Encryption.
Unlike typical WordPress security plugins that store third-party API keys and incoming webhooks as raw plaintext inside wp_options, WebCare Pro Security & Firewall implements a dedicated Enterprise AES-256-GCM Authenticated Cryptographic Secret Vault. Every webhook URL, Cloudflare API token, AI key, and 2FA user secret is encrypted at rest using modern Authenticated Encryption with Associated Data (AEAD), 128-bit integrity authentication tags, randomized 12-byte initialization vectors (random_bytes(12)), and dynamic 256-bit key derivation with optional server-level WEBCARE_VAULT_KEY environment isolation.
| Security Dimension | Standard WordPress Plugins | WebCare Pro Security Vault |
|---|---|---|
Database Storage (wp_options) |
β Plaintext strings visible to anyone with database access | β
AES-256-GCM Authenticated Ciphertext (webcare_gcm:...) |
| Tamper & Bit-Flip Resistance | β None (or vulnerable to CBC padding oracle attacks) | β 128-bit Cryptographic Authentication Tag (tampering rejected immediately) |
| SQL Dumps & Database Backups | β Secrets exposed in plain text if backup files are compromised | β Completely unreadable encrypted strings |
| phpMyAdmin & SQLi Exposure | β Scraped easily via unauthorized database queries | β Zero plaintext credential leakage |
| Encryption Keys & Salting | β Static hardcoded strings or unencrypted options | β
Derived from WP Salts (AUTH_KEY, AUTH_SALT, SECURE_AUTH_KEY) or dedicated WEBCARE_VAULT_KEY |
| Key Isolation (DevOps) | β Tied solely to database or webroot | β
Supports isolated WEBCARE_VAULT_KEY in server environment outside webroot |
| Initialization Vectors (IV) | β Static or reused IV vectors | β Cryptographically random 12-byte IV generated per record |
| Decryption Lifecycle | β Persisted in plain text on memory or disk | β Transient in-memory decryption ONLY during active API/webhook calls |
| Admin UI Visibility | β Plaintext input fields or visible strings | β
Auto-masked bullet placeholders (β’β’β’β’β’β’β’β’) with 1-click eye toggle |
The highlights below summarize the plugin. See features.md for the detailed feature catalog.
- Dynamic Security Health Score: High-precision circular SVG meter displaying your live security posture (0β100%) and letter grade (A+ through F).
- 3-Pillar Threat Metrics: Real-time summary cubes categorizing threats into Critical Exploits, Code Drift/FIM, and Software CVEs with 1-click filtering.
- Dual Interface Modes: Seamlessly switch between Essential Mode (streamlined, distraction-free protection for site owners) and Advanced SOC Mode (deep telemetry, AST dumps, and MCP controls for sysadmins).
- Resumable scans. Files are queued on disk. Database tables and upload directories save progress for later requests. Scan diagnostics identify work that stopped early or could only be inspected in part.
- Layered malware detection. The scanner uses checksums, signatures, PHP token analysis, and overlapping reads for large files. Findings identify the evidence and confidence available for review.
- Integrity checks. Compare supported core, plugin, and theme files with available official checksums or a saved local baseline. Live checksums require the WordPress.org privacy channel.
- Stack-aware firewall. The compiled site profile and request route determine which evaluators run. Core request checks also cover sites without a recognized integration.
- Affiliate Ecosystem Shield & Click-Fraud Armor (Rule #43): Auto-detects AffiliateWP (and official add-ons), SliceWP, Solid Affiliate, Easy Affiliate, Ultimate Affiliate Pro, and YITH WooCommerce Affiliates β throttling referral click-floods, inspecting
?ref=/?aff=/?sld=payloads, verifying Direct Link referers, and blocking disposable affiliate registration emails without loading when inactive. - Runtime SQL inspection. The SQL guard normalizes comments before inspection and uses an internal query guard for the pluginβs own database work.
- Progressive enforcement. A confirmed exploit can be blocked immediately. Automatic IP bans require three distinct confirmed incidents within 15 minutes on eligible sites, with a maximum one-hour duration. Commerce and membership sites use scoped enforcement.
- Scoped compatibility controls. Route-aware rules handle recognized WordPress, commerce, and affiliate flows. Review an exact rule before applying an allowlist or using developer policy controls.
- Query Smuggling & Method Override Guard (Rule #48): Normalizes
?rest_route=query routing across WAF engines and blocks unauthenticated HTTP method overrides (_method=DELETE,X-HTTP-Method-Override). - Auth Array Type-Confusion Trap (Rule #49): Intercepts non-scalar array submissions (
user_login[]=admin,pwd[]=,key[]=) to prevent PHP 8+TypeErrorcrashes and auth bypasses. - Unauthenticated Gadget Chain Defense (Rule #50): Detects unauthenticated shortcode parse requests and serialized callable gadgets (
["System", "exec"]) targeting builder RCE chains. - WordPress 7.0+ Interactivity & Block Bindings Shield (Rule #51): Guards
data-wp-*directives against prototype pollution and sanitizes block bindings to sensitive metadata. - Payment callbacks. The firewall distinguishes supported callback routes from storefront forms. The payment integration retains responsibility for validating its signature and processing the event.
- Sensitive file and log protection. Recognized probes can be blocked at request time. The automatic ban policy determines any later IP-wide action.
- Decompressed
.svgzPolyglot Upload Trap (Rule #54): In-memorygzdecode()inspection stopping compressed webshells, XML entity bombs, and polyglot images before filesystem write.
- Payment failure accounting. Uses order context where available for asynchronous payment status changes so a provider callback does not count as a shopperβs request.
- Checkout velocity deduplication. Deduplicates payment-failure events so repeated processing of the same attempt contributes less noise to enforcement.
- WooCommerce Block Checkout & Store API Security: Protects
/wp-json/wc/store/v1/checkout,/apply-coupon, and/productsscraping with full batch request inspection. - Coupon velocity. Active cart context informs coupon enforcement. The configured threshold and window determine when the cooldown applies.
- Input-aware signatures. Storefront prose, order notes, and localized raster filenames receive narrower checks. Browser headers and reputation alone do not establish a confirmed attack.
- Managed rule consolidation. The integration groups edge checks to fit within available plan and zone capacity. Review the proposed rules alongside your existing configuration before deployment.
- Automattic Jetpack Smart Pass: Intelligently routes
/xmlrpc.phpto origin so verified Automattic Jetpack sync works seamlessly while dropping malicious brute-force attempts. - Asynchronous ban synchronization. Eligible bans queue for Cloudflare when enabled. WAF Logs distinguish local enforcement, queued changes, and confirmed edge synchronization.
- Unban synchronization. The integration can remove matching edge entries after a local unban. Check the synchronization status to confirm removal.
- Core Option Tampering Guard: Intercepts unauthenticated runtime tampering targeting
admin_email,users_can_register,default_role,siteurl,home, andactive_plugins. - Privilege Escalation Interceptor: Immediately blocks unauthorized attempts to promote users to
administratororeditorroles withoutmanage_optionscapability. - Unauthorized Admin Registration Trap: Detects guest registration workflows attempting to birth accounts with administrative roles and forces demotion to subscriber.
- Direct User Meta Privilege Trap: Traps raw SQL or REST metadata injections targeting
wp_capabilities,wp_user_level, or_application_passwords. - Plugin Check. The packaged plugin is checked in a single-site WordPress environment for applicable directory requirements.
- Official Release Mirrors: Surgically restores altered core, plugin, and theme files back to clean, official WordPress.org release packages with 100MB streaming limits, 10MB per-entry caps, and CRC-32 integrity validation.
- Non-Destructive Webshell Stripping: Neutralizes obfuscated code blocks and malicious headers while preserving legitimate file customizations with tokenizer syntax verification.
- Pre-Cure Safety Snapshots: Generates timestamped Gzip backups in the WebCare Vault before any file remediation, enabling instant 1-click rollbacks.
- Zero Plaintext Credentials in Database: All API tokens (Cloudflare, AI keys, webhooks, 2FA secrets) are encrypted at rest with military-grade AES-256-GCM AEAD encryption.
- Tamper-Evident Authentication Tags: 128-bit authentication tags and unique 12-byte initialization vectors per record protect against bit-flipping and database dumps.
- Two-Phase Key Rotation: Zero-downtime state machine for rotating master encryption keys with isolated
WEBCARE_VAULT_KEYserver environment variable support.
- Ghost Admin Canary User Tripwire: Provisions a dormant, invisible
webcare_canary_admininwp_userswith an impossible password hash to catch database dump leaks. - Database honey-tokens. Decoy reads and canary activity can generate incidents. The shared IP-ban policy governs any automatic ban.
- AI Prompt-Injection & Jailbreak Guard: Strips invisible Unicode steganography and ChatML/LLaMA delimiter escapes from comments, reviews, and WooCommerce order notes.
- AI SEO & GEO Shield: Monitors
/llms.txtfeeds against cryptographic baselines and detects transparent CSS text cloaking and JSON-LD schema toll-fraud.
- WebAuthn passkeys. Supported platform authenticators and security keys provide phishing-resistant authentication.
- TOTP and privileged accounts. Administrators can configure 2FA requirements. Privilege checks consider effective WordPress capabilities and support authenticator apps.
- REST Application Password Shield: Mandatory Step-Up 2FA on
authorize-application.phpblocks 1-click token consent phishing traps.
- Dual-Layer Authenticated Encryption: Encrypts administrator session records and complete IP access histories across both WordPress user meta and an isolated, HMAC-sealed
.wcpvaultfile. - Account-Based Consolidation: Consolidates multiple active sessions and connected devices per administrator account with collapsible device cards.
- 30-Day Forensic Retention Invariant: Prevents deletion of active and recently active sessions (<30 days) to protect historical audit trails against tamper and premature purging.
- Deep Egress Filtering: Intercepts outbound cURL and socket connections, blocking internal service ports (MySQL 3306, Redis 6379, Memcached 11211, Docker 2375) and cloud metadata (
169.254.169.254). - Verified Loopback Self-Communication Parity: Automatically permits legitimate WordPress Core self-requests (Site Health HTTPS check, Page Cache test, REST query-string validation
index.php?rest_route=..., andwp-cron.php) and internal diagnostics.
- Live Engine Mode Display & 16 Managed Crons: Displays live WP-Cron engine state (
NativevsDISABLE_WP_CRON), automatically reschedules overdue jobs fresh into the future, and supports 1-click Run Now execution. - System Doctor & Plugin Compatibility Checker: Runs infrastructure readiness checks (
PHP 8.3+,WP 7.0+,InnoDB,OPcache,WAF Vault Isolation,Client IP & Proxy Attribution) and active-plugin conflict audits β with per-item 1-Click Fix actions (including vault permission hardening, Cloudflare Proxy Trust activation, log guard hardening, and standalone 2FA switching) plus individual Re-check buttons.
- Per-event controls. Configure notification delivery for supported scan, firewall, authentication, integrity, vulnerability, backup, and digest events.
- DevSecOps Integrations: Native SSRF-validated async webhook delivery to Slack, Discord, ClickUp, Asana, and custom JSON endpoints (Zapier, Make, n8n), synchronized seamlessly with Setup Studio.
- Setup Studio. Choose an onboarding mode and review proposed firewall and privacy settings before applying them.
- Multi-Provider AI Code Forensics: Analyze suspicious files on demand via Google Gemini, OpenAI, Anthropic Claude, DeepSeek, OpenRouter, or WordPress Native AI Connect, with AES-256-GCM key vaulting.
- MCP integration. The optional JSON-RPC endpoint uses token scopes and read-only defaults. OAuth distinguishes pending registrations from approved clients and serializes token state changes.
Tip
WebCare Pro Security & Firewall includes over 100 specialized security engines, evaluators, behavioral monitors, and forensic subsystems.
π Explore the Complete Features & Architecture Catalog in features.md for exhaustive dual-level documentation (plain-English summaries for site owners + deep technical architecture for systems engineers).
- Platform. Single-site WordPress 7.0+ with PHP 8.3+. WordPress Multisite activation and runtime are blocked.
- Site types. Start with the default profile on publishing and business sites. Shops, memberships, forms, builders, and headless clients can use recognized route handlers and narrowly scoped rules.
- Before enabling broader enforcement. Check the workflows your site uses, including guest and signed-in checkout, payment callbacks, account changes, editor saves, forms, and downloads. Use Learning mode for uncertain rules and verify behavior with the active cache and proxy configuration. Confirm support for an integration by exercising its actual workflow.
- Optional integrations. Enable only the outbound channels you use in Privacy settings. Cloudflare requires a separate review because requests reach edge rules before WordPress evaluates sessions.
WebCare Pro is an enterprise web and Linux server engineering practice founded in 2013 by Mir Alamin. I help businesses worldwide build, secure, optimize, and manage high-performance websites and servers.
- 12+ Years Enterprise Experience: Senior Linux SysAdmin and Web Architecture background across high-traffic digital infrastructures.
- Direct Senior Engineering: Every architecture, server migration, malware cleanup, and speed optimization is personally designed and handledβzero junior contractor outsourcing.
- 100% Proven Track Record: Over 680 successfully completed client projects with a flawless 100% Job Success Score on Upwork and 5-star ratings worldwide.
- 15-Minute Emergency SLA: Rapid diagnostic triage when servers crash, gateways timeout, or websites suffer critical malware attacks.
- Website Hack Recovery & Security β Rapid malware eradication, backdoor cleanup, Google blacklist delisting, and WAF configuration.
- Website Speed Optimization β Sub-100ms TTFB tuning, Redis object caching, asset deferral, and 100/100 Core Web Vitals.
- Linux Server Administration β Nginx, Apache, LiteSpeed, PHP-FPM, Docker, MySQL replication, security hardening, and Cloudflare enterprise routing.
- WordPress Maintenance & Core Care β 24/7 uptime monitoring, offsite encrypted backups, vulnerability patching, and staging testing.
- WordPress Version: 7.0 or higher (Fully tested on WP 7.0 and 7.1)
- PHP Version: 8.3 or higher
- MySQL / MariaDB: 5.7+ / 10.3+
- PHP Extensions:
OpenSSL,cURL,sodium,json,mbstring,zip
- Download
webcare-pro-security.zipfrom releases or build directly from source. - Navigate to Plugins > Add New > Upload Plugin in your WordPress administration panel.
- Select
webcare-pro-security.zipand click Install Now. - Click Activate Plugin.
- Access your new cyber command center by clicking WebCare Pro in your WordPress sidebar.
# Clone the repository
git clone https://github.com/WebCarePro/webcare-pro-security.git
cd webcare-pro-security
# Install dependencies
npm install
# Compile the production React build
npm run build
# Package the clean release zip for WordPress.org
npm run packageIf your IP address gets temporarily blocked by login rate-limiting, honeypot traps, or strict firewall inspection rules, you can instantly restore access without breaking your site using any of these 4 failsafe methods:
Add this single line near the top of your wp-config.php file (above the /* That's all, stop editing! */ comment) with your public IP address:
define('WEBCAREPROSCAN_OVERRIDE_WHITELIST_IP', '203.0.113.1');Tip
You can also specify multiple comma-separated IP addresses or CIDR subnets:
define('WEBCAREPROSCAN_OVERRIDE_WHITELIST_IP', '203.0.113.1, 198.51.100.0/24');
This override executes with zero database dependencies and grants an instantaneous, zero-delay bypass across all WAF rules and login hardening checks.
If you need to temporarily disable all WAF inspection rules without deactivating or deleting the plugin:
define('WEBCAREPROSCAN_DISABLE_WAF', true);If you have SSH/terminal access to your server, flush active login brute-force lockouts with a single command:
wp option delete webcareproscan_login_lockoutsOpen phpMyAdmin or your MySQL client, navigate to your site's wp_options table, search for the option named webcareproscan_login_lockouts, and delete or empty that row. Access is immediately restored upon next page reload.
WebCare Pro Security & Firewall is strictly developed in adherence to the WordPress.org Plugin Guidelines:
- Non-Destructive Core Policy: Does not blindly delete or modify core files. When core files are flagged as tampered, administrators can use 1-click Auto-Cure to restore clean, bit-for-bit official copies directly from WordPress.org with automated pre-restoration rollback backups, or leverage official WordPress update workflows (
update-core.php) and WP-CLI (wp core download --force). - Protected file storage. Scan queues, manifests, and quarantine require verified private storage. Place them outside the document root or configure and verify server-side HTTP denial. Database backups have their own storage guard. The preload script uses restricted permissions and includes a deactivation path for its PHP bootstrap.
- Directory Traversal Defense: All quarantine, file inspection, and backup operations enforce strict path normalization and trailing-slash boundary checks against
ABSPATH. - Transparent Third-Party Services: External API calls (official WordPress.org Checksum API, community threat feeds, and optional AI providers) are fully documented with explicit triggers, payload descriptions, and links to Terms of Service and Privacy Policies.
Have questions, need an emergency malware cleanup, or want to hire a certified Senior Linux SysAdmin for your website? Connect with me directly:
- π Upwork Profile: Mir Alamin β Top Rated Plus Freelancer (100% Job Success Score)
- π Official Website: https://webcarepro.dev
- π¨ Emergency Triage & Consultations: https://webcarepro.dev/contact
- π¬ WhatsApp / Direct Line: +880 1322 691090
- π₯ Microsoft Teams: Connect on MS Teams
- π§ Direct Email: hello@webcarepro.dev
- π GitHub Organization: https://github.com/WebCarePro
- π¦ Repository: https://github.com/WebCarePro/webcare-pro-security
Strict Local Mode is enabled by default for the pluginβs outbound HTTP channels. The local firewall and malware analysis work without optional external providers. DNS reputation checks use a separate path and may run during full audits. A site owner can enable individual channels for checksums, feeds, AI, Cloudflare, or alerts in Privacy settings. See readme.txt for destinations, purpose, and data disclosed.
WAF evidence is redacted before logging and export. Optional AI analysis applies evidence redaction before dispatch. Review each providerβs retention and processing terms before enabling its channel.
- License: Open source under the terms of the GNU General Public License v2.0 or later (GPL-2.0-or-later).
- Author & Copyright: Β© 2013β2026 Mir Alamin / WebCare Pro. All rights reserved.