Zum Inhalt springen
Skillpedia
Sicherheit48k · #5124

m365-entra-attack

Was er macht

Dieses Tool prüft, ob Firmen-E-Mail-Konten in Microsoft-365-Systemen (etwa Outlook und OneDrive) gültig sind und ob Passwörter stimmen. Das geschieht kontrolliert, damit keine Konten gesperrt werden.

Wann du ihn nutzt

  • ✓Wenn du die Sicherheit eines Microsoft-365-Systems testest.
  • ✓Wenn du eine Liste mit E-Mail-Adressen hast und wissen möchtest, welche gültig sind.
  • ✓Um zu prüfen, ob ein Passwort stimmt, ohne eine Sperre auszulösen.

Link zum Skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/m365-entra-attack/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/m365-entra-attack/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Prüfe in Microsoft 365, ob die E-Mail 'user@company.com' existiert und ob das Passwort 'Password123' stimmt.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Das Tool schickt gezielte Anfragen an die Server von Microsoft. Anhand der Antworten (Fehlercodes oder Erfolgsmeldungen) erkennt es, ob die E-Mail gültig ist und ob das Passwort stimmt, ohne tatsächlich eine vollständige Anmeldung zu versuchen.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.

Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. Wait for explicit confirmation in the current conversation.

Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.

When to use this skill

Trigger when:

  • Target uses M365 / Entra ID (autodiscover.* records, login.microsoftonline.com redirects, "Microsoft Office 365" in tech-stack notes)
  • You have a list of corporate emails or stealer-leaked creds
  • Engagement involves "credential spray", "password spray", "Entra attack", "ATO via M365"
  • You see *.onmicrosoft.com, *-my.sharepoint.com, enterpriseregistration.*, enterpriseenrollment.* in recon
  • Client mentions "Conditional Access", "MFA bypass", "compliant device"

DO NOT use for:

  • On-prem-only Active Directory (use a separate AD-attack skill)
  • Service-to-service token attacks (different threat model)
  • Phishing-required attack chains (covered by phishing skills) — but you can prep for the credential-validation step here

Tenant discovery (msftrecon)

# For each owned domain
msftrecon -d client.example
msftrecon -d clientltd.example
msftrecon -d sister-brand-school.example

Key fields in output:

  • Tenant ID (different domains may share OR have separate tenants — always test all owned domains)
  • Federation Information.Namespace Type = Managed (cloud-only, ROPC works) | Federated (ADFS, different attack)
  • SharePoint Detected (Yes = OneDrive enum vector available)
  • Communication Services Teams/Skype (post-auth lateral targets)
  • Admin Consent Endpoint accessible (consent-phishing surface)

Red flag: if the org has multiple Entra tenants for sister domains, each is a separate attack surface with its own user list, lockout policy, and CA configuration. Don't assume one spray covers all.


AADSTS code reference (memorize)

AADSTS Meaning Lockout impact What to do
50034 User does not exist None Skip; remove from spray list
50126 Invalid username/password +1 attempt counter User exists — try alternate password later (within cap)
50053 Account locked (Smart Lockout) None (already locked) Pre-existing → flag to SOC; don't retry
53003 CA blocked token issuance +1 attempt counter PASSWORD VALID — STOP, password is correct
50076 MFA required +1 attempt counter PASSWORD VALID — second factor needed
50079 Strong auth required +1 attempt counter PASSWORD VALID — same as 50076
50158 External auth required +1 attempt counter PASSWORD VALID — federated MFA
530003 Device-state required +1 attempt counter PASSWORD VALID — needs compliant device
65001 Consent required +1 attempt counter App-consent issue, not auth
700016 App not in tenant None User in different tenant — adjust target
90002 Tenant does not exist None Tenant typo / dead tenant

Critical insight: any code in {53003, 50076, 50079, 50158, 530003} means the password is correct — Microsoft only returns these AFTER successful credential validation. Document as a confirmed-valid finding even if you can't get a token.


Smart Lockout math (the cap discipline)

Microsoft default policy:

  • 10 failed sign-ins in 10 minutes → 1-minute lockout
  • 20 failed sign-ins → progressively longer lockouts (exponential backoff)
  • Counter shared across ALL auth flows (ROPC + SAML + IMAP + EWS + SMTP + device-code)

Engagement discipline:

  • Hard cap: ≤2 password attempts per user lifetime per engagement (some engagements: 1)
  • State file with atomic writes — never let two test runs race the counter
  • Kill switch: stop run if more than N LOCKED responses observed (suggests pre-existing attacker activity OR you miscounted; either way pause)

…

Häufige Fragen

Was passiert, wenn ich zu oft ein falsches Passwort eingebe?

Das Tool ist so gebaut, dass es Sperren vermeidet. Es begrenzt die Anzahl der Versuche pro E-Mail-Adresse und wertet die Antworten aus, um vor einer Sperre zu erkennen, ob das Passwort stimmt.

Brauche ich eine Erlaubnis, um dieses Tool zu nutzen?

Ja, du brauchst unbedingt eine ausdrückliche, schriftliche Genehmigung des Systembesitzers, bevor du das Tool verwendest. Ohne Erlaubnis ist die Nutzung illegal.

Woran erkenne ich, ob eine E-Mail-Adresse tatsächlich existiert?

Das Tool prüft, ob das System so antwortet, dass die Existenz der E-Mail-Adresse erkennbar ist, etwa durch eine Weiterleitung beim Login oder eine bestimmte OneDrive-Antwort, ohne dass ein Passwort nötig ist.

Details

Originalbeschreibung des Autors

Microsoft 365 / Entra ID red-team attack chain

repo: sickn33/agentic-awesome-skills

Beliebtheit

GitHub-Sterne
48k
Platz im Ranking
#5124
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills