r/WordpressPlugins • u/stonemanhero • 9h ago
Freemium [FREEMIUM] I have developed a free plugin to identify malware that conceals itself from WP-Admin through filter hooks (users, posts, plugins, crons).
When cleaning up hacked WordPress sites lately, I kept running into malware that hides itself from standard dashboard views and signature scanners by hooking into pre_user_query, posts_where, all_plugins, or injecting stealth wp_cron tasks.
Instead of relying on malware signatures, I built a lightweight diagnostic plugin (Aystat Detect Hidden) that runs differential checks - comparing raw database tables (wp_users, wp_posts, wp_options) directly against the output of filtered WordPress APIs. When something is hidden or a suspicious cron callback is attached, it uses PHP Reflection to trace the exact file path and line number of the hook.
It’s free on the repo and doesn't leave bloat behind after an audit: https://wordpress.org/plugins/aystat-detect-hidden/
There is also a paid Advanced version for agencies and incident-response workflows that adds:
One-click remediation: Directly delete or purge detected rogue users, hidden posts/pages, and malicious cron tasks from the scan results
Whitelisting: Ignore known-safe custom hooks or legitimate MU-plugins to prevent false positives
Automated background scans & email alerts: Scheduled WP-Cron checks with instant notifications if new stealth items appear
Agency reporting & automation: Exportable PDF/JSON security audit reports and WP-CLI support (wp aystat audit) for bulk site maintenance
Would love feedback from anyone here who handles incident response or site cleanups - especially on any other core hooks or persistence vectors you've seen malware use to cloak itself recently.