zebbern/secops-cli-guides/cloud-penetration-testing
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "perform cloud penetration testing", "assess Azure or AWS or GCP security", "enumerate cloud resources", "exploit cloud misconfigurations", "test O365 security", "extract secrets from cloud environments", or "audit cloud infrastructure". It provides comprehensive techniques for security assessment across major cloud platforms.
Install
npx vskill@latest install zebbern/secops-cli-guides/cloud-penetration-testingSKILL.md
Cloud Penetration Testing
Purpose
Conduct comprehensive security assessments of cloud infrastructure across Microsoft Azure, Amazon Web Services (AWS), and Google Cloud Platform (GCP). This skill covers reconnaissance, authentication testing, resource enumeration, privilege escalation, data extraction, and persistence techniques for authorized cloud security engagements.
Prerequisites
Required Tools
Required Knowledge
- Cloud architecture fundamentals
- Identity and Access Management (IAM)
- API authentication mechanisms
- DevOps and automation concepts
Required Access
- Written authorization for testing
- Test credentials or access tokens
- Defined scope and rules of engagement
Outputs and Deliverables
- Cloud Security Assessment Report - Comprehensive findings and risk ratings
- Resource Inventory - Enumerated services, storage, and compute instances
- Credential Findings - Exposed secrets, keys, and misconfigurations
- Remediation Recommendations - Hardening guidance per platform
Core Workflow
Phase 1: Reconnaissance
Gather initial information about target cloud presence:
Phase 2: Azure Authentication
Authenticate to Azure environments:
Phase 3: Azure Enumeration
Discover Azure resources and permissions:
Phase 4: Azure Exploitation
Exploit Azure misconfigurations:
Phase 5: Azure Persistence
Establish persistence in Azure:
Phase 6: AWS Authentication
Authenticate to AWS environments:
Phase 7: AWS Enumeration
Discover AWS resources:
Phase 8: AWS Exploitation
Exploit AWS misconfigurations:
Phase 9: AWS Persistence
Establish persistence in AWS:
Phase 10: GCP Enumeration
Discover GCP resources:
Phase 11: GCP Exploitation
Exploit GCP misconfigurations:
Quick Reference
Azure Key Commands
| Action | Command | |
|---|---|---|
| Login | Connect-AzAccount | |
| List subscriptions | Get-AzSubscription | |
| List users | Get-MsolUser -All | |
| List groups | Get-MsolGroup -All | |
| Current roles | Get-AzRoleAssignment | |
| List VMs | Get-AzVM | |
| List storage | Get-AzStorageAccount | |
| Key Vault secrets | az keyvault secret list --vault-name <name> |
AWS Key Commands
| Action | Command | |
|---|---|---|
| Configure | aws configure | |
| Caller identity | aws sts get-caller-identity | |
| List users | aws iam list-users | |
| List S3 buckets | aws s3 ls | |
| List EC2 | aws ec2 describe-instances | |
| List Lambda | aws lambda list-functions | |
| Metadata | curl http://169.254.169.254/latest/meta-data/ |
GCP Key Commands
| Action | Command | |
|---|---|---|
| Login | gcloud auth login | |
| List projects | gcloud projects list | |
| List instances | gcloud compute instances list | |
| List buckets | gsutil ls | |
| List clusters | gcloud container clusters list | |
| IAM policy | gcloud projects get-iam-policy <project> | |
| Metadata | curl -H "Metadata-Flavor: Google" http://metadata.google.internal/... |
Metadata Service URLs
| Provider | URL | |
|---|---|---|
| AWS | http://169.254.169.254/latest/meta-data/ | |
| Azure | http://169.254.169.254/metadata/instance?api-version=2018-02-01 | |
| GCP | http://metadata.google.internal/computeMetadata/v1/ |
Useful Tools
| Tool | Purpose | |
|---|---|---|
| ScoutSuite | Multi-cloud security auditing | |
| Pacu | AWS exploitation framework | |
| AzureHound | Azure AD attack path mapping | |
| ROADTools | Azure AD enumeration | |
| WeirdAAL | AWS service enumeration | |
| MicroBurst | Azure security assessment | |
| PowerZure | Azure post-exploitation |
Constraints and Limitations
Legal Requirements
- Only test with explicit written authorization
- Respect scope boundaries between cloud accounts
- Do not access production customer data
- Document all testing activities
Technical Limitations
- MFA may prevent credential-based attacks
- Conditional Access policies may restrict access
- CloudTrail/Activity Logs record all API calls
- Some resources require specific regional access
Detection Considerations
- Cloud providers log all API activity
- Unusual access patterns trigger alerts
- Use slow, deliberate enumeration
- Consider GuardDuty, Security Center, Cloud Armor
Examples
Example 1: Azure Password Spray
Scenario: Test Azure AD password policy
Example 2: AWS S3 Bucket Enumeration
Scenario: Find and access misconfigured S3 buckets
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cloud-penetration-testing/SKILL.md
Popularity
- Repository stars
- 30
- Repository forks
- 8
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 4 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zebbern/secops-cli-guides/cloud-penetration-testing)