Skip to content

Conversation

@Ocel0tSec
Copy link

@Ocel0tSec Ocel0tSec commented Jul 21, 2024

Grabs a portal token which can be used to list out any custom passwords that are being blocked. Also checks to see if that policy is enabled and displays related info. It does require at least the AuthenticationPolicyAdministrator role, testing was done as Global Administrator. It also requires the user is connectoed to Azure via Connect-AzAccount so it can run Get-AzContext, there might be a way to get that info into the Portal token request just using the GRAPH API but I only ever got authentication errors when doing so.

I think this is useful to Red Teams who are looking to password spray other accounts, this gives insight into the organization and will limit unnecessary password guesses. It could also be useful to auditors looking to help improve an organizations security as the custom password policy is able to be enabled on most EntraID subscriptions.

image

Grabs a portal token which can be used to list out any custom passwords that are being blocked. Also checks to see if that policy is enabled.
@Ocel0tSec Ocel0tSec changed the title Add Invoke-BlockedPasswordPol [New Module] Add Invoke-BlockedPasswordPol Jul 21, 2024
@Ocel0tSec Ocel0tSec changed the title [New Module] Add Invoke-BlockedPasswordPol [New Module] Invoke-BlockedPasswordPol Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant