auditing-entra-id-with-aadinternals
यह क्या करती है
यह tool Microsoft की online accounts सेवा (जिसे Microsoft Entra ID कहते हैं) की security जांचने में मदद करता है। यह देखता है कि attacker किस जानकारी का फायदा उठा सकता है, और जांचता है कि कोई खास attack (Golden SAML) संभव है या नहीं, ताकि आप कमजोरियां ठीक कर सकें।
कब इस्तेमाल करें
- ✓किसी authorized Microsoft 365 system की security जांचने के लिए।
- ✓यह देखने के लिए कि आपके system की कौन सी जानकारी बाहर के लोगों को दिखती है।
- ✓यह जांचने के लिए कि identity spoofing attacks (Golden SAML) के खिलाफ security settings काम कर रही हैं या नहीं।
Skill का लिंक
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/auditing-entra-id-with-aadinternals/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे Microsoft Entra ID system की identity spoofing attacks के खिलाफ security जांचो और बताओ इसे कैसे बेहतर किया जा सकता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
tool AADInternals नाम के program की मदद से आपके Microsoft Entra ID system की जानकारी इकट्ठा करता है। यह सार्वजनिक जानकारी जांचता है और अगर आपके पास अनुमति है, तो खास attacks को टेस्ट करके देखता है कि वे काम करते हैं या नहीं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Auditing Entra ID with AADInternals
Legal Notice: This skill is for authorized security testing, red-team engagements, and educational purposes only. AADInternals can forge SAML tokens and install federation backdoors that grant persistent impersonation of any tenant user. Use only against tenants you own or have explicit written authorization (rules of engagement) to test. Unauthorized use violates the Computer Fraud and Abuse Act and equivalent laws.
Overview
AADInternals is the most comprehensive offensive/administrative PowerShell toolkit for Microsoft Entra ID (formerly Azure AD), Azure AD Connect, and Active Directory Federation Services (AD FS), authored by Dr. Nestori Syynimaa (Gerenios / Secureworks). It exposes hundreds of cmdlets (all prefixed AADInt) covering unauthenticated outsider reconnaissance, access-token acquisition for every Microsoft API, directory manipulation, AD FS/PTA attacks, and the technique it is most famous for: federation backdoors that abuse the Set-MsolDomainFederationSettings / ConvertTo-AADIntBackdoor path so an attacker who controls a federated domain's IssuerUri can mint SAML tokens for arbitrary users — mapping to MITRE ATT&CK T1606.002 (Forge Web Credentials: SAML Tokens), the same class of technique used in the SolarWinds (Golden SAML) intrusions.
The toolkit separates capabilities by required position. Invoke-AADIntReconAsOutsider and Get-AADIntLoginInformation require no credentials — they query public endpoints (getuserrealm, OpenID configuration, autodiscover) to reveal verified domains, tenant ID, federation type, brand, and whether Desktop/Seamless SSO is enabled. With a foothold, Get-AADIntAccessTokenFor* cmdlets acquire tokens for Azure AD Graph, Microsoft Graph, Exchange Online, SharePoint, Azure Core Management, and more, optionally caching them so subsequent cmdlets reuse them. With Global Administrator (or a synced AD Connect account), the toolkit can read directory secrets, manipulate users, and establish the federation backdoor.
This skill drives AADInternals through a defensive-validation lens: confirm what an external attacker can learn, what a low-privileged token reaches, and whether federation/AD FS configuration would allow Golden SAML — then produce evidence and hardening recommendations.
When to Use
- During an authorized Entra ID / Microsoft 365 red-team or assumed-breach assessment
- To enumerate external attack surface (verified domains, federation type, SSO) before credential attacks
- To validate that federation and AD FS token-signing certificates are protected against Golden SAML
- To test token acquisition and replay across Microsoft first-party APIs
- When building detections (pair with the blue-team Graph-log hunting skill) and you need real AADInternals telemetry
Prerequisites
- Written authorization covering identity-attack and federation-backdoor testing
- Windows host with PowerShell 5.1+ (or PowerShell 7 on the supported subset)
- For backdoor/federation tests: Global Administrator (or equivalent) in the target tenant, in scope per the ROE
- Install the module from the PowerShell Gallery:
Install-Module AADInternals -Scope CurrentUser Import-Module AADInternals # Cross-platform AsOutsider-only reimplementation (no creds) is also available: # https://github.com/synacktiv/AADOutsider-py - Familiarity with SAML/WS-Federation, OAuth tokens, and Azure AD Connect
Objectives
- Perform unauthenticated tenant reconnaissance and enumerate verified domains, tenant ID, and federation type
- Acquire and cache access tokens for Microsoft first-party APIs
- Enumerate users/groups/roles with an authenticated token
- Test the federation backdoor / Golden SAML path in a controlled, authorized manner
- Document exposure and deliver hardening recommendations (token-signing cert protection, federation monitoring)
MITRE ATT&CK Mapping
| ID | Technique | Application in this skill |
|---|---|---|
| T1606.002 | Forge Web Credentials: SAML Tokens | ConvertTo-AADIntBackdoor + New-AADIntSAMLToken forge SAML tokens for arbitrary users via a controlled federation IssuerUri (Golden SAML) |
Related techniques: T1087.004 Account Discovery: Cloud Account (recon), T1528 Steal Application Access Token (token acquisition), T1556.007 Modify Authentication Process: Hybrid Identity (federation/PTA backdoors).
Workflow
…
अक्सर पूछे जाने वाले सवाल
Microsoft Entra ID क्या है?
यह Microsoft की वह सेवा है जो business वातावरण में identities और access को मैनेज करती है, जैसे applications और systems में login करना।
Golden SAML क्या है?
यह एक तरह का attack है जिसमें attacker नकली credentials बनाकर system में किसी भी user का रूप धर सकता है। यह system की security सेटिंग्स की कमियों का फायदा उठाता है।
क्या इसे इस्तेमाल करने के लिए technical knowledge चाहिए?
tokens और authentication जैसे online security के concepts की थोड़ी जानकारी होना अच्छा है, लेकिन tool authorized security testing के लिए बनाया गया है।
जानकारी
लेखक का मूल विवरण
Drive the AADInternals PowerShell toolkit to perform Microsoft Entra ID tenant reconnaissance, access-token acquisition across Microsoft APIs, and federation/AD FS backdoor testing (Golden SAML, T1606.002) for defensive validation. Use during an authorized Entra ID/Microsoft 365 red-team assessment to map external attack surface or verify AD FS signing certs resist Golden SAML.
लोकप्रियता
- GitHub स्टार
- 35k
- रैंकिंग में स्थान
- #7678
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 31/8/2026
कमेंट
- …
इस repository की और skills
abusing-dpapi-for-credential-access
35kआपके AI एजेंट को किसी खास काम के लिए तैयार instructions देता है, ताकि वह उसे बेहतर और तेज़ी से कर सके।
abusing-shadow-credentials-for-privesc
35kआपके AI एजेंट को साफ़ और अच्छी तरह से व्यवस्थित लिखना सिखाता है।
achieving-cmmc-level-2-compliance
35kयह आपके एजेंट को CMMC Level 2 compliance के लिए environment तैयार करने में मदद करता है। यह security requirements लागू करता है और ज़रूरी documentation संभालता है।
acquiring-disk-image-with-dd-and-dcfldd
35kआपके एजेंट को hard drives की exact copies बनाने में मदद करता है। जाँच के दौरान किसी भी जानकारी के खोने या बदलने से बचाने के लिए यह उपयोगी है।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।