suite=lab7-hardening-audit passed=True checks=21/21 captured_at=2026-11-26T16:02:03Z

[PASS] HARD-0-RUNNING-CONTAINERS (container_hardening): Project mtusi-lab7 has running containers to audit -> count=15
[PASS] HARD-1-OPDIR-OUTSIDE-REPO (secret_hygiene): Operator state directory (LAB7_OPERATOR_DIR) is strictly outside Git repository -> /home/tomato/.local/state/mtusi-lab7-operator
[PASS] HARD-2-NON-ROOT (container_hardening): All running containers execute as non-root users -> all non-root
[PASS] HARD-3-NO-PRIVILEGED (container_hardening): Zero containers use privileged=true -> 0 privileged
[PASS] HARD-4-NO-HOST-NET (container_hardening): Zero containers use network_mode=host -> 0 host network
[PASS] HARD-5-NO-DOCKER-SOCK (container_hardening): Zero containers mount /var/run/docker.sock -> 0 mounts
[PASS] HARD-6-NO-OPDIR-MOUNT (secret_hygiene): Zero containers mount LAB7_OPERATOR_DIR (CA key / unseal shares) -> 0 mounts
[PASS] HARD-7-READONLY-ROOTFS (container_hardening): All running containers use read_only root filesystem -> all read_only=true
[PASS] HARD-8-CAP-DROP-ALL (container_hardening): All running containers drop ALL capabilities with zero CapAdd -> all CapDrop=ALL
[PASS] HARD-9-NO-NEW-PRIVILEGES (container_hardening): All running containers set security_opt no-new-privileges:true -> all set
[PASS] HARD-10-RESOURCE-LIMITS (container_hardening): All running containers define explicit CPU and memory limits -> all bounded
[PASS] HARD-11-PUBLISHED-PORTS (network_surface): Only HTTPS :8443 and loopback 127.0.0.1 admin ports are published -> compliant
[PASS] HARD-12-ZERO-ENV-SECRETS (secret_hygiene): Zero secret credentials or tokens appear in Config.Env of any container -> 0 violations
[PASS] HARD-13-ZERO-OOM (container_hardening): Zero containers have OOMKilled=true -> 0 OOMKilled
[PASS] HARD-14-WORKER-BOUNDS (worker_hardening): Upload worker has explicit CPU, memory, and execution bounds -> {"cpus": 1.5, "memory_mib": 1280.0, "job_timeout_seconds": "60", "worker_concurrency": "2", "max_upload_bytes": "10485760", "max_image_pixels": "40000000"}
[PASS] HARD-15-TOPOLOGY-COUNTS (container_hardening): At least 2 API replicas running; stateful stores single-node (Row 12 N/A) -> {"api": 2, "broker": 1, "grafana": 1, "haproxy": 1, "loki": 1, "openbao": 1, "otel-collector": 1, "otel-gateway": 1, "postgres": 1, "prometheus": 1, "redis": 1, "s3": 1, "tempo": 1, "worker": 1}
[PASS] HARD-16-GITIGNORE (secret_hygiene): secrets/ and .env are ignored by Git -> secrets_rc=0, env_rc=0
[PASS] SCAN-NPM-0-DEPS-REMEDIATED (dependency_scan): Unused @nestjs/platform-express removed and zod pinned >=4.6.6 -> has_platform_express=False, zod=^4.6.6
[PASS] SCAN-NPM-1-PROD-AUDIT (dependency_scan): npm audit --omit=dev succeeds with 0 High/Critical production vulnerabilities -> {"info": 0, "low": 0, "moderate": 15, "high": 0, "critical": 0, "total": 15}
[PASS] SCAN-TRIVY-FS-SECRETS (image_scan): Trivy repo filesystem scan completed with 0 leaked secrets -> secrets=0 vulns={'CRITICAL': 0, 'HIGH': 0, 'MEDIUM': 6, 'LOW': 5, 'UNKNOWN': 0} misconfig={'CRITICAL': 0, 'HIGH': 0, 'MEDIUM': 0, 'LOW': 0}
[PASS] SCAN-TRIVY-IMAGE-SECRETS (image_scan): Trivy built app image scan completed with 0 embedded secrets -> image=sha256:f51ee28c0937 secrets=0 vulns={'CRITICAL': 7, 'HIGH': 67, 'MEDIUM': 169, 'LOW': 105, 'UNKNOWN': 23}

summary={"containers": [{"cap_add": [], "cap_drop": ["ALL"], "cpus": 1.5, "docker_sock_mounted": false, "env_violations": [], "id": "911bb30545ef", "memory_mib": 1024.0, "network_mode": "mtusi-lab7_app_data", "no_new_privileges": true, "non_root": true, "oom_killed": false, "operator_dir_mounted": false, "port_violations": [], "privileged": false, "published_ports": [], "readonly_rootfs": true, "service": "api", "user": "1000:1000"}, {"cap_add": [], "cap_drop": ["ALL"], "cpus": 1.5, "docker_sock_mounted": false, "env_violations": [], "id": "a1e58efcc3b4", "memory_mib": 1024.0, "network_mode": "mtusi-lab7_app_data", "no_new_privileges": true, "non_root": true, "oom_killed": false, "operator_dir_mounted": false, "port_violations": [], "privileged": false, "published_ports": [], "readonly_rootfs": true, "service": "api", "user": "1000:1000"}, {"cap_add": [], "cap_drop": ["ALL"], "cpus": 0.5, "docker_sock_mounted": false, "env_violations": [], "id": "6457c3572408", "memory_mib": 512.0, "network_mode": "mtusi-lab7_app_data", "no_new_privileges": true, "non_root": true, "oom_killed": false, "operator_dir_mounted": false, "port_violations": [], "privileged": false, "published_ports": [], "readonly_rootfs": true, "service": "broker", "user": "100:101"}, {"cap_add": [], "cap_drop": ["ALL"], "cpus": 0.5, "docker_sock_mounted": false, "env_violations": [], "id": "686c0f9143dc", "memory_mib": 384.0, "network_mode": "mtusi-lab7_obs_net", "no_new_privileges": true, "non_root": true, "oom_killed": false, "operator_dir_mounted": false, "port_violations": [], "privileged": false, "published_ports": ["127.0.0.1:3000->3000/tcp"], "readonly_rootfs": true, "service": "grafana", "user": "472:0"}, {"cap_add": [], "cap_drop": ["ALL"], "cpus": 0.25, "docker_sock_mounted": false, "env_violations": [], "id": "0a7af304aa99", "memory_mib": 128.0, "network_mode": "mtusi-lab7_lb_api", "no_new_privileges": true, "non_root": true, "oom_killed": false, "operator_dir_mounted": false, "port_violations": [], "privileged": false, "published_ports": ["127.0.0.1:8404->8404/tcp", "0.0.0.0:8443->8443/tcp", ":::8443->8443/tcp"], "readonly_rootfs": true, "service": "haproxy", "user": "99:99"}, {"cap_add": [], "cap_drop": ["ALL"], "cpus": 0.5, "docker_sock_mounted": false, "env_violations": [], "id": "19b6b28feaf4", "memory_mib": 512.0, "network_mode": "mtusi-lab7_obs_net", "no_new_privileges": true, "non_root": true, "oom_killed": false, "operator_dir_mounted": false, "port_violations": [], "privileged": false, "published_ports": [], "readonly_rootfs": true, "service": "loki", "user": "10001:10001"}, {"cap_add": [], "cap_drop": ["ALL"], "cpus": 0.5, "docker_sock_mounted": false, "env_violations": [], "id": "1b9dcbdb8d5f", "memory_mib": 256.0, "network_mode": "mtusi-lab7_app_data", "no_new_privileges": true, "non_root": true, "oom_killed": false, "operator_dir_mounted": false, "port_violations": [], "privileged": false, "published_ports": ["127.0.0.1:8200->8200/tcp"], "readonly_rootfs": true, "service": "openbao", "user": "100:1000"}, {"cap_add": [], "cap_drop": ["ALL"], "cpus": 0.5, "docker_sock_mounted": false, "env_violations": [], "id": "e562b550ce72", "memory_mib": 256.0, "network_mode": "container:e103ae344fd110327e736eb901dd4c20a99e11fcf5b3bde790b51cae8dce4545", "no_new_privileges": true, "non_root": true, "oom_killed": false, "operator_dir_mounted": false, "port_violations": [], "privileged": false, "published_ports": [], "readonly_rootfs": true, "service": "otel-collector", "user": "10001:10001"}, {"cap_add": [], "cap_drop": ["ALL"], "cpus": 0.25, "docker_sock_mounted": false, "env_violations": [], "id": "e103ae344fd1", "memory_mib": 64.0, "network_mode": "mtusi-lab7_app_data", "no_new_privileges": true, "non_root": true, "oom_killed": false, "operator_dir_mounted": false, "port_violations": [], "privileged": false, "published_ports": [], "readonly_rootfs": true, "service": "otel-gateway", "user": "99:99"}, {"cap_add": [], "cap_drop": ["ALL"], "cpus": 1.5, "docker_sock_mounted": false, "env_violations": [], "id": "9db794c6723d", "memory_mib": 512.0, "network_mode": "mtusi-lab7_app_data", "no_new_privileges": true, "non_root": true, "oom_killed": false, "operator_dir_mounted": false, "port_violations": [], "privileged": false, "published_ports": [], "readonly_rootfs": true, "service": "postgres", "user": "70:70"}, {"cap_add": [], "cap_drop": ["ALL"], "cpus": 0.5, "docker_sock_mounted": false, "env_violations": [], "id": "0003acf632d1", "memory_mib": 768.0, "network_mode": "mtusi-lab7_obs_net", "no_new_privileges": true, "non_root": true, "oom_killed": false, "operator_dir_mounted": false, "port_violations": [], "privileged": false, "published_ports": ["127.0.0.1:9090->9090/tcp"], "readonly_rootfs": true, "service": "prometheus", "user": "65534:65534"}, {"cap_add": [], "cap_drop": ["ALL"], "cpus": 0.25, "docker_sock_mounted": false, "env_violations": [], "id": "76e72c59aeb7", "memory_mib": 128.0, "network_mode": "mtusi-lab7_app_data", "no_new_privileges": true, "non_root": true, "oom_killed": false, "operator_dir_mounted": false, "port_violations": [], "privileged": false, "published_ports": [], "readonly_rootfs": true, "service": "redis", "user": "999:1000"}, {"cap_add": [], "cap_drop": ["ALL"], "cpus": 1.0, "docker_sock_mounted": false, "env_violations": [], "id": "cc289566ca79", "memory_mib": 512.0, "network_mode": "mtusi-lab7_app_data", "no_new_privileges": true, "non_root": true, "oom_killed": false, "operator_dir_mounted": false, "port_violations": [], "privileged": false, "published_ports": ["127.0.0.1:9000->9000/tcp"], "readonly_rootfs": true, "service": "s3", "user": "1000:1000"}, {"cap_add": [], "cap_drop": ["ALL"], "cpus": 0.5, "docker_sock_mounted": false, "env_violations": [], "id": "e2e5c02ecc83", "memory_mib": 512.0, "network_mode": "mtusi-lab7_obs_net", "no_new_privileges": true, "non_root": true, "oom_killed": false, "operator_dir_mounted": false, "port_violations": [], "privileged": false, "published_ports": [], "readonly_rootfs": true, "service": "tempo", "user": "10001:10001"}, {"cap_add": [], "cap_drop": ["ALL"], "cpus": 1.5, "docker_sock_mounted": false, "env_violations": [], "id": "089f0152eaa0", "memory_mib": 1280.0, "network_mode": "mtusi-lab7_app_data", "no_new_privileges": true, "non_root": true, "oom_killed": false, "operator_dir_mounted": false, "port_violations": [], "privileged": false, "published_ports": [], "readonly_rootfs": true, "service": "worker", "user": "1000:1000"}], "npm_audit_prod": {"critical": 0, "high": 0, "info": 0, "low": 0, "moderate": 15, "total": 15}, "service_counts": {"api": 2, "broker": 1, "grafana": 1, "haproxy": 1, "loki": 1, "openbao": 1, "otel-collector": 1, "otel-gateway": 1, "postgres": 1, "prometheus": 1, "redis": 1, "s3": 1, "tempo": 1, "worker": 1}, "trivy": {"fs": {"misconfigurations": {"CRITICAL": 0, "HIGH": 0, "LOW": 0, "MEDIUM": 0}, "secret_count": 0, "secrets": [], "top_high_critical_cves": [], "vulnerabilities": {"CRITICAL": 0, "HIGH": 0, "LOW": 5, "MEDIUM": 6, "UNKNOWN": 0}}, "image": {"misconfigurations": {"CRITICAL": 0, "HIGH": 0, "LOW": 0, "MEDIUM": 0}, "secret_count": 0, "secrets": [], "top_high_critical_cves": [{"fixed": "2.6.2", "id": "CVE-2026-109518", "installed": "2.6.1", "pkg": "apt", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": null, "id": "CVE-2026-53613", "installed": "1:2.38.1-5+deb12u3", "pkg": "bsdutils", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": null, "id": "CVE-2026-53615", "installed": "1:2.38.1-5+deb12u3", "pkg": "bsdutils", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": null, "id": "CVE-2026-78410", "installed": "1:2.38.1-5+deb12u3", "pkg": "bsdutils", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": null, "id": "CVE-2026-41992", "installed": "1.12-1", "pkg": "gzip", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": null, "id": "CVE-2026-54369", "installed": "2.3.1-3", "pkg": "libacl1", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": "2.6.2", "id": "CVE-2026-109518", "installed": "2.6.1", "pkg": "libapt-pkg6.0", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": null, "id": "CVE-2026-53613", "installed": "2.38.1-5+deb12u3", "pkg": "libblkid1", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": null, "id": "CVE-2026-53615", "installed": "2.38.1-5+deb12u3", "pkg": "libblkid1", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": null, "id": "CVE-2026-78410", "installed": "2.38.1-5+deb12u3", "pkg": "libblkid1", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": "1:2.66-4+deb12u3", "id": "CVE-2026-4878", "installed": "1:2.66-4+deb12u2+b2", "pkg": "libcap2", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": "3.7.9-2+deb12u7", "id": "CVE-2026-33845", "installed": "3.7.9-2+deb12u6", "pkg": "libgnutls30", "severity": "CRITICAL", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": "3.7.9-2+deb12u7", "id": "CVE-2026-42010", "installed": "3.7.9-2+deb12u6", "pkg": "libgnutls30", "severity": "CRITICAL", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": "3.7.9-2+deb12u7", "id": "CVE-2026-33846", "installed": "3.7.9-2+deb12u6", "pkg": "libgnutls30", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": "3.7.9-2+deb12u7", "id": "CVE-2026-3833", "installed": "3.7.9-2+deb12u6", "pkg": "libgnutls30", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": "3.7.9-2+deb12u7", "id": "CVE-2026-42009", "installed": "3.7.9-2+deb12u6", "pkg": "libgnutls30", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": null, "id": "CVE-2026-53613", "installed": "2.38.1-5+deb12u3", "pkg": "libmount1", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": null, "id": "CVE-2026-53615", "installed": "2.38.1-5+deb12u3", "pkg": "libmount1", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": null, "id": "CVE-2026-78410", "installed": "2.38.1-5+deb12u3", "pkg": "libmount1", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}, {"fixed": null, "id": "CVE-2025-6020", "installed": "1.5.2-6+deb12u2", "pkg": "libpam-modules", "severity": "HIGH", "target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"}], "vulnerabilities": {"CRITICAL": 7, "HIGH": 67, "LOW": 105, "MEDIUM": 169, "UNKNOWN": 23}}}, "worker_limits": {"cpus": 1.5, "job_timeout_seconds": "60", "max_image_pixels": "40000000", "max_upload_bytes": "10485760", "memory_mib": 1280.0, "worker_concurrency": "2"}}
