acquiring-disk-image-w…
Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through
Responds to security incidents in cloud environments (AWS, Azure, GCP) by performing identity-based containment,
Claude Code
$ npx -y skills add Mikaru0Mystic/sectinel --skill conducting-cloud-incident-response --agent claude-code
Codex
$ npx skills add Mikaru0Mystic/sectinel --skill conducting-cloud-incident-response -a codex -y
Cursor
$ npx skills add Mikaru0Mystic/sectinel --skill conducting-cloud-incident-response -a cursor -y
Gemini CLI
$ npx skills add Mikaru0Mystic/sectinel --skill conducting-cloud-incident-response -a gemini-cli -y
GitHub Copilot
$ npx skills add Mikaru0Mystic/sectinel --skill conducting-cloud-incident-response -a github-copilot -y
OpenCode
$ npx skills add Mikaru0Mystic/sectinel --skill conducting-cloud-incident-response -a opencode -y
Windsurf
$ npx skills add Mikaru0Mystic/sectinel --skill conducting-cloud-incident-response -a windsurf -y
name: conducting-cloud-incident-response description: 'Responds to security incidents in cloud environments (AWS, Azure, GCP) by performing identity-based containment, cloud-native log analysis, resource isolation, and forensic evidence acquisition adapted for ephemeral cloud infrastructure. Activates for requests involving cloud incident response, AWS security incident, Azure compromise, GCP breach, cloud forensics, or cloud identity compromise. ' domain: cybersecurity subdomain: incident-response tags: - cloud-IR - AWS-forensics - Azure-incident-response - GCP-security - identity-containment mitre_attack: - T1078 - T1537 - T1580 - T1525 version: 1.0.0 author: mahipal license: Apache-2.0 nist_csf: - RS.MA-01 - RS.MA-02 - RS.AN-03 - RC.RP-01
**Do not use** for on-premises-only incidents with no cloud component; use standard enterprise IR procedures.
Identify the scope and nature of the compromise:
**AWS Indicators:**
CloudTrail suspicious events to investigate: - ConsoleLogin from unexpected geolocation or IP - CreateAccessKey for existing IAM user (persistence) - RunInstances for crypto-mining (large instance types) - PutBucketPolicy making S3 bucket public - AssumeRole to cross-account roles - DeleteTrail or StopLogging (defense evasion) - CreateUser or AttachUserPolicy (privilege escalation)
**Azure Indicators:**
Azure Activity Log events to investigate: - Sign-in from anonymous IP or TOR exit node - Service principal credential added - Role assignment changes (Owner, Contributor added) - VM created in unusual region - Storage account access key regenerated - Conditional Access policy modified or deleted - MFA disabled for user account
**GCP Indicators:**
GCP Audit Log events to investigate: - SetIamPolicy changes granting broad access - CreateServiceAccountKey for existing SA - InsertInstance in unexpected zone - SetBucketIamPolicy with allUsers - DeleteLog or UpdateSink (log tampering)
Cloud containment is primarily an identity operation:
**AWS Containment:**
# Disable compromised IAM access keys
aws iam update-access-key --user-name compromised-user \
--access-key-id AKIA... --status Inactive
# Attach deny-all policy to compromised user
aws iam attach-user-policy --user-name compromised-user \
--policy-arn arn:aws:iam::aws:policy/AWSDenyAll
# Revoke all active sessions for compromised IAM role
aws iam put-role-policy --role-name compromised-role \
--policy-name RevokeOlderSessions --policy-document '{
"Version":"2012-10-17",
"Statement":[{
"Effect":"Deny",
"Action":"*",
"Resource":"*",
"Condition":{"DateLessThan":
{"aws:TokenIssueTime":"2025-11-15T15:00:00Z"}}
}]
}'
# Isolate compromised EC2 instance
aws ec2 modify-instance-attribute --instance-id i-0abc123 \
--groups sg-isolate-forensic**Azure Containment:**
# Disable compromised user Set-AzureADUser -ObjectId "user@tenant.onmicrosoft.com" -AccountEnabled $false # Revoke all sessions Revoke-AzureADUserAllRefreshToken -ObjectId "user-object-id" # Remove role assignments Remove-AzRoleAssignment -ObjectId "sp-object-id" -RoleDefinitionName "Contributor" # Isolate VM with NSG deny-all rule $nsg = New-AzNetworkSecurityGroup -Name "isolate-nsg" -ResourceGroupName "rg" -Location "eastus" $nsg | Add-AzNetworkSecurityRuleConfig -Name "DenyAll" -Priority 100 -Direction Inbound ` -Access Deny -Protocol * -SourceAddressPrefix * -SourcePortRange * ` -DestinationAddressPrefix * -DestinationPortRange *
Collect evidence before ephemeral resources are terminated or logs rotate:
**AWS Evidence Collection:**
**Azure Evidence Collection:**
**GCP Evidence Collection:**
Analyze logs for common cloud attack techniques:
Common Cloud Attack Patterns: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1. Credential Compromise → IAM Privilege Escalation → Resource Abuse 2. Public S3/Blob → Data Exfiltration 3. SSRF from Web App → IMDS Token Theft → Lateral Movement 4. Compromised CI/CD Pipeline → Malicious Deployment 5. Cross-Account Role Abuse → Multi-Account Pivot 6. Lambda/Function Abuse → Crypto-mining or Data Processing
**IMD
Open-source security arsenal for AI coding agents: 784 cybersecurity skills, scanner integrations, and a security MCP for Claude Code, Cursor, opencode, Gemini CLI, Cline, and any agentskills.io agent. Mapped to OWASP, MITRE ATT&CK, NIST CSF, D3FEND, ATLAS.
Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through
Detect dangerous ACL misconfigurations in Active Directory using ldap3 to identify GenericAll, WriteDACL, and
Perform static analysis of Android APK malware samples using apktool for decompilation, jadx for Java source
Parses API Gateway access logs (AWS API Gateway, Kong, Nginx) to detect BOLA/IDOR attacks, rate limit bypass,
Analyze advanced persistent threat (APT) group techniques using MITRE ATT&CK Navigator to create layered heatmaps
Queries Azure Monitor activity logs and sign-in logs via azure-monitor-query to detect suspicious administrative
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…