[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HN38KK4RJR2KC4F2K0TDS3":3,"skill-same:01M6HN38KK4RJR2KC4F2K0TDS3":127},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":70,"commitSha":71,"skillDirectory":72,"forksCount":73,"repositoryHtmlUrl":74,"repositoryHomepageUrl":6,"ownerHtmlUrl":75,"ownerBlogUrl":6,"ownerDescription":76,"updatedAt":77,"install":78,"resources":91},"01M6HN38KK4RJR2KC4F2K0TDS3","performing-cloud-incident-containment-procedures",null,"Execute cloud-native incident containment across AWS, Azure, and GCP by isolating compromised resources, revoking credentials, preserving forensic evidence, and applying security group restrictions to prevent lateral movement.","HenriqueMC17\u002Fagente-core","HenriqueMC17","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206460478?v=4","01M6HB63HBBF18AC4H09XTB549","Henrique Monteiro Cardoso","01M6HB63NGSQXWKWCFWW2B20W0",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fperforming-cloud-incident-containment-procedures\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"performing","cloud","containment","incident","performing cloud incident containment procedures","t1490","lateral movement","native","resources","across","access","credentials","security","t1078","network-isolation","gcp","network","cloud-security","authentication","cybersecurity","2026-11-10 10:12:30",false,"---\nname: performing-cloud-incident-containment-procedures\ndescription: Execute cloud-native incident containment across AWS, Azure, and GCP by isolating compromised resources, revoking credentials, preserving forensic evidence, and applying security group restrictions to prevent lateral movement.\ndomain: cybersecurity\nsubdomain: incident-response\ntags:\n- cloud-security\n- incident-containment\n- aws\n- azure\n- gcp\n- cloud-forensics\n- credential-revocation\n- network-isolation\nmitre_attack:\n- T1486\n- T1490\n- T1070\n- T1078\n- T1021\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nd3fend_techniques:\n- Restore Access\n- Password Authentication\n- Biometric Authentication\n- Strong Password Policy\n- Restore User Account Access\nnist_csf:\n- RS.MA-01\n- RS.MA-02\n- RS.AN-03\n- RC.RP-01\ncategory: performing-cloud-incident-containment-procedures\n---\n# Performing Cloud Incident Containment Procedures\n\n## Overview\n\nCloud incident containment requires cloud-native approaches that differ significantly from traditional on-premises response. Containment procedures must leverage platform-specific controls including security groups, IAM policies, network ACLs, and service-level isolation to restrict compromised resources while preserving forensic evidence. According to the 2025 Unit 42 Global Incident Response Report, responding to cloud incidents requires understanding shared responsibility models, ephemeral infrastructure, and API-driven operations. Effective containment involves credential revocation, resource isolation, evidence snapshot creation, and automated response playbook execution.\n\n\n## When to Use\n\n- When conducting security assessments that involve performing cloud incident containment procedures\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n\n- Familiarity with incident response concepts and tools\n- Access to a test or lab environment for safe execution\n- Python 3.8+ with required dependencies installed\n- Appropriate authorization for any testing activities\n\n## AWS Containment Procedures\n\n### 1. Credential Compromise Containment\n\n```bash\n# Disable compromised IAM user access keys\naws iam update-access-key --user-name compromised-user \\\n  --access-key-id AKIA... --status Inactive\n\n# List and disable all access keys for user\naws iam list-access-keys --user-name compromised-user\naws iam delete-access-key --user-name compromised-user --access-key-id AKIA...\n\n# Attach deny-all policy to compromised user\naws iam put-user-policy --user-name compromised-user \\\n  --policy-name DenyAll \\\n  --policy-document '{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [{\n      \"Effect\": \"Deny\",\n      \"Action\": \"*\",\n      \"Resource\": \"*\"\n    }]\n  }'\n\n# Revoke all active sessions for IAM role\naws iam put-role-policy --role-name compromised-role \\\n  --policy-name RevokeOldSessions \\\n  --policy-document '{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [{\n      \"Effect\": \"Deny\",\n      \"Action\": \"*\",\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"DateLessThan\": {\"aws:TokenIssueTime\": \"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\"}\n      }\n    }]\n  }'\n\n# Invalidate temporary credentials by updating role trust policy\naws iam update-assume-role-policy --role-name compromised-role \\\n  --policy-document '{\"Version\":\"2012-10-17\",\"Statement\":[]}'\n```\n\n### 2. EC2 Instance Isolation\n\n```bash\n# Create quarantine security group (no inbound, no outbound)\naws ec2 create-security-group --group-name quarantine-sg \\\n  --description \"Quarantine - No traffic allowed\" --vpc-id vpc-xxxxx\n\n# Remove all rules from quarantine SG (default allows outbound)\naws ec2 revoke-security-group-egress --group-id sg-quarantine \\\n  --ip-permissions '[{\"IpProtocol\":\"-1\",\"FromPort\":-1,\"ToPort\":-1,\"IpRanges\":[{\"CidrIp\":\"0.0.0.0\u002F0\"}]}]'\n\n# Take forensic snapshot BEFORE containment\naws ec2 create-snapshot --volume-id vol-xxxxx \\\n  --description \"Forensic snapshot - IR Case 2025-001\" \\\n  --tag-specifications 'ResourceType=snapshot,Tags=[{Key=IR-Case,Value=2025-001}]'\n\n# Apply quarantine security group to compromised instance\naws ec2 modify-instance-attribute --instance-id i-xxxxx \\\n  --groups sg-quarantine\n\n# Tag instance as compromised\naws ec2 create-tags --resources i-xxxxx \\\n  --tags Key=IR-Status,Value=Contained Key=IR-Case,Value=2025-001\n\n# Capture memory (if SSM agent available)\naws ssm send-command --instance-ids i-xxxxx \\\n  --document-name \"AWS-RunShellScript\" \\\n  --parameters 'commands=[\"dd if=\u002Fdev\u002Fmem of=\u002Ftmp\u002Fmemory.dump bs=1M\"]'\n```\n\n### 3. S3 Bucket Containment\n\n```bash\n# Block all public access\naws s3api put-public-access-block --bucket compromised-bucket \\\n  --public-access-block-configuration \\\n  BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true\n\n# Apply deny policy to bucket\naws s3api put-bucket-policy --bucket compromised-bucket \\\n  --policy '{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [{\n      \"Sid\": \"DenyAllExceptForensics\",\n      \"Effect\": \"Deny\",\n      \"NotPrincipal\": {\"AWS\": \"arn:aws:iam::ACCOUNT:role\u002FIR-Forensics\"},\n      \"Action\": \"s3:*\",\n      \"Resource\": [\"arn:aws:s3:::compromised-bucket\",\"arn:aws:s3:::compromised-bucket\u002F*\"]\n    }]\n  }'\n\n# Enable versioning to preserve evidence\naws s3api put-bucket-versioning --bucket compromised-bucket \\\n  --versioning-configuration Status=Enabled\n\n# Enable Object Lock for evidence preservation\naws s3api put-object-lock-configuration --bucket evidence-bucket \\\n  --object-lock-configuration '{\n    \"ObjectLockEnabled\": \"Enabled\",\n    \"Rule\": {\"DefaultRetention\": {\"Mode\": \"COMPLIANCE\", \"Days\": 365}}\n  }'\n```\n\n### 4. Lambda Function Containment\n\n```bash\n# Set reserved concurrency to 0 (stops all invocations)\naws lambda put-function-concurrency --function-name compromised-function \\\n  --reserved-concurrent-executions 0\n\n# Remove all event source mappings\naws lambda list-event-source-mappings --function-name compromised-function\naws lambda delete-event-source-mapping --uuid mapping-uuid\n```\n\n## Azure Containment Procedures\n\n### 1. Identity Containment\n\n```powershell\n# Revoke all user sessions\nRevoke-AzureADUserAllRefreshToken -ObjectId \"user-object-id\"\n\n# Disable user account\nSet-AzureADUser -ObjectId \"user-object-id\" -AccountEnabled $false\n\n# Reset user password\nSet-AzureADUserPassword -ObjectId \"user-object-id\" -Password (\n  ConvertTo-SecureString \"TempP@ss!\" -AsPlainText -Force\n) -ForceChangePasswordNextLogin $true\n\n# Block sign-in via Conditional Access (emergency policy)\n# Create policy blocking user from all cloud apps\n\n# Revoke Azure AD application consent\nRemove-AzureADServiceAppRoleAssignment -ObjectId \"sp-object-id\" \\\n  -AppRoleAssignmentId \"assignment-id\"\n```\n\n### 2. VM Isolation\n\n```powershell\n# Create Network Security Group with deny-all rules\n$nsg = New-AzNetworkSecurityGroup -ResourceGroupName \"rg\" -Location \"eastus\" `\n  -Name \"quarantine-nsg\" `\n  -SecurityRules @(\n    New-AzNetworkSecurityRuleConfig -Name \"DenyAllInbound\" -Protocol * `\n      -Direction Inbound -Priority 100 -SourceAddressPrefix * `\n      -SourcePortRange * -DestinationAddressPrefix * `\n      -DestinationPortRange * -Access Deny,\n    New-AzNetworkSecurityRuleConfig -Name \"DenyAllOutbound\" -Protocol * `\n      -Direction Outbound -Priority 100 -SourceAddressPrefix * `\n      -SourcePortRange * -DestinationAddressPrefix * `\n      -DestinationPortRange * -Access Deny\n  )\n\n# Take disk snapshot for forensics\n$vm = Get-AzVM -ResourceGroupName \"rg\" -Name \"compromised-vm\"\n$snapshotConfig = New-AzSnapshotConfig -SourceUri $vm.StorageProfile.OsDisk.ManagedDisk.Id `\n  -Location \"eastus\" -CreateOption Copy\nNew-AzSnapshot -ResourceGroupName \"rg\" -SnapshotName \"forensic-snap\" -Snapshot $snapshotConfig\n\n# Apply quarantine NSG to VM NIC\n$nic = Get-AzNetworkInterface -ResourceGroupName \"rg\" -Name \"compromised-nic\"\n$nic.NetworkSecurityGroup = $nsg\nSet-AzNetworkInterface -NetworkInterface $nic\n```\n\n### 3. Storage Account Containment\n\n```powershell\n# Remove network access\nUpdate-AzStorageAccountNetworkRuleSet -ResourceGroupName \"rg\" `\n  -Name \"storageaccount\" -DefaultAction Deny\n\n# Regenerate access keys\nNew-AzStorageAccountKey -ResourceGroupName \"rg\" -Name \"storageaccount\" -KeyName key1\nNew-AzStorageAccountKey -ResourceGroupName \"rg\" -Name \"storageaccount\" -KeyName key2\n\n# Revoke all SAS tokens (by rotating keys)\n# Enable immutability for evidence preservation\n```\n\n## GCP Containment Procedures\n\n### 1. IAM Containment\n\n```bash\n# Remove all IAM bindings for compromised service account\ngcloud projects get-iam-policy PROJECT_ID --format=json > policy.json\n# Edit policy.json to remove compromised account bindings\ngcloud projects set-iam-policy PROJECT_ID policy.json\n\n# Disable service account\ngcloud iam service-accounts disable SA_EMAIL\n\n# Delete service account keys\ngcloud iam service-accounts keys list --iam-account SA_EMAIL\ngcloud iam service-accounts keys delete KEY_ID --iam-account SA_EMAIL\n```\n\n### 2. Compute Instance Isolation\n\n```bash\n# Create forensic snapshot\ngcloud compute disks snapshot compromised-disk \\\n  --snapshot-names forensic-snap-$(date +%Y%m%d) \\\n  --zone us-central1-a\n\n# Apply firewall rule to deny all traffic\ngcloud compute firewall-rules create quarantine-deny-all \\\n  --network default --action DENY --rules all \\\n  --target-tags quarantine --priority 0\n\n# Tag compromised instance\ngcloud compute instances add-tags compromised-instance \\\n  --tags quarantine --zone us-central1-a\n\n# Remove external IP\ngcloud compute instances delete-access-config compromised-instance \\\n  --access-config-name \"External NAT\" --zone us-central1-a\n```\n\n## Evidence Preservation Best Practices\n\n1. **Always snapshot before containment** - Create disk\u002Fvolume snapshots before network isolation\n2. **Preserve CloudTrail\u002FActivity Logs** - Copy logs to write-protected storage\n3. **Document all actions** - Timestamp every containment step taken\n4. **Use break-glass procedures** - Pre-establish emergency access for IR team\n5. **Maintain forensic chain of custody** - Hash all evidence artifacts\n\n## MITRE ATT&CK Cloud Techniques\n\n| Technique | Containment Action |\n|-----------|-------------------|\n| T1078 - Valid Accounts | Disable accounts, revoke tokens |\n| T1530 - Data from Cloud Storage | Lock down bucket\u002Fstorage policies |\n| T1537 - Transfer to Cloud Account | Block cross-account access |\n| T1578 - Modify Cloud Compute | Isolate instances, snapshot disks |\n| T1552 - Unsecured Credentials | Rotate all access keys and secrets |\n\n## References\n\n- [Sygnia: Cloud Incident Response Best Practices](https:\u002F\u002Fwww.sygnia.co\u002Fblog\u002Fincident-response-to-cloud-security-incidents-aws-azure-and-gcp-best-practices\u002F)\n- [Unit 42: Responding to Cloud Incidents](https:\u002F\u002Funit42.paloaltonetworks.com\u002Fresponding-to-cloud-incidents\u002F)\n- [Wiz: Cloud Incident Response Checklist](https:\u002F\u002Fwww.wiz.io\u002Facademy\u002Fincident-response-checklist)\n- [Microsoft Cloud Security Benchmark - IR](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fsecurity\u002Fbenchmark\u002Fazure\u002Fmcsb-incident-response)\n","# Performing Cloud Incident Containment Procedures\n\n## Overview\n\nCloud incident containment requires cloud-native approaches that differ significantly from traditional on-premises response. Containment procedures must leverage platform-specific controls including security groups, IAM policies, network ACLs, and service-level isolation to restrict compromised resources while preserving forensic evidence. According to the 2025 Unit 42 Global Incident Response Report, responding to cloud incidents requires understanding shared responsibility models, ephemeral infrastructure, and API-driven operations. Effective containment involves credential revocation, resource isolation, evidence snapshot creation, and automated response playbook execution.\n\n\n## When to Use\n\n- When conducting security assessments that involve performing cloud incident containment procedures\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n\n- Familiarity with incident response concepts and tools\n- Access to a test or lab environment for safe execution\n- Python 3.8+ with required dependencies installed\n- Appropriate authorization for any testing activities\n\n## AWS Containment Procedures\n\n### 1. Credential Compromise Containment\n\n```bash\n# Disable compromised IAM user access keys\naws iam update-access-key --user-name compromised-user \\\n  --access-key-id AKIA... --status Inactive\n\n# List and disable all access keys for user\naws iam list-access-keys --user-name compromised-user\naws iam delete-access-key --user-name compromised-user --access-key-id AKIA...\n\n# Attach deny-all policy to compromised user\naws iam put-user-policy --user-name compromised-user \\\n  --policy-name DenyAll \\\n  --policy-document '{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [{\n      \"Effect\": \"Deny\",\n      \"Action\": \"*\",\n      \"Resource\": \"*\"\n    }]\n  }'\n\n# Revoke all active sessions for IAM role\naws iam put-role-policy --role-name compromised-role \\\n  --policy-name RevokeOldSessions \\\n  --policy-document '{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [{\n      \"Effect\": \"Deny\",\n      \"Action\": \"*\",\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"DateLessThan\": {\"aws:TokenIssueTime\": \"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\"}\n      }\n    }]\n  }'\n\n# Invalidate temporary credentials by updating role trust policy\naws iam update-assume-role-policy --role-name compromised-role \\\n  --policy-document '{\"Version\":\"2012-10-17\",\"Statement\":[]}'\n```\n\n### 2. EC2 Instance Isolation\n\n```bash\n# Create quarantine security group (no inbound, no outbound)\naws ec2 create-security-group --group-name quarantine-sg \\\n  --description \"Quarantine - No traffic allowed\" --vpc-id vpc-xxxxx\n\n# Remove all rules from quarantine SG (default allows outbound)\naws ec2 revoke-security-group-egress --group-id sg-quarantine \\\n  --ip-permissions '[{\"IpProtocol\":\"-1\",\"FromPort\":-1,\"ToPort\":-1,\"IpRanges\":[{\"CidrIp\":\"0.0.0.0\u002F0\"}]}]'\n\n# Take forensic snapshot BEFORE containment\naws ec2 create-snapshot --volume-id vol-xxxxx \\\n  --description \"Forensic snapshot - IR Case 2025-001\" \\\n  --tag-specifications 'ResourceType=snapshot,Tags=[{Key=IR-Case,Value=2025-001}]'\n\n# Apply quarantine security group to compromised instance\naws ec2 modify-instance-attribute --instance-id i-xxxxx \\\n  --groups sg-quarantine\n\n# Tag instance as compromised\naws ec2 create-tags --resources i-xxxxx \\\n  --tags Key=IR-Status,Value=Contained Key=IR-Case,Value=2025-001\n\n# Capture memory (if SSM agent available)\naws ssm send-command --instance-ids i-xxxxx \\\n  --document-name \"AWS-RunShellScript\" \\\n  --parameters 'commands=[\"dd if=\u002Fdev\u002Fmem of=\u002Ftmp\u002Fmemory.dump bs=1M\"]'\n```\n\n### 3. S3 Bucket Containment\n\n```bash\n# Block all public access\naws s3api put-public-access-block --bucket compromised-bucket \\\n  --public-access-block-configuration \\\n  BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true\n\n# Apply deny policy to bucket\naws s3api put-bucket-policy --bucket compromised-bucket \\\n  --policy '{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [{\n      \"Sid\": \"DenyAllExceptForensics\",\n      \"Effect\": \"Deny\",\n      \"NotPrincipal\": {\"AWS\": \"arn:aws:iam::ACCOUNT:role\u002FIR-Forensics\"},\n      \"Action\": \"s3:*\",\n      \"Resource\": [\"arn:aws:s3:::compromised-bucket\",\"arn:aws:s3:::compromised-bucket\u002F*\"]\n    }]\n  }'\n\n# Enable versioning to preserve evidence\naws s3api put-bucket-versioning --bucket compromised-bucket \\\n  --versioning-configuration Status=Enabled\n\n# Enable Object Lock for evidence preservation\naws s3api put-object-lock-configuration --bucket evidence-bucket \\\n  --object-lock-configuration '{\n    \"ObjectLockEnabled\": \"Enabled\",\n    \"Rule\": {\"DefaultRetention\": {\"Mode\": \"COMPLIANCE\", \"Days\": 365}}\n  }'\n```\n\n### 4. Lambda Function Containment\n\n```bash\n# Set reserved concurrency to 0 (stops all invocations)\naws lambda put-function-concurrency --function-name compromised-function \\\n  --reserved-concurrent-executions 0\n\n# Remove all event source mappings\naws lambda list-event-source-mappings --function-name compromised-function\naws lambda delete-event-source-mapping --uuid mapping-uuid\n```\n\n## Azure Containment Procedures\n\n### 1. Identity Containment\n\n```powershell\n# Revoke all user sessions\nRevoke-AzureADUserAllRefreshToken -ObjectId \"user-object-id\"\n\n# Disable user account\nSet-AzureADUser -ObjectId \"user-object-id\" -AccountEnabled $false\n\n# Reset user password\nSet-AzureADUserPassword -ObjectId \"user-object-id\" -Password (\n  ConvertTo-SecureString \"TempP@ss!\" -AsPlainText -Force\n) -ForceChangePasswordNextLogin $true\n\n# Block sign-in via Conditional Access (emergency policy)\n# Create policy blocking user from all cloud apps\n\n# Revoke Azure AD application consent\nRemove-AzureADServiceAppRoleAssignment -ObjectId \"sp-object-id\" \\\n  -AppRoleAssignmentId \"assignment-id\"\n```\n\n### 2. VM Isolation\n\n```powershell\n# Create Network Security Group with deny-all rules\n$nsg = New-AzNetworkSecurityGroup -ResourceGroupName \"rg\" -Location \"eastus\" `\n  -Name \"quarantine-nsg\" `\n  -SecurityRules @(\n    New-AzNetworkSecurityRuleConfig -Name \"DenyAllInbound\" -Protocol * `\n      -Direction Inbound -Priority 100 -SourceAddressPrefix * `\n      -SourcePortRange * -DestinationAddressPrefix * `\n      -DestinationPortRange * -Access Deny,\n    New-AzNetworkSecurityRuleConfig -Name \"DenyAllOutbound\" -Protocol * `\n      -Direction Outbound -Priority 100 -SourceAddressPrefix * `\n      -SourcePortRange * -DestinationAddressPrefix * `\n      -DestinationPortRange * -Access Deny\n  )\n\n# Take disk snapshot for forensics\n$vm = Get-AzVM -ResourceGroupName \"rg\" -Name \"compromised-vm\"\n$snapshotConfig = New-AzSnapshotConfig -SourceUri $vm.StorageProfile.OsDisk.ManagedDisk.Id `\n  -Location \"eastus\" -CreateOption Copy\nNew-AzSnapshot -ResourceGroupName \"rg\" -SnapshotName \"forensic-snap\" -Snapshot $snapshotConfig\n\n# Apply quarantine NSG to VM NIC\n$nic = Get-AzNetworkInterface -ResourceGroupName \"rg\" -Name \"compromised-nic\"\n$nic.NetworkSecurityGroup = $nsg\nSet-AzNetworkInterface -NetworkInterface $nic\n```\n\n### 3. Storage Account Containment\n\n```powershell\n# Remove network access\nUpdate-AzStorageAccountNetworkRuleSet -ResourceGroupName \"rg\" `\n  -Name \"storageaccount\" -DefaultAction Deny\n\n# Regenerate access keys\nNew-AzStorageAccountKey -ResourceGroupName \"rg\" -Name \"storageaccount\" -KeyName key1\nNew-AzStorageAccountKey -ResourceGroupName \"rg\" -Name \"storageaccount\" -KeyName key2\n\n# Revoke all SAS tokens (by rotating keys)\n# Enable immutability for evidence preservation\n```\n\n## GCP Containment Procedures\n\n### 1. IAM Containment\n\n```bash\n# Remove all IAM bindings for compromised service account\ngcloud projects get-iam-policy PROJECT_ID --format=json > policy.json\n# Edit policy.json to remove compromised account bindings\ngcloud projects set-iam-policy PROJECT_ID policy.json\n\n# Disable service account\ngcloud iam service-accounts disable SA_EMAIL\n\n# Delete service account keys\ngcloud iam service-accounts keys list --iam-account SA_EMAIL\ngcloud iam service-accounts keys delete KEY_ID --iam-account SA_EMAIL\n```\n\n### 2. Compute Instance Isolation\n\n```bash\n# Create forensic snapshot\ngcloud compute disks snapshot compromised-disk \\\n  --snapshot-names forensic-snap-$(date +%Y%m%d) \\\n  --zone us-central1-a\n\n# Apply firewall rule to deny all traffic\ngcloud compute firewall-rules create quarantine-deny-all \\\n  --network default --action DENY --rules all \\\n  --target-tags quarantine --priority 0\n\n# Tag compromised instance\ngcloud compute instances add-tags compromised-instance \\\n  --tags quarantine --zone us-central1-a\n\n# Remove external IP\ngcloud compute instances delete-access-config compromised-instance \\\n  --access-config-name \"External NAT\" --zone us-central1-a\n```\n\n## Evidence Preservation Best Practices\n\n1. **Always snapshot before containment** - Create disk\u002Fvolume snapshots before network isolation\n2. **Preserve CloudTrail\u002FActivity Logs** - Copy logs to write-protected storage\n3. **Document all actions** - Timestamp every containment step taken\n4. **Use break-glass procedures** - Pre-establish emergency access for IR team\n5. **Maintain forensic chain of custody** - Hash all evidence artifacts\n\n## MITRE ATT&CK Cloud Techniques\n\n| Technique | Containment Action |\n|-----------|-------------------|\n| T1078 - Valid Accounts | Disable accounts, revoke tokens |\n| T1530 - Data from Cloud Storage | Lock down bucket\u002Fstorage policies |\n| T1537 - Transfer to Cloud Account | Block cross-account access |\n| T1578 - Modify Cloud Compute | Isolate instances, snapshot disks |\n| T1552 - Unsecured Credentials | Rotate all access keys and secrets |\n\n## References\n\n- [Sygnia: Cloud Incident Response Best Practices](https:\u002F\u002Fwww.sygnia.co\u002Fblog\u002Fincident-response-to-cloud-security-incidents-aws-azure-and-gcp-best-practices\u002F)\n- [Unit 42: Responding to Cloud Incidents](https:\u002F\u002Funit42.paloaltonetworks.com\u002Fresponding-to-cloud-incidents\u002F)\n- [Wiz: Cloud Incident Response Checklist](https:\u002F\u002Fwww.wiz.io\u002Facademy\u002Fincident-response-checklist)\n- [Microsoft Cloud Security Benchmark - IR](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fsecurity\u002Fbenchmark\u002Fazure\u002Fmcsb-incident-response)\n",{"name":5,"tags":44,"author":50,"domain":38,"license":15,"version":51,"category":5,"nist_csf":52,"subdomain":57,"description":7,"mitre_attack":58,"d3fend_techniques":64},[36,45,46,47,34,48,49,33],"incident-containment","aws","azure","cloud-forensics","credential-revocation","mahipal","1.0",[53,54,55,56],"RS.MA-01","RS.MA-02","RS.AN-03","RC.RP-01","incident-response",[59,60,61,62,63],"T1486","T1490","T1070","T1078","T1021",[65,66,67,68,69],"Restore Access","Password Authentication","Biometric Authentication","Strong Password Policy","Restore User Account Access","main","5eea5b3296f4673b5f481e8bcc1ba76281149f16","modules\u002Fperforming-cloud-incident-containment-procedures",0,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core","https:\u002F\u002Fgithub.com\u002FHenriqueMC17","Qualquer tecnologia suficientemente avançada é indistinguível da mágica.","2026-09-28 22:40:38",{"source":8,"skillName":5,"commands":79,"prompt":89,"zipAvailable":90},[80,83,86],{"tool":81,"command":82},"npx","npx skills add HenriqueMC17\u002Fagente-core --skill performing-cloud-incident-containment-procedures",{"tool":84,"command":85},"bunx","bunx skills add HenriqueMC17\u002Fagente-core --skill performing-cloud-incident-containment-procedures",{"tool":87,"command":88},"pnpm","pnpm dlx skills add HenriqueMC17\u002Fagente-core --skill performing-cloud-incident-containment-procedures","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fperforming-cloud-incident-containment-procedures\u002FSKILL.md",true,[92,98,103,109,113,117,123],{"path":93,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":96,"sourceHtmlUrl":97},"assets\u002Ftemplate.md","ASSET","资产文件",1397,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fperforming-cloud-incident-containment-procedures\u002Fassets\u002Ftemplate.md",{"path":99,"resourceType":99,"resourceTypeDesc":100,"sizeBytes":101,"sourceHtmlUrl":102},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fperforming-cloud-incident-containment-procedures\u002FLICENSE",{"path":104,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":107,"sourceHtmlUrl":108},"references\u002Fapi-reference.md","REFERENCE","参考文档",5402,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fperforming-cloud-incident-containment-procedures\u002Freferences\u002Fapi-reference.md",{"path":110,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":111,"sourceHtmlUrl":112},"references\u002Fstandards.md",1165,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fperforming-cloud-incident-containment-procedures\u002Freferences\u002Fstandards.md",{"path":114,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":115,"sourceHtmlUrl":116},"references\u002Fworkflows.md",2562,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fperforming-cloud-incident-containment-procedures\u002Freferences\u002Fworkflows.md",{"path":118,"resourceType":119,"resourceTypeDesc":120,"sizeBytes":121,"sourceHtmlUrl":122},"scripts\u002Fagent.py","SCRIPT","脚本",12689,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fperforming-cloud-incident-containment-procedures\u002Fscripts\u002Fagent.py",{"path":124,"resourceType":119,"resourceTypeDesc":120,"sizeBytes":125,"sourceHtmlUrl":126},"scripts\u002Fprocess.py",12780,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fperforming-cloud-incident-containment-procedures\u002Fscripts\u002Fprocess.py",[128,155,181,203,219,240],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":139,"publishedAt":39},"01M6HPFF0RCN0X6WT5EBSV71GY","validating-backup-integrity-for-recovery","Validate backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to ensure backups are reliable for disaster recovery and ransomware response scenarios.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[134],{"categoryNo":135,"categoryName":136,"taxonomyType":137,"taxonomyTypeDesc":138},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[140,141,142,143,144,145,38,146,147,148,57,149,150,32,24,151,152,22,153,154],"integrity","backup","recovery","validating backup integrity for recovery","for","testing","validate","verification","hash-verification","ransomware","detection","disaster-recovery","restore","disaster recovery","ransomware response",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":39},"01M6HPFAWJVFK25Q33K3T7WQ8G","triaging-vulnerabilities-with-ssvc-framework","Triage and prioritize vulnerabilities using CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree framework to produce actionable remediation priorities.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[],[162,163,164,165,166,38,167,168,169,170,171,172,173,174,175,176,177,178,179,180],"vulnerabilities","framework","ssvc","triaging vulnerabilities with ssvc framework","with","triage and prioritize","CISA","vulnerability-management","risk-management","cvss","remediation","vulnerability","prioritization","decision-tree","prioritize","decision","priorities","actionable","tree",{"skillNo":182,"name":183,"nameZh":6,"description":184,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":39},"01M6HPF6JS9X72WP59094H3ASQ","triaging-security-incident","Performs initial triage of security incidents to determine severity, scope, and required response actions using the NIST SP 800-61r3 and SANS PICERL frameworks. Classifies incidents by type, assigns priority based on business impact, and routes...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident\u002FSKILL.md",[],[31,188,22,38,189,190,191,32,24,192,193,194,195,196,197,198,199,200,201,202],"triaging security incident","actions","soc","NIST","analysis","severity-classification","incident-triage","SANS-PICERL","SOC-operations","picerl","conversion","isolation","scope","impact","consistency",{"skillNo":204,"name":205,"nameZh":6,"description":206,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":207,"categories":208,"keywords":209,"publishedAt":39},"01M6HPF2EX6ZYNYYHKBRJN7GEF","triaging-security-incident-with-ir-playbook","Classify and prioritize security incidents using structured IR playbooks to determine severity, assign response teams, and initiate appropriate response procedures.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident-with-ir-playbook\u002FSKILL.md",[],[31,210,211,188,22,166,38,212,190,57,213,214,32,24,215,193,176,216,217,218],"playbook","triaging security incident with ir playbook","teams","IR-playbook","severity","classification","classify","incidents","initiate",{"skillNo":220,"name":221,"nameZh":6,"description":222,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":223,"categories":224,"keywords":225,"publishedAt":39},"01M6HPEY9XPGE7X95AG4XJFQAW","triaging-security-alerts-in-splunk","Triages security alerts in Splunk Enterprise Security by classifying severity, investigating notable events, correlating related telemetry, and making escalation or closure decisions using SPL queries and the Incident Review dashboard. Use when...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-alerts-in-splunk\u002FSKILL.md",[],[31,226,227,228,229,230,38,231,232,233,190,234,32,235,236,237,196,238,22,239],"security alerts","splunk","triaging security alerts in splunk","alerts","review","siem","dashboard","search","correlation-search","t1566","notable-events","incident-review","cm","de",{"skillNo":241,"name":242,"nameZh":6,"description":243,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":244,"categories":245,"keywords":246,"publishedAt":39},"01M6HPET6XGEPEJPN7V032JGZ0","tracking-threat-actor-infrastructure","Threat actor infrastructure tracking involves monitoring and mapping adversary-controlled assets including command-and-control (C2) servers, phishing domains, exploit kit hosts, bulletproof hosting, a","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftracking-threat-actor-infrastructure\u002FSKILL.md",[],[247,248,249,250,38,251,252,253,254,255,256,235,257,258,238,259,239,260,261,262],"infrastructure","tracking threat actor infrastructure","tracking","threat","monitoring","mitre-attack","threat-actor","threat-intelligence","command-and-control","dns","command","exploit","intelligence","domains","kit","hosts"]