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-enum-commands.md
View on GitHub# AWS 枚举命令速查
## 1. 当前身份
```bash
aws --profile target sts get-caller-identity
aws --profile target configure list
```
## 2. IAM
```bash
aws --profile target iam list-users
aws --profile target iam list-roles
aws --profile target iam list-groups
aws --profile target iam list-policies --scope Local
aws --profile target iam get-user --user-name <USER>
aws --profile target iam list-attached-user-policies --user-name <USER>
aws --profile target iam list-user-policies --user-name <USER>
aws --profile target iam get-user-policy --user-name <USER> --policy-name <POLICY>
aws --profile target iam get-role --role-name <ROLE>
aws --profile target iam list-attached-role-policies --role-name <ROLE>
aws --profile target iam list-role-policies --role-name <ROLE>
aws --profile target iam get-role-policy --role-name <ROLE> --policy-name <POLICY>
```
### Trust Policy 重点
`get-role` 返回的 `AssumeRolePolicyDocument` 是目标 Role 的信任策略。记录:
```text
Principal
Action
Condition
ExternalId
aws:PrincipalArn
aws:PrincipalOrgID
sts:SourceIdentity
```
跨账户 `AssumeRole` 通常同时要求:
```text
调用方 identity policy 允许 sts:AssumeRole
+
目标 Role trust policy 信任调用方
+
Condition 满足
```
## 3. IAM permission discovery
```bash
enumerate-iam --access-key <AK> --secret-key <SK>
```
Pacu:
```text
Pacu> import_keys target
Pacu> run iam__bruteforce_permissions
Pacu> run iam__enum_roles
```
## 4. EC2
```bash
aws --profile target ec2 describe-regions --all-regions
aws --profile target ec2 describe-instances --region <REGION>
aws --profile target ec2 describe-security-groups --region <REGION>
aws --profile target ec2 describe-volumes --region <REGION>
aws --profile target ec2 describe-snapshots --owner-ids self --region <REGION>
aws --profile target ec2 describe-instance-profile-associations --region <REGION>
```
记录 instance profile / IAM role。
## 5. S3
```bash
aws --profile target s3api list-buckets
aws --profile target s3api get-bucket-location --bucket <BUCKET>
aws --profile target s3api get-bucket-acl --bucket <BUCKET>
aws --profile target s3api get-bucket-policy --bucket <BUCKET>
aws --profile target s3api get-public-access-block --bucket <BUCKET>
```
公开枚举:
```bash
aws s3 ls s3://<BUCKET> --no-sign-request
```
## 6. Lambda / Serverless
```bash
aws --profile target lambda list-functions --region <REGION>
aws --profile target lambda get-function --function-name <FUNC> --region <REGION>
aws --profile target lambda get-function-configuration --function-name <FUNC> --region <REGION>
aws --profile target lambda list-layers --region <REGION>
aws --profile target lambda list-layer-versions --layer-name <LAYER> --region <REGION>
aws --profile target lambda get-policy --function-name <FUNC> --region <REGION>
aws --profile target lambda get-function-url-config --function-name <FUNC> --region <REGION> 2>/dev/null || true
```
重点:execution role、layers、extensions、environment、resource policy、URL auth。
## 7. Secrets / SSM / KMS
```bash
aws --profile target secretsmanager list-secrets --region <REGION>
aws --profile target ssm describe-parameters --region <REGION>
aws --profile target kms list-keys --region <REGION>
aws --profile target kms list-aliases --region <REGION>
```
Recon 阶段先列元数据;读取 secret/value 视授权范围和任务目标决定。
## 8. EKS 云侧
```bash
aws --profile target eks list-clusters --region <REGION>
aws --profile target eks describe-cluster --name <CLUSTER> --region <REGION>
aws --profile target eks list-access-entries --cluster-name <CLUSTER> --region <REGION> 2>/dev/null || true
```
如果能获得 K8s API 凭据:记录为候选 `/k8s`,不在本文件执行 RBAC 利用。
## 9. Source
- AWS IAM Roles / trust policies: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html
- AWS CLI: https://docs.aws.amazon.com/cli/latest/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 |