[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AEAPY7A1YRM3T098QGTP20":3,"skill-same:01M6AEAPY7A1YRM3T098QGTP20":128},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":71,"commitSha":72,"skillDirectory":73,"forksCount":74,"repositoryHtmlUrl":75,"repositoryHomepageUrl":76,"ownerHtmlUrl":77,"ownerBlogUrl":78,"ownerDescription":79,"updatedAt":80,"install":81,"resources":94},"01M6AEAPY7A1YRM3T098QGTP20","detecting-cloud-threats-with-guardduty","GuardDuty 云威胁检测与响应","Deploy and operationalize Amazon GuardDuty, covering protection plans for S3, EKS, EC2 runtime monitoring, and Lambda, interpreting finding severity, and building automated response with EventBridge and Lambda. Use when establishing threat detection for AWS accounts, investigating findings on compromised instances or credential abuse, or building automated incident-response playbooks.","部署并运营 Amazon GuardDuty，涵盖 S3、EKS、EC2 运行时监控和 Lambda 的保护计划，解读发现结果的严重级别，并使用 EventBridge 和 Lambda 构建自动化响应。在为 AWS 账户建立威胁检测、调查受损实例或凭证滥用相关的发现结果，或构建自动化事件响应手册时使用。","mukul975\u002FAnthropic-Cybersecurity-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADJPMYWG1E5GM1FWBE3128",36146,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-cloud-threats-with-guardduty\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSJ8FPTACYEEYRWQRNFXKY","安全检测工程","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"detecting cloud threats with guardduty","cloud","guardduty","severity","cloud-soc","runtime-monitoring","aws-security","amazon-guardduty","lambda","eventbridge","detection","cybersecurity","eks","aws","threat-detection","soc","cloud-security","s3","monitoring","pr","2026-11-10 10:12:30",false,"---\nname: detecting-cloud-threats-with-guardduty\ndescription: 'Deploy and operationalize Amazon GuardDuty, covering protection plans\n  for S3, EKS, EC2 runtime monitoring, and Lambda, interpreting finding severity, and\n  building automated response with EventBridge and Lambda. Use when establishing threat\n  detection for AWS accounts, investigating findings on compromised instances or credential\n  abuse, or building automated incident-response playbooks.\n\n  '\ndomain: cybersecurity\nsubdomain: cloud-security\ntags:\n- amazon-guardduty\n- threat-detection\n- aws-security\n- runtime-monitoring\n- cloud-soc\nversion: 1.0.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- T1071\n---\n\n# Detecting Cloud Threats with GuardDuty\n\n## When to Use\n\n- When establishing continuous threat detection for new or existing AWS accounts\n- When investigating GuardDuty findings related to compromised instances, credential abuse, or data exfiltration\n- When building automated incident response playbooks triggered by GuardDuty findings\n- When extending threat coverage to container workloads running on EKS, ECS, or Fargate\n- When enabling malware scanning for EBS volumes attached to suspicious EC2 instances\n\n**Do not use** for Azure or GCP threat detection (see securing-azure-with-microsoft-defender or auditing-gcp-security-posture), for static code analysis, or for compliance posture monitoring (see implementing-aws-security-hub).\n\n## Prerequisites\n\n- AWS account with GuardDuty administrative permissions (guardduty:*)\n- AWS CloudTrail, VPC Flow Logs, and DNS query logs enabled (GuardDuty consumes these automatically)\n- AWS Organizations configured if deploying GuardDuty across a multi-account estate\n- EventBridge and Lambda configured for automated response workflows\n\n## Workflow\n\n### Step 1: Enable GuardDuty and Protection Plans\n\nActivate GuardDuty at the organization level using a delegated administrator account. Enable all protection plans including S3 Protection, EKS Audit Log Monitoring, Runtime Monitoring, Malware Protection, RDS Login Activity, and Lambda Network Activity Monitoring.\n\n```bash\n# Enable GuardDuty as organization delegated administrator\naws guardduty create-detector \\\n  --enable \\\n  --finding-publishing-frequency FIFTEEN_MINUTES \\\n  --data-sources '{\n    \"S3Logs\": {\"Enable\": true},\n    \"Kubernetes\": {\"AuditLogs\": {\"Enable\": true}},\n    \"MalwareProtection\": {\"ScanEc2InstanceWithFindings\": {\"EbsVolumes\": true}}\n  }'\n\n# Enable Runtime Monitoring for EC2 and ECS\naws guardduty update-detector \\\n  --detector-id \u003Cdetector-id> \\\n  --features '[\n    {\"Name\": \"RUNTIME_MONITORING\", \"Status\": \"ENABLED\",\n     \"AdditionalConfiguration\": [\n       {\"Name\": \"ECS_FARGATE_AGENT_MANAGEMENT\", \"Status\": \"ENABLED\"},\n       {\"Name\": \"EC2_AGENT_MANAGEMENT\", \"Status\": \"ENABLED\"}\n     ]}\n  ]'\n\n# Designate delegated admin for multi-account\naws guardduty enable-organization-admin-account \\\n  --admin-account-id 111122223333\n```\n\n### Step 2: Configure Multi-Account Aggregation\n\nAutomatically enroll all organization member accounts and configure finding export to a centralized S3 bucket for retention and SIEM ingestion.\n\n```bash\n# Auto-enable GuardDuty for all org members\naws guardduty update-organization-configuration \\\n  --detector-id \u003Cdetector-id> \\\n  --auto-enable-organization-members ALL \\\n  --features '[\n    {\"Name\": \"S3_DATA_EVENTS\", \"AutoEnable\": \"ALL\"},\n    {\"Name\": \"EKS_AUDIT_LOGS\", \"AutoEnable\": \"ALL\"},\n    {\"Name\": \"RUNTIME_MONITORING\", \"AutoEnable\": \"ALL\"}\n  ]'\n\n# Configure finding export to S3\naws guardduty create-publishing-destination \\\n  --detector-id \u003Cdetector-id> \\\n  --destination-type S3 \\\n  --destination-properties '{\n    \"DestinationArn\": \"arn:aws:s3:::guardduty-findings-centralized\",\n    \"KmsKeyArn\": \"arn:aws:kms:us-east-1:123456789012:key\u002Fkey-id\"\n  }'\n```\n\n### Step 3: Interpret Finding Types and Severity Levels\n\nGuardDuty classifies findings into four severity levels: Critical, High, Medium, and Low. Each finding type follows the format ThreatPurpose:ResourceType\u002FThreatName. Extended Threat Detection generates attack sequence findings that correlate multiple events across time.\n\nKey finding categories:\n- **Recon**: Port scanning, API enumeration (e.g., Recon:EC2\u002FPortProbeUnprotectedPort)\n- **UnauthorizedAccess**: Credential abuse, console logins from unusual locations\n- **CryptoCurrency**: Mining activity detected on instances (e.g., CryptoCurrency:EC2\u002FBitcoinTool.B)\n- **Impact**: Resource hijacking, data destruction attempts\n- **AttackSequence**: Multi-stage attacks correlating initial access through lateral movement to impact (Critical severity)\n\n### Step 4: Build Automated Response with EventBridge\n\nCreate EventBridge rules that route GuardDuty findings to Lambda functions for automated containment actions such as isolating compromised EC2 instances, revoking IAM credentials, or blocking malicious IP addresses.\n\n```bash\n# EventBridge rule for high\u002Fcritical GuardDuty findings\naws events put-rule \\\n  --name GuardDutyHighSeverity \\\n  --event-pattern '{\n    \"source\": [\"aws.guardduty\"],\n    \"detail-type\": [\"GuardDuty Finding\"],\n    \"detail\": {\n      \"severity\": [{\"numeric\": [\">=\", 7]}]\n    }\n  }'\n\n# Target Lambda function for auto-remediation\naws events put-targets \\\n  --rule GuardDutyHighSeverity \\\n  --targets '[{\n    \"Id\": \"AutoRemediateTarget\",\n    \"Arn\": \"arn:aws:lambda:us-east-1:123456789012:function\u002Fguardduty-auto-remediate\"\n  }]'\n```\n\nAuto-remediation Lambda example for isolating a compromised EC2 instance:\n\n```python\nimport boto3\n\ndef lambda_handler(event, context):\n    finding = event['detail']\n    finding_type = finding['type']\n    severity = finding['severity']\n\n    if finding_type.startswith('UnauthorizedAccess:EC2') and severity >= 7:\n        instance_id = finding['resource']['instanceDetails']['instanceId']\n        ec2 = boto3.client('ec2')\n\n        # Create isolation security group (no inbound\u002Foutbound rules)\n        vpc_id = finding['resource']['instanceDetails']['networkInterfaces'][0]['vpcId']\n        isolation_sg = ec2.create_security_group(\n            GroupName=f'isolation-{instance_id}',\n            Description='GuardDuty auto-isolation',\n            VpcId=vpc_id\n        )\n\n        # Replace all security groups with isolation group\n        ec2.modify_instance_attribute(\n            InstanceId=instance_id,\n            Groups=[isolation_sg['GroupId']]\n        )\n\n        # Tag instance for investigation\n        ec2.create_tags(\n            Resources=[instance_id],\n            Tags=[{'Key': 'SecurityStatus', 'Value': 'ISOLATED'},\n                  {'Key': 'GuardDutyFinding', 'Value': finding_type}]\n        )\n\n        return {'status': 'isolated', 'instance': instance_id}\n```\n\n### Step 5: Investigate Extended Threat Detection Attack Sequences\n\nReview Critical-severity attack sequence findings that correlate multiple signals across EC2, ECS, and EKS. These findings represent multi-stage attacks such as initial access through compromised credentials followed by persistence, lateral movement, and crypto mining.\n\n```bash\n# List critical attack sequence findings\naws guardduty list-findings \\\n  --detector-id \u003Cdetector-id> \\\n  --finding-criteria '{\n    \"Criterion\": {\n      \"severity\": {\"Gte\": 9},\n      \"type\": {\"Eq\": [\"AttackSequence:EC2\u002FCompromisedInstanceGroup\",\n                       \"AttackSequence:ECS\u002FCompromisedCluster\",\n                       \"AttackSequence:EKS\u002FCompromisedCluster\"]}\n    }\n  }'\n\n# Get full finding details with attack sequence timeline\naws guardduty get-findings \\\n  --detector-id \u003Cdetector-id> \\\n  --finding-ids \u003Cfinding-id>\n```\n\n### Step 6: Integrate with Security Hub and SIEM\n\nForward GuardDuty findings to AWS Security Hub for centralized aggregation and to external SIEM platforms via S3 export or Amazon Security Lake for long-term retention and cross-source correlation.\n\n```bash\n# Verify GuardDuty integration with Security Hub\naws securityhub get-enabled-standards\n\n# Enable Amazon Security Lake with GuardDuty as a source\naws securitylake create-data-lake \\\n  --configurations '[{\n    \"region\": \"us-east-1\",\n    \"lifecycleConfiguration\": {\n      \"expiration\": {\"days\": 365}\n    }\n  }]'\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Extended Threat Detection | GuardDuty capability that correlates multiple signals across time to detect multi-stage attacks, generating Critical-severity attack sequence findings |\n| Runtime Monitoring | Protection plan that deploys a security agent to EC2 instances, ECS tasks, and EKS pods to detect runtime threats at the OS level |\n| Finding Severity | Four-tier classification (Low, Medium, High, Critical) where Critical indicates confirmed multi-stage attacks requiring immediate response |\n| Malware Protection | On-demand and automatic EBS volume scanning triggered by suspicious EC2 behavior to detect malware without agent installation |\n| Delegated Administrator | Organization member account designated to manage GuardDuty across all accounts in an AWS Organization |\n| Suppression Rule | Filter that automatically archives findings matching specific criteria to reduce noise from known benign activity |\n| Threat Intelligence | IP reputation lists and domain threat feeds used by GuardDuty to identify communication with known malicious infrastructure |\n\n## Tools & Systems\n\n- **Amazon GuardDuty**: Core threat detection service analyzing CloudTrail, VPC Flow Logs, DNS logs, and runtime telemetry\n- **Amazon EventBridge**: Serverless event bus for routing GuardDuty findings to automated response targets\n- **AWS Security Hub**: Centralized security findings aggregation supporting automated remediation workflows\n- **Amazon Security Lake**: OCSF-normalized data lake for long-term security log retention and cross-service correlation\n- **Amazon Detective**: Graph-based investigation service that visualizes relationships between GuardDuty findings, resources, and API activity\n\n## Common Scenarios\n\n### Scenario: Cryptocurrency Mining Detected on ECS Cluster\n\n**Context**: GuardDuty generates a CryptoCurrency:Runtime\u002FBitcoinTool.B finding with High severity targeting an ECS Fargate task. Runtime Monitoring detected the execution of a mining binary within a container.\n\n**Approach**:\n1. Review the finding details to identify the ECS cluster, task definition, and container image\n2. Stop the affected ECS task immediately and quarantine the container image in ECR\n3. Check CloudTrail for the ecs:RegisterTaskDefinition and ecs:RunTask calls to identify who deployed the malicious image\n4. Scan the Docker image with ECR enhanced scanning to identify the embedded mining binary\n5. Review IAM credentials used to push the image and revoke compromised access\n6. Update ECR image scanning policies to block images with known mining signatures\n\n**Pitfalls**: Stopping the task without preserving the container image loses forensic evidence. Failing to trace back to the RegisterTaskDefinition API call misses the initial compromise vector.\n\n## Output Format\n\n```\nGuardDuty Threat Detection Summary\n====================================\nAccount: 123456789012 (production)\nRegion: us-east-1\nPeriod: 2025-02-01 to 2025-02-23\n\nCRITICAL FINDINGS (Immediate Action Required):\n[CRIT-001] AttackSequence:EC2\u002FCompromisedInstanceGroup\n  - Instances: i-0abc123def, i-0def456abc\n  - Attack Chain: Credential theft -> Persistence -> Crypto mining\n  - First Signal: 2025-02-15T08:23:00Z\n  - Duration: 4 hours across 3 stages\n  - Status: Auto-isolated via Lambda\n\nHIGH FINDINGS:\n[HIGH-001] UnauthorizedAccess:IAMUser\u002FMaliciousIPCaller\n  - Principal: arn:aws:iam::123456789012:user\u002Fci-deploy\n  - Source IP: 198.51.100.42 (Tor exit node)\n  - API Calls: 47 calls to ec2:RunInstances\n  - Status: Access key deactivated\n\n[HIGH-002] CryptoCurrency:Runtime\u002FBitcoinTool.B\n  - Resource: ECS Task arn:aws:ecs:us-east-1:123456789012:task\u002Fcluster\u002Ftask-id\n  - Image: 123456789012.dkr.ecr.us-east-1.amazonaws.com\u002Fapp:v2.1\n  - Process: \u002Ftmp\u002F.hidden\u002Fxmrig --pool stratum+tcp:\u002F\u002Fpool.example.com:3333\n  - Status: Task stopped, image quarantined\n\nSTATISTICS:\n  Total Findings: 23\n  Critical: 1 | High: 3 | Medium: 8 | Low: 11\n  Auto-Remediated: 4\n  Pending Investigation: 2\n```\n","# Detecting Cloud Threats with GuardDuty\n\n## When to Use\n\n- When establishing continuous threat detection for new or existing AWS accounts\n- When investigating GuardDuty findings related to compromised instances, credential abuse, or data exfiltration\n- When building automated incident response playbooks triggered by GuardDuty findings\n- When extending threat coverage to container workloads running on EKS, ECS, or Fargate\n- When enabling malware scanning for EBS volumes attached to suspicious EC2 instances\n\n**Do not use** for Azure or GCP threat detection (see securing-azure-with-microsoft-defender or auditing-gcp-security-posture), for static code analysis, or for compliance posture monitoring (see implementing-aws-security-hub).\n\n## Prerequisites\n\n- AWS account with GuardDuty administrative permissions (guardduty:*)\n- AWS CloudTrail, VPC Flow Logs, and DNS query logs enabled (GuardDuty consumes these automatically)\n- AWS Organizations configured if deploying GuardDuty across a multi-account estate\n- EventBridge and Lambda configured for automated response workflows\n\n## Workflow\n\n### Step 1: Enable GuardDuty and Protection Plans\n\nActivate GuardDuty at the organization level using a delegated administrator account. Enable all protection plans including S3 Protection, EKS Audit Log Monitoring, Runtime Monitoring, Malware Protection, RDS Login Activity, and Lambda Network Activity Monitoring.\n\n```bash\n# Enable GuardDuty as organization delegated administrator\naws guardduty create-detector \\\n  --enable \\\n  --finding-publishing-frequency FIFTEEN_MINUTES \\\n  --data-sources '{\n    \"S3Logs\": {\"Enable\": true},\n    \"Kubernetes\": {\"AuditLogs\": {\"Enable\": true}},\n    \"MalwareProtection\": {\"ScanEc2InstanceWithFindings\": {\"EbsVolumes\": true}}\n  }'\n\n# Enable Runtime Monitoring for EC2 and ECS\naws guardduty update-detector \\\n  --detector-id \u003Cdetector-id> \\\n  --features '[\n    {\"Name\": \"RUNTIME_MONITORING\", \"Status\": \"ENABLED\",\n     \"AdditionalConfiguration\": [\n       {\"Name\": \"ECS_FARGATE_AGENT_MANAGEMENT\", \"Status\": \"ENABLED\"},\n       {\"Name\": \"EC2_AGENT_MANAGEMENT\", \"Status\": \"ENABLED\"}\n     ]}\n  ]'\n\n# Designate delegated admin for multi-account\naws guardduty enable-organization-admin-account \\\n  --admin-account-id 111122223333\n```\n\n### Step 2: Configure Multi-Account Aggregation\n\nAutomatically enroll all organization member accounts and configure finding export to a centralized S3 bucket for retention and SIEM ingestion.\n\n```bash\n# Auto-enable GuardDuty for all org members\naws guardduty update-organization-configuration \\\n  --detector-id \u003Cdetector-id> \\\n  --auto-enable-organization-members ALL \\\n  --features '[\n    {\"Name\": \"S3_DATA_EVENTS\", \"AutoEnable\": \"ALL\"},\n    {\"Name\": \"EKS_AUDIT_LOGS\", \"AutoEnable\": \"ALL\"},\n    {\"Name\": \"RUNTIME_MONITORING\", \"AutoEnable\": \"ALL\"}\n  ]'\n\n# Configure finding export to S3\naws guardduty create-publishing-destination \\\n  --detector-id \u003Cdetector-id> \\\n  --destination-type S3 \\\n  --destination-properties '{\n    \"DestinationArn\": \"arn:aws:s3:::guardduty-findings-centralized\",\n    \"KmsKeyArn\": \"arn:aws:kms:us-east-1:123456789012:key\u002Fkey-id\"\n  }'\n```\n\n### Step 3: Interpret Finding Types and Severity Levels\n\nGuardDuty classifies findings into four severity levels: Critical, High, Medium, and Low. Each finding type follows the format ThreatPurpose:ResourceType\u002FThreatName. Extended Threat Detection generates attack sequence findings that correlate multiple events across time.\n\nKey finding categories:\n- **Recon**: Port scanning, API enumeration (e.g., Recon:EC2\u002FPortProbeUnprotectedPort)\n- **UnauthorizedAccess**: Credential abuse, console logins from unusual locations\n- **CryptoCurrency**: Mining activity detected on instances (e.g., CryptoCurrency:EC2\u002FBitcoinTool.B)\n- **Impact**: Resource hijacking, data destruction attempts\n- **AttackSequence**: Multi-stage attacks correlating initial access through lateral movement to impact (Critical severity)\n\n### Step 4: Build Automated Response with EventBridge\n\nCreate EventBridge rules that route GuardDuty findings to Lambda functions for automated containment actions such as isolating compromised EC2 instances, revoking IAM credentials, or blocking malicious IP addresses.\n\n```bash\n# EventBridge rule for high\u002Fcritical GuardDuty findings\naws events put-rule \\\n  --name GuardDutyHighSeverity \\\n  --event-pattern '{\n    \"source\": [\"aws.guardduty\"],\n    \"detail-type\": [\"GuardDuty Finding\"],\n    \"detail\": {\n      \"severity\": [{\"numeric\": [\">=\", 7]}]\n    }\n  }'\n\n# Target Lambda function for auto-remediation\naws events put-targets \\\n  --rule GuardDutyHighSeverity \\\n  --targets '[{\n    \"Id\": \"AutoRemediateTarget\",\n    \"Arn\": \"arn:aws:lambda:us-east-1:123456789012:function\u002Fguardduty-auto-remediate\"\n  }]'\n```\n\nAuto-remediation Lambda example for isolating a compromised EC2 instance:\n\n```python\nimport boto3\n\ndef lambda_handler(event, context):\n    finding = event['detail']\n    finding_type = finding['type']\n    severity = finding['severity']\n\n    if finding_type.startswith('UnauthorizedAccess:EC2') and severity >= 7:\n        instance_id = finding['resource']['instanceDetails']['instanceId']\n        ec2 = boto3.client('ec2')\n\n        # Create isolation security group (no inbound\u002Foutbound rules)\n        vpc_id = finding['resource']['instanceDetails']['networkInterfaces'][0]['vpcId']\n        isolation_sg = ec2.create_security_group(\n            GroupName=f'isolation-{instance_id}',\n            Description='GuardDuty auto-isolation',\n            VpcId=vpc_id\n        )\n\n        # Replace all security groups with isolation group\n        ec2.modify_instance_attribute(\n            InstanceId=instance_id,\n            Groups=[isolation_sg['GroupId']]\n        )\n\n        # Tag instance for investigation\n        ec2.create_tags(\n            Resources=[instance_id],\n            Tags=[{'Key': 'SecurityStatus', 'Value': 'ISOLATED'},\n                  {'Key': 'GuardDutyFinding', 'Value': finding_type}]\n        )\n\n        return {'status': 'isolated', 'instance': instance_id}\n```\n\n### Step 5: Investigate Extended Threat Detection Attack Sequences\n\nReview Critical-severity attack sequence findings that correlate multiple signals across EC2, ECS, and EKS. These findings represent multi-stage attacks such as initial access through compromised credentials followed by persistence, lateral movement, and crypto mining.\n\n```bash\n# List critical attack sequence findings\naws guardduty list-findings \\\n  --detector-id \u003Cdetector-id> \\\n  --finding-criteria '{\n    \"Criterion\": {\n      \"severity\": {\"Gte\": 9},\n      \"type\": {\"Eq\": [\"AttackSequence:EC2\u002FCompromisedInstanceGroup\",\n                       \"AttackSequence:ECS\u002FCompromisedCluster\",\n                       \"AttackSequence:EKS\u002FCompromisedCluster\"]}\n    }\n  }'\n\n# Get full finding details with attack sequence timeline\naws guardduty get-findings \\\n  --detector-id \u003Cdetector-id> \\\n  --finding-ids \u003Cfinding-id>\n```\n\n### Step 6: Integrate with Security Hub and SIEM\n\nForward GuardDuty findings to AWS Security Hub for centralized aggregation and to external SIEM platforms via S3 export or Amazon Security Lake for long-term retention and cross-source correlation.\n\n```bash\n# Verify GuardDuty integration with Security Hub\naws securityhub get-enabled-standards\n\n# Enable Amazon Security Lake with GuardDuty as a source\naws securitylake create-data-lake \\\n  --configurations '[{\n    \"region\": \"us-east-1\",\n    \"lifecycleConfiguration\": {\n      \"expiration\": {\"days\": 365}\n    }\n  }]'\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Extended Threat Detection | GuardDuty capability that correlates multiple signals across time to detect multi-stage attacks, generating Critical-severity attack sequence findings |\n| Runtime Monitoring | Protection plan that deploys a security agent to EC2 instances, ECS tasks, and EKS pods to detect runtime threats at the OS level |\n| Finding Severity | Four-tier classification (Low, Medium, High, Critical) where Critical indicates confirmed multi-stage attacks requiring immediate response |\n| Malware Protection | On-demand and automatic EBS volume scanning triggered by suspicious EC2 behavior to detect malware without agent installation |\n| Delegated Administrator | Organization member account designated to manage GuardDuty across all accounts in an AWS Organization |\n| Suppression Rule | Filter that automatically archives findings matching specific criteria to reduce noise from known benign activity |\n| Threat Intelligence | IP reputation lists and domain threat feeds used by GuardDuty to identify communication with known malicious infrastructure |\n\n## Tools & Systems\n\n- **Amazon GuardDuty**: Core threat detection service analyzing CloudTrail, VPC Flow Logs, DNS logs, and runtime telemetry\n- **Amazon EventBridge**: Serverless event bus for routing GuardDuty findings to automated response targets\n- **AWS Security Hub**: Centralized security findings aggregation supporting automated remediation workflows\n- **Amazon Security Lake**: OCSF-normalized data lake for long-term security log retention and cross-service correlation\n- **Amazon Detective**: Graph-based investigation service that visualizes relationships between GuardDuty findings, resources, and API activity\n\n## Common Scenarios\n\n### Scenario: Cryptocurrency Mining Detected on ECS Cluster\n\n**Context**: GuardDuty generates a CryptoCurrency:Runtime\u002FBitcoinTool.B finding with High severity targeting an ECS Fargate task. Runtime Monitoring detected the execution of a mining binary within a container.\n\n**Approach**:\n1. Review the finding details to identify the ECS cluster, task definition, and container image\n2. Stop the affected ECS task immediately and quarantine the container image in ECR\n3. Check CloudTrail for the ecs:RegisterTaskDefinition and ecs:RunTask calls to identify who deployed the malicious image\n4. Scan the Docker image with ECR enhanced scanning to identify the embedded mining binary\n5. Review IAM credentials used to push the image and revoke compromised access\n6. Update ECR image scanning policies to block images with known mining signatures\n\n**Pitfalls**: Stopping the task without preserving the container image loses forensic evidence. Failing to trace back to the RegisterTaskDefinition API call misses the initial compromise vector.\n\n## Output Format\n\n```\nGuardDuty Threat Detection Summary\n====================================\nAccount: 123456789012 (production)\nRegion: us-east-1\nPeriod: 2025-02-01 to 2025-02-23\n\nCRITICAL FINDINGS (Immediate Action Required):\n[CRIT-001] AttackSequence:EC2\u002FCompromisedInstanceGroup\n  - Instances: i-0abc123def, i-0def456abc\n  - Attack Chain: Credential theft -> Persistence -> Crypto mining\n  - First Signal: 2025-02-15T08:23:00Z\n  - Duration: 4 hours across 3 stages\n  - Status: Auto-isolated via Lambda\n\nHIGH FINDINGS:\n[HIGH-001] UnauthorizedAccess:IAMUser\u002FMaliciousIPCaller\n  - Principal: arn:aws:iam::123456789012:user\u002Fci-deploy\n  - Source IP: 198.51.100.42 (Tor exit node)\n  - API Calls: 47 calls to ec2:RunInstances\n  - Status: Access key deactivated\n\n[HIGH-002] CryptoCurrency:Runtime\u002FBitcoinTool.B\n  - Resource: ECS Task arn:aws:ecs:us-east-1:123456789012:task\u002Fcluster\u002Ftask-id\n  - Image: 123456789012.dkr.ecr.us-east-1.amazonaws.com\u002Fapp:v2.1\n  - Process: \u002Ftmp\u002F.hidden\u002Fxmrig --pool stratum+tcp:\u002F\u002Fpool.example.com:3333\n  - Status: Task stopped, image quarantined\n\nSTATISTICS:\n  Total Findings: 23\n  Critical: 1 | High: 3 | Medium: 8 | Low: 11\n  Auto-Remediated: 4\n  Pending Investigation: 2\n```\n",{"name":5,"tags":56,"author":57,"domain":42,"license":16,"version":58,"nist_csf":59,"subdomain":47,"description":64,"mitre_attack":65},[38,45,37,36,35],"mahipal","1.0.0",[60,61,62,63],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01","Deploy and operationalize Amazon GuardDuty, covering protection plans for S3, EKS, EC2 runtime monitoring, and Lambda, interpreting finding severity, and building automated response with EventBridge and Lambda. Use when establishing threat detection for AWS accounts, investigating findings on compromised instances or credential abuse, or building automated incident-response playbooks.\n",[66,67,68,69,70],"T1078.004","T1530","T1537","T1580","T1071","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fdetecting-cloud-threats-with-guardduty",4425,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","https:\u002F\u002Fmahipal.engineer\u002FAnthropic-Cybersecurity-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-08-31 12:32:44",{"source":9,"skillName":5,"commands":82,"prompt":92,"zipAvailable":93},[83,86,89],{"tool":84,"command":85},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill detecting-cloud-threats-with-guardduty",{"tool":87,"command":88},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill detecting-cloud-threats-with-guardduty",{"tool":90,"command":91},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill detecting-cloud-threats-with-guardduty","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-cloud-threats-with-guardduty\u002FSKILL.md",true,[95,100,106,110,116,120,124],{"path":96,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":98,"sourceHtmlUrl":99},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-cloud-threats-with-guardduty\u002FLICENSE",{"path":101,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fapi_reference.md","REFERENCE","参考文档",15857,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fbrenda-database\u002Freferences\u002Fapi_reference.md",{"path":107,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002Fapi-reference.md",2300,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-cloud-threats-with-guardduty\u002Freferences\u002Fapi-reference.md",{"path":111,"resourceType":112,"resourceTypeDesc":113,"sizeBytes":114,"sourceHtmlUrl":115},"scripts\u002Fagent.py","SCRIPT","脚本",6692,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-cloud-threats-with-guardduty\u002Fscripts\u002Fagent.py",{"path":117,"resourceType":112,"resourceTypeDesc":113,"sizeBytes":118,"sourceHtmlUrl":119},"scripts\u002Fbrenda_queries.py",30872,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fbrenda-database\u002Fscripts\u002Fbrenda_queries.py",{"path":121,"resourceType":112,"resourceTypeDesc":113,"sizeBytes":122,"sourceHtmlUrl":123},"scripts\u002Fbrenda_visualization.py",29361,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fbrenda-database\u002Fscripts\u002Fbrenda_visualization.py",{"path":125,"resourceType":112,"resourceTypeDesc":113,"sizeBytes":126,"sourceHtmlUrl":127},"scripts\u002Fenzyme_pathway_builder.py",44863,"https:\u002F\u002Fgithub.com\u002Fdavila7\u002Fclaude-code-templates\u002Fblob\u002Fmain\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fbrenda-database\u002Fscripts\u002Fenzyme_pathway_builder.py",[129,160,189,220,251,283],{"skillNo":130,"name":131,"nameZh":132,"description":133,"descriptionZh":134,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":135,"categories":136,"keywords":141,"publishedAt":51},"01M6AGDM3HJXTKXX15ZZ0ZVCJ3","verifying-build-provenance-with-slsa-sigstore","SLSA 构建来源验证","Verifies artifact signatures and SLSA provenance using Sigstore's cosign (verify, verify-attestation, verify-blob-attestation) and slsa-verifier (verify-artifact), enforcing keyless OIDC builder identity and source repo against SLSA Build levels. Use in CI\u002FCD before deploying artifacts, when consuming third-party attestations, establishing a SLSA Build L3 pipeline, or confirming provenance during incident response or admission control.","使用 Sigstore 的 cosign（verify、verify-attestation、verify-blob-attestation）和 slsa-verifier（verify-artifact）验证工件签名和 SLSA 来源（provenance），强制校验 keyless OIDC 构建者身份和源仓库是否符合 SLSA Build 级别。适用于 CI\u002FCD 中部署工件前、消费第三方证明时、建立 SLSA Build L3 管道，或在事件响应或准入控制期间确认来源的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fverifying-build-provenance-with-slsa-sigstore\u002FSKILL.md",[137,138],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":139,"categoryName":140,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全",[142,143,144,145,146,42,147,148,50,149,150,151,152,153,154,155,156,157,158,159],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","security","incident response","identity","code","artifacts","ci","supply-chain","pipeline","supply-chain-security","t1195","attestation","code-signing","cosign","keyless",{"skillNo":161,"name":162,"nameZh":163,"description":164,"descriptionZh":165,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":166,"categories":167,"keywords":172,"publishedAt":51},"01M6AGDGBPWYVZ2F11GFKJ4HZ9","validating-tpm-measured-boot-attestation","TPM 测量启动验证","Verifies TPM 2.0 measured-boot integrity and remote attestation with tpm2-tools -- reading PCRs (tpm2_pcrread), replaying the boot event log, generating and checking signed quotes (tpm2_quote\u002Ftpm2_checkquote), and sealing secrets to a PCR policy. Use to confirm a system booted trusted firmware\u002Fkernel for Zero Trust device posture, detect boot-chain tampering via PCR drift, or build a golden-value baseline for fleet attestation.","使用 tpm2-tools 验证 TPM 2.0 测量启动（measured boot）的完整性和远程证明：读取 PCR（tpm2_pcrread）、重放启动事件日志、生成并检查签名报价（tpm2_quote\u002Ftpm2_checkquote），以及将机密封印（seal）到 PCR 策略。适用于确认系统已启动可信固件\u002F内核以实现零信任（Zero Trust）设备状态、通过 PCR 漂移检测启动链篡改，或构建黄金值基线用于机群（fleet）证明。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-tpm-measured-boot-attestation\u002FSKILL.md",[168,169],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":170,"categoryName":171,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C89JJEXGGRGHS6XVXDA46K","终端安全加固",[173,156,174,175,146,176,42,50,177,178,179,180,181,182,183,184,185,186,187,188],"boot","TPM","validating tpm measured boot attestation","policy","verification","ZeRO","firmware","Tools","measured-boot","PCR","integrity","secrets","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":190,"name":191,"nameZh":192,"description":193,"descriptionZh":194,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":195,"categories":196,"keywords":203,"publishedAt":51},"01M6AGDCW0Y4FXZ3362GT1941M","validating-backup-integrity-for-recovery","备份完整性验证","Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery and ransomware response. Use before relying on backups for recovery, when building post-backup validation pipelines, auditing backup infrastructure for compliance, or checking immutable\u002Fair-gapped backups for silent corruption or tampering.","通过加密哈希验证、自动化恢复测试、损坏检测和可恢复性检查来验证备份完整性，确认备份对于灾难恢复和勒索软件响应是可靠的。适用于在依赖备份进行恢复之前、构建备份后验证管道、审计备份基础设施以满足合规要求，或检查不可变\u002Fair-gapped（气隙）备份是否存在静默损坏或篡改的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[197,200],{"categoryNo":198,"categoryName":199,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":201,"categoryName":202,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复",[183,204,205,206,207,42,208,209,177,210,211,212,213,214,41,215,216,217,218,219],"backup","recovery","validating backup integrity for recovery","testing","infrastructure","validation","compliance","hash-verification","incident-response","ransomware","cryptocurrency","t1078","t1490","immutable","disaster-recovery","restore-testing",{"skillNo":221,"name":222,"nameZh":223,"description":224,"descriptionZh":225,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":226,"categories":227,"keywords":232,"publishedAt":51},"01M6AGD9GBG2KZ336AE763J3WH","triaging-windows-with-kape","KAPE Windows 取证收集","Runs KAPE (Kroll Artifact Parser and Extractor) to collect targeted forensic artifacts (registry hives, $MFT, event logs, prefetch, browser data) via Targets and parse them with Modules wrapping Eric Zimmerman's EZ Tools (PECmd, MFTECmd, RECmd). Use during early incident containment\u002Ftriage when full disk imaging is impractical but a defensible, parseable Windows artifact set is needed quickly, including at-scale remote collection.","运行 KAPE（Kroll Artifact Parser and Extractor），通过 Targets 收集目标取证工件（注册表配置单元、$MFT、事件日志、prefetch、浏览器数据），并使用封装 Eric Zimmerman 的 EZ Tools（PECmd、MFTECmd、RECmd）的 Modules 进行解析。适用于事件遏制\u002F分诊早期阶段——此时完整磁盘镜像不切实际，但需要快速获得可采信、可解析的 Windows 工件集，包括大规模远程收集。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-windows-with-kape\u002FSKILL.md",[228,229],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":230,"categoryName":231,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9JZH3GWXPJ6CQG5P7J48Y","数字取证与电子证据分析",[233,234,235,42,236,237,238,239,240,241,242,243,244,245,246,247,180,248,249,250],"windows","kape","triaging windows with kape","registry","browser","logs","windows-forensics","dfir","mft","mftecmd","data","prefetch","eric-zimmerman","digital-forensics","SET","collection","pecmd","artifact-collection",{"skillNo":252,"name":253,"nameZh":254,"description":255,"descriptionZh":256,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":257,"categories":258,"keywords":263,"publishedAt":51},"01M6AGD5PW5J4EVZM958WD74ZQ","triaging-vulnerabilities-with-ssvc-framework","SSVC 漏洞优先级分诊","Triages and prioritizes vulnerabilities with CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree, weighing exploitation status (via the CISA KEV catalog and FIRST EPSS API), technical impact, automatability, and mission prevalence to output Track\u002FTrack*\u002FAttend\u002FAct decisions. Use when prioritizing vulnerability scan results (OpenVAS, Nessus, Qualys) for remediation planning beyond raw CVSS scores.","使用 CISA 的 Stakeholder-Specific Vulnerability Categorization（SSVC，利益相关方特定漏洞分类）决策树对漏洞进行分诊和优先级排序，权衡利用状态（通过 CISA KEV 目录和 FIRST EPSS API）、技术影响、自动化程度和任务普遍性，输出 Track\u002FTrack*\u002FAttend\u002FAct 决策。适用于对漏洞扫描结果（OpenVAS、Nessus、Qualys）进行优先级排序以制定修复计划，而不局限于原始 CVSS 分数的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[259,262],{"categoryNo":260,"categoryName":261,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[264,265,266,42,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282],"vulnerabilities","framework","triaging vulnerabilities with ssvc framework","status","planning","CISA","vulnerability-management","risk-management","nessus","qualys","openvas","cvss","remediation","risk","vulnerability","api","prioritization","ssvc","decision-tree",{"skillNo":284,"name":285,"nameZh":286,"description":287,"descriptionZh":288,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":289,"categories":290,"keywords":295,"publishedAt":51},"01M6AGD24TTQQM4CXG69E3B9TJ","triaging-security-incident","安全事件初步分诊","Performs initial triage of security incidents using the NIST SP 800-61r3 and SANS PICERL frameworks, classifying incident type, assigning priority by business impact, and routing to the appropriate response team. Use when a SIEM\u002FEDR alert needs human classification, concurrent alerts must be prioritized, or a user report or threat-intel IOC match requires initial incident categorization.","使用 NIST SP 800-61r3 和 SANS PICERL 框架对安全事件进行初步分诊，分类事件类型、按业务影响分配优先级，并路由到相应的响应团队。适用于 SIEM\u002FEDR 告警需要人工分类、并发告警必须确定优先级，或用户报告或威胁情报 IOC 匹配需要初步事件分类的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-security-incident\u002FSKILL.md",[291,292],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":293,"categoryName":294,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTHYSJPJ500X64JJ5CH06D","安全事件响应与威胁狩猎",[146,296,42,297,298,299,46,300,301,34,302,215,303,216,304,305,306,307,308,309],"triaging security incident","siem","file","ioc","NIST-800-61","NIST","edr","execution","analysis","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]