[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78TH4F4ET2QGX2KZX79XQWZ":3,"skill-same:01M78TH4F4ET2QGX2KZX79XQWZ":95},{"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":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":44,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M78TH4F4ET2QGX2KZX79XQWZ","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.","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-cloud-incident-containment-procedures\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-cloud-incident-containment-procedures\u002FSKILL.md",[],[],"2026-11-15 14:19:17",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: [cloud-security, incident-containment, aws, azure, gcp, cloud-forensics, credential-revocation, network-isolation]\nversion: \"1.0\"\nauthor: mahipal\nlicense: Apache-2.0\n---\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":25,"author":34,"domain":35,"license":15,"version":36,"subdomain":37,"description":7},[26,27,28,29,30,31,32,33],"cloud-security","incident-containment","aws","azure","gcp","cloud-forensics","credential-revocation","network-isolation","mahipal","cybersecurity","1.0","incident-response","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fperforming-cloud-incident-containment-procedures",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill performing-cloud-incident-containment-procedures",{"tool":53,"command":54},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill performing-cloud-incident-containment-procedures",{"tool":56,"command":57},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill performing-cloud-incident-containment-procedures","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-cloud-incident-containment-procedures\u002FSKILL.md",true,[61,67,71,77,81,85,91],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"assets\u002Ftemplate.md","ASSET","资产文件",1397,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-cloud-incident-containment-procedures\u002Fassets\u002Ftemplate.md",{"path":68,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fapi-reference.md","REFERENCE","参考文档",5402,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-cloud-incident-containment-procedures\u002Freferences\u002Fapi-reference.md",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fstandards.md",1165,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-cloud-incident-containment-procedures\u002Freferences\u002Fstandards.md",{"path":82,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fworkflows.md",2562,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-cloud-incident-containment-procedures\u002Freferences\u002Fworkflows.md",{"path":86,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002Fagent.py","SCRIPT","脚本",12689,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-cloud-incident-containment-procedures\u002Fscripts\u002Fagent.py",{"path":92,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":93,"sourceHtmlUrl":94},"scripts\u002Fprocess.py",12780,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-cloud-incident-containment-procedures\u002Fscripts\u002Fprocess.py",[96,104,111,118,125,133],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":20},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\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":100,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":20},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\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":100,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":20},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\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":100,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":20},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":129,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":20},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":20},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]