Title: Aipatch Security Scanner
Author: Esteban
Published: <strong>April 14, 2026</strong>
Last modified: April 17, 2026

---

Search plugins

![](https://s.w.org/plugins/geopattern-icon/aipatch-security-scanner.svg)

# Aipatch Security Scanner

 By [Esteban](https://profiles.wordpress.org/estebandezafra/)

[Download](https://downloads.wordpress.org/plugin/aipatch-security-scanner.2.0.1.zip)

 * [Details](https://wordpress.org/plugins/aipatch-security-scanner/#description)
 * [Reviews](https://wordpress.org/plugins/aipatch-security-scanner/#reviews)
 *  [Installation](https://wordpress.org/plugins/aipatch-security-scanner/#installation)
 * [Development](https://wordpress.org/plugins/aipatch-security-scanner/#developers)

 [Support](https://wordpress.org/support/plugin/aipatch-security-scanner/)

## Description

**Aipatch Security Scanner** is a modular security audit engine built for site owners,
developers, and AI-powered agents who need deep visibility into WordPress security
posture — without the bloat of all-in-one security suites.

#### Why Aipatch Security Scanner?

Most WordPress security plugins are either too simple to be useful or too heavy 
to be practical. Aipatch takes a different approach:

 * **Audit-first architecture.** Every check is a standalone, testable module that
   returns structured findings with severity, confidence, evidence, and fingerprints.
 * **Built for automation.** 23 MCP abilities expose the full audit, scanning, and
   remediation surface to external AI agents — making Aipatch the first WordPress
   security plugin designed for agentic workflows.
 * **Zero external dependencies.** Everything runs locally. No accounts, no cloud
   services, no API keys required.
 * **Reversible by design.** Every automated remediation stores rollback data so
   you can undo any change with one click.

#### Core Capabilities

**36-Point Security Audit**

Aipatch runs 36 automated checks across 8 categories — core, plugins, themes, users,
configuration, server, access control, and malware surface:

 * Outdated WordPress core, plugins, and themes
 * Default admin username, excessive admin accounts, inactive admin users, user 
   ID 1 exposure
 * XML-RPC, file editor, debug mode, debug log, REST API exposure, directory listing
 * PHP version, HTTPS, file permissions, security headers (X-Frame-Options, CSP,
   etc.)
 * Database prefix, sensitive files, PHP execution in uploads, auto-update configuration
 * Salt key strength, cron health, cookie security flags, CORS, application passwords
 * Exposed backup files, phpinfo files, uploads directory indexing, default login
   URL
 * Database credential security, file installation permissions

Every finding includes a severity (critical / high / medium / low / info), confidence
score, human-readable explanation, and actionable recommendation.

**Weighted Security Score (0–100)**

A logarithmic scoring engine computes an overall security score and per-area breakdown
across six risk dimensions: software, access control, configuration, infrastructure,
malware surface, and vulnerability exposure. Severity weights and confidence multipliers
ensure the score reflects actual risk, not just issue count.

**Multi-Layer Malware File Scanner**

A three-layer file scanner (content 55%, context 25%, integrity 20%) with 27 detection
signatures, Shannon entropy analysis, and malware family classification detects:

 * Code execution patterns: eval(), assert(), create_function(), preg_replace /e
 * System command functions: shell_exec, exec, passthru, backtick operators
 * Obfuscation techniques: base64 encoding, hex encoding, str_rot13, gzinflate chains,
   chr() concatenation, variable variables, suspiciously long lines
 * Network/exfiltration: cURL execution, fsockopen, remote file_get_contents
 * Known backdoor signatures: c99, r57, WSO, b374k, weevely, FilesMan
 * WordPress-specific threats: unauthorized admin creation, critical option injection,
   security function removal

Scanning runs in batches via an async job system with configurable batch sizes —
safe for shared hosting.

Files are classified into 11 malware families (web shell, obfuscated loader, dropper,
persistence backdoor, cloaked PHP, code injector, and more) with confidence scores
and remediation hints.

**WordPress Core Integrity Verification**

Verifies every core file against official checksums from api.wordpress.org. Detects
modified core files (checksum mismatch), missing core files, and unexpected files
planted in wp-admin/ or wp-includes/. Core tampering findings are automatically 
escalated to critical severity with zero false-positive likelihood.

**File Integrity Baseline**

Build a known-good hash baseline of all PHP files in your installation. Diff against
it at any time to detect modified, deleted, or newly added files. Origin detection
distinguishes core, plugin, theme, and upload files.

**Vulnerability Intelligence**

A local knowledge base of known plugin, theme, and core vulnerabilities with a database-
backed caching layer for fast lookups. Provider architecture allows extending with
external feeds.

**One-Click Remediation with Rollback**

Apply fixes directly from findings — change WordPress options, delete suspicious
files, rename files, patch file contents, or add .htaccess rules. Every automated
action stores a full rollback payload so you can reverse any change. Manual remediations
can be logged for audit trails.

Six supported action types: `wp_option`, `delete_file`, `rename_file`, `file_patch`,`
htaccess_rule`, `manual`.

**Hardening Module**

Five toggleable hardening rules with clear explanations and compatibility warnings:

 * Disable XML-RPC — blocks external XML-RPC requests and removes X-Pingback header
 * Hide WordPress Version — removes version leaks from source, RSS feeds, scripts,
   and styles
 * Restrict REST API — limits sensitive endpoints to authenticated users
 * Block Author Scanning — prevents user enumeration via author archives
 * Login Brute-Force Protection — rate-limits login attempts per IP with configurable
   thresholds and lockout duration

**Persistent Findings Store**

All audit findings persist in a dedicated database table with automatic deduplication
by fingerprint. Track findings over time — dismissed findings stay dismissed across
scans; resolved findings reopen if the issue reappears.

**Security Event Logging**

Every scan, hardening change, remediation, and significant event is logged to a 
dedicated table. Logs are filterable by severity and exportable as CSV.

**WordPress Site Health Integration**

Adds 6 security tests to the built-in Site Health screen: file editor, debug mode,
XML-RPC, admin username, SSL, and overall security score.

**Performance Diagnostics**

Built-in performance profiling to identify slow queries, high memory usage, and 
resource bottlenecks related to security operations.

**REST API**

10 authenticated endpoints under the `aipatch-security-scanner/v1` namespace for
triggering scans, retrieving summaries, toggling hardening, exporting logs, and 
running performance diagnostics.

#### MCP Surface for AI Agents (23 Abilities)

Aipatch exposes 23 structured abilities via the WordPress Abilities API — making
your site’s security surface fully accessible to external AI agents, coding assistants,
and orchestration tools:

**Audit & Scanning**

 * **aipatch/audit-site** — Run a full 36-check security audit with scored findings
 * **aipatch/audit-suspicious** — Quick heuristic scan for suspicious files
 * **aipatch/start-file-scan** — Launch an async multi-layer malware scan job
 * **aipatch/process-file-scan-batch** — Process next batch of files in a running
   scan
 * **aipatch/file-scan-progress** — Check file scan progress
 * **aipatch/file-scan-results** — Retrieve enriched scan results with family, reasons,
   layer scores
 * **aipatch/get-scan-summary** — Comprehensive latest scan summary with classification
   breakdown
 * **aipatch/list-suspicious-files** — List suspicious files from latest scan (no
   job_id needed)

**Integrity & Baseline**

 * **aipatch/verify-core-integrity** — Verify WP core files against official api.
   wordpress.org checksums
 * **aipatch/baseline-build** — Build or refresh the known-good file hash baseline
 * **aipatch/baseline-diff** — Compare current filesystem against stored baseline
 * **aipatch/baseline-stats** — Baseline statistics by origin type
 * **aipatch/get-baseline-drift** — Combined baseline drift + core integrity report

**Findings & Monitoring**

 * **aipatch/list-findings** — Query persistent findings with status/severity/category
   filters
 * **aipatch/findings-stats** — Aggregate finding statistics
 * **aipatch/findings-diff** — New and resolved findings since a point in time
 * **aipatch/get-file-finding-detail** — Single finding with decoded metadata, layer
   scores, family
 * **aipatch/dismiss-finding** — Dismiss a finding as accepted risk

**Remediation**

 * **aipatch/apply-remediation** — Apply a security fix with rollback support
 * **aipatch/rollback-remediation** — Undo a previously applied fix
 * **aipatch/list-remediations** — List remediation history with filters

**Jobs & Status**

 * **aipatch/list-jobs** — List scan/audit jobs with filters
 * **aipatch/get-async-job-status** — Check async job status and retrieve results

20 abilities are read-only; only 3 (dismiss, apply-remediation, rollback) modify
site state. All abilities include typed input/output schemas, permission checks (`
manage_options`), and structured error responses.

#### What Aipatch Does NOT Do

 * It is NOT a firewall or WAF — it does not filter incoming traffic.
 * It does NOT intercept frontend requests or affect page load performance.
 * It does NOT phone home, require an account, or send data externally.
 * It does NOT inject ads, upsells, or nag notices.

## Installation

 1. Upload the `aipatch-security-scanner` folder to `/wp-content/plugins/`.
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Navigate to **Aipatch Security Scanner  Dashboard** to run your first audit.
 4. Review your security score and findings, then explore hardening options.

For AI agent integration, ensure the WordPress Abilities API is available and connect
your agent to the `aipatch/audit-site` ability.

## FAQ

### How many security checks does Aipatch run?

36 automated checks across 8 categories: WordPress core, plugins, themes, users,
configuration, server, access control, and malware surface. Each finding includes
severity, confidence, evidence, and a specific recommendation.

### Does this plugin slow down my site?

No. Aipatch adds nothing to the frontend. Audits run on demand, via WP-Cron, or 
through the REST API. The malware file scanner uses a job-based batch system so 
it never monopolizes server resources.

### Does it require an external API or account?

No. Everything runs locally with zero external dependencies. The vulnerability provider
architecture supports optional external feeds for extended coverage.

### Can Aipatch detect malware?

Yes. The multi-layer file scanner uses 27 detection signatures covering code execution,
obfuscation, backdoor patterns, and WordPress-specific threats, plus Shannon entropy
analysis for encoded payloads. Files are classified as clean, suspicious, risky,
or malicious with a 0–100 risk score and assigned to one of 11 malware families (
web shell, obfuscated loader, dropper, backdoor, etc.) with confidence levels. WordPress
core files are additionally verified against official checksums from api.wordpress.
org.

### What happens if a remediation breaks something?

Every automated remediation stores full rollback data. You can reverse any change—
restored files include original content and permissions, reversed options include
the previous value, removed .htaccess rules are cleanly deleted. Manual remediations
are tracked but not auto-reversible.

### Is it compatible with other security plugins?

Yes. Aipatch focuses on auditing, scanning, and remediation — not request filtering.
It coexists with firewalls like Wordfence, Sucuri, or Cloudflare without conflicts.

### What is the MCP surface?

MCP (Model Context Protocol) is the standard for AI agents to interact with tools.
Aipatch exposes 23 structured abilities via the WordPress Abilities API, allowing
AI agents to audit your site, scan for malware, verify core integrity, track findings
over time, and apply fixes — all through typed, permissioned tool calls. 20 are 
read-only; only 3 modify site state.

### What data does it store?

Audit findings, scan history, file baselines, scan results, remediation records,
vulnerability cache, job state, hardening preferences, settings, and event logs —
all in your WordPress database. Nothing leaves your server.

### What PHP version does Aipatch require?

PHP 7.4 or higher. WordPress 6.5 or higher.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Aipatch Security Scanner” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Esteban ](https://profiles.wordpress.org/estebandezafra/)

[Translate “Aipatch Security Scanner” into your language.](https://translate.wordpress.org/projects/wp-plugins/aipatch-security-scanner)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/aipatch-security-scanner/),
check out the [SVN repository](https://plugins.svn.wordpress.org/aipatch-security-scanner/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/aipatch-security-scanner/)
by [RSS](https://plugins.trac.wordpress.org/log/aipatch-security-scanner/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.0.1

 * Major architecture overhaul: modular audit engine with interface/registry/engine
   pattern.
 * 36 security checks (up from 12) across 8 categories including malware surface
   and access control.
 * Weighted logarithmic scoring engine with per-area risk posture breakdown.
 * Heuristic malware file scanner with 27 signatures and Shannon entropy check.
 * Async job system for batch file scanning on shared hosting.
 * File integrity baseline with origin detection (core, plugin, theme, upload).
 * Persistent findings store with deduplication, automatic resolution, and dismissal
   tracking.
 * Vulnerability intelligence caching layer with decorator pattern.
 * One-click remediation engine with full rollback support (6 action types).
 * 23 MCP abilities via WordPress Abilities API for AI agent integration.
 * WordPress core integrity verification against official api.wordpress.org checksums.
 * Multi-layer scoring engine (content 55%, context 25%, integrity 20%) with 11 
   malware family classification.
 * 7 new database tables (9 total) for jobs, findings, baselines, scan results, 
   vulnerability cache, and remediations.
 * New audit checks: cookie security, backup files, phpinfo exposure, CORS, uploads
   index, login URL, database credentials.
 * Hardening: added author scanning protection.
 * Path traversal protection for all file operations.

#### 1.0.1

 * Updated version metadata and packaging adjustments for WordPress.org review.

#### 1.0.0

 * Initial release.
 * Security dashboard with risk score.
 * Local security scanner with 12 checks.
 * Hardening module with 4 toggleable rules.
 * Built-in vulnerability database.
 * Security event logging.
 * WordPress Site Health integration.
 * REST API for plugin operations.
 * Automatic scans via WP-Cron.

## Meta

 *  Version **2.0.1**
 *  Last updated **20 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [audit](https://wordpress.org/plugins/tags/audit/)[hardening](https://wordpress.org/plugins/tags/hardening/)
   [malware scanner](https://wordpress.org/plugins/tags/malware-scanner/)[security](https://wordpress.org/plugins/tags/security/)
   [vulnerability](https://wordpress.org/plugins/tags/vulnerability/)
 *  [Advanced View](https://wordpress.org/plugins/aipatch-security-scanner/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/aipatch-security-scanner/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/aipatch-security-scanner/reviews/)

## Contributors

 *   [ Esteban ](https://profiles.wordpress.org/estebandezafra/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/aipatch-security-scanner/)