abusing-dpapi-for-cred…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys) online or offline using…
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
$ npx -y skills add mukul975/Anthropic-Cybersecurity-Skills --skill conducting-cloud-incident-response --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/conducting-cloud-incident-responseContext preview
The summary Claude sees to decide when to auto-load this skill.
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
name: conducting-cloud-incident-response description: 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. 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
**IMDS Token Theft
817 structured cybersecurity skills for AI agents · Mapped to 6 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF & MITRE F3 (Fight Fraud) · agentskills.io standard · Works with Claude Code, GitHub Copilot, Codex CLI, Cursor, Gemini CLI & 20+ platforms · 29 security domains · Apache 2.0
Repo: mukul975/Anthropic-Cybersecurity-Skills
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys) online or offline using…
Take over Active Directory accounts by writing attacker-controlled public keys to msDS-KeyCredentialLink (Shadow Credentials) with pyWhisker, Whisker, or…
Prepare a defense-contractor environment for CMMC Level 2 certification: scope CUI and FCI, implement the 110 NIST SP 800-171 Rev 2 security requirements…
Create forensically sound bit-for-bit disk images with dd or dcfldd on a Linux forensic workstation, preserving evidence integrity through hash verification…
Detect dangerous ACL misconfigurations in Active Directory using ldap3
Perform static analysis of Android APK malware using apktool for resource decompilation, jadx for Java source recovery, and androguard for manifest inspection,…