Skip to content

Instantly share code, notes, and snippets.

@merill
Last active December 9, 2021 15:40
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save merill/8306cc91030b0a3e12f47835db6af549 to your computer and use it in GitHub Desktop.
Save merill/8306cc91030b0a3e12f47835db6af549 to your computer and use it in GitHub Desktop.
This script will allow you to find all applications and service principals in Azure AD affected by https://aka.ms/CVE-2021-42306-AAD that need their keys to be rotated.
Install-Module AffectedKeyCredentials
Get-AffectedKeyCredentials -TenantId 0000-0000-0000-0000 -ObjectClass application -ScanAll
Get-AffectedKeyCredentials -TenantId 0000-0000-0000-0000 -ObjectClass servicePrincipal -ScanAll
@merill
Copy link
Author

merill commented Nov 18, 2021

Thanks for sharing the updates.

It sounds like a conflict of PowerShell modules. There are some suggestions in this thread Azure/azure-powershell#9949

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment