Linux services and reverse proxies rarely fail because of exotic kernel exploits—they fail because a systemd unit ran with full root filesystem write access or an Nginx location /assets block without a trailing slash was paired with alias /srv/assets/ , exposing parent directories to ../ path traversal. Auditing both unit sandboxing and proxy path normalization alongside live HTTP security headers catches those misconfigurations in CI before deployment.
In this architecture note, we build a standalone zero-dependency Python auditor for systemd units ( ProtectSystem=strict , NoNewPrivileges=yes , CapabilityBoundingSet= ) and Nginx off-by-slash alias path traversal, and combine it with live HTTP header and daemon checks on https://nandai.org/api/mcp ( audit_http_security_headers and audit_macos_launchd_plist ) paired with https://nandai.org/setup/static-site-nginx-cloudflare-github-pages-deploy-setup .
1.…