1---2name: cloud-security-automation3description: Cloud security posture skill for AWS, Azure, GCP, and multi-cloud. Covers IAM least-privilege, key and secret hygiene, network exposure, data protection, logging coverage, IaC scanning (Terraform, CloudFormation, Bicep, Pulumi), CSPM remediation, and landing-zone hardening. Use for misconfig discovery, IaC review, and automated drift-and-fix workflows on cloud accounts you own.4---56# Cloud Security Automation78## Authorization Boundary910- Require account IDs, role ARNs/principals, and read-only credentials in scope before any live query.11- Default to read-only APIs and `--dry-run`/plan mode for any change.12- Do not exfiltrate customer data; redact resource names if shared outside the engagement.1314## Posture Workflow15161. Inventory: accounts, subscriptions, projects, regions, services in use, owners, tags.172. Baseline: pull config via `aws configservice`, `az resource graph`, `gcloud asset`, plus `prowler`, `scout-suite`, `cloudsploit`, `steampipe`.183. Score: map findings to CIS, NIST 800-53, Well-Architected, and CSA CCM.194. IaC pre-flight: `checkov`, `tfsec`, `kics`, `terrascan`, `cfn-nag` on PRs; block on critical.205. Remediate: produce least-privilege IAM diffs, network restrictions, encryption defaults, and logging fixes as code, not console clicks.216. Drift watch: compare desired state to live; alert on out-of-band changes.2223## Focus Areas2425- IAM: wildcard actions, cross-account trust, unused roles, long-lived keys, OIDC federation.26- Network: public S3/Blob/GCS, 0.0.0.0/0 ingress, exposed databases, lateral paths.27- Data: encryption at rest, KMS key policies, backup posture, PII tagging.28- Logging: CloudTrail/Activity Logs/Audit Logs coverage, retention, SIEM ingestion.29- Identity: MFA, conditional access, SCP/Org Policy guardrails, break-glass accounts.3031## Output Contract3233- `inventory.json`, `findings.csv` (with severity, control, evidence, fix).34- `iac-patches/`: ready-to-PR diffs.35- `runbooks/`: incident-grade response for each top finding.36- `posture-trend.md`: weekly delta with regressions called out.