[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E49RYVZGG8DFTFTGWBBQS1":3,"skill-same:01M7E49RYVZGG8DFTFTGWBBQS1":84},{"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},"01M7E49RYVZGG8DFTFTGWBBQS1","implementing-aws-security-hub-compliance",null,"Deploy AWS Security Hub, backed by AWS Config, to aggregate findings from GuardDuty, Inspector, Macie, Firewall Manager, and Prowler across multi-account AWS Organizations, enable standards like CIS AWS Foundations and PCI DSS, and automate remediation via EventBridge and Lambda. Use for centralizing AWS compliance monitoring or executive compliance dashboards; not for threat detection (GuardDuty) or data classification (Macie).","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-aws-security-hub-compliance\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-aws-security-hub-compliance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: implementing-aws-security-hub-compliance\ndescription: 'Deploy AWS Security Hub, backed by AWS Config, to aggregate findings\n  from GuardDuty, Inspector, Macie, Firewall Manager, and Prowler across multi-account\n  AWS Organizations, enable standards like CIS AWS Foundations and PCI DSS, and automate\n  remediation via EventBridge and Lambda. Use for centralizing AWS compliance monitoring\n  or executive compliance dashboards; not for threat detection (GuardDuty) or data\n  classification (Macie).\n\n  '\ndomain: cybersecurity\nsubdomain: cloud-security\ntags:\n- cloud-security\n- aws\n- security-hub\n- compliance\n- cspm\n- cis-benchmark\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 AWS Security Hub Compliance\n\n## When to Use\n\n- When establishing centralized security posture management across multiple AWS accounts\n- When compliance requirements demand continuous monitoring against CIS, PCI DSS, or NIST 800-53 standards\n- When aggregating findings from GuardDuty, Inspector, Macie, Firewall Manager, and third-party tools\n- When building automated remediation workflows triggered by security findings\n- When executive stakeholders require a security compliance dashboard across the organization\n\n**Do not use** for real-time threat detection (use GuardDuty), for vulnerability scanning (use Inspector), or for data classification (use Macie). Security Hub aggregates findings from these services but does not replace them.\n\n## Prerequisites\n\n- AWS Organizations with delegated administrator for Security Hub\n- IAM permissions for `securityhub:*`, `config:*`, `events:*`, and `lambda:*`\n- AWS Config enabled in all target accounts and regions (required by Security Hub)\n- CloudFormation StackSets or Terraform for multi-account deployment\n- SNS topics configured for alert routing to security team\n\n## Workflow\n\n### Step 1: Enable Security Hub with Compliance Standards\n\nEnable Security Hub in the management account and select compliance standards to evaluate.\n\n```bash\n# Enable Security Hub in the current account\u002Fregion\naws securityhub enable-security-hub \\\n  --enable-default-standards \\\n  --control-finding-generator SECURITY_CONTROL\n\n# Enable specific compliance standards\naws securityhub batch-enable-standards --standards-subscription-requests \\\n  '[\n    {\"StandardsArn\": \"arn:aws:securityhub:us-east-1::standards\u002Faws-foundational-security-best-practices\u002Fv\u002F1.0.0\"},\n    {\"StandardsArn\": \"arn:aws:securityhub:us-east-1::standards\u002Fcis-aws-foundations-benchmark\u002Fv\u002F1.4.0\"},\n    {\"StandardsArn\": \"arn:aws:securityhub:us-east-1::standards\u002Fpci-dss\u002Fv\u002F3.2.1\"},\n    {\"StandardsArn\": \"arn:aws:securityhub:us-east-1::standards\u002Fnist-800-53\u002Fv\u002F5.0.0\"}\n  ]'\n\n# Verify enabled standards\naws securityhub get-enabled-standards \\\n  --query 'StandardsSubscriptions[*].[StandardsArn,StandardsStatus]' --output table\n```\n\n### Step 2: Configure Multi-Account Aggregation\n\nSet up a delegated administrator and aggregate findings from all organization accounts.\n\n```bash\n# Designate a delegated admin (run from management account)\naws securityhub enable-organization-admin-account \\\n  --admin-account-id 111122223333\n\n# From the delegated admin account, enable auto-enrollment\naws securityhub update-organization-configuration \\\n  --auto-enable \\\n  --auto-enable-standards DEFAULT\n\n# Create a finding aggregator for cross-region aggregation\naws securityhub create-finding-aggregator \\\n  --region-linking-mode ALL_REGIONS\n\n# List member accounts\naws securityhub list-members \\\n  --query 'Members[*].[AccountId,MemberStatus]' --output table\n```\n\n### Step 3: Review Compliance Scores and Failed Controls\n\nQuery Security Hub for compliance posture across enabled standards and identify failing controls.\n\n```bash\n# Get overall compliance score for CIS benchmark\naws securityhub get-standards-control-associations \\\n  --security-control-id \"IAM.1\" \\\n  --query 'StandardsControlAssociationSummaries[*].[StandardsArn,AssociationStatus]' \\\n  --output table\n\n# List all failed controls\naws securityhub get-findings \\\n  --filters '{\n    \"ComplianceStatus\": [{\"Value\": \"FAILED\", \"Comparison\": \"EQUALS\"}],\n    \"RecordState\": [{\"Value\": \"ACTIVE\", \"Comparison\": \"EQUALS\"}],\n    \"WorkflowStatus\": [{\"Value\": \"NEW\", \"Comparison\": \"EQUALS\"}]\n  }' \\\n  --sort-criteria '{\"Field\": \"SeverityNormalized\", \"SortOrder\": \"desc\"}' \\\n  --max-items 50 \\\n  --query 'Findings[*].[Title,Severity.Label,Compliance.Status,Resources[0].Id]' \\\n  --output table\n\n# Get finding counts by severity\naws securityhub get-insight-results \\\n  --insight-arn \"arn:aws:securityhub:us-east-1:111122223333:insight\u002F111122223333\u002Fdefault\u002F2\"\n```\n\n### Step 4: Create Custom Security Insights\n\nBuild custom insights to track organization-specific security priorities.\n\n```bash\n# Create insight for publicly accessible resources\naws securityhub create-insight \\\n  --name \"Publicly Accessible Resources\" \\\n  --filters '{\n    \"ResourceType\": [\n      {\"Value\": \"AwsS3Bucket\", \"Comparison\": \"EQUALS\"},\n      {\"Value\": \"AwsEc2SecurityGroup\", \"Comparison\": \"EQUALS\"},\n      {\"Value\": \"AwsRdsDbInstance\", \"Comparison\": \"EQUALS\"}\n    ],\n    \"ComplianceStatus\": [{\"Value\": \"FAILED\", \"Comparison\": \"EQUALS\"}],\n    \"SeverityLabel\": [{\"Value\": \"CRITICAL\", \"Comparison\": \"EQUALS\"}, {\"Value\": \"HIGH\", \"Comparison\": \"EQUALS\"}]\n  }' \\\n  --group-by-attribute \"ResourceType\"\n\n# Create insight for unencrypted resources\naws securityhub create-insight \\\n  --name \"Unencrypted Resources Across Accounts\" \\\n  --filters '{\n    \"Title\": [{\"Value\": \"encryption\", \"Comparison\": \"CONTAINS\"}],\n    \"ComplianceStatus\": [{\"Value\": \"FAILED\", \"Comparison\": \"EQUALS\"}]\n  }' \\\n  --group-by-attribute \"AwsAccountId\"\n```\n\n### Step 5: Configure Automated Remediation with EventBridge\n\nSet up EventBridge rules to trigger Lambda-based auto-remediation for specific finding types.\n\n```bash\n# Create EventBridge rule for Security Hub findings\naws events put-rule \\\n  --name \"security-hub-critical-findings\" \\\n  --event-pattern '{\n    \"source\": [\"aws.securityhub\"],\n    \"detail-type\": [\"Security Hub Findings - Imported\"],\n    \"detail\": {\n      \"findings\": {\n        \"Severity\": {\"Label\": [\"CRITICAL\"]},\n        \"Compliance\": {\"Status\": [\"FAILED\"]},\n        \"Workflow\": {\"Status\": [\"NEW\"]}\n      }\n    }\n  }'\n\n# Example Lambda auto-remediation for S3 public access (Python)\ncat > \u002Ftmp\u002Fremediate_s3.py \u003C\u003C 'PYEOF'\nimport boto3\nimport json\n\ndef lambda_handler(event, context):\n    s3 = boto3.client('s3')\n    securityhub = boto3.client('securityhub')\n\n    for finding in event['detail']['findings']:\n        if 'S3' in finding.get('Title', '') and 'public' in finding.get('Title', '').lower():\n            bucket_arn = finding['Resources'][0]['Id']\n            bucket_name = bucket_arn.split(':::')[-1]\n\n            s3.put_public_access_block(\n                Bucket=bucket_name,\n                PublicAccessBlockConfiguration={\n                    'BlockPublicAcls': True,\n                    'IgnorePublicAcls': True,\n                    'BlockPublicPolicy': True,\n                    'RestrictPublicBuckets': True\n                }\n            )\n\n            securityhub.batch_update_findings(\n                FindingIdentifiers=[{\n                    'Id': finding['Id'],\n                    'ProductArn': finding['ProductArn']\n                }],\n                Workflow={'Status': 'RESOLVED'},\n                Note={\n                    'Text': 'Auto-remediated: Block Public Access enabled',\n                    'UpdatedBy': 'security-hub-auto-remediation'\n                }\n            )\n    return {'statusCode': 200}\nPYEOF\n```\n\n### Step 6: Export Findings and Generate Compliance Reports\n\nExport Security Hub findings for reporting and integration with external SIEM or GRC platforms.\n\n```bash\n# Export all findings to S3 via a custom script\naws securityhub get-findings \\\n  --filters '{\n    \"RecordState\": [{\"Value\": \"ACTIVE\", \"Comparison\": \"EQUALS\"}]\n  }' \\\n  --max-items 1000 \\\n  --output json > security-hub-findings-export.json\n\n# Send critical findings to SNS\naws sns publish \\\n  --topic-arn arn:aws:sns:us-east-1:111122223333:security-alerts \\\n  --subject \"Security Hub Daily Summary\" \\\n  --message file:\u002F\u002Fdaily-summary.json\n\n# Integrate with third-party SIEM via EventBridge\naws events put-targets \\\n  --rule security-hub-critical-findings \\\n  --targets '[{\n    \"Id\": \"splunk-hec\",\n    \"Arn\": \"arn:aws:events:us-east-1:111122223333:api-destination\u002Fsplunk-hec\",\n    \"HttpParameters\": {\n      \"HeaderParameters\": {\"Authorization\": \"Splunk HEC_TOKEN\"}\n    }\n  }]'\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Security Hub | AWS service that aggregates security findings from AWS services and third-party tools, evaluates compliance against standards, and provides a unified security dashboard |\n| Security Standard | A predefined set of security controls (CIS, PCI DSS, NIST 800-53) that Security Hub evaluates against your AWS configuration |\n| Security Control | An individual check within a standard that evaluates a specific AWS resource configuration, such as whether S3 buckets block public access |\n| Finding | A security issue detected by Security Hub or an integrated service, formatted in AWS Security Finding Format (ASFF) |\n| Insight | A custom or managed grouping of findings by a specific attribute, providing aggregated views for security analysis |\n| ASFF | AWS Security Finding Format, the standardized JSON schema used by all Security Hub integrations for consistent finding representation |\n\n## Tools & Systems\n\n- **AWS Security Hub**: Central aggregation and compliance evaluation platform for security findings across AWS accounts\n- **AWS Config**: Configuration recording service required by Security Hub for evaluating resource compliance\n- **Amazon EventBridge**: Event bus for routing Security Hub findings to Lambda, SNS, or external remediation systems\n- **AWS Lambda**: Serverless compute for automated remediation functions triggered by Security Hub findings\n- **Prowler**: Open-source tool that can send findings to Security Hub via ASFF integration\n\n## Common Scenarios\n\n### Scenario: Rolling Out Security Hub Across a 50-Account Organization\n\n**Context**: A security team needs to enable Security Hub with CIS and FSBP standards across all accounts in an AWS Organization, with centralized finding aggregation and automated alerting.\n\n**Approach**:\n1. Enable Security Hub in the management account and designate a security account as delegated admin\n2. Configure auto-enable for all existing and new member accounts via `update-organization-configuration`\n3. Create a cross-region finding aggregator to consolidate findings from all regions into the admin account\n4. Enable CIS AWS Foundations 1.4 and AWS FSBP standards across all accounts\n5. Create EventBridge rules to route CRITICAL findings to PagerDuty and all findings to Splunk\n6. Build custom insights for the top organizational risks: public resources, missing encryption, unused credentials\n7. Schedule weekly compliance reports to stakeholders using Lambda and SES\n\n**Pitfalls**: Security Hub requires AWS Config to be enabled in every account and region. Failing to enable Config will result in controls showing as \"No data\" rather than PASSED or FAILED. Member accounts with Config disabled will silently produce incomplete compliance scores.\n\n## Output Format\n\n```\nAWS Security Hub Compliance Report\n=====================================\nOrganization: acme-corp (50 accounts)\nRegion: us-east-1 (aggregated from all regions)\nReport Date: 2026-02-23\nStandards Enabled: CIS 1.4, FSBP v1.0, PCI DSS 3.2.1\n\nCOMPLIANCE SCORES:\n  CIS AWS Foundations 1.4:     78% (142\u002F182 controls passing)\n  AWS FSBP v1.0.0:             85% (198\u002F233 controls passing)\n  PCI DSS 3.2.1:               72% (89\u002F124 controls passing)\n\nCRITICAL FINDINGS: 23\nHIGH FINDINGS: 87\nMEDIUM FINDINGS: 245\nLOW FINDINGS: 412\n\nTOP FAILING CONTROLS:\n  [IAM.6]  MFA not enabled for root account           12 accounts\n  [S3.2]   S3 Block Public Access not enabled          8 accounts\n  [EC2.19] Security groups allow unrestricted access   15 accounts\n  [RDS.3]  RDS encryption at rest not enabled          6 accounts\n\nAUTO-REMEDIATION ACTIONS (Last 30 Days):\n  S3 Block Public Access enabled:    14\n  Security Group rules restricted:    8\n  CloudTrail logging re-enabled:      3\n  Total auto-remediated findings:    25\n```\n","# Implementing AWS Security Hub Compliance\n\n## When to Use\n\n- When establishing centralized security posture management across multiple AWS accounts\n- When compliance requirements demand continuous monitoring against CIS, PCI DSS, or NIST 800-53 standards\n- When aggregating findings from GuardDuty, Inspector, Macie, Firewall Manager, and third-party tools\n- When building automated remediation workflows triggered by security findings\n- When executive stakeholders require a security compliance dashboard across the organization\n\n**Do not use** for real-time threat detection (use GuardDuty), for vulnerability scanning (use Inspector), or for data classification (use Macie). Security Hub aggregates findings from these services but does not replace them.\n\n## Prerequisites\n\n- AWS Organizations with delegated administrator for Security Hub\n- IAM permissions for `securityhub:*`, `config:*`, `events:*`, and `lambda:*`\n- AWS Config enabled in all target accounts and regions (required by Security Hub)\n- CloudFormation StackSets or Terraform for multi-account deployment\n- SNS topics configured for alert routing to security team\n\n## Workflow\n\n### Step 1: Enable Security Hub with Compliance Standards\n\nEnable Security Hub in the management account and select compliance standards to evaluate.\n\n```bash\n# Enable Security Hub in the current account\u002Fregion\naws securityhub enable-security-hub \\\n  --enable-default-standards \\\n  --control-finding-generator SECURITY_CONTROL\n\n# Enable specific compliance standards\naws securityhub batch-enable-standards --standards-subscription-requests \\\n  '[\n    {\"StandardsArn\": \"arn:aws:securityhub:us-east-1::standards\u002Faws-foundational-security-best-practices\u002Fv\u002F1.0.0\"},\n    {\"StandardsArn\": \"arn:aws:securityhub:us-east-1::standards\u002Fcis-aws-foundations-benchmark\u002Fv\u002F1.4.0\"},\n    {\"StandardsArn\": \"arn:aws:securityhub:us-east-1::standards\u002Fpci-dss\u002Fv\u002F3.2.1\"},\n    {\"StandardsArn\": \"arn:aws:securityhub:us-east-1::standards\u002Fnist-800-53\u002Fv\u002F5.0.0\"}\n  ]'\n\n# Verify enabled standards\naws securityhub get-enabled-standards \\\n  --query 'StandardsSubscriptions[*].[StandardsArn,StandardsStatus]' --output table\n```\n\n### Step 2: Configure Multi-Account Aggregation\n\nSet up a delegated administrator and aggregate findings from all organization accounts.\n\n```bash\n# Designate a delegated admin (run from management account)\naws securityhub enable-organization-admin-account \\\n  --admin-account-id 111122223333\n\n# From the delegated admin account, enable auto-enrollment\naws securityhub update-organization-configuration \\\n  --auto-enable \\\n  --auto-enable-standards DEFAULT\n\n# Create a finding aggregator for cross-region aggregation\naws securityhub create-finding-aggregator \\\n  --region-linking-mode ALL_REGIONS\n\n# List member accounts\naws securityhub list-members \\\n  --query 'Members[*].[AccountId,MemberStatus]' --output table\n```\n\n### Step 3: Review Compliance Scores and Failed Controls\n\nQuery Security Hub for compliance posture across enabled standards and identify failing controls.\n\n```bash\n# Get overall compliance score for CIS benchmark\naws securityhub get-standards-control-associations \\\n  --security-control-id \"IAM.1\" \\\n  --query 'StandardsControlAssociationSummaries[*].[StandardsArn,AssociationStatus]' \\\n  --output table\n\n# List all failed controls\naws securityhub get-findings \\\n  --filters '{\n    \"ComplianceStatus\": [{\"Value\": \"FAILED\", \"Comparison\": \"EQUALS\"}],\n    \"RecordState\": [{\"Value\": \"ACTIVE\", \"Comparison\": \"EQUALS\"}],\n    \"WorkflowStatus\": [{\"Value\": \"NEW\", \"Comparison\": \"EQUALS\"}]\n  }' \\\n  --sort-criteria '{\"Field\": \"SeverityNormalized\", \"SortOrder\": \"desc\"}' \\\n  --max-items 50 \\\n  --query 'Findings[*].[Title,Severity.Label,Compliance.Status,Resources[0].Id]' \\\n  --output table\n\n# Get finding counts by severity\naws securityhub get-insight-results \\\n  --insight-arn \"arn:aws:securityhub:us-east-1:111122223333:insight\u002F111122223333\u002Fdefault\u002F2\"\n```\n\n### Step 4: Create Custom Security Insights\n\nBuild custom insights to track organization-specific security priorities.\n\n```bash\n# Create insight for publicly accessible resources\naws securityhub create-insight \\\n  --name \"Publicly Accessible Resources\" \\\n  --filters '{\n    \"ResourceType\": [\n      {\"Value\": \"AwsS3Bucket\", \"Comparison\": \"EQUALS\"},\n      {\"Value\": \"AwsEc2SecurityGroup\", \"Comparison\": \"EQUALS\"},\n      {\"Value\": \"AwsRdsDbInstance\", \"Comparison\": \"EQUALS\"}\n    ],\n    \"ComplianceStatus\": [{\"Value\": \"FAILED\", \"Comparison\": \"EQUALS\"}],\n    \"SeverityLabel\": [{\"Value\": \"CRITICAL\", \"Comparison\": \"EQUALS\"}, {\"Value\": \"HIGH\", \"Comparison\": \"EQUALS\"}]\n  }' \\\n  --group-by-attribute \"ResourceType\"\n\n# Create insight for unencrypted resources\naws securityhub create-insight \\\n  --name \"Unencrypted Resources Across Accounts\" \\\n  --filters '{\n    \"Title\": [{\"Value\": \"encryption\", \"Comparison\": \"CONTAINS\"}],\n    \"ComplianceStatus\": [{\"Value\": \"FAILED\", \"Comparison\": \"EQUALS\"}]\n  }' \\\n  --group-by-attribute \"AwsAccountId\"\n```\n\n### Step 5: Configure Automated Remediation with EventBridge\n\nSet up EventBridge rules to trigger Lambda-based auto-remediation for specific finding types.\n\n```bash\n# Create EventBridge rule for Security Hub findings\naws events put-rule \\\n  --name \"security-hub-critical-findings\" \\\n  --event-pattern '{\n    \"source\": [\"aws.securityhub\"],\n    \"detail-type\": [\"Security Hub Findings - Imported\"],\n    \"detail\": {\n      \"findings\": {\n        \"Severity\": {\"Label\": [\"CRITICAL\"]},\n        \"Compliance\": {\"Status\": [\"FAILED\"]},\n        \"Workflow\": {\"Status\": [\"NEW\"]}\n      }\n    }\n  }'\n\n# Example Lambda auto-remediation for S3 public access (Python)\ncat > \u002Ftmp\u002Fremediate_s3.py \u003C\u003C 'PYEOF'\nimport boto3\nimport json\n\ndef lambda_handler(event, context):\n    s3 = boto3.client('s3')\n    securityhub = boto3.client('securityhub')\n\n    for finding in event['detail']['findings']:\n        if 'S3' in finding.get('Title', '') and 'public' in finding.get('Title', '').lower():\n            bucket_arn = finding['Resources'][0]['Id']\n            bucket_name = bucket_arn.split(':::')[-1]\n\n            s3.put_public_access_block(\n                Bucket=bucket_name,\n                PublicAccessBlockConfiguration={\n                    'BlockPublicAcls': True,\n                    'IgnorePublicAcls': True,\n                    'BlockPublicPolicy': True,\n                    'RestrictPublicBuckets': True\n                }\n            )\n\n            securityhub.batch_update_findings(\n                FindingIdentifiers=[{\n                    'Id': finding['Id'],\n                    'ProductArn': finding['ProductArn']\n                }],\n                Workflow={'Status': 'RESOLVED'},\n                Note={\n                    'Text': 'Auto-remediated: Block Public Access enabled',\n                    'UpdatedBy': 'security-hub-auto-remediation'\n                }\n            )\n    return {'statusCode': 200}\nPYEOF\n```\n\n### Step 6: Export Findings and Generate Compliance Reports\n\nExport Security Hub findings for reporting and integration with external SIEM or GRC platforms.\n\n```bash\n# Export all findings to S3 via a custom script\naws securityhub get-findings \\\n  --filters '{\n    \"RecordState\": [{\"Value\": \"ACTIVE\", \"Comparison\": \"EQUALS\"}]\n  }' \\\n  --max-items 1000 \\\n  --output json > security-hub-findings-export.json\n\n# Send critical findings to SNS\naws sns publish \\\n  --topic-arn arn:aws:sns:us-east-1:111122223333:security-alerts \\\n  --subject \"Security Hub Daily Summary\" \\\n  --message file:\u002F\u002Fdaily-summary.json\n\n# Integrate with third-party SIEM via EventBridge\naws events put-targets \\\n  --rule security-hub-critical-findings \\\n  --targets '[{\n    \"Id\": \"splunk-hec\",\n    \"Arn\": \"arn:aws:events:us-east-1:111122223333:api-destination\u002Fsplunk-hec\",\n    \"HttpParameters\": {\n      \"HeaderParameters\": {\"Authorization\": \"Splunk HEC_TOKEN\"}\n    }\n  }]'\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Security Hub | AWS service that aggregates security findings from AWS services and third-party tools, evaluates compliance against standards, and provides a unified security dashboard |\n| Security Standard | A predefined set of security controls (CIS, PCI DSS, NIST 800-53) that Security Hub evaluates against your AWS configuration |\n| Security Control | An individual check within a standard that evaluates a specific AWS resource configuration, such as whether S3 buckets block public access |\n| Finding | A security issue detected by Security Hub or an integrated service, formatted in AWS Security Finding Format (ASFF) |\n| Insight | A custom or managed grouping of findings by a specific attribute, providing aggregated views for security analysis |\n| ASFF | AWS Security Finding Format, the standardized JSON schema used by all Security Hub integrations for consistent finding representation |\n\n## Tools & Systems\n\n- **AWS Security Hub**: Central aggregation and compliance evaluation platform for security findings across AWS accounts\n- **AWS Config**: Configuration recording service required by Security Hub for evaluating resource compliance\n- **Amazon EventBridge**: Event bus for routing Security Hub findings to Lambda, SNS, or external remediation systems\n- **AWS Lambda**: Serverless compute for automated remediation functions triggered by Security Hub findings\n- **Prowler**: Open-source tool that can send findings to Security Hub via ASFF integration\n\n## Common Scenarios\n\n### Scenario: Rolling Out Security Hub Across a 50-Account Organization\n\n**Context**: A security team needs to enable Security Hub with CIS and FSBP standards across all accounts in an AWS Organization, with centralized finding aggregation and automated alerting.\n\n**Approach**:\n1. Enable Security Hub in the management account and designate a security account as delegated admin\n2. Configure auto-enable for all existing and new member accounts via `update-organization-configuration`\n3. Create a cross-region finding aggregator to consolidate findings from all regions into the admin account\n4. Enable CIS AWS Foundations 1.4 and AWS FSBP standards across all accounts\n5. Create EventBridge rules to route CRITICAL findings to PagerDuty and all findings to Splunk\n6. Build custom insights for the top organizational risks: public resources, missing encryption, unused credentials\n7. Schedule weekly compliance reports to stakeholders using Lambda and SES\n\n**Pitfalls**: Security Hub requires AWS Config to be enabled in every account and region. Failing to enable Config will result in controls showing as \"No data\" rather than PASSED or FAILED. Member accounts with Config disabled will silently produce incomplete compliance scores.\n\n## Output Format\n\n```\nAWS Security Hub Compliance Report\n=====================================\nOrganization: acme-corp (50 accounts)\nRegion: us-east-1 (aggregated from all regions)\nReport Date: 2026-02-23\nStandards Enabled: CIS 1.4, FSBP v1.0, PCI DSS 3.2.1\n\nCOMPLIANCE SCORES:\n  CIS AWS Foundations 1.4:     78% (142\u002F182 controls passing)\n  AWS FSBP v1.0.0:             85% (198\u002F233 controls passing)\n  PCI DSS 3.2.1:               72% (89\u002F124 controls passing)\n\nCRITICAL FINDINGS: 23\nHIGH FINDINGS: 87\nMEDIUM FINDINGS: 245\nLOW FINDINGS: 412\n\nTOP FAILING CONTROLS:\n  [IAM.6]  MFA not enabled for root account           12 accounts\n  [S3.2]   S3 Block Public Access not enabled          8 accounts\n  [EC2.19] Security groups allow unrestricted access   15 accounts\n  [RDS.3]  RDS encryption at rest not enabled          6 accounts\n\nAUTO-REMEDIATION ACTIONS (Last 30 Days):\n  S3 Block Public Access enabled:    14\n  Security Group rules restricted:    8\n  CloudTrail logging re-enabled:      3\n  Total auto-remediated findings:    25\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","aws","security-hub","compliance","cspm","cis-benchmark","mahipal","cybersecurity","1.0",[36,37,38,39],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01","Deploy AWS Security Hub, backed by AWS Config, to aggregate findings from GuardDuty, Inspector, Macie, Firewall Manager, and Prowler across multi-account AWS Organizations, enable standards like CIS AWS Foundations and PCI DSS, and automate remediation via EventBridge and Lambda. Use for centralizing AWS compliance monitoring or executive compliance dashboards; not for threat detection (GuardDuty) or data classification (Macie).\n",[42,43,44,45],"T1078.004","T1530","T1537","T1580","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-aws-security-hub-compliance",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-aws-security-hub-compliance",{"tool":60,"command":61},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill implementing-aws-security-hub-compliance",{"tool":63,"command":64},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill implementing-aws-security-hub-compliance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-aws-security-hub-compliance\u002FSKILL.md",true,[68,72,78],{"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","参考文档",2366,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-aws-security-hub-compliance\u002Freferences\u002Fapi-reference.md",{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Fagent.py","SCRIPT","脚本",7181,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-aws-security-hub-compliance\u002Fscripts\u002Fagent.py",[85,93,101,109,117,124],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":89,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"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":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":89,"licenseFileUrl":97,"sourceHtmlUrl":98,"categories":99,"keywords":100,"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":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":105,"sourceHtmlUrl":106,"categories":107,"keywords":108,"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":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},"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":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":89,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"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":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":89,"licenseFileUrl":128,"sourceHtmlUrl":129,"categories":130,"keywords":131,"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",[],[]]