Aystat Detect Hidden
Detects hidden users, rogue admin capabilities, cloaked posts, hidden plugins, themes, and stealth WP-Cron jobs through differential auditing.
Install in
Aystat Detect Hidden is an advanced security auditing and threat remediation plugin designed to expose stealth malware, backdoor administrators, rogue privilege escalations, concealed posts, hidden doorway pages, clandestine plugins, hidden themes, and stealth WP-Cron persistence tasks.
The Problem: Hook-Based Cloaking & Database Tampering
Modern WordPress malware rarely modifies core files directly. Instead, sophisticated attackers and backdoors insert malicious users, privilege grants, or content into your database and hook into WordPress filter APIs to keep them invisible:
-
Hidden Users, Rogue Capabilities & Orphaned Usermeta
Malware adds a rogue administrator account to thewp_usersdatabase table, then registers a hook onpre_user_queryto filter its own ID out of all standard WordPress queries. Attackers also inject direct high-privilege capability grants (manage_options,edit_users,install_plugins,unfiltered_html) onto low-privilege accounts (such as asubscriberorcustomer), or leave orphanedwp_capabilitiesrows inwp_usermetafor deleted user IDs ready for instant privilege re-hydration. -
Concealed Posts & Doorway Pages
Attackers insert SEO spam, phishing forms, or doorway pages intowp_posts, then manipulatepre_get_postsorposts_whereso the posts never appear in the WordPress Admin post list. -
Concealed Plugins
Rogue plugins or backdoors hook into theall_pluginsfilter to hide themselves from the/wp-admin/plugins.phpinterface while continuing to execute on every HTTP request. -
Concealed & Unmanaged Themes
Attackers plant backdoor themes or rogue PHP shells insidewp-content/themes/and filterwp_prepare_themes_for_jsorallowed_themesto hide them from Appearance > Themes.
The Solution: Differential Auditing & Hook Inspection
Aystat Detect Hidden bypasses hooked filters through deep differential comparison and multi-layered defense-in-depth:
-
User & Privilege Differential Audit with Threat Tiering
Fetches visible users via standardget_users()queries and compares them against raw database rows queried directly from{$wpdb->users}and{$wpdb->usermeta}. Automatically distinguishes confirmed high-risk threats (CONCEALEDadministrators, direct SQLuser_login/IDexclusions,ROGUE CAPScapability escalations, andORPHANED METArecords) from unverified query-filtered discrepancies (OMITTED BY QUERY, such as non-admin accounts filtered by membership or user-directory plugins), attributing each discrepancy to the activepre_user_querycallback (file:line), query scope, and SQLWHEREdelta. -
Post & Page Differential Audit with Hook Attribution
ExecutesWP_Querywith active filters and compares returned IDs against raw database records from{$wpdb->posts}, distinguishing targeted SQL exclusions (CONCEALED) from generic query filter omissions (OMITTED BY QUERY) alongside the exact query scope and callbackfile:line. -
Plugin & Component Audit
Physically inspects the plugins directory viaDirectoryIterator(supporting subdirectories, single-file plugins, and unmanaged standalone PHP scripts) and compares physical files against filteredall_pluginshook output. -
MU-Plugin & Core Drop-in Inspection
Enumerates all active Must-Use plugins and core architectural drop-ins in the content directory, highlighting high-privilege drop-ins (db.php,object-cache.php) with elevated security advisories. -
Themes Differential Audit
Physically scansget_theme_root()(wp-content/themes/) viaDirectoryIteratorand compares on-disk theme directories and standalone.phpfiles againstwp_prepare_themes_for_js()andallowed_themesfilter outputs. -
WP-Cron Jobs Differential Audit
Compares filtered_get_cron_array()schedules against the raw serializedcronoption row in{$wpdb->options}to uncover stealth persistence tasks cloaked viaoption_cronorpre_option_cronfilters, inspecting attached callbacks via PHP Reflection. -
Enhanced Hook & Query Inspector with Query Scope, Live SQL Delta & Inline Code Preview
Leverages PHP Reflection and live query probing to analyze callbacks on sensitive filters (query,pre_user_query,get_user_metadata,all_plugins,wp_prepare_themes_for_js,allowed_themes,posts_where,option_cron,pre_option_cron), revealing exact file paths, declaration line numbers, the audited query scope, live SQLWHERE/JOINmodifications, anonymous closures, and a 1-click View Code read-only modal with ±5 lines of surrounding context.
Advanced Edition Upgrades
Need 1-click threat remediation, client reporting, and autonomous background monitoring? Aystat Detect Hidden Advanced adds:
-
1-Click Safe Remediation with Unverified Filter Safeguards
Instantly delete rogue users, purge orphaned privileged usermeta, trash spam posts, delete concealed themes (with active-theme safety guards), unschedule concealed WP-Cron persistence tasks, and delete unauthorized backdoor plugin files with strict path traversal safeguards — while protecting unverifiedOMITTED BY QUERYrecords with primary whitelisting and explicit caution confirmation before deletion. -
PDF / JSON Exportable Security Audit Reports
Generate client-ready PDF/Print Security Audit Certificates and machine-readable JSON audit snapshots to prove to clients that their database and hooks were audited for stealth malware. -
WP-CLI Automation (
wp aystat audit --format=json)
Run differential security audits across agency multi-site fleets, SSH scripts, and CI/CD pipelines from the command line. -
False-Positive Whitelisting
Ignore approved exceptions (custom tools, membership directory filters, custom capabilities, themes, or intentional drop-ins) with a single click, keeping your audit reports clean. -
Autonomous 24/7 Background Scans
Scheduled WP-Cron runner with configurable scan frequencies (Hourly, 2h, 3h, 6h, 12h, Daily, Weekly). -
Smart State-Diff Email Alerts
Zero email fatigue — alerts dispatched only when new threats appear or threat status changes. -
Priority Security Support
Direct developer assistance and priority updates.
Written by Joobi from the project's own listing. See the source page
1.1.1
- Added finding tier classification (
confirmed_threatvs.query_filtered/OMITTED BY QUERY) in User and Post scanners to clearly distinguish non-admin records omitted by generic directory/membership query filters from confirmed high-risk stealth backdoors. - Added Query Scope (
WP_User_Query/WP_Queryparameters) and live SQLWHERE/JOINdelta probing alongside callbackfile:linein the Hook & Query Interception Inspector and User/Post differential audit notes. - Improved mobile phone and tablet responsiveness across all audit tables (smooth horizontal touch scrolling without column crushing), horizontal touch-scrollable tab navigation bar, toolbar buttons, and modals.
- Styled table row action buttons as full-width stacked buttons (one per row) for cleaner layout and easier touch interaction.
1.1.0
- Added Hidden & Unmanaged Themes Differential Scanner (
Themesmetric card and tab), comparing physicalwp-content/themes/directories and loose.phpfiles againstwp_prepare_themes_for_js()andallowed_themesoutputs. - Upgraded Users Scanner to detect Rogue Administrator Capabilities (
ROGUE CAPS, direct high-privilege capability grants on non-administrator accounts) and Orphaned Privileged Usermeta (ORPHANED METAinwp_usermetawith no matchingwp_usersrecord). - Added Hidden WP-Cron Jobs Differential Scanner (
cronoption differential) in a dedicated Cron Jobs tab, comparing_get_cron_array()against raw{$wpdb->options}records and inspecting attached callbacks via PHP Reflection. - Added Inline Source Code Preview Modal (“View Code”) to the Hook Inspector, allowing administrators to inspect the exact PHP callback lines (with ±5 lines of surrounding context) in read-only mode.
- Added
wp_prepare_themes_for_js,allowed_themes,get_user_metadata,pre_option_cron, andoption_cronmonitoring to the Hook & Query Interception Inspector. - Moved Hook & Query Interception Inspector to a dedicated dashboard tab located between Cron Jobs and Advanced Edition.
- Hook and query driver inspections are now strictly informational diagnostics and no longer count toward active threats or auditing status.
- Redesigned 6-card metric dashboard with full-height icon strips, dynamic threat icon highlighting, WordPress site timezone timestamp formatting, and threat-only circular tab count badges.
- Updated User Guide, contextual Help tabs, and documentation.
1.0.4
- Added Enhanced Hook & Query Interception Inspector using PHP Reflection: extracts exact file paths, line numbers, closure detection, and provenance classification.
- Added actionable Threats Found card navigation with automatic tab switching and smooth scrolling to flagged items.
- Added False-Positive Whitelist (Ignore/Unignore) feature to approve legitimate exceptions.
- Added Clear Scan Snapshot action to reset cached scan states safely.
- Updated file and directory path resolution to use core WordPress path functions.
- Removed all locked/premium-gated code to ensure 100% free, unrestricted functionality in the WordPress.org edition.
1.0.3
- Added defense-in-depth low-level SQL query filter isolation to defeat in-memory query rewrites.
- Added critical alert detection for active hooks on the WordPress
queryfilter. - Added unmanaged standalone PHP script and headerless plugin directory detection.
- Added elevated security warning badge and advisories for
db.phpandobject-cache.phpdrop-ins. - Added runtime database driver class integrity checks.
1.0.2
- Added perceptible live scanning states and execution time reporting.
- Added persistent audit state on page reload.
- Scalability optimizations for databases with 30,000+ users and high post counts.
1.0.1
- Enhanced button flex layout and Dashicons alignment to prevent line-wrapping.
1.0.0
- Initial public release with differential user, post, and plugin auditing.
Follow this listing's changes (Atom feed)