pale-knight/redteam-skill / skills/cloud-recon
cloud-recon
FlaggedCloud control-plane reconnaissance for AWS, Azure/Entra, GCP, and Alibaba Cloud: identity, IAM/RAM, trust, resources, metadata, and managed-Kubernetes cloud-side boundary. Recon only — no policy changes, no privilege escalation. Operator may select /cloud-attack or /k8s.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.1 KB |
| references/alibaba-enum-commands.md | markdown | 4.4 KB |
| references/aws-enum-commands.md | markdown | 3.9 KB |
| references/aws-iam-graph.md | markdown | 1.9 KB |
| references/azure-enum-commands.md | markdown | 1.9 KB |
| references/cloud-k8s-identity.md | markdown | 1.7 KB |
| references/gcp-enum-commands.md | markdown | 1.9 KB |
| references/vulnerability-intelligence.md | markdown | 534 B |
references/gcp-enum-commands.md
View on GitHub# GCP 枚举速查
## 1. 当前身份 / Project
```bash
gcloud auth list
gcloud config list
gcloud projects list
```
## 2. IAM
```bash
gcloud projects get-iam-policy <PROJECT_ID> --format=json
gcloud iam service-accounts list --project <PROJECT_ID>
gcloud iam service-accounts get-iam-policy <SA_EMAIL>
```
重点权限:
```text
iam.serviceAccounts.actAs
iam.serviceAccounts.getAccessToken
iam.serviceAccountKeys.create
resourcemanager.projects.setIamPolicy
compute.instances.setServiceAccount
cloudfunctions.functions.update
run.services.update
```
## 3. Impersonation 可达性
如果拥有 Token Creator/getAccessToken:
```bash
gcloud auth print-access-token \
--impersonate-service-account=<SA_EMAIL> >/dev/null
```
成功只代表可以获得该 SA token;继续记录该 SA 的 project/IAM 权限。
## 4. Compute / Storage / Secrets
```bash
gcloud compute instances list --project <PROJECT>
gcloud storage buckets list --project <PROJECT>
gcloud secrets list --project <PROJECT>
gcloud kms keyrings list --location=global --project <PROJECT> 2>/dev/null || true
```
## 5. Serverless
```bash
gcloud functions list --project <PROJECT>
gcloud run services list --project <PROJECT>
```
记录 execution service account / ingress / IAM policy / env references。
## 6. GKE 云侧
```bash
gcloud container clusters list --project <PROJECT>
gcloud container clusters describe <CLUSTER> --location <LOCATION> --project <PROJECT>
```
若可获得 kubeconfig,输出 `/k8s` 为候选下一步。
## 7. Metadata
```bash
curl -s -H 'Metadata-Flavor: Google' \
http://metadata.google.internal/computeMetadata/v1/project/project-id
curl -s -H 'Metadata-Flavor: Google' \
http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/
```
## 8. Source
- GCP service account impersonation: https://cloud.google.com/iam/docs/service-account-impersonation
- gcloud: https://cloud.google.com/sdk/gcloud/reference
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |