CIS Hardening Guide
This guide documents baseline hardening controls for production deployment and the CI scan workflow for drift visibility.
Current Runtime Hardening
The production stack enforces key container hardening controls in docker-compose.prod.yml:
- read-only filesystems on sensitive services.
- no-new-privileges security option.
- Linux capabilities dropped (
cap_drop: ALL) on hardened services. - tmpfs mounts for transient writable paths.
- segmented Docker networks separating frontend/backend/data/miners.
CI Security Checks
The platform quality workflow runs in .github/workflows/ci-platform-gate.yml and includes:
- Bandit static security scan for backend code.
- Python dependency vulnerability scan via pip-audit.
- Frontend dependency vulnerability scan via npm audit.
- OpenSCAP baseline scan with generated ARF + HTML artifacts.
OpenSCAP artifacts:
openscap-results.arfopenscap-report.html
These are uploaded in CI for security review and remediation tracking.
Baseline Drift Detection
Use Step 10 change tracking endpoints as baseline anchors:
GET /api/system-admin/change-logGET /api/system-admin/baseline
Review drift by comparing:
- deployed image digest and environment snapshot from
/baseline - expected compose hardening settings from source control
- OpenSCAP report findings from CI artifacts
Recommended Review Cadence
- On every merge to main/master: review security scan job output.
- Weekly: compare latest OpenSCAP report against previous run.
- Monthly: verify runtime compose hardening settings match documented baseline.