[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71CCM0E2XN1A9FNC69BPQBZ":3,"skill-same:01M71CCM0E2XN1A9FNC69BPQBZ":89},{"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":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":62,"commitSha":63,"skillDirectory":64,"forksCount":14,"repositoryHtmlUrl":65,"repositoryHomepageUrl":6,"ownerHtmlUrl":66,"ownerBlogUrl":6,"ownerDescription":67,"updatedAt":68,"install":69,"resources":82},"01M71CCM0E2XN1A9FNC69BPQBZ","aws-hubcompliance-audit",null,"Implementing AWS Security Hub to aggregate security findings across AWS accounts, enable compliance standards like CIS AWS Foundations and PCI DSS, configure automated remediation with EventBridge and Lambda, and create custom security insights for organizational risk management.","DCx7C5\u002Fai-marketplace","DCx7C5","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42419559?v=4","01M71C01G2AZV3NTNGWAWSHJPP","DC","01M71C01GQW6G50S2BYMS7PP3E",0,"MIT","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Faws\u002Fhubcompliance\u002Faudit\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"aws hubcompliance audit","audit","aws","configure","pci","implementing","insights","foundations","de","across","cm","aws security","cybersecurity","Bash","implementing aws security hub","cspm","security-hub","lambda","eventbridge","create","2026-11-10 10:12:30",false,"---\nname: aws-hubcompliance-audit\ndescription: Implementing AWS Security Hub to aggregate security findings across AWS accounts, enable compliance standards like CIS AWS Foundations and PCI DSS, configure automated remediation with EventBridge and Lambda, and create custom security insights for organizational risk management.\ndomain: cybersecurity\nsubdomain: cloud-security\ntags:\n- cloud-security\n- aws\n- security-hub\n- compliance\n- cspm\n- cis-benchmark\nnist_csf:\n- PR.IR-01\n- ID.AM-08\n- GV.SC-06\n- DE.CM-01\nmodel: sonnet\nmaxTurns: 20\ntools: [Read, Bash, Glob, Grep]\nmitre_attack:\n- T1562.004\ncapec: []\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":44,"capec":48,"model":49,"tools":50,"domain":31,"maxTurns":54,"nist_csf":55,"subdomain":45,"description":7,"mitre_attack":60},[45,21,35,46,34,47],"cloud-security","compliance","cis-benchmark",[],"sonnet",[51,32,52,53],"Read","Glob","Grep",20,[56,57,58,59],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01",[61],"T1562.004","main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Fcloud\u002Faws\u002Fhubcompliance\u002Faudit","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill aws-hubcompliance-audit",{"tool":75,"command":76},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill aws-hubcompliance-audit",{"tool":78,"command":79},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill aws-hubcompliance-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Faws\u002Fhubcompliance\u002Faudit\u002FSKILL.md",true,[83],{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"index.json","REFERENCE","参考文档",680,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Faws\u002Fhubcompliance\u002Faudit\u002Findex.json",[90,100,123,144,165,187],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":94,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":99},"01M73MDK3NT5XHNYTQ5P5172V9","devel-jb-algorithmic-art","- Embed algorithms inline in the HTML artifact (don't create separate .","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":39},"01M71HAPZ01KQ30RKTB0FFSQ05","services-wmi-persistence-detect","Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fpersistence\u002Fdetect\u002FSKILL.md",[],[107,108,109,110,111,112,113,31,114,115,116,117,118,119,120,121,122,29,27],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":39},"01M71HAK6JTTTS229T17WJMMCG","services-wmi-exec-exploit","Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fexec\u002Fexploit\u002FSKILL.md",[],[130,110,131,107,132,28,32,133,134,31,135,136,137,138,139,140,141,142,27,143],"exec","services wmi exec exploit","exploit","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","read","lateral movement","command","native",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":39},"01M71HAG6MHKNQV8KDZKMT4886","registry-artifact-extract","Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",[],[151,152,153,154,155,49,156,157,158,159,140,27,160,161,133,162,32,31,163,164],"extract","registry artifact extract","registry","artifact","digital-forensics","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":39},"01M71HACR4A8XTWTTSXK4124AA","processes-token-impersonate-detect","Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Ftoken\u002Fimpersonate\u002Fdetect\u002FSKILL.md",[],[172,173,174,108,31,175,29,176,177,178,112,27,179,180,181,182,183,184,185,186],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":188,"name":189,"nameZh":6,"description":190,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":191,"categories":192,"keywords":193,"publishedAt":39},"01M71HAABSB4Z6QFSXEG00R4RK","processes-thread-injection-detect","Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fthread\u002Finjection\u002Fdetect\u002FSKILL.md",[],[194,172,195,108,196,197,113,27,179,198,199,200,133,112,31,175,201,29,202,177],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]