azure-managed-identity-abuse

azure-managed-identity-abuse is a skill for Claude Code, Codex from ShulkwiSEC/bb-huge. It costs 55 tokens per session (1,000 once invoked), scanned C, original, MIT.

A penetration-testing guide for abusing Azure managed identities, which let cloud workloads request access tokens without storing a password.

In plain words
What is it for?
It supports testing managed-identity access, requesting Azure tokens, checking assigned permissions, and demonstrating access to resources such as Key Vault.
Why use it?
It helps security testers measure whether a compromised Azure machine or service could obtain tokens and reach other cloud resources. Use it only with explicit permission.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is - [`_shared/references/elite-chaining-strategy.md`](../_shared/references/elite-chaining-strategy.md) — Exploit chaining methodology and high-payout chain patte.

Good fit It supports testing managed-identity access, requesting Azure tokens, checking assigned permissions, and demonstrating access to resources such as Key Vault.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ShulkwiSEC/bb-huge
agentmods
npx agentmods add skills/shulkwisec/bb-huge/azure-managed-identity-abuse

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for azure-managed-identity-abuse

README.md
[![agentmods](https://agentmods.dev/badge/skills/shulkwisec/bb-huge/azure-managed-identity-abuse/github.svg)](https://agentmods.dev/skills/shulkwisec/bb-huge/azure-managed-identity-abuse)
Your own site
<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/azure-managed-identity-abuse"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/azure-managed-identity-abuse/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for azure-managed-identity-abuse

Your own site · 80×15
<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/azure-managed-identity-abuse"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/azure-managed-identity-abuse.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,000 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.01000
Opus 5.5 $0.00022 $0.00400
Sonnet 5.5 $0.00011 $0.00200
Haiku 4.5 $0.00006 $0.00100

Measured 2mo ago against content hash c96751bfcf79, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

azure-managed-identity-abuse scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/process.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Cloud metadata endpointhighServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

# Concept: 1. curl -H Metadata:true "http://169.254.169.254/metadata/instance?api-version=2021-02-01"

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

tools: [curl, powershell, az-cli, pacu]
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/curated/azure-managed-identity-abuse/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Azure Managed Identity Abuse

When to Use

  • When To When Workflow

Phase 1: Validating the Environment

# Concept: 1. curl -H Metadata:true "http://169.254.169.254/metadata/instance?api-version=2021-02-01"

# 2. ```

### Phase 2: Requesting Azure AD Tokens

```bash
# Concept: curl 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https%3A%2F%2Fmanagement.azure.com%2F' -H Metadata:true > token.json

# curl 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https%3A%2F%2Fvault.azure.net' -H Metadata:true > vault_token.json

# ```

### Phase 3: Abusing the Associated Privileges

```bash
# 1. curl -H "Authorization: Bearer <TOKEN>" https://management.azure.com/subscriptions?api-version=2020-01-01

# 2. CONNECT az CLI az login --identity
az keyvault secret show --name MySecret --vault-name TargetVault
Decision Point 🔀
flowchart TD
    A[Compromise ] --> B[Test ]
    B --> C{Does }
    C -->|Yes| D[Request ]
    C -->|No| E[Check D --> F[Pivot ]

Prerequisites

  • Authorized scope and rules of engagement for the target environment
  • Appropriate tools installed on the attack/analysis platform
  • Understanding of the target technology stack and architecture
  • Documentation template ready for findings and evidence capture

Output Format

Azure Managed Identity Abuse — Assessment Report
============================================================
Target: [Target identifier]
Assessor: [Operator name]
Date: [Assessment date]
Scope: [Authorized scope]
MITRE ATT&CK: [Relevant technique IDs]

Findings Summary:
  [Finding 1]: [Severity] — [Brief description]
  [Finding 2]: [Severity] — [Brief description]

Detailed Results:
  Phase 1: [Phase name]
    - Result: [Outcome]
    - Evidence: [Screenshot/log reference]
    - Impact: [Business impact assessment]

  Phase 2: [Phase name]
    - Result: [Outcome]
    - Evidence: [Screenshot/log reference]
    - Impact: [Business impact assessment]

Risk Rating: [Critical/High/Medium/Low/Informational]
Recommendations:
  1. [Immediate remediation step]
  2. [Long-term hardening measure]
  3. [Monitoring/detection improvement]

Read the full file on GitHub · 116 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 116 lines · 55 tokens per session scan C c96751bfcf79

Subscribe to this mod's changes

azure-managed-identity-abuse is a skill published in the GitHub repository ShulkwiSEC/bb-huge (27 stars, last pushed 4mo ago), licensed MIT. It adds 55 tokens to every session and 1,000 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (cloud metadata endpoint, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

azure-managed-identity-abuse compared with skills from other repositories

azure-managed-identity-abuse next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
azure-managed-identity-abuseShulkwiSEC/bb-hugeSkill274mo agoMITC55Claude Code, Codex
azure-managed-identity-abuseakashrpatil/awesome-offensive-security-skillsSkill267mo agoApache-2.0C55Claude Code
detecting-azure-lateral-movementxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A54Claude Code, Codex
ssrf-aws-metadata-abuseakashrpatil/awesome-offensive-security-skillsSkill267mo agoApache-2.0B62Claude Code
azure-ad-lateral-movementakashrpatil/awesome-offensive-security-skillsSkill267mo agoApache-2.0C62Claude Code
detecting-misconfigured-azure-storagexalgorix/xalgorixSkill1.5kyesterdayApache-2.0A52Claude Code, Codex
implementing-azure-defender-for-cloudxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A49Claude Code, Codex