[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A5XGK5QRYK3YTMYHJJX3BR":3,"skill-same:01M7A5XGK5QRYK3YTMYHJJX3BR":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":47,"commitSha":48,"skillDirectory":49,"forksCount":14,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M7A5XGK5QRYK3YTMYHJJX3BR","detecting-cloud-threats-with-guardduty",null,"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.","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-cloud-threats-with-guardduty\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-cloud-threats-with-guardduty\u002FSKILL.md",[],[],"2026-11-15 14:19:17",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":25,"author":31,"domain":32,"license":15,"version":33,"nist_csf":34,"subdomain":39,"description":40,"mitre_attack":41},[26,27,28,29,30],"amazon-guardduty","threat-detection","aws-security","runtime-monitoring","cloud-soc","mahipal","cybersecurity","1.0.0",[35,36,37,38],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01","cloud-security","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",[42,43,44,45,46],"T1078.004","T1530","T1537","T1580","T1071","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fdetecting-cloud-threats-with-guardduty","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add NeelakshSaxena\u002FVayu --skill detecting-cloud-threats-with-guardduty",{"tool":60,"command":61},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill detecting-cloud-threats-with-guardduty",{"tool":63,"command":64},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill detecting-cloud-threats-with-guardduty","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-cloud-threats-with-guardduty\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","参考文档",2300,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-cloud-threats-with-guardduty\u002Freferences\u002Fapi-reference.md",{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Fagent.py","SCRIPT","脚本",6692,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-cloud-threats-with-guardduty\u002Fscripts\u002Fagent.py",[85,92,99,106,113,120],{"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":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":20},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":20},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":20},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":20},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":20},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":20},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]