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/aws-iam-graph.md
View on GitHub# AWS IAM Attack Graph / 权限关系分析
目标:把“某个 Action 存在”升级成“当前 Principal 最终能到达哪些身份/权限”。
## 1. PMapper
安装:
```bash
pip install principalmapper
```
创建图:
```bash
pmapper --profile target graph create
```
常用查询:
```bash
pmapper --profile target query 'who can do iam:CreateUser'
pmapper --account <ACCOUNT_ID> query -s 'preset privesc *'
pmapper --account <ACCOUNT_ID> visualize --filetype svg
```
重点看:
```text
当前 User/Role
→ AssumeRole
→ PassRole
→ service identity
→ policy modification
→ Admin / target action
```
PMapper 图是候选路径,不代表每条路径都可直接利用;仍需验证 Condition、region、service constraints、resource policy、SCP/permission boundary/session policy。
## 2. Cloudsplaining
```bash
cloudsplaining download --profile target
cloudsplaining create-exclusions-file
cloudsplaining scan --exclusions-file exclusions.yml --input-file target.json
```
单策略:
```bash
cloudsplaining scan-policy-file --input-file policy.json
```
关注:
```text
Privilege Escalation
Credential Exposure
Data Exfiltration
Infrastructure Modification
Wildcard Resource/Action
```
## 3. 手工 Trust Graph
对高价值 Role:
```bash
aws iam get-role --role-name <ROLE>
```
分别判断:
```text
A. Caller 是否允许 sts:AssumeRole 到该 ARN
B. Target trust 是否允许 Caller / Account / Federated Principal
C. Condition 是否满足
D. Permission Boundary / SCP / Session Policy 是否削弱最终权限
```
## 4. 输出格式
```text
Principal: arn:...
Path:
principal A
-> sts:AssumeRole role B
-> iam:PassRole role C to Lambda
-> role C can perform X
已确认:A/B
待验证:C/D
建议:/cloud-attack 中验证最短、影响最大的路径
```
## 5. Source
- PMapper: https://github.com/nccgroup/PMapper
- Cloudsplaining: https://github.com/salesforce/cloudsplaining
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 |