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.4metadata:5 source: https://skillmd.com/skills/masriyan/cloud-security-automation6---78# Cloud Security Automation910## Authorization Boundary1112- Require account IDs, role ARNs/principals, and read-only credentials in scope before any live query.13- Default to read-only APIs and `--dry-run`/plan mode for any change.14- Do not exfiltrate customer data; redact resource names if shared outside the engagement.1516## Posture Workflow17181. Inventory: accounts, subscriptions, projects, regions, services in use, owners, tags.192. Baseline: pull config via `aws configservice`, `az resource graph`, `gcloud asset`, plus `prowler`, `scout-suite`, `cloudsploit`, `steampipe`.203. Score: map findings to CIS, NIST 800-53, Well-Architected, and CSA CCM.214. IaC pre-flight: `checkov`, `tfsec`, `kics`, `terrascan`, `cfn-nag` on PRs; block on critical.225. Remediate: produce least-privilege IAM diffs, network restrictions, encryption defaults, and logging fixes as code, not console clicks.236. Drift watch: compare desired state to live; alert on out-of-band changes.2425## Focus Areas2627- IAM: wildcard actions, cross-account trust, unused roles, long-lived keys, OIDC federation.28- Network: public S3/Blob/GCS, 0.0.0.0/0 ingress, exposed databases, lateral paths.29- Data: encryption at rest, KMS key policies, backup posture, PII tagging.30- Logging: CloudTrail/Activity Logs/Audit Logs coverage, retention, SIEM ingestion.31- Identity: MFA, conditional access, SCP/Org Policy guardrails, break-glass accounts.3233## Output Contract3435- `inventory.json`, `findings.csv` (with severity, control, evidence, fix).36- `iac-patches/`: ready-to-PR diffs.37- `runbooks/`: incident-grade response for each top finding.38- `posture-trend.md`: weekly delta with regressions called out.