Live Infrastructure Compliance Scanning

AegisGate Platform v4.4.0+ includes a live infrastructure compliance scanner that checks your platform’s runtime configuration against security best practices and maps results to NIST CSF controls.

Overview

Unlike the compliance framework scanner (which evaluates controls against documented evidence), the live scanner checks the actual running configuration of your AegisGate deployment. It answers the question: “Is my platform configured securely right now?”

API Endpoint

GET /api/v1/compliance/live

Requires compliance:read permission (compliance_officer or admin role).

Checks Performed

#CheckNIST CSF ControlWhat It Verifies
1TLS ConfigurationSC-8TLS is enabled with valid certificate paths
2Auth EnforcementAC-2REQUIRE_AUTH is not set to false in production
3Audit LoggingAU-2Audit middleware is enabled
4Security HeadersSI-10CSP, HSTS, X-Frame-Options headers are enabled
5Rate LimitingSC-5Rate limiting is configured (requests per minute > 0)
6RBACAC-3RBAC is enabled
7SSO/SAML/OIDCIA-2At least one SSO provider is configured
8Maintenance WindowsMA-2Maintenance mode is not currently active
9Data RetentionSI-12Log level is configured (audit trail retention)
10ML Threat DetectionSI-3ML threat detection is enabled

Check Status Values

StatusMeaning
passCheck passed — configuration meets the requirement
failCheck failed — configuration does not meet the requirement
warningCheck passed with caveats — review recommended
skipCheck skipped — feature not configured or not applicable

Example

curl http://localhost:8443/api/v1/compliance/live \
  -H "Authorization: Bearer $TOKEN"

Response:

{
  "timestamp": "2026-08-21T15:30:00Z",
  "summary": {
    "total": 10,
    "pass": 8,
    "fail": 1,
    "warning": 1,
    "skip": 0
  },
  "passRate": 80.0,
  "duration": "2.1ms",
  "results": [
    {
      "id": "tls",
      "name": "TLS Configuration",
      "category": "transport",
      "status": "pass",
      "message": "TLS is enabled with valid certificate paths",
      "control": "SC-8",
      "framework": "NIST CSF"
    },
    {
      "id": "auth-enforcement",
      "name": "Auth Enforcement",
      "category": "access-control",
      "status": "fail",
      "message": "REQUIRE_AUTH=false detected — auth is disabled",
      "remediation": "Set REQUIRE_AUTH=true or remove the env var (defaults to true)",
      "control": "AC-2",
      "framework": "NIST CSF"
    },
    {
      "id": "sso",
      "name": "SSO/SAML/OIDC",
      "category": "identity",
      "status": "warning",
      "message": "No SSO provider configured — using local auth only",
      "remediation": "Configure SAML or OIDC for centralized identity management",
      "control": "IA-2",
      "framework": "NIST CSF"
    }
  ]
}

Remediation

Each failed or warning check includes a remediation field with actionable guidance on how to fix the issue. Common remediations:

CheckRemediation
TLSSet tls.enabled: true and provide cert_file + key_file paths
Auth enforcementRemove REQUIRE_AUTH=false or set to true
Audit loggingSet security.enable_audit_middleware: true
Security headersSet security.enable_security_headers: true
Rate limitingSet proxy.rate_limit to a value > 0
RBACSet rbac.enabled: true
SSOConfigure a SAML or OIDC provider in the sso config section
ML detectionSet security.ml_threat_detection_enabled: true

Use Cases

  • Pre-deployment validation: Run the scan before going live to verify all security settings
  • Continuous monitoring: Integrate with monitoring tools to alert on configuration drift
  • Audit evidence: Use scan results as evidence for compliance frameworks that require configuration verification
  • Security posture dashboard: Display pass rate in internal dashboards