r/cms • u/DavidMunozCabrisas • 1d ago
Draco Insomnis 0.1.46 — What changed since 0.1.32: file integrity, CVE alerts, namespace isolation, and no more false alarms
Over the last 13 days, I shipped 14 releases for Draco Insomnis (GPL-2.0+), mostly focused on the WordPress integration, though the core architecture applies across the PHP ecosystem.
Quick context: Draco is a self-hosted, open-source security guard that runs entirely on your own server. No external accounts, no cloud telemetry, no captchas, and no subscriptions. Every module ships disabled by default so you only run what you need. Aside from WordPress, it is also distributed for Laravel, Symfony/generic PHP (Server Edition), PrestaShop, Drupal, Joomla, Moodle, and Magento (plus ports in JS, Python, Go, Ruby, .NET, Java/Kotlin, and Rust).
Here is the technical breakdown of what changed between 0.1.32 and 0.1.46:
1. File Integrity Monitoring (Guard) — v0.1.43 & v0.1.45
A new module designed to catch persistence mechanisms after a breach. It verifies core checksums against upstream hashes and watches admin accounts, plugins/drop-ins, config files, unexpected .php files inside upload directories, and cron jobs.
- Diff-based workflow: You review and approve an initial baseline scan. Subsequent scans run twice a day (taking a few seconds) and only alert on new, modified, or reappearing files (escalating severity if a deleted file returns). It is strictly read-only—it never auto-deletes or mutates files.
- Eliminating false positives (0.1.45): Tuned the AST/token inspection so empty hosting placeholders, stubbed leftovers, or WAF loaders without executable payloads are downgraded to informational notices instead of firing alert emails. Cron hooks without executable callbacks are also ignored for alerts.
2. Local Known-Vulnerability & CVE Checks — v0.1.44
The integrity engine now runs twice-daily checks against installed packages (including inactive plugins/themes) and core versions, surfacing severity, CVE IDs, patch versions, and closed/abandoned repository status.
- Zero-leak lookup: Defaults to downloading the full vulnerability feed (via a Wordfence Intelligence mirror) to query locally on the server—no stack fingerprinting or plugin lists are sent outbound. (Optional, off by default).
3. Stricter Edge/Firewall Rules — v0.1.40
Prompted by the recent November Drupal installer exploits (SA-CORE-2026-017 and 019, Fail2Install RCE), the firewall now drops requests (hard 403) to:
- Core installers (install.php, etc.) on already-provisioned WordPress/Drupal instances (update.php remains untouched).
- Exposed DB admin tools (phpMyAdmin), raw logs (error_log, debug.log), and backup/editor artifacts (.bak, .old, .orig, .swp).
4. Namespace Isolation in Server Edition — v0.1.46
The standalone PHP Server Edition engines now live under their own dedicated namespace. Previously, running the Server Edition globally alongside a Laravel package or CMS plugin running a different Draco version on the same host could cause class collisions and fatal errors. Also added pre-flight firewall warnings to draco audit (0.1.41).
5. Attack Log Attribution & Phishing Filtering — v0.1.42 & v0.1.43
- Intent classification: Logged blocks now categorize what the probe was targeting (secrets/config, backups, DB tools, installers, known CVEs like PHPUnit CVE-2017-9841, PHP-CGI, or SPIP) alongside full user-agents and response codes. Admin IPs are flagged and excluded from reports.
- Local PhishTank checks: Form and comment URLs can be checked against a locally cached PhishTank feed (updated twice daily, commercial-friendly) without leaking user payloads to third-party APIs.
6. Auth, Extensibility, and PHP Lifecycle Warnings — v0.1.33 to v0.1.39
- Co-signed 2FA: Logins can require approval from a second admin (bound strictly to the session/attempt) or via a single-use approval link sent to secondary recovery emails.
- Developer hooks: Exposed filter/action hooks so custom or third-party forms can reuse Draco's bot/spam shield.
- PHP EOL alerts: The dashboard now warns 90 days before your running PHP version hits security EOL. Also fixed an issue where opening SMTP settings overwrote custom ports/encryption presets.
Current Limitations
- Email-only 2FA: No TOTP, WebAuthn, or passkeys yet.
- Not an AV/cleaner: Integrity monitors filesystem state changes; it does not scan for malware signatures or clean compromised codebases.
Testing & Source
Release 0.1.46 is tagged with SHA256 checksums, a Sigstore bundle, and an SBOM, tested up through PHP 8.6 and WordPress 7.2. Source and docs are in the repo—if you break something on an unusual server setup or find a bug, please open an issue or report security flaws privately via the repository's Security tab.