Skip to content
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Sponsor

(Tenant) Enable automatic revocation of leaked Personal Access Tokens

AZDO.1033HighAzure DevOpsSecurity policiesPreview 3.0

Part of Maester · Azure DevOps · Security policies · All checks

Run this check
Invoke-Maester -TestId AZDO.1033

Automatic revocation of leaked Personal Access Tokens should be enabled.

  • Your organization must be linked to a Microsoft Entra tenant.
  • You must be an Azure DevOps Administrator to configure tenant policies.

Automatically revoking PATs detected as leaked minimizes the window of opportunity for unauthorized access. Disabling this policy leaves exposed tokens active even if they appear in public repositories.

Enable the tenant policy to revoke leaked tokens.

  1. Sign in to your organization (https://dev.azure.com/{yourorganization}).
  2. Select Organization settings (gear icon).
  3. Select Microsoft Entra, locate the “Automatically revoke leaked personal access tokens” policy.
  4. Move the toggle to On.

Results:

When enabled, Azure DevOps will automatically revoke any PATs detected as leaked or exposed. If the policy is later disabled, tokens checked into public GitHub repositories remain active.

Every attribute of this check
FieldValue
Test IDAZDO.1033
SeverityHigh
SuiteMaester
ProductAzure DevOps
FeatureSecurity policies
AreaAuthentication
Resource typeTenant
User impactLow
Implementation costLow
MITRE ATT&CKT1552.001 Credentials In Files, T1593.003 Code Repositories, T1550.001 Application Access Token
Supports controlsnist-800-53-r5:IA-5
PowerShell testTest-AzdoEnableLeakedPersonalAccessTokenAutoRevocation
ServicesAzureDevOps
Learn morehttps://learn.microsoft.com/azure/devops/organizations/accounts/manage-pats-with-policies-for-administrators?view=azure-devops#automatic-revocation-of-leaked-tokens