m365-entra-attack
Fungsinya
Skill ini meninjau pengaturan login Microsoft 365 dan Entra ID, termasuk penemuan pengguna, penguncian akun, dan aturan akses bersyarat. Skill ini untuk pengujian keamanan resmi akun cloud Microsoft perusahaan.
Kapan dipakai
- βSaat perusahaan memakai Microsoft 365 atau Entra ID dan ingin tinjauan keamanan login.
- βSaat Anda perlu memeriksa apakah aturan penguncian dan akses bersyarat berfungsi seperti yang dimaksud.
- βKetika Anda ingin memetakan tenant Microsoft perusahaan sebelum pengujian keamanan.
Link skill
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/m365-entra-attack/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βPerusahaan kami memakai Microsoft 365. Bisakah Anda memeriksa pengaturan login dan aturan penguncian kami dalam tinjauan keamanan resmi?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mengenali tenant dari catatan publik, lalu meninjau cara pengaturan login dan kebijakan berperilaku. Hasilnya dilaporkan agar pemilik bisa memperbaikinya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
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)
Mathematical guarantee: with 1 attempt per user, you cannot cause Smart Lockout (1 < 10). Any AADSTS50053 you see is therefore pre-existing β use this for active-attacker detection (see mid-engagement-ir-detection skill).
User enumeration β vectors + hardening status (May 2026)
β HARDENED (no longer differential)
GET /getuserrealm.srf?login=<email>&xml=1
Returns identical XML for any email matching tenant's owned domain. Tenant-level only, not user-level.
POST /common/GetCredentialType
{"username":"<email>", "isOtherIdpSupported":true, ...}
Returns AADSTS1659001 (missing flowToken) without proper session β can't enumerate.
GET /autodiscover/autodiscover.json/v1.0/<email>?Protocol=AutodiscoverV1
Returns identical 200 + same JSON body for any address. Hardened ~2024.
β STILL WORKS (May 2026 β track sh
Pertanyaan umum
Apa itu tenant?
Itu adalah ruang akun cloud Microsoft milik perusahaan, yang menyimpan pengguna dan pengaturannya.
Apakah Active Directory lokal dicakup?
Tidak. Menurut skill ini, Active Directory yang hanya lokal dicakup oleh skill yang berbeda.
Apa itu aturan akses bersyarat?
Itu adalah kebijakan Microsoft yang menentukan kapan login diizinkan, misalnya dari perangkat tepercaya.
Detail
Deskripsi asli dari pembuat
Microsoft 365 / Entra ID red-team attack chain β current 2026 reality. AADSTS code reference, user enumeration vectors (with hardening status), Smart Lockout math, Conditional Access bypass options, ROPC + SAML SSO browser flow, Burp/Playwright templates. Built from authorized red-team work where ROPC spray surfaced pre-existing lockouts and CA-blocked credentials, plus real-time external attacker activity correlation. Use for any M365/Entra credential attack, password spray, user enumeration, CA-bypass exploration, or active-attacker-detection scenario.
Popularitas
- Bintang GitHub
- 5.4k
- Peringkat
- #14943
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
apk-redteam-pipeline
5.4kMembantu agent Anda menguji aplikasi Android untuk kelemahan keamanan, mulai dari mencari file APK dan melakukan dekompilasi hingga memeriksa rahasia yang terekspos.
bugcrowd-reporting
5.4kMembantu agent Anda menulis laporan kerentanan Bugcrowd yang lebih baik, dengan memilih kategori yang tepat dan menjawab keberatan out-of-scope.
cloud-iam-deep
5.4kMembantu agent Anda memeriksa apa yang bisa diakses oleh kredensial cloud yang ditemukan di AWS, Azure, atau Google Cloud, selama pengujian keamanan yang sudah diizinkan.
enterprise-vpn-attack
5.4kMembantu agent Anda memeriksa perangkat VPN dan akses jarak jauh dari Cisco, Fortinet, Citrix, dan lainnya untuk kelemahan yang diketahui selama pengujian yang sudah diizinkan.
Skill serupa
reverse-engineer-anything
422kMembantu agent Anda memeriksa aplikasi dan paket yang sudah dirilis untuk menjelaskan fitur, membandingkan versi, atau memandu pembangunan ulang dengan alat REA.
1password
394kMembantu agent Anda mengatur CLI 1Password, masuk, serta membaca atau menyisipkan rahasia tanpa menampilkan nilainya di chat.
healthcheck
394kMembantu agent Anda mengaudit komputer atau server OpenClaw dari risiko keamanan seperti SSH, firewall, pembaruan, dan cadangan, lalu menyarankan perbaikan aman.