[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73CGPR8Z5W25N3RPQPJFHB6":3,"skill-same:01M73CGPR8Z5W25N3RPQPJFHB6":93},{"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":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M73CGPR8Z5W25N3RPQPJFHB6","implementing-cloud-security-posture-management",null,"Implementing Cloud Security Posture Management (CSPM) to continuously monitor multi-cloud environments for misconfigurations, compliance violations, and security risks using Prowler, ScoutSuite, AWS Security Hub, Azure Defender, and GCP Security Command Center.","Horonomos-laps\u002FYana-AI","Horonomos-laps","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F355299122?v=4","01M76B3QPXE88ET2SQPDPVATZT"," Horonomos-laps","01M72ZQRJPCYPSSWT4D00VJR2A",13,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fimplementing-cloud-security-posture-management\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fimplementing-cloud-security-posture-management\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: implementing-cloud-security-posture-management\ndescription: 'Implementing Cloud Security Posture Management (CSPM) to continuously\n  monitor multi-cloud environments for misconfigurations, compliance violations, and\n  security risks using Prowler, ScoutSuite, AWS Security Hub, Azure Defender, and\n  GCP Security Command Center.\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\nsource: https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\nsource_commit: 04450304b12645cb2b974ab96d28c0664758a88d\nnote: \"Vendored verbatim from an external Apache-2.0 security-skill library, pinned by commit. Exceeds the internal 300-line skill guideline (agent-code-constraints.md) -- kept as-is because this is vendored reference material (forensics\u002Fthreat-intel procedure), not Yana AI-authored content, and trimming would damage technical accuracy.\"\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,"note":25,"tags":26,"author":33,"domain":34,"source":35,"license":15,"version":36,"nist_csf":37,"subdomain":27,"description":42,"mitre_attack":43,"source_commit":48},"Vendored verbatim from an external Apache-2.0 security-skill library, pinned by commit. Exceeds the internal 300-line skill guideline (agent-code-constraints.md) -- kept as-is because this is vendored reference material (forensics\u002Fthreat-intel procedure), not Yana AI-authored content, and trimming would damage technical accuracy.",[27,28,29,30,31,32],"cloud-security","cspm","multi-cloud","compliance","prowler","scoutsuite","mahipal","cybersecurity","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","1.0",[38,39,40,41],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01","Implementing Cloud Security Posture Management (CSPM) to continuously monitor multi-cloud environments for misconfigurations, compliance violations, and security risks using Prowler, ScoutSuite, AWS Security Hub, Azure Defender, and GCP Security Command Center.\n",[44,45,46,47],"T1078.004","T1530","T1537","T1580","04450304b12645cb2b974ab96d28c0664758a88d","main","481dcd7dd2e288b9d627a2bd017db70e64e6c6fa","core\u002Fskills\u002Fimplementing-cloud-security-posture-management",2,"https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI","https:\u002F\u002Fyana.vutam.link\u002F","https:\u002F\u002Fgithub.com\u002FHoronomos-laps","https:\u002F\u002Fyana.vutam.link","An open-source governed runtime & execution environment for multi-agent AI systems.","2026-11-14 13:24:09",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add Horonomos-laps\u002FYana-AI --skill implementing-cloud-security-posture-management",{"tool":65,"command":66},"bunx","bunx skills add Horonomos-laps\u002FYana-AI --skill implementing-cloud-security-posture-management",{"tool":68,"command":69},"pnpm","pnpm dlx skills add Horonomos-laps\u002FYana-AI --skill implementing-cloud-security-posture-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fimplementing-cloud-security-posture-management\u002FSKILL.md",true,[73,77,83,89],{"path":74,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fapi-reference.md","REFERENCE","参考文档",1946,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fimplementing-cloud-security-posture-management\u002Freferences\u002Fapi-reference.md",{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Fagent.py","SCRIPT","脚本",7831,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fimplementing-cloud-security-posture-management\u002Fscripts\u002Fagent.py",{"path":90,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":91,"sourceHtmlUrl":92},"SKILL.es.md",12963,"https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fimplementing-cloud-security-posture-management\u002FSKILL.es.md",[94,102,109,117,125,133],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":98,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":20},"01M735GKET5YVYKAY62W2P5YXB","openai--sentry--sentry","Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.","MIT","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fopenai--sentry--sentry\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":20},"01M73DCAP83T17HY7SMGK7MGFE","ito-basket-compare","Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fito-basket-compare\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":113,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":20},"01M734CYEMZFDR3KH6SW0JP8TD","implementing-network-traffic-baselining","Build network traffic baselines from NetFlow\u002FIPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly\u002Fdaily traffic pattern profiling","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":121,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":20},"01M73ASZ6NJRJM44Z2P84NGQ3Q","detecting-evasion-techniques-in-endpoint-logs","Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":129,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":20},"01M734AFNXD06Z78QRK0VKGT7Q","implementing-microsegmentation-with-guardicore","Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FSKILL.md",[],[],{"skillNo":134,"name":135,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":20},"01M736TK27QMCXK0DVCH25SJN5","ramdisk-tmpfs-patterns","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Framdisk-tmpfs-patterns\u002FSKILL.md",[],[]]