Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Module] Invoke-BlockedPasswordPol #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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