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…
This skill outlines methodologies for performing authorized penetration
$ npx -y skills add mukul975/Anthropic-Cybersecurity-Skills --skill conducting-cloud-penetration-testing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/conducting-cloud-penetration-testingContext preview
The summary Claude sees to decide when to auto-load this skill.
This skill outlines methodologies for performing authorized penetration
name: conducting-cloud-penetration-testing description: 'This skill outlines methodologies for performing authorized penetration testing against AWS, Azure, and GCP cloud environments. It covers understanding the shared responsibility model for testing scope, leveraging cloud-specific attack tools like Pacu and ScoutSuite, exploiting IAM misconfigurations, testing for SSRF to cloud metadata services, and reporting findings aligned to MITRE ATT&CK Cloud matrix. ' domain: cybersecurity subdomain: cloud-security tags: - cloud-pentesting - offensive-security - aws-exploitation - shared-responsibility - mitre-attack-cloud version: 1.0.0 author: mahipal license: Apache-2.0 nist_ai_rmf: - MEASURE-2.7 - MAP-5.1 - MANAGE-2.4 atlas_techniques: - AML.T0070 - AML.T0066 - AML.T0082 d3fend_techniques: - Token Binding - Restore Access - Application Protocol Command Analysis - Reissue Credential - Network Isolation nist_csf: - PR.IR-01 - ID.AM-08 - GV.SC-06 - DE.CM-01 mitre_attack: - T1078.004 - T1580 - T1530 - T1538
**Do not use** for unauthorized testing against cloud accounts, for testing cloud provider infrastructure itself (covered by the shared responsibility model), or for DDoS simulation without explicit cloud provider approval.
Establish testing boundaries based on the shared responsibility model. The customer is responsible for testing configurations, IAM policies, application security, and data protection. The cloud provider manages physical infrastructure, hypervisor, and managed service internals.
Cloud Penetration Test Scope Document ======================================= Target: AWS Account 123456789012 (Production) Testing Window: 2025-02-24 08:00 UTC to 2025-02-28 18:00 UTC Authorization: Signed by CISO, dated 2025-02-20 IN SCOPE: - IAM users, roles, policies, and cross-account trust - EC2 instances, security groups, and network ACLs - S3 bucket policies and data access controls - Lambda functions, API Gateway endpoints - RDS/DynamoDB access controls and encryption - EKS cluster RBAC and network policies - CloudTrail, Config, and monitoring gaps OUT OF SCOPE: - AWS managed service internals (RDS engine, Lambda runtime) - DDoS attacks or volumetric testing - Physical infrastructure or hypervisor attacks - Social engineering of AWS support EMERGENCY CONTACT: security-ops@company.com, +1-555-0199
Use cloud-specific tools to enumerate the attack surface: exposed services, public IPs, S3 buckets, IAM configurations, and metadata endpoints.
# ScoutSuite multi-cloud assessment scout suite aws --profile target-account --report-dir ./scout-report # Prowler comprehensive AWS security assessment prowler aws -M json-ocsf -o ./prowler-output --profile target-account # CloudFox for identifying privilege escalation paths cloudfox aws --profile target-account all-checks # Enumerate public S3 buckets for bucket in $(aws s3api list-buckets --query 'Buckets[*].Name' --output text); do aws s3api get-bucket-policy-status --bucket $bucket 2>/dev/null | grep -q "true" && echo "PUBLIC: $bucket" done # Check for IMDS v1 (vulnerable to SSRF) aws ec2 describe-instances \ --query 'Reservations[*].Instances[*].[InstanceId,MetadataOptions.HttpTokens]' \ --output table
Use Pacu to identify and exploit IAM misconfigurations that allow privilege escalation from a low-privilege starting point to administrative access.
# Initialize Pacu session pacu # Set stolen or test credentials set_keys --key-alias test-creds # Run IAM enumeration modules run iam__enum_users_roles_policies_groups run iam__enum_permissions # Check for privilege escalation paths run iam__privesc_scan # Common escalation paths to test: # 1. iam:CreatePolicyVersion - Create new policy version with admin access # 2. iam:AttachUserPolicy - Attach AdministratorAccess to self # 3. iam:PassRole + lambda:CreateFunction - Create Lambda with admin role # 4. iam:PassRole + ec2:RunInstances - Launch EC2 with admin instance profile # 5. sts:AssumeRole - Cross-account role assumption without MFA condition
Test web applications for Server-Side Request Forgery vulnerabilities that can reach the instance metadata service (IMDS) at 169.254.169.254 to steal IAM role credentials.
# Test for IMDS v1 access (no token required) curl http://169.254.169.254/latest/meta-data/iam/security-credentials/ # Test for IMDS v2 (requires token - more secure) TOKEN=$(curl -X PUT "http://169.254.169.254/latest/api/token" \ -H "X-aws-ec2-metadata-token-ttl-seconds: 21600") curl -H "X-aws-ec2-metadata-token: $TOKEN" \ http://169.254.169.254/latest/meta-data/iam/security-credentials/ # Azure IMDS equivalent curl -H "Metadata:true" \ "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018
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,…