Skip to content
KitploitKITPLOIT
ToolsBlog
Einreichen
ToolsBlog
Einreichen

Hacking-, PenTest- und Cybersicherheits-Tools für Ihr Sicherheitsarsenal!

Kitploit ist ein Verzeichnis von Hacking-, Cybersicherheits- und Pentesting-Tools. Entdecken Sie die neuesten Projekt-Updates, um Schwachstellen zu finden, Systeme zu analysieren, Tests zu automatisieren und Ihre Sicherheit zu stärken.

··Feeds·Kontakt·Datenschutz·© 2026 Kitploit

Tool-Verzeichnis

Kategorien

Alle Kategorien anzeigen
Loading categories
AzureADEnumeration — Microsoft Entra ID (Azure AD) Unauthentifizierte Enumeration | Kitploit
Tools/GitHubGitHub/logisek/azureadenumeration
Cloud-Infrastruktur-SicherheitOSINT (Open-Source-Intelligence)AufklärungInformationsbeschaffungPenetrationstestsCloud-SicherheitSubdomain-EnumerationE-Mail-SicherheitDNS-Analyse
GitHublogisek/azureadenumeration

AzureADEnumeration

Microsoft Entra ID (Azure AD) Unauthentifizierte Enumeration

795vor 6 MonatenVon Kitploit geprüft

Beliebteste

Alle anzeigen →

Entdecken Sie die meistgenutzten Tools unserer Community.

Alle Tools erkunden

Durchsuchen Sie unsere Tool-Sammlung

Alle Tools anzeigen →
Teilen
Repository anzeigen

Microsoft Entra ID (Azure AD) Unauthentifizierte Enumeration

Quelle: EvilMist Toolkit - Invoke-EntraEnum.ps1 - https://github.com/Logisek/EvilMist


1. Tenant-Erkennung (-TenantInfo)

Ermittelt Tenant-Informationen mithilfe öffentlicher APIs.

1.1 azmap.dev-API

Ruft Mandantendetails vom azmap.dev-Dienst ab.

root@kitploit:~
# Replace DOMAIN with target domain (e.g., example.com)
curl -s "https://azmap.dev/api/tenant?domain=DOMAIN&extract=true"

Antwort enthält: tenantId, displayName, countryCode

1.2 OpenID-Konfiguration

Ruft die OpenID-Connect-Konfiguration einschließlich der Token-Endpunkte ab.

root@kitploit:~
# Replace DOMAIN with target domain
curl -s "https://login.microsoftonline.com/DOMAIN/v2.0/.well-known/openid-configuration"

Antwort enthält: token_endpoint, authorization_endpoint, jwks_uri, issuer


2. Domain-Realm-Informationen (-DomainRealm)

Ruft die Domain-Namespace- und Verbundkonfiguration ab.

root@kitploit:~
# Replace DOMAIN with target domain
curl -s "https://login.microsoftonline.com/getuserrealm.srf?login=enum@DOMAIN&json=1"

Antwort enthält:

  • NameSpaceType - "Managed" oder "Federated"
  • AuthURL - Verbund-Authentifizierungs-URL (falls Verbund konfiguriert)
  • CloudInstanceName - Cloud-Instanz (z. B. "microsoftonline.com")
  • FederationBrandName - Name des Organisations-Brandings
  • DomainName - Verifizierte Domain

3. Benutzer-Enumeration über GetCredentialType (-UserEnum)

Prüft, ob ein Benutzer in Azure AD existiert. Gibt je nach Vorhandensein des Benutzers unterschiedliche Codes zurück.

root@kitploit:~
# Replace EMAIL with target email address
curl -s -X POST "https://login.microsoftonline.com/common/GetCredentialType" \
  -H "Content-Type: application/json" \
  -d '{
    "Username": "EMAIL",
    "isOtherIdpSupported": true,
    "checkPhones": false,
    "isRemoteNGCSupported": true,
    "isCookieBannerShown": false,
    "isFidoSupported": true,
    "originalRequest": "",
    "country": "US",
    "forceotclogin": false,
    "isExternalFederationDisallowed": false,
    "isRemoteConnectSupported": false,
    "federationFlags": 0,
    "isSignup": false,
    "flowToken": "",
    "isAccessPassSupported": true
  }'

IfExistsResult-Codes:

  • 0 = Benutzer existiert (Azure-IdP)
  • 1 = Benutzer existiert nicht
  • 2 = Ungültige Anfrage
  • 4 = Serverfehler
  • 5 = Benutzer existiert (Verbund-IdP)
  • 6 = Benutzer existiert (externer Nicht-MS-IdP)

4. DNS-Erkundung (-DnsEnum)

DNS-Abfragen für Azure/M365-bezogene Einträge. Verwenden Sie die Befehle dig, nslookup oder host.

4.1 CNAME-Einträge

root@kitploit:~
# Main domain CNAME
dig CNAME DOMAIN

# Autodiscover CNAME
dig CNAME autodiscover.DOMAIN
dig CNAME lyncdiscover.DOMAIN
dig CNAME sip.DOMAIN

4.2 TXT-/SPF-Einträge

root@kitploit:~
dig TXT DOMAIN

4.3 SRV-Einträge

root@kitploit:~
dig SRV _ldap._tcp.DOMAIN
dig SRV _kerberos._tcp.DOMAIN
dig SRV _autodiscover._tcp.DOMAIN
dig SRV _sip._tls.DOMAIN
dig SRV _sipfederationtls._tcp.DOMAIN

4.4 MX-Einträge

root@kitploit:~
dig MX DOMAIN

5. OneDrive-Benutzer-Enumeration (-OneDriveEnum)

Vollständig nicht nachweisbar – Es werden keine Audit-Logs erzeugt.

Prüft, ob ein Benutzer existiert, indem die URL der persönlichen OneDrive-Website abgefragt wird.

root@kitploit:~
# Replace TENANT with tenant name (e.g., example)
# Replace USERPATH with email formatted as: user_domain_com (@ and . replaced with _)
# Example: [email protected] becomes john_doe_example_com

curl -s -o /dev/null -w "%{http_code}" -I \
  "https://TENANT-my.sharepoint.com/personal/USERPATH/_layouts/15/onedrive.aspx"

Statuscodes:

  • 200 = Benutzer existiert, OneDrive zugänglich
  • 401/403 = Benutzer existiert, Zugriff verweigert
  • 404 = Benutzer existiert nicht

Beispiel für den Benutzer [email protected]:

root@kitploit:~
curl -s -o /dev/null -w "%{http_code}" -I \
  "https://example-my.sharepoint.com/personal/john_doe_example_com/_layouts/15/onedrive.aspx"

6. Verbund-Metadaten (-FederationMeta)

Ruft Verbundmetadaten einschließlich Signaturzertifikaten und Token-Endpunkten ab.

root@kitploit:~
# Replace DOMAIN with target domain
curl -s "https://login.microsoftonline.com/DOMAIN/FederationMetadata/2007-06/FederationMetadata.xml"

Antwort enthält (XML):

  • Entitäts-ID
  • X509-Signaturzertifikate
  • Token-Endpunkte
  • NameID-Formate
  • Claim-Typen
  • ADFS-Serverinformationen (falls Verbund konfiguriert)

7. Erkennung von Seamless SSO (-SeamlessSSO)

Erkennt, ob Desktop-SSO (Seamless Single Sign-On) aktiviert ist.

7.1 SSO-Konfiguration prüfen

root@kitploit:~
# Replace DOMAIN with target domain
curl -s "https://login.microsoftonline.com/getuserrealm.srf?login=user@DOMAIN&json=1"

Achten Sie auf: DesktopSsoEnabled: true

7.2 Autologon-Endpunkt testen (falls SSO aktiviert)

root@kitploit:~
# Replace TENANT_ID with the tenant GUID
curl -s -o /dev/null -w "%{http_code}" \
  "https://autologon.microsoftazuread-sso.com/TENANT_ID/winauth/trust/2005/usernamemixed"

8. Azure-Subdomänen-Enumeration (-SubdomainEnum)

Ermittelt Azure-Ressourcen, die mit einem Mandanten verknüpft sind. Verwendet DNS-Auflösung.

Zu prüfende Azure-Kernsubdomänen:

root@kitploit:~
# Replace TENANT with tenant name

# Primary tenant domain
dig A TENANT.onmicrosoft.com

# SharePoint
dig A TENANT.sharepoint.com

# OneDrive
dig A TENANT-my.sharepoint.com

# Azure Blob Storage
dig A TENANT.blob.core.windows.net

# Azure Files
dig A TENANT.file.core.windows.net

# Azure Queue
dig A TENANT.queue.core.windows.net

# Azure Table
dig A TENANT.table.core.windows.net

# Key Vault
dig A TENANT.vault.azure.net

# Azure SQL
dig A TENANT.database.windows.net

# App Service
dig A TENANT.azurewebsites.net

# Kudu/Git Deployment
dig A TENANT.scm.azurewebsites.net

# Cloud Services
dig A TENANT.cloudapp.net
dig A TENANT.cloudapp.azure.com

# Exchange Online Protection
dig A TENANT.mail.protection.outlook.com

# Container Registry
dig A TENANT.azurecr.io

# Redis Cache
dig A TENANT.redis.cache.windows.net

# Service Bus
dig A TENANT.servicebus.windows.net

# Front Door
dig A TENANT.azurefd.net

# Azure AD B2C
dig A TENANT.b2clogin.com

# API Management
dig A TENANT.azure-api.net

# Traffic Manager
dig A TENANT.trafficmanager.net

# HDInsight
dig A TENANT.azurehdinsight.net

# Cosmos DB
dig A TENANT.documents.azure.com

# Cognitive Search
dig A TENANT.search.windows.net

# Cognitive Services
dig A TENANT.cognitiveservices.azure.com

Permutationsbeispiele:

root@kitploit:~
# Common suffixes: dev, prod, staging, test, uat, qa, backup, dr, api, app, web, data
dig A TENANTdev.blob.core.windows.net
dig A TENANTprod.azurewebsites.net
dig A TENANTstaging.vault.azure.net

9. Autodiscover-V2-Enumeration (-AutodiscoverEnum)

Prüft die Existenz eines Benutzers über den Autodiscover-V2-JSON-Endpunkt.

root@kitploit:~
# Replace EMAIL with target email address
curl -s -o /dev/null -w "%{http_code}" -L --max-redirs 0 \
  "https://autodiscover-s.outlook.com/autodiscover/autodiscover.json?Email=EMAIL&Protocol=Autodiscoverv1"

Statuscodes:

  • 200 = Benutzer existiert
  • 302 (Weiterleitung) = Benutzer existiert nicht
  • 401/403 = Benutzer existiert (Authentifizierung erforderlich)

10. Autodiscover-V1-Enumeration (-AutodiscoverV1Enum)

Legacy-XML-basierter Autodiscover-Endpunkt für die Benutzer-Enumeration.

root@kitploit:~
# Replace DOMAIN with target domain
# Replace EMAIL with target email address

curl -s -X POST "https://autodiscover.DOMAIN/autodiscover/autodiscover.xml" \
  -H "Content-Type: text/xml; charset=utf-8" \
  -d '<?xml version="1.0" encoding="utf-8"?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006">
  <Request>
    <EMailAddress>EMAIL</EMailAddress>
    <AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>
  </Request>
</Autodiscover>'

Antwortindikatoren:

  • RedirectAddr in der Antwort = Benutzer existiert
  • RedirectUrl in der Antwort = Kann auf Existenz hindeuten
  • ErrorCode: InvalidUser = Benutzer existiert nicht
  • ErrorCode: NoError = Benutzer existiert

11. Exchange-Webdienste (EWS)-Sonde (-EwsProbe)

Sondiert EWS-Endpunkte auf Verfügbarkeit.

root@kitploit:~
# Office 365 EWS endpoints
curl -s -o /dev/null -w "%{http_code}" \
  "https://outlook.office365.com/EWS/Exchange.asmx"

curl -s -o /dev/null -w "%{http_code}" \
  "https://outlook.office.com/EWS/Exchange.asmx"

# On-premises/custom domain endpoints
# Replace DOMAIN with target domain
curl -s -o /dev/null -w "%{http_code}" \
  "https://DOMAIN/EWS/Exchange.asmx"

curl -s -o /dev/null -w "%{http_code}" \
  "https://mail.DOMAIN/EWS/Exchange.asmx"

curl -s -o /dev/null -w "%{http_code}" \
  "https://ews.DOMAIN/EWS/Exchange.asmx"

Statuscodes, die die Verfügbarkeit anzeigen:

  • 200, 301, 302, 307, 308 = Verfügbar
  • 401, 403 = Verfügbar (Authentifizierung erforderlich)
  • 404 = Nicht verfügbar

12. SharePoint-/Teams-Erkennung (-SharePointEnum)

Ermittelt SharePoint- und Teams-Websites.

root@kitploit:~
# Replace TENANT with tenant name

# Tenant root
curl -s -o /dev/null -w "%{http_code}" \
  "https://TENANT.sharepoint.com"

# OneDrive root
curl -s -o /dev/null -w "%{http_code}" \
  "https://TENANT-my.sharepoint.com"

# Common site names to check
# Sites: intranet, portal, hr, finance, it, projects, marketing, sales, support, admin, security, dev

curl -s -o /dev/null -w "%{http_code}" \
  "https://TENANT.sharepoint.com/sites/intranet"

curl -s -o /dev/null -w "%{http_code}" \
  "https://TENANT.sharepoint.com/sites/portal"

curl -s -o /dev/null -w "%{http_code}" \
  "https://TENANT.sharepoint.com/sites/hr"

# Teams sites
curl -s -o /dev/null -w "%{http_code}" \
  "https://TENANT.sharepoint.com/teams/intranet"

curl -s -o /dev/null -w "%{http_code}" \
  "https://TENANT.sharepoint.com/teams/it"

Statuscodes:

  • 200 = Website existiert und ist öffentlich zugänglich
  • 401, 403 = Website existiert, Authentifizierung erforderlich
  • 301, 302, 307, 308 = Website existiert, Weiterleitung
  • 404 = Website existiert nicht

13. Lync-Erkennung (-LyncProbe)

Sondiert die Erkennungsendpunkte von Lync.

root@kitploit:~
# Replace DOMAIN with target domain

curl -s -o /dev/null -w "%{http_code}" \
  "https://lyncdiscover.DOMAIN"

curl -s -o /dev/null -w "%{http_code}" \
  "https://lyncdiscoverinternal.DOMAIN"

curl -s -o /dev/null -w "%{http_code}" \
  "https://sip.DOMAIN"

14. Erweiterte E-Mail-Sicherheits-Enumeration (-MailEnum)

14.1 DNS-Einträge (dig/nslookup verwenden)

root@kitploit:~
# MX Records
dig MX DOMAIN

# SPF (TXT record)
dig TXT DOMAIN

# DMARC
dig TXT _dmarc.DOMAIN

# DKIM (common selectors)
dig TXT selector1._domainkey.DOMAIN  # Microsoft 365
dig TXT selector2._domainkey.DOMAIN  # Microsoft 365
dig TXT google._domainkey.DOMAIN     # Google Workspace
dig TXT default._domainkey.DOMAIN
dig TXT dkim._domainkey.DOMAIN
dig TXT mail._domainkey.DOMAIN
dig TXT k1._domainkey.DOMAIN         # Mailchimp
dig TXT s1._domainkey.DOMAIN
dig TXT s2._domainkey.DOMAIN

# MTA-STS
dig TXT _mta-sts.DOMAIN

# BIMI
dig TXT default._bimi.DOMAIN

# TLS-RPT
dig TXT _smtp._tls.DOMAIN

14.2 MTA-STS-Richtlinie (HTTP)

root@kitploit:~
# Replace DOMAIN with target domain
curl -s "https://mta-sts.DOMAIN/.well-known/mta-sts.txt"

15. Ressourcen-Erkennung per Tenant-ID (-TenantReverse)

Ermittelt anhand einer Tenant-ID die zugehörigen Ressourcen.

root@kitploit:~
# Replace TENANT_ID with the tenant GUID

# OpenID Configuration (v2.0)
curl -s "https://login.microsoftonline.com/TENANT_ID/v2.0/.well-known/openid-configuration"

# OpenID Configuration (v1.0)
curl -s "https://login.microsoftonline.com/TENANT_ID/.well-known/openid-configuration"

# Graph Tenant Information (requires auth but reveals info in error)
curl -s "https://graph.microsoft.com/v1.0/tenantRelationships/findTenantInformationByTenantId(tenantId='TENANT_ID')"

# Device Code Endpoint
curl -s "https://login.microsoftonline.com/TENANT_ID/oauth2/v2.0/devicecode"

# OAuth Authorize (reveals tenant branding)
curl -s "https://login.microsoftonline.com/TENANT_ID/oauth2/v2.0/authorize?client_id=00000000-0000-0000-0000-000000000000&response_type=code&scope=openid"

16. OAuth-Konfigurations-Sonde (-OAuthProbe)

Ermittelt die OAuth-Konfiguration durch Analyse von Fehlermeldungen bekannter Anwendungs-IDs.

root@kitploit:~
# Replace TENANT with tenant ID or domain

# Well-known Microsoft Application IDs to test:

# Microsoft Graph
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=00000003-0000-0000-c000-000000000000&response_type=code&scope=openid"

# Azure AD Graph (Deprecated)
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=00000002-0000-0000-c000-000000000000&response_type=code&scope=openid"

# Office 365 Exchange Online
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=00000002-0000-0ff1-ce00-000000000000&response_type=code&scope=openid"

# Office 365 SharePoint Online
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=00000003-0000-0ff1-ce00-000000000000&response_type=code&scope=openid"

# Skype for Business Online
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=00000004-0000-0ff1-ce00-000000000000&response_type=code&scope=openid"

# Azure Service Management API
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=797f4846-ba00-4fd7-ba43-dac1f8f63013&response_type=code&scope=openid"

# Microsoft Azure PowerShell
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=1950a258-227b-4e31-a9cf-717495945fc2&response_type=code&scope=openid"

# Microsoft Azure CLI
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=04b07795-8ddb-461a-bbee-02f9e1bf7b46&response_type=code&scope=openid"

# Microsoft Office
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=d3590ed6-52b3-4102-aeff-aad2292ab01c&response_type=code&scope=openid"

# Microsoft Teams
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=1fec8e78-bce4-4aaf-ab1b-5451cc387264&response_type=code&scope=openid"

# Microsoft Planner
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=9bc3ab49-b65d-410a-85ad-de819febfddc&response_type=code&scope=openid"

# Microsoft Graph Command Line Tools
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=de8bc8b5-d9f9-48b1-a8ad-b748da725064&response_type=code&scope=openid"

# Azure Portal
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=c44b4083-3bb0-49c1-b47d-974e53cbdf3c&response_type=code&scope=openid"

# Microsoft App Access Panel
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=0000000c-0000-0000-c000-000000000000&response_type=code&scope=openid"

# Microsoft Outlook
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=5d661950-3475-41cd-a2c3-d671a3162bc1&response_type=code&scope=openid"

# Microsoft OneDrive
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=eb1cec80-a830-486e-b45b-f57094f163f9&response_type=code&scope=openid"

# SharePoint Online Client
curl -s "https://login.microsoftonline.com/TENANT/oauth2/v2.0/authorize?client_id=57fb890c-0dab-4253-a5e0-7188c88b2bb4&response_type=code&scope=openid"

Zu analysierende AADSTS-Fehlercodes:

  • AADSTS700016 = Anwendung nicht im Verzeichnis gefunden
  • AADSTS650057 = Ungültige Ressource (App existiert, aber Konfigurationsproblem)
  • AADSTS65001 = Benutzer-/Admin-Zustimmung erforderlich (App existiert)
  • AADSTS50011 = Antwort-URL stimmt nicht überein (App existiert)
  • AADSTS90002 = Tenant nicht gefunden

Kurzreferenz: Zusammenfassung aller Endpunkte


Hinweise

  • Für keine dieser Anfragen ist eine Authentifizierung erforderlich
  • Die OneDrive-Enumeration ist vollständig nicht nachweisbar (keine Audit-Logs)
  • Verwenden Sie geeignete Drosselung/Verzögerungen, um Rate-Limiting zu vermeiden
  • Einige Methoden können Warnmeldungen in Sicherheitsüberwachungssystemen auslösen
  • Stellen Sie sicher, dass Sie vor der Durchführung der Enumeration über die entsprechende Autorisierung verfügen

Tool herunterladen
MethodeEndpunktHTTP-Methode
Tenant-Informationenhttps://azmap.dev/api/tenant?domain={domain}&extract=trueGET
OpenID-Konfigurationhttps://login.microsoftonline.com/{domain}/v2.0/.well-known/openid-configurationGET
Domain-Realmhttps://login.microsoftonline.com/getuserrealm.srf?login=user@{domain}&json=1GET
Benutzer-Enumerationhttps://login.microsoftonline.com/common/GetCredentialTypePOST
OneDrive-Enumhttps://{tenant}-my.sharepoint.com/personal/{user_path}/_layouts/15/onedrive.aspxHEAD
Verbund-Metadatenhttps://login.microsoftonline.com/{domain}/FederationMetadata/2007-06/FederationMetadata.xmlGET
Autologonhttps://autologon.microsoftazuread-sso.com/{tenant_id}/winauth/trust/2005/usernamemixedGET
Autodiscover V2https://autodiscover-s.outlook.com/autodiscover/autodiscover.json?Email={email}&Protocol=Autodiscoverv1GET
Autodiscover V1https://autodiscover.{domain}/autodiscover/autodiscover.xmlPOST
EWShttps://outlook.office365.com/EWS/Exchange.asmxGET
SharePointhttps://{tenant}.sharepoint.com/sites/{site}GET
Lynchttps://lyncdiscover.{domain}GET
MTA-STS-Richtliniehttps://mta-sts.{domain}/.well-known/mta-sts.txtGET
OAuth-Sondehttps://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize?client_id={app_id}&response_type=code&scope=openidGET