मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी48k · #5124

m365-entra-attack

यह क्या करती है

यह टूल जाँच करता है कि Microsoft 365 सिस्टम (जैसे Outlook और OneDrive) के कॉर्पोरेट ईमेल अकाउंट वैध हैं या नहीं, और उनके पासवर्ड सही हैं या नहीं। यह यह काम नियंत्रित तरीके से करता है, ताकि अकाउंट लॉक होने से बचा जा सके।

कब इस्तेमाल करें

  • ✓Microsoft 365 सिस्टम की सुरक्षा टेस्ट करते समय।
  • ✓जब आपके पास ईमेल की एक सूची हो और आप जानना चाहें कि कौन से ईमेल वैध हैं।
  • ✓बिना अकाउंट लॉक हुए यह जाँचने के लिए कि कोई पासवर्ड सही है या नहीं।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/m365-entra-attack/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“Microsoft 365 में जाँचो कि ईमेल 'user@company.com' मौजूद है या नहीं, और पासवर्ड 'Password123' सही है या नहीं।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह टूल Microsoft के सर्वर को खास अनुरोध भेजता है। जवाब (एरर कोड या सफलता संदेश) का विश्लेषण करके यह पता लगा सकता है कि ईमेल वैध है या नहीं और पासवर्ड सही है या नहीं, बिना पूरा लॉगिन किए।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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)

…

अक्सर पूछे जाने वाले सवाल

अगर मैं गलत पासवर्ड बहुत बार डालूँ तो क्या होगा?

यह टूल अकाउंट लॉक होने से बचने के लिए बनाया गया है। यह हर ईमेल के लिए कोशिशों की संख्या सीमित रखता है और जवाबों का विश्लेषण करता है, ताकि लॉक होने से पहले ही पता चल जाए कि पासवर्ड सही है या नहीं।

क्या इस टूल को इस्तेमाल करने के लिए अनुमति चाहिए?

हाँ, इस्तेमाल से पहले सिस्टम के मालिक की स्पष्ट, लिखित अनुमति होना ज़रूरी है। बिना अनुमति इसका इस्तेमाल करना गैर-कानूनी है।

मुझे कैसे पता चलेगा कि ईमेल पता सच में मौजूद है?

टूल देखता है कि सिस्टम किस तरह जवाब देता है, जैसे लॉगिन रीडायरेक्ट या OneDrive का कोई खास जवाब, और इसके लिए पासवर्ड की ज़रूरत नहीं पड़ती।

जानकारी

लेखक का मूल विवरण

Microsoft 365 / Entra ID red-team attack chain

repo: sickn33/agentic-awesome-skills

लोकप्रियता

GitHub स्टार
48k
रैंकिंग में स्थान
#5124
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

00-andruia-consultant

48k

आपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।

AI और एजेंटएजेंट

007

48k

आपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।

कोडिंगसिक्योरिटी

10-andruia-skill-smith

48k

आपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।

AI और एजेंटएजेंट

20-andruia-niche-intelligence

48k

आपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills