playbook-cloud
Cloud IAM privesc paths and metadata endpoints per provider. Load when the target is cloud or you obtain cloud creds/metadata. Triggers - AWS/GCP/Azure, IAM, S3/blob, 169.254.169.254, access key.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- playbook-cloud
- description
- Cloud IAM privesc paths and metadata endpoints per provider. Load when the target is cloud or you obtain cloud creds/metadata. Triggers - AWS/GCP/Azure, IAM, S3/blob, 169.254.169.254, access key.
03 SKILL.md 正文
Cloud — Privesc Paths & Metadata
Metadata endpoints (different per cloud!)
AWS IMDSv1 (no header): curl http://169.254.169.254/latest/meta-data/iam/security-credentials/
AWS IMDSv2 (requires token):
TOKEN=$(curl -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 21600" http://169.254.169.254/latest/api/token)
curl -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/
GCP (requires header): curl -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token
Azure (requires header): curl -H "Metadata: true" "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://management.azure.com/"
IMDSv1 vs v2 matters: v1 = any SSRF gives cloud creds. v2 requires PUT first (harder via SSRF).
AWS IAM privesc — dangerous permission combos
iam:CreatePolicyVersion→ attach admin policy to selfiam:AttachUserPolicy→ attach AdministratorAccesslambda:CreateFunction+iam:PassRole→ execute as privileged rolests:AssumeRole→ pivot to cross-account rolesec2:RunInstances+iam:PassRole→ launch instance with admin role Tools:pacu(automated),pmapper(permission graph)
GCP privesc
- Default compute SA often has
editor(overprivileged) iam.serviceAccountKeys.create→ generate key for any SAcloudfunctions.functions.create+iam.serviceAccounts.actAs→ RCE as SA- Check for
allUsers/allAuthenticatedUsersbindings (public access)
Azure privesc
- Managed Identity with broad role assignments
Contributor→ deploy resources, potentially read Key Vault- App Registration with high API permissions + admin consent
- Automation account runbooks → execute as automation identity
What to check everywhere
- Public storage (S3/GCS/Blob) —
--no-sign-request/ anonymous - Secrets in repos / CI variables / build logs
- User-data scripts (bootstrap credentials)
- MFA not enforced on admin accounts
- Audit logging disabled or misconfigured
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.