Skip to content
Back to skills

Cloud Pivot Finder

ASecurity

Post-credential cloud privilege-escalation and pivot mapping across AWS, Azure and GCP (Tier 1) — enumerate what an identity can do, find IAM privesc paths, and chain cross-service pivots using ScoutSuite, Pacu and Prowler. Use after cloud (or an SSRF/foothold) yields valid cloud credentials or a service-account token.

  • 16 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 17, 2026
securityrustgoawsgcpazuregitapibackendci/cd

Works with

  • api

Security analysis

A100/100

Scanned November 17, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Cloud Pivot Finder?

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

Security grade badge for Cloud Pivot Finder
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-cloud-pivot-finder/badge)](https://www.skillsdirectory.com/skills/anandjogawade-cloud-pivot-finder)

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-pivot-finder
description: Post-credential cloud privilege-escalation and pivot mapping across AWS, Azure and GCP (Tier 1) — enumerate what an identity can do, find IAM privesc paths, and chain cross-service pivots using ScoutSuite, Pacu and Prowler. Use after cloud (or an SSRF/foothold) yields valid cloud credentials or a service-account token.
---

# Cloud Pivot Finder (post-credential IAM privesc)

You hold a credential. Goal: map the blast radius, find the shortest path to admin/data, and prove it with a safe PoC — without bulk-exfil or destructive changes. Read-only posture tools first, targeted privesc second.

## Trigger phrases
`cloud privesc, iam privilege escalation, assume role, passrole, scoutsuite, pacu, prowler, service account impersonation, cross-service pivot`

## Method
1. **Confirm identity & posture (read-only breadth):**
   - AWS: `aws sts get-caller-identity`; `ScoutSuite aws`, `prowler aws`, `enumerate-iam`. Pacu `iam__enum_permissions`.
   - Azure: `az account show`; `ScoutSuite azure`, `AzureHound`/`ROADrecon` for Entra ID roles, app registrations, managed identities.
   - GCP: `gcloud auth list`; `ScoutSuite gcp`; `gcloud projects get-iam-policy`, enumerate SAs and bindings.
2. **Enumerate effective permissions**: list own policies, assumable roles, service exposure. Note `*:*` grants, wildcard resources, and inline policies.
3. **Find privesc path** (safe PoC = create a throwaway artifact proving the grant, then clean up / report):
   - **AWS**: `iam:CreatePolicyVersion` (set-as-default), `iam:PassRole`+`lambda:CreateFunction`/`ec2:RunInstances`, `iam:AttachUserPolicy`/`PutUserPolicy`, `sts:AssumeRole` chains, `lambda:UpdateFunctionCode`, `glue`/`cloudformation`/`datapipeline` PassRole, SSM `SendCommand` to instances. Pacu `iam__privesc_scan`.
   - **Azure**: role-assignment write (`Microsoft.Authorization/roleAssignments/write`), managed-identity token theft, Automation Runbook as high-priv identity, app-consent/secret-add to a privileged app registration, Key Vault access-policy abuse.
   - **GCP**: `iam.serviceAccounts.actAs` + deploy (Functions/Cloud Run/Compute), `getAccessToken`/`signJwt`/`signBlob`, `setIamPolicy`, `deploymentmanager` as default SA, `iam.serviceAccountKeys.create`.
4. **Cross-service pivot**: SSM/SSH into compute via instance role, Secrets Manager/Key Vault/Secret Manager reads, snapshot/share of RDS/disks, cross-account `AssumeRole`, access to KMS-decrypt data.

## Modern / rare techniques
- **[NEW] GCP `signJwt`/`signBlob` impersonation** to a higher SA without a key file.
- **[RARE] AWS `sts:AssumeRole` trust-policy misconfig** (`Principal:*` / overly broad external ID) → cross-account takeover.
- **[NEW] Azure managed-identity → ARM** token (`?resource=https://management.azure.com/`) then role enum from inside compute.
- **[RARE] CI/CD OIDC trust abuse** (GitHub Actions `sub` wildcard) → assume deploy role from an attacker workflow.

## Escalation / chaining
Admin/data path proven → document full chain back to the originating finding (SSRF/leaked key from `cloud`). Compute access → `k8s-attacks`/`container-escape` if containerized; `linux-discovery`/`windows-discovery` on the host.

## Backend & tooling
Kali/WSL-Kali/HexStrike: `pacu`, `ScoutSuite`, `prowler`, `enumerate-iam`, `AzureHound`, `ROADtools`, `gcloud`, Steampipe for read-only queries. Prefer read-only posture scans for breadth; narrow privesc with a single reversible PoC.

## Verification (background, before reporting)
Independently re-confirm each privesc edge (e.g., actually assume the role / read the secret once, then stop) rather than inferring from policy text alone — policies can be overridden by SCP/deny/boundary. Clean up any created artifact and record it. Report confirmed paths only.

## Evidence
Starting identity, the specific permission/misconfig, the PoC output proving escalation (e.g., new identity's `get-caller-identity`, a secret read redacted), and the full path diagram. Remediation: least-privilege, remove PassRole/wildcards, permission boundaries/SCPs, scoped trust policies, deny `iam:CreatePolicyVersion`/`actAs` where not needed.

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.