[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E4BVSST9A306AMCJE3P4EP":3,"skill-same:01M7E4BVSST9A306AMCJE3P4EP":88},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M7E4BVSST9A306AMCJE3P4EP","implementing-cloud-security-posture-management",null,"Continuously monitor multi-cloud environments (AWS, Azure, GCP) for misconfigurations, compliance violations, and security risks using Prowler, ScoutSuite, AWS Security Hub, Microsoft Defender for Cloud, and GCP Security Command Center. Use for cross-cloud posture monitoring, CIS\u002FSOC 2\u002FPCI DSS compliance, or drift-detection workflows; not for runtime workload protection or application security testing.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-cloud-security-posture-management\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-cloud-security-posture-management\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: implementing-cloud-security-posture-management\ndescription: 'Continuously monitor multi-cloud environments (AWS, Azure, GCP) for\n  misconfigurations, compliance violations, and security risks using Prowler, ScoutSuite,\n  AWS Security Hub, Microsoft Defender for Cloud, and GCP Security Command Center.\n  Use for cross-cloud posture monitoring, CIS\u002FSOC 2\u002FPCI DSS compliance, or drift-detection\n  workflows; not for runtime workload protection or application security testing.\n\n  '\ndomain: cybersecurity\nsubdomain: cloud-security\ntags:\n- cloud-security\n- cspm\n- multi-cloud\n- compliance\n- prowler\n- scoutsuite\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.IR-01\n- ID.AM-08\n- GV.SC-06\n- DE.CM-01\nmitre_attack:\n- T1078.004\n- T1530\n- T1537\n- T1580\n---\n\n# Implementing Cloud Security Posture Management\n\n## When to Use\n\n- When establishing continuous security monitoring across AWS, Azure, and GCP environments\n- When compliance requirements demand automated posture assessment against CIS, SOC 2, or PCI DSS\n- When security teams need visibility into cloud misconfigurations across multiple accounts and subscriptions\n- When building a security operations workflow that detects and remediates drift from security baselines\n- When migrating workloads to the cloud and need to enforce security guardrails\n\n**Do not use** for runtime workload protection (use CWPP tools like Falco or Aqua), for application security testing (use DAST\u002FSAST tools), or for network intrusion detection (use cloud-native IDS like GuardDuty or Network Watcher).\n\n## Prerequisites\n\n- Multi-cloud credentials with read-only security audit permissions across all target environments\n- Prowler v3+ installed (`pip install prowler`)\n- ScoutSuite installed (`pip install scoutsuite`)\n- AWS Config, Azure Policy, and GCP Organization Policy enabled in respective environments\n- Central logging destination (S3 bucket, Log Analytics Workspace, or Cloud Storage) for findings aggregation\n- Notification channels configured (Slack, PagerDuty, email) for critical finding alerts\n\n## Workflow\n\n### Step 1: Deploy Cloud-Native CSPM Services\n\nEnable the built-in CSPM capabilities in each cloud provider for baseline posture assessment.\n\n```bash\n# AWS: Enable Security Hub with FSBP and CIS standards\naws securityhub enable-security-hub --enable-default-standards\naws securityhub batch-enable-standards --standards-subscription-requests \\\n  '[{\"StandardsArn\":\"arn:aws:securityhub:::standards\u002Fcis-aws-foundations-benchmark\u002Fv\u002F1.4.0\"}]'\n\n# Azure: Enable Microsoft Defender for Cloud (CSPM tier)\naz security pricing create --name CloudPosture --tier standard\naz security auto-provisioning-setting update --name default --auto-provision on\n\n# GCP: Enable Security Command Center Premium\ngcloud services enable securitycenter.googleapis.com\ngcloud scc settings update --organization=ORG_ID \\\n  --enable-asset-discovery\n```\n\n### Step 2: Run Prowler for Multi-Cloud Assessment\n\nExecute Prowler to perform comprehensive security checks across all three cloud providers.\n\n```bash\n# AWS assessment with all CIS checks\nprowler aws \\\n  --profile production \\\n  -M json-ocsf csv html \\\n  -o .\u002Fprowler-results\u002Faws\u002F \\\n  --compliance cis_1.4_aws cis_1.5_aws\n\n# Azure assessment\nprowler azure \\\n  --subscription-ids SUB_ID_1 SUB_ID_2 \\\n  -M json-ocsf csv html \\\n  -o .\u002Fprowler-results\u002Fazure\u002F \\\n  --compliance cis_2.0_azure\n\n# GCP assessment\nprowler gcp \\\n  --project-ids project-1 project-2 \\\n  -M json-ocsf csv html \\\n  -o .\u002Fprowler-results\u002Fgcp\u002F \\\n  --compliance cis_2.0_gcp\n\n# View summary across all providers\nprowler aws --list-compliance\n```\n\n### Step 3: Run ScoutSuite for Cross-Cloud Comparison\n\nUse ScoutSuite for a unified multi-cloud security assessment with visual reporting.\n\n```bash\n# Scan AWS\npython3 -m ScoutSuite aws --profile production \\\n  --report-dir .\u002Fscoutsuite\u002Faws\u002F\n\n# Scan Azure\npython3 -m ScoutSuite azure --cli \\\n  --all-subscriptions \\\n  --report-dir .\u002Fscoutsuite\u002Fazure\u002F\n\n# Scan GCP\npython3 -m ScoutSuite gcp --user-account \\\n  --all-projects \\\n  --report-dir .\u002Fscoutsuite\u002Fgcp\u002F\n\n# Each produces an HTML report with risk-scored findings\n```\n\n### Step 4: Build Automated Compliance Monitoring Pipeline\n\nCreate a scheduled pipeline that runs CSPM checks daily and routes findings to appropriate channels.\n\n```bash\n# Create a daily Prowler scan with EventBridge + CodeBuild (AWS)\ncat > buildspec.yml \u003C\u003C 'EOF'\nversion: 0.2\nphases:\n  install:\n    commands:\n      - pip install prowler\n  build:\n    commands:\n      - prowler aws -M json-ocsf -o s3:\u002F\u002Fsecurity-findings-bucket\u002Fprowler\u002F$(date +%Y%m%d)\u002F\n      - prowler aws --compliance cis_1.5_aws -M csv -o s3:\u002F\u002Fsecurity-findings-bucket\u002Fprowler\u002Fcompliance\u002F\n  post_build:\n    commands:\n      - |\n        CRITICAL=$(cat output\u002F*.json | grep -c '\"CRITICAL\"')\n        if [ \"$CRITICAL\" -gt 0 ]; then\n          aws sns publish --topic-arn arn:aws:sns:us-east-1:ACCOUNT:security-alerts \\\n            --subject \"Prowler: $CRITICAL critical findings\" \\\n            --message \"Review at s3:\u002F\u002Fsecurity-findings-bucket\u002Fprowler\u002F$(date +%Y%m%d)\u002F\"\n        fi\nEOF\n\n# Schedule with EventBridge\naws events put-rule \\\n  --name daily-prowler-scan \\\n  --schedule-expression \"cron(0 6 * * ? *)\" \\\n  --state ENABLED\n```\n\n### Step 5: Configure Finding Aggregation and Deduplication\n\nAggregate findings from multiple CSPM tools and cloud providers into a unified view.\n\n```python\n# findings_aggregator.py - Normalize and deduplicate CSPM findings\nimport json\nimport hashlib\nfrom datetime import datetime\n\ndef normalize_finding(finding, source):\n    \"\"\"Normalize findings from different CSPM tools to a common format.\"\"\"\n    normalized = {\n        'id': hashlib.sha256(f\"{finding.get('ResourceId','')}{finding.get('CheckId','')}\".encode()).hexdigest()[:16],\n        'source': source,\n        'cloud': finding.get('Provider', 'unknown'),\n        'account': finding.get('AccountId', finding.get('SubscriptionId', '')),\n        'region': finding.get('Region', ''),\n        'resource_type': finding.get('ResourceType', ''),\n        'resource_id': finding.get('ResourceId', ''),\n        'severity': finding.get('Severity', 'INFO').upper(),\n        'status': finding.get('Status', 'FAIL'),\n        'title': finding.get('CheckTitle', finding.get('Title', '')),\n        'description': finding.get('StatusExtended', ''),\n        'compliance': finding.get('Compliance', {}),\n        'remediation': finding.get('Remediation', {}).get('Recommendation', {}).get('Text', ''),\n        'timestamp': datetime.utcnow().isoformat()\n    }\n    return normalized\n\ndef aggregate_findings(prowler_file, scoutsuite_file):\n    findings = {}\n    for file_path, source in [(prowler_file, 'prowler'), (scoutsuite_file, 'scoutsuite')]:\n        with open(file_path) as f:\n            for line in f:\n                raw = json.loads(line)\n                normalized = normalize_finding(raw, source)\n                if normalized['status'] == 'FAIL':\n                    findings[normalized['id']] = normalized\n    return sorted(findings.values(), key=lambda x: {'CRITICAL':0,'HIGH':1,'MEDIUM':2,'LOW':3}.get(x['severity'],4))\n```\n\n### Step 6: Implement Drift Detection and Auto-Remediation\n\nSet up automated responses to configuration drift that violates security baselines.\n\n```bash\n# AWS Config auto-remediation for non-compliant S3 buckets\naws configservice put-remediation-configurations --remediation-configurations '[{\n  \"ConfigRuleName\": \"s3-bucket-public-read-prohibited\",\n  \"TargetType\": \"SSM_DOCUMENT\",\n  \"TargetId\": \"AWS-DisableS3BucketPublicReadWrite\",\n  \"Parameters\": {\n    \"S3BucketName\": {\"ResourceValue\": {\"Value\": \"RESOURCE_ID\"}}\n  },\n  \"Automatic\": true,\n  \"MaximumAutomaticAttempts\": 3,\n  \"RetryAttemptSeconds\": 60\n}]'\n\n# Azure Policy for auto-remediation\naz policy assignment create \\\n  --name \"enforce-storage-encryption\" \\\n  --policy \"\u002Fproviders\u002FMicrosoft.Authorization\u002FpolicyDefinitions\u002F404c3081-a854-4457-ae30-26a93ef643f9\" \\\n  --scope \"\u002Fsubscriptions\u002FSUB_ID\" \\\n  --enforcement-mode Default\n\n# GCP Organization Policy constraint\ngcloud resource-manager org-policies set-policy policy.yaml --organization=ORG_ID\n# policy.yaml: constraint: constraints\u002Fstorage.publicAccessPrevention, enforcement: true\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| CSPM | Cloud Security Posture Management, the practice of continuously monitoring cloud infrastructure for misconfigurations and compliance violations |\n| Configuration Drift | Unintended changes to cloud resource configurations that deviate from the approved security baseline over time |\n| Security Baseline | A documented set of minimum security configuration requirements that all cloud resources must meet |\n| Compliance Framework | A structured set of security controls and requirements (CIS, SOC 2, PCI DSS, NIST) against which cloud configurations are evaluated |\n| Finding Severity | Risk classification of a misconfiguration based on exploitability and potential impact (Critical, High, Medium, Low, Informational) |\n| Auto-Remediation | Automated corrective action that restores a non-compliant resource to its required configuration without manual intervention |\n\n## Tools & Systems\n\n- **Prowler**: Open-source multi-cloud security assessment tool with 300+ checks aligned to CIS, PCI DSS, HIPAA, and NIST\n- **ScoutSuite**: Multi-cloud security auditing tool producing risk-scored HTML reports from API-collected configuration data\n- **AWS Security Hub**: AWS-native CSPM with aggregated findings and compliance standard evaluation\n- **Microsoft Defender for Cloud**: Azure-native CSPM with secure score, regulatory compliance, and workload protection\n- **GCP Security Command Center**: GCP-native security platform with asset inventory, vulnerability scanning, and compliance monitoring\n\n## Common Scenarios\n\n### Scenario: Establishing CSPM for a Multi-Cloud Enterprise\n\n**Context**: An enterprise runs production workloads across AWS (primary), Azure (identity and Microsoft services), and GCP (data analytics). The security team needs unified posture visibility.\n\n**Approach**:\n1. Enable cloud-native CSPM in each provider: Security Hub, Defender for Cloud, SCC\n2. Deploy Prowler scans as daily scheduled jobs in each environment via CI\u002FCD pipelines\n3. Normalize and aggregate findings into a central data lake using the aggregation script\n4. Build dashboards in Grafana or Kibana showing posture scores by cloud, account, and severity\n5. Configure auto-remediation for known-good fixes (public access blocks, encryption enablement)\n6. Route CRITICAL findings to PagerDuty for immediate response and HIGH findings to Jira tickets\n7. Produce weekly compliance reports for executive stakeholders showing trend data\n\n**Pitfalls**: Running CSPM tools with overly broad permissions creates a high-value target. Use dedicated service accounts with read-only permissions and rotate credentials regularly. Different CSPM tools may report the same misconfiguration differently, so deduplication logic must account for varying resource ID formats and finding titles across tools.\n\n## Output Format\n\n```\nCloud Security Posture Management Dashboard\n==============================================\nOrganization: Acme Corp\nAssessment Date: 2026-02-23\nEnvironments: AWS (12 accounts), Azure (8 subscriptions), GCP (5 projects)\n\nPOSTURE SCORES:\n  AWS:   82\u002F100  (+3 from last week)\n  Azure: 76\u002F100  (-1 from last week)\n  GCP:   79\u002F100  (+5 from last week)\n  Overall: 79\u002F100\n\nFINDINGS BY SEVERITY:\n  Critical:  18 (AWS: 7, Azure: 8, GCP: 3)\n  High:      67 (AWS: 28, Azure: 24, GCP: 15)\n  Medium:   234 (AWS: 98, Azure: 87, GCP: 49)\n  Low:      412 (AWS: 178, Azure: 134, GCP: 100)\n\nTOP FAILING CATEGORIES:\n  1. IAM overly permissive policies     (43 findings)\n  2. Encryption not enabled at rest      (38 findings)\n  3. Public network exposure             (29 findings)\n  4. Logging and monitoring gaps         (24 findings)\n  5. Unused credentials and keys         (19 findings)\n\nAUTO-REMEDIATION (Last 7 Days):\n  Findings auto-remediated:  34\n  Manual remediation pending: 51\n  Exceptions approved:        8\n```\n","# Implementing Cloud Security Posture Management\n\n## When to Use\n\n- When establishing continuous security monitoring across AWS, Azure, and GCP environments\n- When compliance requirements demand automated posture assessment against CIS, SOC 2, or PCI DSS\n- When security teams need visibility into cloud misconfigurations across multiple accounts and subscriptions\n- When building a security operations workflow that detects and remediates drift from security baselines\n- When migrating workloads to the cloud and need to enforce security guardrails\n\n**Do not use** for runtime workload protection (use CWPP tools like Falco or Aqua), for application security testing (use DAST\u002FSAST tools), or for network intrusion detection (use cloud-native IDS like GuardDuty or Network Watcher).\n\n## Prerequisites\n\n- Multi-cloud credentials with read-only security audit permissions across all target environments\n- Prowler v3+ installed (`pip install prowler`)\n- ScoutSuite installed (`pip install scoutsuite`)\n- AWS Config, Azure Policy, and GCP Organization Policy enabled in respective environments\n- Central logging destination (S3 bucket, Log Analytics Workspace, or Cloud Storage) for findings aggregation\n- Notification channels configured (Slack, PagerDuty, email) for critical finding alerts\n\n## Workflow\n\n### Step 1: Deploy Cloud-Native CSPM Services\n\nEnable the built-in CSPM capabilities in each cloud provider for baseline posture assessment.\n\n```bash\n# AWS: Enable Security Hub with FSBP and CIS standards\naws securityhub enable-security-hub --enable-default-standards\naws securityhub batch-enable-standards --standards-subscription-requests \\\n  '[{\"StandardsArn\":\"arn:aws:securityhub:::standards\u002Fcis-aws-foundations-benchmark\u002Fv\u002F1.4.0\"}]'\n\n# Azure: Enable Microsoft Defender for Cloud (CSPM tier)\naz security pricing create --name CloudPosture --tier standard\naz security auto-provisioning-setting update --name default --auto-provision on\n\n# GCP: Enable Security Command Center Premium\ngcloud services enable securitycenter.googleapis.com\ngcloud scc settings update --organization=ORG_ID \\\n  --enable-asset-discovery\n```\n\n### Step 2: Run Prowler for Multi-Cloud Assessment\n\nExecute Prowler to perform comprehensive security checks across all three cloud providers.\n\n```bash\n# AWS assessment with all CIS checks\nprowler aws \\\n  --profile production \\\n  -M json-ocsf csv html \\\n  -o .\u002Fprowler-results\u002Faws\u002F \\\n  --compliance cis_1.4_aws cis_1.5_aws\n\n# Azure assessment\nprowler azure \\\n  --subscription-ids SUB_ID_1 SUB_ID_2 \\\n  -M json-ocsf csv html \\\n  -o .\u002Fprowler-results\u002Fazure\u002F \\\n  --compliance cis_2.0_azure\n\n# GCP assessment\nprowler gcp \\\n  --project-ids project-1 project-2 \\\n  -M json-ocsf csv html \\\n  -o .\u002Fprowler-results\u002Fgcp\u002F \\\n  --compliance cis_2.0_gcp\n\n# View summary across all providers\nprowler aws --list-compliance\n```\n\n### Step 3: Run ScoutSuite for Cross-Cloud Comparison\n\nUse ScoutSuite for a unified multi-cloud security assessment with visual reporting.\n\n```bash\n# Scan AWS\npython3 -m ScoutSuite aws --profile production \\\n  --report-dir .\u002Fscoutsuite\u002Faws\u002F\n\n# Scan Azure\npython3 -m ScoutSuite azure --cli \\\n  --all-subscriptions \\\n  --report-dir .\u002Fscoutsuite\u002Fazure\u002F\n\n# Scan GCP\npython3 -m ScoutSuite gcp --user-account \\\n  --all-projects \\\n  --report-dir .\u002Fscoutsuite\u002Fgcp\u002F\n\n# Each produces an HTML report with risk-scored findings\n```\n\n### Step 4: Build Automated Compliance Monitoring Pipeline\n\nCreate a scheduled pipeline that runs CSPM checks daily and routes findings to appropriate channels.\n\n```bash\n# Create a daily Prowler scan with EventBridge + CodeBuild (AWS)\ncat > buildspec.yml \u003C\u003C 'EOF'\nversion: 0.2\nphases:\n  install:\n    commands:\n      - pip install prowler\n  build:\n    commands:\n      - prowler aws -M json-ocsf -o s3:\u002F\u002Fsecurity-findings-bucket\u002Fprowler\u002F$(date +%Y%m%d)\u002F\n      - prowler aws --compliance cis_1.5_aws -M csv -o s3:\u002F\u002Fsecurity-findings-bucket\u002Fprowler\u002Fcompliance\u002F\n  post_build:\n    commands:\n      - |\n        CRITICAL=$(cat output\u002F*.json | grep -c '\"CRITICAL\"')\n        if [ \"$CRITICAL\" -gt 0 ]; then\n          aws sns publish --topic-arn arn:aws:sns:us-east-1:ACCOUNT:security-alerts \\\n            --subject \"Prowler: $CRITICAL critical findings\" \\\n            --message \"Review at s3:\u002F\u002Fsecurity-findings-bucket\u002Fprowler\u002F$(date +%Y%m%d)\u002F\"\n        fi\nEOF\n\n# Schedule with EventBridge\naws events put-rule \\\n  --name daily-prowler-scan \\\n  --schedule-expression \"cron(0 6 * * ? *)\" \\\n  --state ENABLED\n```\n\n### Step 5: Configure Finding Aggregation and Deduplication\n\nAggregate findings from multiple CSPM tools and cloud providers into a unified view.\n\n```python\n# findings_aggregator.py - Normalize and deduplicate CSPM findings\nimport json\nimport hashlib\nfrom datetime import datetime\n\ndef normalize_finding(finding, source):\n    \"\"\"Normalize findings from different CSPM tools to a common format.\"\"\"\n    normalized = {\n        'id': hashlib.sha256(f\"{finding.get('ResourceId','')}{finding.get('CheckId','')}\".encode()).hexdigest()[:16],\n        'source': source,\n        'cloud': finding.get('Provider', 'unknown'),\n        'account': finding.get('AccountId', finding.get('SubscriptionId', '')),\n        'region': finding.get('Region', ''),\n        'resource_type': finding.get('ResourceType', ''),\n        'resource_id': finding.get('ResourceId', ''),\n        'severity': finding.get('Severity', 'INFO').upper(),\n        'status': finding.get('Status', 'FAIL'),\n        'title': finding.get('CheckTitle', finding.get('Title', '')),\n        'description': finding.get('StatusExtended', ''),\n        'compliance': finding.get('Compliance', {}),\n        'remediation': finding.get('Remediation', {}).get('Recommendation', {}).get('Text', ''),\n        'timestamp': datetime.utcnow().isoformat()\n    }\n    return normalized\n\ndef aggregate_findings(prowler_file, scoutsuite_file):\n    findings = {}\n    for file_path, source in [(prowler_file, 'prowler'), (scoutsuite_file, 'scoutsuite')]:\n        with open(file_path) as f:\n            for line in f:\n                raw = json.loads(line)\n                normalized = normalize_finding(raw, source)\n                if normalized['status'] == 'FAIL':\n                    findings[normalized['id']] = normalized\n    return sorted(findings.values(), key=lambda x: {'CRITICAL':0,'HIGH':1,'MEDIUM':2,'LOW':3}.get(x['severity'],4))\n```\n\n### Step 6: Implement Drift Detection and Auto-Remediation\n\nSet up automated responses to configuration drift that violates security baselines.\n\n```bash\n# AWS Config auto-remediation for non-compliant S3 buckets\naws configservice put-remediation-configurations --remediation-configurations '[{\n  \"ConfigRuleName\": \"s3-bucket-public-read-prohibited\",\n  \"TargetType\": \"SSM_DOCUMENT\",\n  \"TargetId\": \"AWS-DisableS3BucketPublicReadWrite\",\n  \"Parameters\": {\n    \"S3BucketName\": {\"ResourceValue\": {\"Value\": \"RESOURCE_ID\"}}\n  },\n  \"Automatic\": true,\n  \"MaximumAutomaticAttempts\": 3,\n  \"RetryAttemptSeconds\": 60\n}]'\n\n# Azure Policy for auto-remediation\naz policy assignment create \\\n  --name \"enforce-storage-encryption\" \\\n  --policy \"\u002Fproviders\u002FMicrosoft.Authorization\u002FpolicyDefinitions\u002F404c3081-a854-4457-ae30-26a93ef643f9\" \\\n  --scope \"\u002Fsubscriptions\u002FSUB_ID\" \\\n  --enforcement-mode Default\n\n# GCP Organization Policy constraint\ngcloud resource-manager org-policies set-policy policy.yaml --organization=ORG_ID\n# policy.yaml: constraint: constraints\u002Fstorage.publicAccessPrevention, enforcement: true\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| CSPM | Cloud Security Posture Management, the practice of continuously monitoring cloud infrastructure for misconfigurations and compliance violations |\n| Configuration Drift | Unintended changes to cloud resource configurations that deviate from the approved security baseline over time |\n| Security Baseline | A documented set of minimum security configuration requirements that all cloud resources must meet |\n| Compliance Framework | A structured set of security controls and requirements (CIS, SOC 2, PCI DSS, NIST) against which cloud configurations are evaluated |\n| Finding Severity | Risk classification of a misconfiguration based on exploitability and potential impact (Critical, High, Medium, Low, Informational) |\n| Auto-Remediation | Automated corrective action that restores a non-compliant resource to its required configuration without manual intervention |\n\n## Tools & Systems\n\n- **Prowler**: Open-source multi-cloud security assessment tool with 300+ checks aligned to CIS, PCI DSS, HIPAA, and NIST\n- **ScoutSuite**: Multi-cloud security auditing tool producing risk-scored HTML reports from API-collected configuration data\n- **AWS Security Hub**: AWS-native CSPM with aggregated findings and compliance standard evaluation\n- **Microsoft Defender for Cloud**: Azure-native CSPM with secure score, regulatory compliance, and workload protection\n- **GCP Security Command Center**: GCP-native security platform with asset inventory, vulnerability scanning, and compliance monitoring\n\n## Common Scenarios\n\n### Scenario: Establishing CSPM for a Multi-Cloud Enterprise\n\n**Context**: An enterprise runs production workloads across AWS (primary), Azure (identity and Microsoft services), and GCP (data analytics). The security team needs unified posture visibility.\n\n**Approach**:\n1. Enable cloud-native CSPM in each provider: Security Hub, Defender for Cloud, SCC\n2. Deploy Prowler scans as daily scheduled jobs in each environment via CI\u002FCD pipelines\n3. Normalize and aggregate findings into a central data lake using the aggregation script\n4. Build dashboards in Grafana or Kibana showing posture scores by cloud, account, and severity\n5. Configure auto-remediation for known-good fixes (public access blocks, encryption enablement)\n6. Route CRITICAL findings to PagerDuty for immediate response and HIGH findings to Jira tickets\n7. Produce weekly compliance reports for executive stakeholders showing trend data\n\n**Pitfalls**: Running CSPM tools with overly broad permissions creates a high-value target. Use dedicated service accounts with read-only permissions and rotate credentials regularly. Different CSPM tools may report the same misconfiguration differently, so deduplication logic must account for varying resource ID formats and finding titles across tools.\n\n## Output Format\n\n```\nCloud Security Posture Management Dashboard\n==============================================\nOrganization: Acme Corp\nAssessment Date: 2026-02-23\nEnvironments: AWS (12 accounts), Azure (8 subscriptions), GCP (5 projects)\n\nPOSTURE SCORES:\n  AWS:   82\u002F100  (+3 from last week)\n  Azure: 76\u002F100  (-1 from last week)\n  GCP:   79\u002F100  (+5 from last week)\n  Overall: 79\u002F100\n\nFINDINGS BY SEVERITY:\n  Critical:  18 (AWS: 7, Azure: 8, GCP: 3)\n  High:      67 (AWS: 28, Azure: 24, GCP: 15)\n  Medium:   234 (AWS: 98, Azure: 87, GCP: 49)\n  Low:      412 (AWS: 178, Azure: 134, GCP: 100)\n\nTOP FAILING CATEGORIES:\n  1. IAM overly permissive policies     (43 findings)\n  2. Encryption not enabled at rest      (38 findings)\n  3. Public network exposure             (29 findings)\n  4. Logging and monitoring gaps         (24 findings)\n  5. Unused credentials and keys         (19 findings)\n\nAUTO-REMEDIATION (Last 7 Days):\n  Findings auto-remediated:  34\n  Manual remediation pending: 51\n  Exceptions approved:        8\n```\n",{"name":5,"tags":25,"author":32,"domain":33,"license":15,"version":34,"nist_csf":35,"subdomain":26,"description":40,"mitre_attack":41},[26,27,28,29,30,31],"cloud-security","cspm","multi-cloud","compliance","prowler","scoutsuite","mahipal","cybersecurity","1.0",[36,37,38,39],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01","Continuously monitor multi-cloud environments (AWS, Azure, GCP) for misconfigurations, compliance violations, and security risks using Prowler, ScoutSuite, AWS Security Hub, Microsoft Defender for Cloud, and GCP Security Command Center. Use for cross-cloud posture monitoring, CIS\u002FSOC 2\u002FPCI DSS compliance, or drift-detection workflows; not for runtime workload protection or application security testing.\n",[42,43,44,45],"T1078.004","T1530","T1537","T1580","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-cloud-security-posture-management",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill implementing-cloud-security-posture-management",{"tool":60,"command":61},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill implementing-cloud-security-posture-management",{"tool":63,"command":64},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill implementing-cloud-security-posture-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-cloud-security-posture-management\u002FSKILL.md",true,[68,72,78,84],{"path":69,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fapi-reference.md","REFERENCE","参考文档",1946,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-cloud-security-posture-management\u002Freferences\u002Fapi-reference.md",{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Fagent.py","SCRIPT","脚本",7831,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-cloud-security-posture-management\u002Fscripts\u002Fagent.py",{"path":85,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":86,"sourceHtmlUrl":87},"SKILL.es.md",12963,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-cloud-security-posture-management\u002FSKILL.es.md",[89,97,105,113,121,128],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":93,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":20},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":93,"licenseFileUrl":101,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":20},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":109,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":20},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":117,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":20},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":93,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":20},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":93,"licenseFileUrl":132,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":20},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]