[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A55ESWDBASTDRMAP9S39CZ":3,"skill-same:01M7A55ESWDBASTDRMAP9S39CZ":82},{"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":45,"commitSha":46,"skillDirectory":47,"forksCount":14,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M7A55ESWDBASTDRMAP9S39CZ","conducting-cloud-incident-response",null,"Respond to security incidents in AWS, Azure, and GCP via identity-based containment, cloud-native log analysis (CloudTrail, Azure Activity Logs, GCP Audit Logs), resource isolation, and forensic evidence acquisition adapted for ephemeral cloud infrastructure. Use when CSPM alerts or audit logs show compromised cloud credentials, unauthorized IAM changes, or a breach spanning cloud services.","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\u002Fconducting-cloud-incident-response\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconducting-cloud-incident-response\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: conducting-cloud-incident-response\ndescription: Respond to security incidents in AWS, Azure, and GCP via identity-based containment, cloud-native log analysis (CloudTrail, Azure Activity Logs, GCP Audit Logs), resource isolation, and forensic evidence acquisition adapted for ephemeral cloud infrastructure. Use when CSPM alerts or audit logs show compromised cloud credentials, unauthorized IAM changes, or a breach spanning cloud services.\ndomain: cybersecurity\nsubdomain: incident-response\ntags:\n- cloud-IR\n- AWS-forensics\n- Azure-incident-response\n- GCP-security\n- identity-containment\nmitre_attack:\n- T1078\n- T1537\n- T1580\n- T1525\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- RS.MA-01\n- RS.MA-02\n- RS.AN-03\n- RC.RP-01\n---\n\n# Conducting Cloud Incident Response\n\n## When to Use\n\n- Cloud security posture management (CSPM) alerts on unauthorized resource changes\n- CloudTrail, Azure Activity Logs, or GCP Audit Logs show suspicious API calls\n- Cloud access keys or service principal credentials are suspected compromised\n- Unauthorized compute instances, storage buckets, or IAM changes are detected\n- A cloud-hosted application is breached and attacker activity spans cloud services\n\n**Do not use** for on-premises-only incidents with no cloud component; use standard enterprise IR procedures.\n\n## Prerequisites\n\n- Cloud-native logging enabled and centralized: AWS CloudTrail (all regions), Azure Activity\u002FSign-in Logs, GCP Cloud Audit Logs\n- IR-specific cloud IAM roles pre-provisioned with read-only forensic access\n- Isolated forensic account\u002Fsubscription\u002Fproject for evidence preservation\n- Cloud incident response runbooks specific to each cloud provider\n- Cloud-native security tools: AWS GuardDuty, Azure Defender for Cloud, GCP Security Command Center\n- Network traffic logging: VPC Flow Logs (AWS\u002FGCP), NSG Flow Logs (Azure)\n\n## Workflow\n\n### Step 1: Detect and Confirm the Cloud Incident\n\nIdentify the scope and nature of the compromise:\n\n**AWS Indicators:**\n```\nCloudTrail suspicious events to investigate:\n- ConsoleLogin from unexpected geolocation or IP\n- CreateAccessKey for existing IAM user (persistence)\n- RunInstances for crypto-mining (large instance types)\n- PutBucketPolicy making S3 bucket public\n- AssumeRole to cross-account roles\n- DeleteTrail or StopLogging (defense evasion)\n- CreateUser or AttachUserPolicy (privilege escalation)\n```\n\n**Azure Indicators:**\n```\nAzure Activity Log events to investigate:\n- Sign-in from anonymous IP or TOR exit node\n- Service principal credential added\n- Role assignment changes (Owner, Contributor added)\n- VM created in unusual region\n- Storage account access key regenerated\n- Conditional Access policy modified or deleted\n- MFA disabled for user account\n```\n\n**GCP Indicators:**\n```\nGCP Audit Log events to investigate:\n- SetIamPolicy changes granting broad access\n- CreateServiceAccountKey for existing SA\n- InsertInstance in unexpected zone\n- SetBucketIamPolicy with allUsers\n- DeleteLog or UpdateSink (log tampering)\n```\n\n### Step 2: Contain Cloud Identity Compromise\n\nCloud containment is primarily an identity operation:\n\n**AWS Containment:**\n```bash\n# Disable compromised IAM access keys\naws iam update-access-key --user-name compromised-user \\\n  --access-key-id AKIA... --status Inactive\n\n# Attach deny-all policy to compromised user\naws iam attach-user-policy --user-name compromised-user \\\n  --policy-arn arn:aws:iam::aws:policy\u002FAWSDenyAll\n\n# Revoke all active sessions for compromised IAM role\naws iam put-role-policy --role-name compromised-role \\\n  --policy-name RevokeOlderSessions --policy-document '{\n    \"Version\":\"2012-10-17\",\n    \"Statement\":[{\n      \"Effect\":\"Deny\",\n      \"Action\":\"*\",\n      \"Resource\":\"*\",\n      \"Condition\":{\"DateLessThan\":\n        {\"aws:TokenIssueTime\":\"2025-11-15T15:00:00Z\"}}\n    }]\n  }'\n\n# Isolate compromised EC2 instance\naws ec2 modify-instance-attribute --instance-id i-0abc123 \\\n  --groups sg-isolate-forensic\n```\n\n**Azure Containment:**\n```powershell\n# Disable compromised user\nSet-AzureADUser -ObjectId \"user@tenant.onmicrosoft.com\" -AccountEnabled $false\n\n# Revoke all sessions\nRevoke-AzureADUserAllRefreshToken -ObjectId \"user-object-id\"\n\n# Remove role assignments\nRemove-AzRoleAssignment -ObjectId \"sp-object-id\" -RoleDefinitionName \"Contributor\"\n\n# Isolate VM with NSG deny-all rule\n$nsg = New-AzNetworkSecurityGroup -Name \"isolate-nsg\" -ResourceGroupName \"rg\" -Location \"eastus\"\n$nsg | Add-AzNetworkSecurityRuleConfig -Name \"DenyAll\" -Priority 100 -Direction Inbound `\n  -Access Deny -Protocol * -SourceAddressPrefix * -SourcePortRange * `\n  -DestinationAddressPrefix * -DestinationPortRange *\n```\n\n### Step 3: Preserve Cloud Evidence\n\nCollect evidence before ephemeral resources are terminated or logs rotate:\n\n**AWS Evidence Collection:**\n- Export CloudTrail events to S3 in the forensic account\n- Snapshot EBS volumes of compromised EC2 instances\n- Copy S3 access logs and object versions\n- Export VPC Flow Logs for the affected VPC\n- Capture IAM credential reports and access advisor data\n\n**Azure Evidence Collection:**\n- Export Azure Activity Logs and Sign-in Logs (90-day retention by default)\n- Snapshot managed disks of compromised VMs\n- Export Azure AD audit logs\n- Capture NSG flow logs\n- Export Conditional Access sign-in details\n\n**GCP Evidence Collection:**\n- Export Cloud Audit Logs to a forensic storage bucket\n- Snapshot persistent disks of compromised VMs\n- Export VPC Flow Logs\n- Capture IAM policy snapshots\n\n### Step 4: Investigate Cloud-Specific Attack Patterns\n\nAnalyze logs for common cloud attack techniques:\n\n```\nCommon Cloud Attack Patterns:\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n1. Credential Compromise → IAM Privilege Escalation → Resource Abuse\n2. Public S3\u002FBlob → Data Exfiltration\n3. SSRF from Web App → IMDS Token Theft → Lateral Movement\n4. Compromised CI\u002FCD Pipeline → Malicious Deployment\n5. Cross-Account Role Abuse → Multi-Account Pivot\n6. Lambda\u002FFunction Abuse → Crypto-mining or Data Processing\n```\n\n**IMDS Token Theft Investigation (AWS):**\n```bash\n# Search CloudTrail for API calls using instance role credentials from external IP\naws cloudtrail lookup-events --lookup-attributes \\\n  AttributeKey=EventSource,AttributeValue=ec2.amazonaws.com \\\n  --start-time 2025-11-14 --end-time 2025-11-16 \\\n  | jq '.Events[] | select(.CloudTrailEvent | fromjson | .sourceIPAddress != \"internal\")'\n```\n\n### Step 5: Eradicate and Recover\n\nRemove adversary access and restore secure state:\n\n- Rotate all compromised credentials (access keys, passwords, service principal secrets)\n- Remove unauthorized IAM users, roles, policies, and access keys created by the attacker\n- Terminate unauthorized compute instances (crypto-miners, C2 servers)\n- Restore modified S3 bucket policies and storage access policies to pre-incident state\n- Re-enable security controls that were disabled (CloudTrail, GuardDuty, Defender for Cloud)\n- Review and restore Conditional Access policies and MFA configurations\n\n### Step 6: Post-Incident Cloud Hardening\n\nImplement controls to prevent recurrence:\n\n- Enable MFA for all IAM users and require MFA for sensitive API calls\n- Implement SCPs (AWS) or Azure Policy to prevent logging disablement\n- Enable GuardDuty \u002F Defender for Cloud \u002F Security Command Center with auto-remediation\n- Implement least-privilege IAM policies using access analyzer data\n- Enable IMDS v2 (token-required) on all EC2 instances to prevent SSRF-based token theft\n- Configure budget alerts to detect crypto-mining cost spikes\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **IMDS (Instance Metadata Service)** | Cloud service providing instance credentials accessible from within a VM; SSRF attacks target IMDS to steal tokens |\n| **CloudTrail** | AWS service logging all API calls across the AWS account; primary evidence source for AWS incident response |\n| **Service Principal** | Non-human identity in Azure AD used by applications and services; compromise enables persistent API access |\n| **SCP (Service Control Policy)** | AWS Organizations policy that limits the maximum permissions available to accounts; useful for guardrails |\n| **Ephemeral Infrastructure** | Cloud resources (containers, functions, auto-scaled instances) that may be terminated before evidence can be collected |\n| **Cross-Account Role Assumption** | AWS mechanism allowing one account to temporarily access resources in another; attackers pivot through assumed roles |\n\n## Tools & Systems\n\n- **AWS CloudTrail \u002F Azure Activity Logs \u002F GCP Audit Logs**: Cloud-native API logging services providing the primary audit trail\n- **Cado Response**: Cloud-native forensics platform for automated evidence capture from AWS, Azure, and GCP\n- **Prowler (AWS) \u002F ScoutSuite (multi-cloud)**: Open-source cloud security assessment tools for post-incident posture review\n- **Steampipe**: Open-source SQL-based tool for querying cloud APIs to investigate IAM configurations and resource states\n- **Cartography (Lyft)**: Open-source tool for mapping cloud infrastructure relationships and identifying attack paths\n\n## Common Scenarios\n\n### Scenario: AWS Access Key Compromised via Public GitHub Repository\n\n**Context**: AWS GuardDuty alerts on API calls from an unexpected IP address using an IAM user's access key. The key was accidentally committed to a public GitHub repository 4 hours ago.\n\n**Approach**:\n1. Immediately disable the compromised access key via AWS IAM\n2. Attach AWSDenyAll policy to the affected IAM user\n3. Query CloudTrail for all API calls made with the compromised key since exposure\n4. Identify resources created or modified by the attacker (EC2 instances for crypto-mining, new IAM users for persistence)\n5. Terminate unauthorized resources and remove backdoor IAM entities\n6. Rotate all credentials the compromised user had access to\n7. Enable GitHub secret scanning to prevent future credential leaks\n\n**Pitfalls**:\n- Only disabling the access key without checking for new access keys or IAM users created as persistence\n- Not checking all AWS regions for attacker-created resources (crypto-miners deployed in every region)\n- Forgetting to revoke temporary credentials from assumed roles (STS tokens remain valid until expiry)\n- Not calculating the financial impact of unauthorized resource usage for insurance claims\n\n## Output Format\n\n```\nCLOUD INCIDENT RESPONSE REPORT\n================================\nIncident:          INC-2025-1705\nCloud Provider:    AWS (Account: 123456789012)\nDate Detected:     2025-11-15T14:00:00Z\nDetection Source:  GuardDuty - UnauthorizedAccess:IAMUser\u002FInstanceCredentialExfiltration\n\nCOMPROMISE SUMMARY\nInitial Access:    IAM access key exposed in public GitHub repo\nAffected Identity: iam-user: deploy-bot (AKIA...)\nAttacker IP:       203.0.113.42 (VPN exit node, Netherlands)\nDuration:          4 hours (10:00 UTC - 14:00 UTC)\n\nATTACKER ACTIVITY (from CloudTrail)\n10:15 UTC - DescribeInstances (reconnaissance)\n10:18 UTC - RunInstances x 12 (c5.4xlarge, all regions - crypto-mining)\n10:22 UTC - CreateUser \"backup-admin\" (persistence)\n10:23 UTC - CreateAccessKey for \"backup-admin\"\n10:25 UTC - AttachUserPolicy - AdministratorAccess to \"backup-admin\"\n10:30 UTC - PutBucketPolicy - s3:\u002F\u002Fdata-bucket made public (exfiltration)\n\nCONTAINMENT ACTIONS\n[x] Original access key disabled\n[x] User policy set to AWSDenyAll\n[x] Backdoor IAM user \"backup-admin\" deleted\n[x] 12 crypto-mining instances terminated (all regions)\n[x] S3 bucket policy restored to private\n\nFINANCIAL IMPACT\nUnauthorized EC2: $2,847 (4 hours x 12 x c5.4xlarge)\nData Transfer:    $127 (S3 public access data egress)\nTotal:            $2,974\n\nPOST-INCIDENT HARDENING\n1. GitHub secret scanning enabled\n2. Access key rotation policy implemented\n3. SCP preventing CloudTrail disablement deployed\n4. GuardDuty auto-remediation Lambda configured\n```\n","# Conducting Cloud Incident Response\n\n## When to Use\n\n- Cloud security posture management (CSPM) alerts on unauthorized resource changes\n- CloudTrail, Azure Activity Logs, or GCP Audit Logs show suspicious API calls\n- Cloud access keys or service principal credentials are suspected compromised\n- Unauthorized compute instances, storage buckets, or IAM changes are detected\n- A cloud-hosted application is breached and attacker activity spans cloud services\n\n**Do not use** for on-premises-only incidents with no cloud component; use standard enterprise IR procedures.\n\n## Prerequisites\n\n- Cloud-native logging enabled and centralized: AWS CloudTrail (all regions), Azure Activity\u002FSign-in Logs, GCP Cloud Audit Logs\n- IR-specific cloud IAM roles pre-provisioned with read-only forensic access\n- Isolated forensic account\u002Fsubscription\u002Fproject for evidence preservation\n- Cloud incident response runbooks specific to each cloud provider\n- Cloud-native security tools: AWS GuardDuty, Azure Defender for Cloud, GCP Security Command Center\n- Network traffic logging: VPC Flow Logs (AWS\u002FGCP), NSG Flow Logs (Azure)\n\n## Workflow\n\n### Step 1: Detect and Confirm the Cloud Incident\n\nIdentify the scope and nature of the compromise:\n\n**AWS Indicators:**\n```\nCloudTrail suspicious events to investigate:\n- ConsoleLogin from unexpected geolocation or IP\n- CreateAccessKey for existing IAM user (persistence)\n- RunInstances for crypto-mining (large instance types)\n- PutBucketPolicy making S3 bucket public\n- AssumeRole to cross-account roles\n- DeleteTrail or StopLogging (defense evasion)\n- CreateUser or AttachUserPolicy (privilege escalation)\n```\n\n**Azure Indicators:**\n```\nAzure Activity Log events to investigate:\n- Sign-in from anonymous IP or TOR exit node\n- Service principal credential added\n- Role assignment changes (Owner, Contributor added)\n- VM created in unusual region\n- Storage account access key regenerated\n- Conditional Access policy modified or deleted\n- MFA disabled for user account\n```\n\n**GCP Indicators:**\n```\nGCP Audit Log events to investigate:\n- SetIamPolicy changes granting broad access\n- CreateServiceAccountKey for existing SA\n- InsertInstance in unexpected zone\n- SetBucketIamPolicy with allUsers\n- DeleteLog or UpdateSink (log tampering)\n```\n\n### Step 2: Contain Cloud Identity Compromise\n\nCloud containment is primarily an identity operation:\n\n**AWS Containment:**\n```bash\n# Disable compromised IAM access keys\naws iam update-access-key --user-name compromised-user \\\n  --access-key-id AKIA... --status Inactive\n\n# Attach deny-all policy to compromised user\naws iam attach-user-policy --user-name compromised-user \\\n  --policy-arn arn:aws:iam::aws:policy\u002FAWSDenyAll\n\n# Revoke all active sessions for compromised IAM role\naws iam put-role-policy --role-name compromised-role \\\n  --policy-name RevokeOlderSessions --policy-document '{\n    \"Version\":\"2012-10-17\",\n    \"Statement\":[{\n      \"Effect\":\"Deny\",\n      \"Action\":\"*\",\n      \"Resource\":\"*\",\n      \"Condition\":{\"DateLessThan\":\n        {\"aws:TokenIssueTime\":\"2025-11-15T15:00:00Z\"}}\n    }]\n  }'\n\n# Isolate compromised EC2 instance\naws ec2 modify-instance-attribute --instance-id i-0abc123 \\\n  --groups sg-isolate-forensic\n```\n\n**Azure Containment:**\n```powershell\n# Disable compromised user\nSet-AzureADUser -ObjectId \"user@tenant.onmicrosoft.com\" -AccountEnabled $false\n\n# Revoke all sessions\nRevoke-AzureADUserAllRefreshToken -ObjectId \"user-object-id\"\n\n# Remove role assignments\nRemove-AzRoleAssignment -ObjectId \"sp-object-id\" -RoleDefinitionName \"Contributor\"\n\n# Isolate VM with NSG deny-all rule\n$nsg = New-AzNetworkSecurityGroup -Name \"isolate-nsg\" -ResourceGroupName \"rg\" -Location \"eastus\"\n$nsg | Add-AzNetworkSecurityRuleConfig -Name \"DenyAll\" -Priority 100 -Direction Inbound `\n  -Access Deny -Protocol * -SourceAddressPrefix * -SourcePortRange * `\n  -DestinationAddressPrefix * -DestinationPortRange *\n```\n\n### Step 3: Preserve Cloud Evidence\n\nCollect evidence before ephemeral resources are terminated or logs rotate:\n\n**AWS Evidence Collection:**\n- Export CloudTrail events to S3 in the forensic account\n- Snapshot EBS volumes of compromised EC2 instances\n- Copy S3 access logs and object versions\n- Export VPC Flow Logs for the affected VPC\n- Capture IAM credential reports and access advisor data\n\n**Azure Evidence Collection:**\n- Export Azure Activity Logs and Sign-in Logs (90-day retention by default)\n- Snapshot managed disks of compromised VMs\n- Export Azure AD audit logs\n- Capture NSG flow logs\n- Export Conditional Access sign-in details\n\n**GCP Evidence Collection:**\n- Export Cloud Audit Logs to a forensic storage bucket\n- Snapshot persistent disks of compromised VMs\n- Export VPC Flow Logs\n- Capture IAM policy snapshots\n\n### Step 4: Investigate Cloud-Specific Attack Patterns\n\nAnalyze logs for common cloud attack techniques:\n\n```\nCommon Cloud Attack Patterns:\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n1. Credential Compromise → IAM Privilege Escalation → Resource Abuse\n2. Public S3\u002FBlob → Data Exfiltration\n3. SSRF from Web App → IMDS Token Theft → Lateral Movement\n4. Compromised CI\u002FCD Pipeline → Malicious Deployment\n5. Cross-Account Role Abuse → Multi-Account Pivot\n6. Lambda\u002FFunction Abuse → Crypto-mining or Data Processing\n```\n\n**IMDS Token Theft Investigation (AWS):**\n```bash\n# Search CloudTrail for API calls using instance role credentials from external IP\naws cloudtrail lookup-events --lookup-attributes \\\n  AttributeKey=EventSource,AttributeValue=ec2.amazonaws.com \\\n  --start-time 2025-11-14 --end-time 2025-11-16 \\\n  | jq '.Events[] | select(.CloudTrailEvent | fromjson | .sourceIPAddress != \"internal\")'\n```\n\n### Step 5: Eradicate and Recover\n\nRemove adversary access and restore secure state:\n\n- Rotate all compromised credentials (access keys, passwords, service principal secrets)\n- Remove unauthorized IAM users, roles, policies, and access keys created by the attacker\n- Terminate unauthorized compute instances (crypto-miners, C2 servers)\n- Restore modified S3 bucket policies and storage access policies to pre-incident state\n- Re-enable security controls that were disabled (CloudTrail, GuardDuty, Defender for Cloud)\n- Review and restore Conditional Access policies and MFA configurations\n\n### Step 6: Post-Incident Cloud Hardening\n\nImplement controls to prevent recurrence:\n\n- Enable MFA for all IAM users and require MFA for sensitive API calls\n- Implement SCPs (AWS) or Azure Policy to prevent logging disablement\n- Enable GuardDuty \u002F Defender for Cloud \u002F Security Command Center with auto-remediation\n- Implement least-privilege IAM policies using access analyzer data\n- Enable IMDS v2 (token-required) on all EC2 instances to prevent SSRF-based token theft\n- Configure budget alerts to detect crypto-mining cost spikes\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **IMDS (Instance Metadata Service)** | Cloud service providing instance credentials accessible from within a VM; SSRF attacks target IMDS to steal tokens |\n| **CloudTrail** | AWS service logging all API calls across the AWS account; primary evidence source for AWS incident response |\n| **Service Principal** | Non-human identity in Azure AD used by applications and services; compromise enables persistent API access |\n| **SCP (Service Control Policy)** | AWS Organizations policy that limits the maximum permissions available to accounts; useful for guardrails |\n| **Ephemeral Infrastructure** | Cloud resources (containers, functions, auto-scaled instances) that may be terminated before evidence can be collected |\n| **Cross-Account Role Assumption** | AWS mechanism allowing one account to temporarily access resources in another; attackers pivot through assumed roles |\n\n## Tools & Systems\n\n- **AWS CloudTrail \u002F Azure Activity Logs \u002F GCP Audit Logs**: Cloud-native API logging services providing the primary audit trail\n- **Cado Response**: Cloud-native forensics platform for automated evidence capture from AWS, Azure, and GCP\n- **Prowler (AWS) \u002F ScoutSuite (multi-cloud)**: Open-source cloud security assessment tools for post-incident posture review\n- **Steampipe**: Open-source SQL-based tool for querying cloud APIs to investigate IAM configurations and resource states\n- **Cartography (Lyft)**: Open-source tool for mapping cloud infrastructure relationships and identifying attack paths\n\n## Common Scenarios\n\n### Scenario: AWS Access Key Compromised via Public GitHub Repository\n\n**Context**: AWS GuardDuty alerts on API calls from an unexpected IP address using an IAM user's access key. The key was accidentally committed to a public GitHub repository 4 hours ago.\n\n**Approach**:\n1. Immediately disable the compromised access key via AWS IAM\n2. Attach AWSDenyAll policy to the affected IAM user\n3. Query CloudTrail for all API calls made with the compromised key since exposure\n4. Identify resources created or modified by the attacker (EC2 instances for crypto-mining, new IAM users for persistence)\n5. Terminate unauthorized resources and remove backdoor IAM entities\n6. Rotate all credentials the compromised user had access to\n7. Enable GitHub secret scanning to prevent future credential leaks\n\n**Pitfalls**:\n- Only disabling the access key without checking for new access keys or IAM users created as persistence\n- Not checking all AWS regions for attacker-created resources (crypto-miners deployed in every region)\n- Forgetting to revoke temporary credentials from assumed roles (STS tokens remain valid until expiry)\n- Not calculating the financial impact of unauthorized resource usage for insurance claims\n\n## Output Format\n\n```\nCLOUD INCIDENT RESPONSE REPORT\n================================\nIncident:          INC-2025-1705\nCloud Provider:    AWS (Account: 123456789012)\nDate Detected:     2025-11-15T14:00:00Z\nDetection Source:  GuardDuty - UnauthorizedAccess:IAMUser\u002FInstanceCredentialExfiltration\n\nCOMPROMISE SUMMARY\nInitial Access:    IAM access key exposed in public GitHub repo\nAffected Identity: iam-user: deploy-bot (AKIA...)\nAttacker IP:       203.0.113.42 (VPN exit node, Netherlands)\nDuration:          4 hours (10:00 UTC - 14:00 UTC)\n\nATTACKER ACTIVITY (from CloudTrail)\n10:15 UTC - DescribeInstances (reconnaissance)\n10:18 UTC - RunInstances x 12 (c5.4xlarge, all regions - crypto-mining)\n10:22 UTC - CreateUser \"backup-admin\" (persistence)\n10:23 UTC - CreateAccessKey for \"backup-admin\"\n10:25 UTC - AttachUserPolicy - AdministratorAccess to \"backup-admin\"\n10:30 UTC - PutBucketPolicy - s3:\u002F\u002Fdata-bucket made public (exfiltration)\n\nCONTAINMENT ACTIONS\n[x] Original access key disabled\n[x] User policy set to AWSDenyAll\n[x] Backdoor IAM user \"backup-admin\" deleted\n[x] 12 crypto-mining instances terminated (all regions)\n[x] S3 bucket policy restored to private\n\nFINANCIAL IMPACT\nUnauthorized EC2: $2,847 (4 hours x 12 x c5.4xlarge)\nData Transfer:    $127 (S3 public access data egress)\nTotal:            $2,974\n\nPOST-INCIDENT HARDENING\n1. GitHub secret scanning enabled\n2. Access key rotation policy implemented\n3. SCP preventing CloudTrail disablement deployed\n4. GuardDuty auto-remediation Lambda configured\n```\n",{"name":5,"tags":25,"author":31,"domain":32,"license":15,"version":33,"nist_csf":34,"subdomain":39,"description":7,"mitre_attack":40},[26,27,28,29,30],"cloud-IR","AWS-forensics","Azure-incident-response","GCP-security","identity-containment","mahipal","cybersecurity","1.0.0",[35,36,37,38],"RS.MA-01","RS.MA-02","RS.AN-03","RC.RP-01","incident-response",[41,42,43,44],"T1078","T1537","T1580","T1525","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fconducting-cloud-incident-response","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":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add NeelakshSaxena\u002FVayu --skill conducting-cloud-incident-response",{"tool":58,"command":59},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill conducting-cloud-incident-response",{"tool":61,"command":62},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill conducting-cloud-incident-response","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconducting-cloud-incident-response\u002FSKILL.md",true,[66,70,76],{"path":67,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fapi-reference.md","REFERENCE","参考文档",2464,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconducting-cloud-incident-response\u002Freferences\u002Fapi-reference.md",{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Fagent.py","SCRIPT","脚本",7627,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fconducting-cloud-incident-response\u002Fscripts\u002Fagent.py",[83,90,97,104,111,118],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"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":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"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":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"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":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"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":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"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":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"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",[],[]]