Skip to content
Back to skills

Cloud Pentest

BSecurity

Cloud penetration testing for AWS, Azure and GCP — exposed storage and secrets, IAM misconfiguration and privilege escalation, metadata/credential theft (via SSRF/compromise), over-permissive roles, serverless and container/Kubernetes misconfig, and post-exploitation enumeration. Use when the target runs on or exposes cloud infrastructure, or when an SSRF/foothold yields cloud credentials.

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 17, 2026
securitynodekubernetesawsgcpazureterraformtestinggitapidatabase

Works with

  • api

Security analysis

B75/100
  • criticalAccesses sensitive system or user directories

Pro shows the line behind each finding and how to fix it

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill cloud-pentest --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cloud Pentest?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cloud Pentest
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-cloud-pentest/badge)](https://www.skillsdirectory.com/skills/anandjogawade-cloud-pentest)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cloud-pentest
description: Cloud penetration testing for AWS, Azure and GCP — exposed storage and secrets, IAM misconfiguration and privilege escalation, metadata/credential theft (via SSRF/compromise), over-permissive roles, serverless and container/Kubernetes misconfig, and post-exploitation enumeration. Use when the target runs on or exposes cloud infrastructure, or when an SSRF/foothold yields cloud credentials.
---

# Cloud Penetration Testing (AWS / Azure / GCP)

Cloud findings usually start with exposed storage, leaked keys, or SSRF-to-metadata, then pivot through IAM to broad access. Always test strictly within the authorized cloud account scope.

## Trigger phrases

`cloud, aws, azure, gcp, s3 bucket, iam, privilege escalation cloud, metadata, serverless, kubernetes, k8s, eks, lambda`

## 1. External exposure
- **Storage:** open/mis-permissioned S3 buckets, Azure Blob containers, GCS buckets — guess names from org/app, `gau`/wordlists, check `READ`/`WRITE`/`list`/ACL. Public read = data exposure; public write = defacement/supply-chain.
- **Secrets in the open:** keys in JS/mobile apps, public repos (`trufflehog`/`gitleaks`), Terraform state, CI logs, container images, `.env`, exposed `.git`.
- **Exposed services:** databases, Elasticsearch/Kibana, Redis, dashboards, management consoles, serverless function URLs, container registries.

## 2. Credential acquisition
- From SSRF (→ `web-ssrf`): instance metadata (IMDSv1/v2), GCP/Azure metadata endpoints → temporary role credentials.
- From leaked long-term keys, compromised hosts (env vars, `~/.aws/credentials`, instance profiles), or app config.
- Validate: AWS `aws sts get-caller-identity`, Azure `az account show`, GCP `gcloud auth list`.

## 3. Enumerate what the identity can do
- **AWS:** `enumerate-iam`, `pacu`, `ScoutSuite`/`prowler` for posture; list own permissions, assumable roles, accessible services.
- **Azure:** `az`, `AzureHound`, `ROADtools` — roles, subscriptions, resources, Entra ID.
- **GCP:** `gcloud`, `ScoutSuite` — project IAM, service accounts, accessible resources.
- Map the blast radius: what data, compute, and further identities are reachable.

## 4. IAM privilege escalation
- **AWS:** classic escalation paths — `iam:CreatePolicyVersion`, `iam:PassRole`+`ec2/lambda`, `iam:AttachUserPolicy`, `sts:AssumeRole` chains, `lambda:UpdateFunctionCode`, SSM to EC2. (`pacu` has modules.)
- **Azure:** role-assignment abuse, managed-identity abuse, Automation/Runbooks, consent/app-registration abuse, Key Vault access.
- **GCP:** `iam.serviceAccounts.actAs`/`getAccessToken`/`signJwt`, `actAs` to a higher SA, deploy-time escalation, project-level role abuse.

## 5. Service-specific
- **Serverless (Lambda/Functions/Cloud Functions):** over-permissioned exec roles, injected code, env-var secrets, event-source abuse.
- **Containers/K8s:** exposed kubelet/API server, anonymous access, over-privileged service accounts, secrets in configmaps, `hostPath`/privileged pods → node escape, metadata access from pods; IRSA/workload-identity abuse. Use `kubeletctl`, `kube-hunter`, `peirates`.
- **Databases/queues/storage:** public RDS snapshots, open queues, cross-account access.

## 6. Post-exploitation (within RoE)
- Access the data proving impact (don't bulk-exfiltrate), enumerate the environment, map persistence opportunities (report them — don't plant them unless RoE allows), and document the full path from entry to impact.

## Depth & chaining
- Leaked key / SSRF → creds → IAM enum → privesc → data/admin.
- Tie cloud findings back to the app/mobile finding that produced the credential.

## Evidence
`get-caller-identity`-style identity proof, the permission/misconfig, the accessed resource (redacted), and the escalation path. Use read-only posture tools (ScoutSuite/prowler/Steampipe) for breadth.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.