1. Resources
  2. Detection sources
  3. VaultAccessPolicyChangedEventGridNotification

VaultAccessPolicyChangedEventGridNotification: The access policies of a key vault changed

Recorded by the vault itself when its access policies change, whether or not anyone subscribed to the Event Grid event. It sits in the same log as the secret reads that may follow a grant. The detection rule matches every record.

Log source
Azure Key Vault resource logs
Detection value
Supporting
Volume
Low (estimate)
Last updated
Log
Azure Key Vault resource logs (Azure Key Vault resource logs, off by default)
Service
Azure Key Vault resource logs
Operation
VaultAccessPolicyChangedEventGridNotification
Detects
1 attack (1 rule · 1 detection logic)
MITRE ATT&CK
1 technique in 2 tactics
Threat groups
3 groups that MITRE ATT&CK records using these techniques
Fields the rules read
OperationName

When it is written

Key Vault publishes an Event Grid event (Microsoft.KeyVault.VaultAccessPolicyChanged) when the access policies of a vault change, and writes this record to its resource log every time, whether or not an Event Grid subscription exists. Access policies are the legacy permission model: they apply to vaults where Azure RBAC does not authorize data access (enableRbacAuthorization false), and they are changed through Azure Resource Manager, by the vault's owners, deployments, or anyone with Microsoft.KeyVault/vaults/write.

The record says that the policies changed, not how. Microsoft does not document which columns it fills beyond the common ones, nor whether Identity names the person who made the change; the change itself, with its caller and request, is in the Azure Activity log as MICROSOFT.KEYVAULT/VAULTS/ACCESSPOLICIES/WRITE (or MICROSOFT.KEYVAULT/VAULTS/WRITE when the policies came with a vault update). Microsoft documents that the Event Grid event for a new version of an object is not logged here.

How to turn it on

Azure Key Vault resource logs records VaultAccessPolicyChangedEventGridNotification calls to Azure Key Vault resource logs once it is turned on. Vendor documentation

Key Vault writes these records for every request, but nothing keeps them until a diagnostic setting on the vault sends the AuditEvent category (the category that holds these operations; the vault's other category, AzurePolicyEvaluationDetails, holds Azure Policy evaluations) to a destination: a Log Analytics workspace, a storage account (container insights-logs-auditevent, JSON blobs per hour) or an event hub that a third-party SIEM reads. A vault without a setting leaves no record of who read its secrets.

  • Create the setting on every vault. Diagnostic settings can be created in the portal, programmatically, or deployed with Azure Policy, which also covers vaults created later.
  • In a Log Analytics workspace, choose the Resource specific destination table: the records go to AZKVAuditLogs, the table the detection rules read. Azure diagnostics mode writes them to AzureDiagnostics with other column names. Microsoft recommends resource-specific mode for new settings.
  • What is recorded: every authenticated REST request (including requests that failed on permissions, system errors or bad requests), unauthenticated requests answered with 401, operations on the vault itself (create, delete, access policies, attributes such as tags), and the Event Grid notifications for expiry, near expiry and access policy changes, whether or not anyone subscribed to them.
  • Records are available within 10 minutes of the operation at most, usually sooner.
  • Key Vault does not manage what it delivers: retention is the destination's (workspace retention, storage lifecycle rules). Changes made through Azure Resource Manager also appear in the Azure Activity log of the subscription, with the caller; reads of secrets, keys and certificates appear only here.
List the diagnostic settings of a vault and the categories they send (read only)
az monitor diagnostic-settings list --resource <key-vault-resource-id>
Based on vendor documentation.
List the resource IDs of the vaults in this subscription (read only)
az keyvault list --query "[].id" --output tsv
Based on vendor documentation.
Check soft delete, purge protection and the permission model of a vault (read only)
az keyvault show --name <vault-name> --query "properties.{softDelete:enableSoftDelete, purgeProtection:enablePurgeProtection, retentionDays:softDeleteRetentionInDays, rbac:enableRbacAuthorization}"
Based on vendor documentation.
Find recent VaultAccessPolicyChangedEventGridNotification records (read only)
az monitor log-analytics query --workspace <workspace-guid> --timespan P7D --analytics-query "AZKVAuditLogs | where OperationName == 'VaultAccessPolicyChangedEventGridNotification' | take 5"
Based on vendor documentation.

Fields

The operation’s own fields first, then the fields every Azure Key Vault resource logs record has. Field names are the JSON paths of the record as the vendor documents it.

FieldWhat it holds
IdThe object the event is about, when the record carries it. The Event Grid event's data names the vault, the object type and its identifier.
VaultPropertiesThe vault's detailed properties, which Microsoft describes as including its access policies. Microsoft does not document whether this record fills the column; when it does, it is where the new policies can be read.
Fields every Azure Key Vault resource logs record has (20)
FieldWhat it holds
TimeGeneratedWhen the operation occurred, in UTC (time in the resource log JSON).
ResourceIdResource ID of the key vault the request was made to (_ResourceId in AZKVAuditLogs, resourceId in the resource log JSON), in upper case in Microsoft's example. The rules group by it to count per vault.
OperationNameRead by 1 ruleThe operation, in ObjectVerb form: Vault<action> for the vault itself, Secret<action>, Key<action> and Certificate<action> for the objects in it. The operation this page is about.
OperationVersionThe REST API version the client asked for.
ResultTypeResult of the REST API request (Success in Microsoft's example). The rules match Success.
ResultSignatureThe HTTP status of the response as text (OK, Forbidden...).
ResultDescriptionMore detail about the result, when the service gives one.
HttpStatusCodeThe HTTP status code of the response (200, 401, 403...).
DurationMsHow long the vault took to serve the request, in milliseconds, without network latency.
CallerIpAddressThe address of the client that made the request. The rules count per address because the identity claims are not mapped as fields.
IdentityThe identity in the token presented with the request: usually a user, a service principal, or a user plus application ID (a request made through Azure PowerShell, for example), as claims such as the object ID, the UPN and appid.
ClientInfoThe user agent string the client sent.
RequestUriThe exact URI of the request. It names the object (/secrets/<name>/<version>, /keys/<name>/backup) for data-plane requests and the vault's Resource Manager URI for management requests.
CorrelationIdAn optional GUID the client can pass to match its own logs with the vault's.
IsRbacAuthorizedWhether an Azure RBAC access check granted the request.
IsAccessPolicyMatchWhether the token's tenant is the vault's tenant and an access policy explicitly gives the caller the permission (vaults that use the access policy model).
IsAddressAuthorizedWhether the request came from an address or network the vault's firewall allows.
SubnetIdThe subnet the request came from, when it came from a known subnet.
AppliedAssignmentIdThe role assignment that granted or denied the request in the access check (vaults that use Azure RBAC).
AddressAuthorizationTypeHow the source address was classed (public IP, subnet or private connection).

Values to know

OperationName

ValueMeaningSignal
VaultAccessPolicyChangedEventGridNotificationThe vault's access policies changedEvery record is what the detection rule matches. Who made the change and what it grants is in the Azure Activity log.Worth knowing

Volume and noise

Low. Application onboarding and infrastructure-as-code pipelines that manage access policies produce most records. A change made outside those, followed by reads of secrets from an identity that was not reading the vault before, is the sequence to review.

Keeping it manageable

  • Match each record to the Activity log event of the same vault and time to see who changed the policies and what the new entry grants.
  • Exclude the vaults or deployment windows of known pipelines once confirmed.
  • Look at the vault's SecretGet, KeyBackup and SecretBackup records in the hour after the change, by identities that did not use the vault before.
  • Move vaults to the Azure RBAC permission model where possible; Microsoft recommends it, and it takes the grant out of the hands of everyone with write access to the vault.

Sample event

A Azure Key Vault resource logs record in the vendor’s format, with made-up values.

{
  "TimeGenerated": "2026-11-18T09:30:12.4410000Z",
  "ResourceId": "/SUBSCRIPTIONS/00000000-0000-0000-0000-000000000001/RESOURCEGROUPS/RG-PROD-APPS/PROVIDERS/MICROSOFT.KEYVAULT/VAULTS/KV-CORP-APPS",
  "OperationName": "VaultAccessPolicyChangedEventGridNotification",
  "OperationVersion": "2025-07-01",
  "ResultType": "Success",
  "ResultSignature": "OK",
  "ResultDescription": "",
  "HttpStatusCode": 200,
  "DurationMs": 14,
  "CallerIpAddress": "203.0.113.24",
  "Identity": {
    "claim": {
      "http://schemas.microsoft.com/identity/claims/objectidentifier": "00000000-0000-0000-0000-00000000b0b0",
      "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": "ops-admin@corp.example.com",
      "appid": "00000000-0000-0000-0000-00000000c11e"
    }
  },
  "ClientInfo": "azsdk-python-keyvault-secrets/4.9.0 Python/3.11.9 (Linux-6.8-x86_64)",
  "RequestUri": "https://kv-corp-apps.vault.azure.net/",
  "CorrelationId": "00000000-1111-2222-3333-444444444444",
  "IsRbacAuthorized": true,
  "IsAccessPolicyMatch": false,
  "IsAddressAuthorized": true,
  "Id": "https://kv-corp-apps.vault.azure.net/",
  "VaultProperties": {
    "accesspolicy": [
      {
        "objectId": "00000000-0000-0000-0000-00000000d0d0",
        "permissions": {
          "secrets": [
            "get",
            "list"
          ]
        }
      }
    ]
  }
}

Attacks this event reveals

Detection rules that read this event:

References