repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
azure-enumeration.mdMarkdown267 lines11.9 KiBsource raw download

title: "Azure AD - Enumerate" section: "Cloud" sectionSlug: "cloud" sourcePath: "docs/cloud/azure/azure-enumeration.md" sourceUrl: "https://github.com/swisskyrepo/InternalAllTheThings/blob/203bb0c0b290/docs/cloud/azure/azure-enumeration.md" sha: "203bb0c0b290" isIndex: false#

Azure AD - Enumerate#

Azure AD - Collectors#

Azure AD - User Enumeration#

Enumerate Tenant Informations#

Enumerate from a Guest Account#

powerpwn recon --tenant {tenantId} --cache-path {path}
powerpwn dump -tenant {tenantId} --cache-path {path}
powerpwn gui --cache-path {path}

Enumerate Emails#

By default, O365 has a lockout policy of 10 tries, and it will lock out an account for one (1) minute.

Password Spraying#

The default lockout policy tolerates 10 failed attempts, then lock out an account for 60 seconds.

Azure Services Enumeration#

Enumerate Tenant Domains#

Extract openly available information for the given tenant: aadinternals.com/osint

Invoke-AADIntReconAsOutsider -DomainName <DOMAIN>
Invoke-AADIntReconAsOutsider -Domain "company.com" | Format-Table
Invoke-AADIntReconAsOutsider -UserName "user@company.com" | Format-Table

Enumerate Azure Subdomains#

PS> . C:\Tools\MicroBurst\Misc\InvokeEnumerateAzureSubDomains.ps1
PS> Invoke-EnumerateAzureSubDomains -Base <TENANT NAME> -Verbose
Subdomain Service
--------- -------
<TENANT NAME>.mail.protection.outlook.com Email
<TENANT NAME>.onmicrosoft.com Microsoft Hosted Domain

Enumerate Services#

Multi Factor Authentication#

Import-Module .\MFASweep.ps1
Invoke-MFASweep -Username targetuser@targetdomain.com -Password Winter2020
Invoke-MFASweep -Username targetuser@targetdomain.com -Password Winter2020 -Recon -IncludeADFS

References#