Ready. Paste Terraform plan, Kubernetes manifest, or IAM policy JSON.
Risk Score
0
Critical
0
High
0
Medium
0

Security Policy Findings (19 Rules Active)

Rule ID Severity Resource Path Finding Remediation
No audit executed yet.

Technical Reference: Deterministic Policy Evaluation & Risk Scoring

Infrastructure-as-Code (IaC) plans frequently contain resolved secrets, internal VPC topology, account identifiers, and database hostnames that security teams cannot safely paste into external cloud linters. Evaluating terraform show -json plans, Kubernetes pod specs, and IAM policy documents inside local browser memory eliminates third-party metadata leakage while providing repeatable, zero-latency policy verification.

1. Terraform Plan Traversal & Port-Range Interval Intersection

Rather than scanning raw HCL text with fragile regular expressions, ZERO.OPS inspects resolved resource_changes[].change.after objects generated by Terraform, automatically skipping resources scheduled strictly for deletion (actions: ["delete"]). For security group ingress rules exposed to 0.0.0.0/0 or ::/0, rule TF-NET-001 evaluates numeric port-interval intersection against high-risk administrative and database ports:

Exposed(P_sensitive) <==> (proto in {"-1", "all"}) OR exists p in {21, 22, 23, 3306, 3389, 5432, 6379, 9200, 27017} : from_port <= p <= to_port

Additional Terraform checks flag public S3 bucket ACLs, disabled aws_s3_bucket_public_access_block controls, unencrypted RDS or EBS volumes, publicly routable databases, disabled CloudTrail logging, and embedded JSON IAM policies inside role definitions.

2. IAM Privilege-Escalation & Wildcard Policy Algebra

AWS IAM evaluation grants access whenever an explicit Allow matches without a corresponding Deny. Rule IAM-ADMIN-001 flags full administrative statements where both Action and Resource contain wildcards (*). Beyond full wildcards, rule IAM-PRIVESC-001 inspects unconditioned statements granting mutation primitives such as iam:PassRole, iam:AttachRolePolicy, iam:PutUserPolicy, and iam:CreatePolicyVersion, which allow lateral privilege escalation into administrator roles if left unconstrained by Condition blocks.

3. Kubernetes Pod Security Standards Enforcement

Kubernetes workloads are normalized across Pod, Deployment, StatefulSet, DaemonSet, Job, CronJob, and List manifests, inspecting both standard containers[] and initContainers[]. Rules enforce Pod Security Standards (Restricted profile): rejecting privileged: true, root UID 0 execution, hostNetwork/hostPID/hostPath escapes, dangerous Linux capabilities (SYS_ADMIN, NET_ADMIN, ALL), missing CPU/memory limits, writable root filesystems, and literal secret strings inside environment variables.

4. Weighted Deterministic Risk Score

To summarize audit posture across heterogeneous infrastructure payloads, the linter computes a deterministic weighted severity index where critical exposure vectors carry higher weight than defense-in-depth hardening warnings:

RiskScore = 25 * count(CRITICAL) + 10 * count(HIGH) + 4 * count(MEDIUM)

A RiskScore of zero indicates full compliance across all 19 deterministic rules; CI/CD reviewers can export the structured JSON report directly for pull-request evidence archiving.

5. Recursive Secret Key Auditing & Variable Reference Filtering

Teams occasionally pass plaintext database passwords, API tokens, or signing keys directly inside Terraform variables blocks or Kubernetes env[] arrays. Rules TF-SEC-001 and K8S-SECRET-001 walk every nested object and array path recursively looking for sensitive attribute identifiers while ignoring symbolic Terraform references (var.* and ${...}) and already-sanitized [REDACTED] placeholders. When a Kubernetes container defines a literal value instead of valueFrom.secretKeyRef for a credential variable, the linter flags a CRITICAL finding with the exact container and variable path so engineers can migrate secrets to sealed-secret or KMS-backed injection prior to cluster deployment.

6. Storage Encryption & Audit Telemetry Checks

Beyond perimeter ingress and identity policies, compliance frameworks including SOC 2 and ISO 27001 require encryption at rest and immutable audit logging. Rules TF-RDS-001, TF-ENC-001, and TF-LOG-001 inspect relational database clusters, EBS block volumes, and CloudTrail trails to catch explicitly disabled encryption flags, publicly routable RDS endpoints, and single-region logging gaps before provisioning executes.

7. Zero-Dependency Browser & CI Portability

Because the underlying rule engine is authored as a pure ES6+ module with zero third-party AST dependencies, the exact same linting logic runs inside offline browser sandboxes and native Node.js CI pipelines without package installation, eliminating supply-chain exposure when auditing sensitive production cloud topologies.