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