Skip to content

pale-knight/redteam-skill / skills/cloud-recon

cloud-recon

Flagged

Cloud 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.

references/cloud-k8s-identity.md

View on GitHub
# Cloud ↔ Kubernetes 身份边界

这里只处理“云身份与 K8s 身份之间的转换线索”。K8s RBAC、Pod、Secret、escape 交给 `/k8s`;云 IAM/RAM 权限交给 `/cloud-recon`/`/cloud-attack`。

## AWS / EKS

Pod 内:

```bash
env | grep -E '^AWS_(ROLE_ARN|WEB_IDENTITY_TOKEN_FILE|CONTAINER_CREDENTIALS_)'
aws sts get-caller-identity
```

可能是:

```text
IRSA
EKS Pod Identity
Node instance role fallback
```

发现 AWS Role 后:记录 ARN、token source、有效期。候选下一步 `/cloud-recon`。

云侧获得 EKS API credential 后:候选 `/k8s`。

## Azure / AKS

检查:

```bash
env | grep -Ei 'AZURE_|FEDERATED|IDENTITY'
```

常见:

```text
Microsoft Entra Workload Identity
Managed Identity
legacy AAD Pod Identity
```

取得 Azure token 后只确认 principal/resource scope,再由操作者决定是否 `/cloud-recon`。

## GCP / GKE

检查 metadata / workload identity:

```bash
curl -s -H 'Metadata-Flavor: Google' \
 http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/
```

获得 GCP SA identity → 候选 `/cloud-recon`。

## Alibaba / ACK

RRSA:

```bash
env | grep -Ei 'ALIBABA|ALICLOUD|OIDC|ROLE_ARN'
find /var/run /var/run/secrets -type f 2>/dev/null | grep -Ei 'oidc|token|rrsa'
```

概念链:

```text
K8s ServiceAccount
 → projected OIDC token
 → STS AssumeRoleWithOIDC
 → RAM Role
```

ACK 会自动续期短期 OIDC token;不要把 token 文件当永久凭据。

## 输出

```text
来源:Pod / Cloud CLI / Metadata
K8s identity:namespace/serviceaccount
Cloud identity:Role/SA/Managed Identity
Credential type:projected OIDC / STS / metadata token
Expiration:...
Candidate: 继续当前模块 / /cloud-recon / /k8s
```

**由操作者选择,不自动切换。**
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 119kUpdated Claude CodeCodexVerifiedInstall
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: 118kUpdated Claude CodeCodexVerifiedInstall