Skip to content

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

cloud-attack

Flagged

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

references/azure-privesc-paths.md

View on GitHub
# Azure / Entra 提权路径

## 1. ARM RBAC

高价值角色:

```text
Owner
User Access Administrator
Role Based Access Control Administrator
Managed Identity Operator
Contributor + 可组合的 identity assignment 权限
```

```bash
az role assignment list --all -o table
az role definition list -o table
```

如果拥有 role assignment 写权限,可将受控 principal 赋予测试范围内目标角色。保存现有 assignment,验证后删除新增 assignment。

## 2. Application / Service Principal Ownership

如果对高权 App 有 Owner 或相应 Directory 权限,可新增 app credential / federated credential,获得 App 权限。

持久化操作 → `azure-persistence.md`。

## 3. Managed Identity

VM/App/Function 内取得 MI token:

```bash
curl -s -H 'Metadata: true' \
 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://management.azure.com/'
```

然后枚举其 ARM RBAC / Key Vault / Automation / resource access。

## 4. Key Vault

先判断 Key Vault 是 RBAC 模式还是 legacy access policy。

```bash
az keyvault show -n <VAULT>
az keyvault secret list --vault-name <VAULT>
```

仅在确认授权与读取权限后取目标 secret。

## 5. Automation / Function / Web App

高权限 Automation Account 或 Function App 修改权限可能导致代码以 Managed Identity/应用身份运行。

先保存:runbook/function deployment/config/identity,再做最小验证,最后恢复。

## 6. Entra Hybrid

AAD/Entra Connect:需要对应服务器访问和授权;同步账户/云同步配置可能形成 on-prem ↔ cloud 高价值路径。

PRT:只在明确的已控 Entra-joined endpoint 和授权范围内处理。

## 7. AKS boundary

如果 Azure 控制面权限可获得 AKS kubeconfig,仅报告 `/k8s` 候选,不在此文件继续 RBAC。
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