Privacy and security
How FakeProd isolates sandboxes, strips real secrets before booting Pentest Twins, and serves public pages under strict security headers.
Zero-script public pages
Both fakeprod.com and docs.fakeprod.com contain zero JavaScript, zero inline styles, and zero third-party network requests. Nginx enforces:
Content-Security-Policy: default-src 'none'; style-src 'self'; img-src 'self'; base-uri 'none'; form-action 'self'; frame-ancestors 'none'
Path confinement & non-destructive execution
The local sandbox driver confines every shell file command, editor read/write, and tab completion via resolveSafePath() so commands inside /etc or /var/www never escape the session’s temporary directory.
Authentication, API keys & contact form
- User passwords and API keys are hashed cleanly; raw
fp_live_*tokens are never stored in plaintext. - Public
POST /contactsubmissions apply cross-site checks, silent SEO/link spam filtering, per-address rate caps, and Resend email delivery alongside SQLite inbox storage.