conducting-cloud-penetration-testing
하는 일
이 도구는 허가를 받아 클라우드 환경(AWS, Azure, GCP 등)의 보안을 테스트하도록 돕습니다. 보안 설정이 올바른지, 공격자가 악용할 수 있는 약점이 있는지, 그리고 이 결과를 어떻게 보고할지 확인합니다.
사용하는 경우
- ✓클라우드 시스템을 운영 환경에 배포하기 전에 테스트할 때.
- ✓클라우드 인프라에 큰 변경을 한 뒤에 테스트할 때.
- ✓공격을 시뮬레이션하고 사고 대응을 테스트할 때.
스킬 링크
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/conducting-cloud-penetration-testing/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“애플리케이션을 출시하기 전에 내 AWS 계정의 보안을 테스트해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 도구는 클라우드 전용 방법과 도구를 사용해 약점을 찾습니다. 정해진 계획에 따라 접근 권한, 네트워크 설정, 그 밖의 취약점을 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Conducting Cloud Penetration Testing
When to Use
- When performing authorized security assessments of cloud environments before production deployment
- When validating cloud security controls after a major architectural change or migration
- When compliance requirements mandate annual penetration testing of cloud infrastructure
- When testing incident response readiness by simulating realistic cloud-based attack scenarios
- When assessing lateral movement risk across multi-account or multi-cloud environments
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.
Prerequisites
- Written authorization from the cloud account owner and scope definition document
- AWS, Azure, or GCP penetration testing policy acknowledgment (AWS no longer requires pre-approval for most services)
- Isolated testing account or explicitly scoped production account with breakglass procedures
- Cloud-specific offensive tooling installed: Pacu (AWS), ScoutSuite, Prowler, CloudFox
- MITRE ATT&CK Cloud matrix for finding classification
Workflow
Step 1: Define Scope and Rules of Engagement
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
Step 2: Reconnaissance and Cloud Enumeration
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
Step 3: IAM Privilege Escalation Testing
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
Step 4: SSRF to Cloud Metadata Service Exploitation
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)
…
자주 묻는 질문
'공동 책임 모델(shared responsibility model)'이란 무엇인가요?
클라우드 제공업체(AWS, Azure, GCP)가 맡는 부분(예: 데이터 센터의 물리적 보안)과 고객이 맡는 부분(예: 자신의 계정 보안 설정)을 정한 합의입니다.
아무 클라우드 계정이나 공격하는 데 쓸 수 있나요?
아니요, 계정 소유자의 명시적이고 서면 허가를 받은 환경에서만 이 도구를 사용할 수 있습니다.
어떤 도구를 사용하나요?
Pacu, ScoutSuite, Prowler 같은 도구가 클라우드 환경의 취약점을 자동으로 찾는 데 흔히 쓰입니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 35k
- 순위
- #7733
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 8. 31.
댓글
- …
이 저장소의 다른 스킬
abusing-dpapi-for-credential-access
35kAI 에이전트에게 특정 작업을 위한 준비된 지침을 제공해, 더 잘하고 더 빠르게 처리하도록 합니다.
abusing-shadow-credentials-for-privesc
35kAI 에이전트가 명확하고 잘 구성된 텍스트를 쓰도록 가르칩니다.
achieving-cmmc-level-2-compliance
35kCMMC Level 2 규정 준수를 위한 환경을 준비하도록 돕습니다. 보안 요구 사항을 구현하고 필요한 문서를 관리합니다.
acquiring-disk-image-with-dd-and-dcfldd
35k에이전트가 하드 드라이브의 정확한 복사본을 만들도록 돕습니다. 조사 중 정보가 손실되거나 변경되지 않도록 하는 데 유용합니다.