Skill v1.0.0
currentAutomated scan100/100name: tenet-infra-cloud description: "Audits IaC and cloud risks: exposure, IAM wildcards, encryption, buckets, Kubernetes, and drift." when_to_use: "tenet infra-cloud, tenet-infra-cloud dimension, Tenet infrastructure and cloud audit. Run via /tenet-skills:tenet-orchestrator or directly with /tenet-skills:tenet-infra-cloud." model: sonnet disable-model-invocation: true allowed-tools: Bash Read Grep Glob Write metadata: version: "1.0.0"
Tenet Infrastructure & Cloud
Audits source-controlled infrastructure configuration for cloud and platform risks. This complements tenet-security by focusing on deployed infrastructure boundaries rather than application code.
Calibration — read first
Follow shared/scan-discipline.md (complete every step, enumerate rather than sample, and §2a: report only issues that actually exist), shared/verification.md (every finding is confirmed against the code before it ships; unconfirmed candidates are dropped, not demoted), and shared/severity.md (severity is confirmed impact, never a hedge for doubt).
A finding must exist in this codebase on a path that can run. Do not report hypotheticals, dead code, style preferences, or anything an upstream check already prevents. Zero findings for a step is the normal result on healthy code; do not fill a step to show you looked. Do not overthink it: read the code and its context, decide, move on.
Language Support Matrix
support:native: [terraform, yaml, json, dockerfile]heuristic: [shell, markdown]skip: [typescript, javascript, python, go, rust, java]
Toolchain Inputs
Prefer deterministic/static tool output when present:
.healthcheck/toolchain/tflint.json.healthcheck/toolchain/checkov.json.healthcheck/toolchain/tfsec.json.healthcheck/toolchain/kube_linter.json.healthcheck/toolchain/conftest.json
Procedure
Step 0: Detect Applicability
Applicable when the repo contains Terraform, Pulumi, CloudFormation, Kubernetes manifests, Helm charts, Docker Compose, ECS/task definitions, or cloud deployment YAML.
If none exist, write score: null, applicable: false.
Step 1: Public Exposure
Check for:
0.0.0.0/0,::/0, public load balancers, public S3/storage buckets- Kubernetes services of type
LoadBalanceror ingress without host/TLS constraints - Docker Compose
portsexposing databases/cache publicly
Severity:
critical: databases, admin panels, object storage, or internal services exposed publiclymajor: broad public ingress on app services without TLS/auth evidenceminor: overly broad egress or management ports in dev-only configs
Step 2: IAM and Secrets
Check IAM policies for wildcards, privileged roles, long-lived keys, secrets embedded in IaC, and CI roles with excessive permissions.
Severity:
critical:Action: "*",Resource: "*", admin policies, or embedded cloud credentialsmajor: broad service wildcards on production rolesminor: missing condition keys or environment scoping
Step 3: Encryption and Data Protection
Check storage, database, queue, and volume resources for encryption at rest, TLS, backup, and deletion protection.
Severity:
major: production data store lacks encryption, backup, or deletion protectionminor: non-production resource lacks encryption or lifecycle settingsinfo: encryption exists but key ownership/rotation is not documented
Step 4: Kubernetes and Container Security
Check manifests for:
privileged: true, hostPath, hostNetwork, root user, missing resource limits- missing readiness/liveness probes
- no network policy in namespaces with multiple services
Severity follows blast radius: critical for privileged host access, major for missing limits/probes/network isolation, minor for namespace hygiene.
Step 5: Drift and Manual Infrastructure
If deployment docs mention manual console setup with no IaC equivalent, flag drift risk.
Severity:
major: critical resources documented only as manual setupminor: non-critical manual setup not codified
Step 6: Compile and Score
Every finding uses:
dimension: "infra-cloud"confidence: "deterministic"for toolchain output,nativefor parsed IaC,heuristicfor grep/doc checksfix_promptfollowingshared/fix_prompt_template.mdLine: N/Ain thefix_promptand top-levelline: nullfor cloud-account-level gaps without exact source lines- Every
fix_promptLocation section MUST include- File:,- Line:, and- Dimension:entries
Output
.healthcheck/reports/infra-cloud.json
Constraints
- Treat examples and local-only Compose files more gently unless they are used by CI/deploy docs.
- Do not require cloud-provider APIs; this skill is repo evidence only.
- Deduplicate with
tenet-security; keep IaC/cloud posture findings here.