Skip to content

[New Module] Invoke-BlockedPasswordPol#34

Closed
Ocel0tSec wants to merge 1 commit intodafthack:mainfrom
Ocel0tSec:Ocel0tSec-patch-1
Closed

[New Module] Invoke-BlockedPasswordPol#34
Ocel0tSec wants to merge 1 commit intodafthack:mainfrom
Ocel0tSec:Ocel0tSec-patch-1

Conversation

@Ocel0tSec
Copy link
Copy Markdown

@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
@dafthack
Copy link
Copy Markdown
Owner

dafthack commented Apr 7, 2026

Thanks for the contribution! However, I don't want to require users have external tools (Az PowerShell module) installed to run GraphRunner modules if possible. Going to close this one for now. If you can get it to work with just Graph calls that would be something I would love to add in. Thanks again for the submission.

@dafthack dafthack closed this Apr 7, 2026
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.

2 participants