MASACP Security & Architecture Blueprint
A deep technical breakdown of the defensive engineering, kernel virtualization, and application-layer firewalls that safeguard MASACP-managed servers against modern threat vectors.
Kernel-Level Multi-Tenancy (Linux Cgroups v2)
Traditional hosting panels rely merely on Unix file permissions (`chmod` / `chown`) to isolate websites. Under high loads or PHP memory exhaustion exploits, a single compromised tenant can monopolize 100% of the server CPU and RAM, taking down every other website hosted on the same VPS.
MASACP leverages native Linux Cgroups v2 (Control Groups) and systemd user slices. Every site runs within its own bounded resource envelope:
- Hard Memory Clamping: `memory.max` enforces strict limits. If a tenant exceeds their allocated RAM quota, the kernel drops worker processes cleanly without affecting neighboring tenants.
- CPU Weighting & Throttling: `cpu.weight` and `cpu.max` ensure fair CPU scheduling and prevent runaway crypto-miners or infinite loops.
- Disk I/O Bandwidth Throttling: `io.weight` stops malicious or poorly optimized bulk database exports from saturating NVMe/SSD read-write channels.
Web Application Firewall (Coraza WAF + OWASP CRS v4)
Every incoming HTTP request to an application hosted on MASACP is inspected by Coraza WAF, an enterprise open-source Web Application Firewall written in pure Go that implements the full ModSecurity v3 specification.
SQL Injection (SQLi) Defense
Deep inspection of URI query strings, POST payloads, and headers to block UNION, blind, and error-based SQL injections.
Cross-Site Scripting (XSS)
Filters DOM, reflected, and stored XSS vectors before payloads ever reach PHP-FPM or Node.js workers.
Remote Code Execution (RCE)
Blocks command injection payloads and unauthenticated file upload vulnerabilities in WordPress plugins.
WordPress Targeted Hardening
Automated protection for `xmlrpc.php`, aggressive throttling on `wp-login.php`, and sensitive file shielding (`wp-config.php`, `.env`, `.git`).
Multi-PHP Process Isolation & Execution Sandboxing
MASACP abandons the dangerous legacy practice of running all websites under a shared `www-data` or `apache` user account:
- Dedicated System User Per Domain: Each domain operates under an unprivileged, locked system account without SSH shell access (`/sbin/nologin`).
- Strict `open_basedir` Enforcement: PHP processes are forbidden from accessing files outside `/var/www/vhosts/{domain}/`. Even in the event of an arbitrary local file inclusion (LFI) bug in a theme, `/etc/passwd`, `/root/`, and neighboring websites remain totally inaccessible.
- Hardened PHP Functions: High-risk PHP functions (`exec`, `passthru`, `shell_exec`, `system`, `proc_open`, `popen`, `curl_multi_exec`) are disabled by default on production pools, unless explicitly enabled by the administrator.
Out-of-Band Disaster Recovery (`masacp-cli`)
A fatal architectural flaw in many control panels is that if the web interface goes down (e.g. bad SSL certificate, Nginx configuration syntax error, or database corruption), the administrator is completely locked out of their server.
MASACP is engineered with complete separation of concerns. The `masacp` CLI binary connects directly to the underlying Linux subsystem via root SSH. Administrators can:
Vulnerability Disclosure & Security Policy (RFC 9116)
We adhere strictly to coordinated vulnerability disclosure. We welcome security researchers and developers to audit our codebase and submit security findings.
Experience Hardened Server Infrastructure
Deploy MASACP on your bare-metal server or VPS in less than 60 seconds and experience kernel-grade multi-tenancy and high performance.