Skip to content
CVE-2026-118286 Microsoft Sentinel · KQL

Detect CVE-2026-118286: Azure Site Recovery Improper Access Control Privilege Elevation in Microsoft Sentinel

Detects potential exploitation of CVE-2026-118286, an improper access control weakness (CWE-284) in Azure Site Recovery (ASR) that allows an unauthorized network attacker to elevate privileges. Exploitation is expected to manifest as anomalous authenticated or unauthenticated calls against Azure Site Recovery / Recovery Services vault management endpoints, unexpected changes to replication configuration, failover operations, or role assignments performed by principals that should not possess ASR management rights. Because the CVE is currently theoretical with no public PoC, this detection focuses on access-control anomalies around Recovery Services vaults: privilege-sensitive ASR operations from unexpected identities, new role assignments scoped to vaults, and failover/recovery-plan manipulation. Tune to your environment's legitimate DR operators and automation service principals.

MITRE ATT&CK

Tactic
Privilege Escalation

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
// df00tech DF00-9a558f1e45 · https://df00tech.com/detections/CVE-2026-118286 · licence: https://df00tech.com/detections/licence
let drOperators = dynamic([]);
let sensitiveOps = dynamic([
  "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/write",
  "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/failover/action",
  "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems/write",
  "Microsoft.RecoveryServices/vaults/replicationRecoveryPlans/failover/action",
  "Microsoft.RecoveryServices/vaults/replicationRecoveryPlans/write",
  "Microsoft.RecoveryServices/vaults/write",
  "Microsoft.Authorization/roleAssignments/write"]);
AzureActivity
| where TimeGenerated > ago(1d)
| where ResourceProviderValue == "MICROSOFT.RECOVERYSERVICES" or OperationNameValue has "RecoveryServices" or OperationNameValue in~ (sensitiveOps)
| where OperationNameValue in~ (sensitiveOps)
| extend principal = tostring(Caller)
| where array_length(drOperators) == 0 or principal !in~ (drOperators)
| project TimeGenerated, principal, CallerIpAddress, OperationNameValue, ActivityStatusValue, ResourceId, _ResourceId
| order by TimeGenerated desc
high severity medium confidence

Flags privilege-sensitive Azure Site Recovery / Recovery Services vault operations (replication writes, failover, role assignments) performed by principals outside the approved DR-operator allowlist. Populate drOperators with your sanctioned identities.

Data Sources

Azure Activity LogsAzure Monitor

Required Tables

AzureActivity

False Positives & Tuning

  • Legitimate DR failover drills or production failovers executed by authorized operators not yet in the allowlist
  • Automation service principals performing scheduled replication configuration changes
  • Infrastructure-as-code deployments (Terraform/ARM/Bicep) that touch Recovery Services vaults

Other platforms for CVE-2026-118286


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 Unauthorized role assignment scoped to Recovery Services vault

    Expected signal: AzureActivity record with OperationNameValue Microsoft.Authorization/roleAssignments/write and ResourceId referencing the Recovery Services vault.

  2. Test 2 Replication protected item modification by off-baseline caller

    Expected signal: AzureActivity record for .../replicationProtectedItems/write operation.

  3. Test 3 Unplanned failover action on recovery plan

    Expected signal: AzureActivity record for .../replicationRecoveryPlans/failover/action operation.

Last updated: Research depth: standard
References (1)

Response Playbook

Triage

  1. Identify the caller principal, source IP, and timestamp of the flagged Recovery Services vault operation and determine whether the identity is a sanctioned DR operator or automation service principal.
  2. Review the target resource (vault, replication protected item, or recovery plan) and check whether the operation represents a legitimate, change-managed activity (approved change ticket, scheduled drill).
  3. Correlate with Azure AD / Entra ID sign-in logs for the caller to assess whether the authentication was anomalous (new IP, impossible travel, unusual device, token anomalies).
  4. Enumerate any new role assignments scoped to the vault or subscription created around the same time window to detect persistence or privilege grants.

Containment

  1. Revoke or disable the suspect principal's sessions and, if confirmed malicious, remove unauthorized role assignments on the affected Recovery Services vault and subscription.
  2. Apply Azure RBAC least-privilege and conditional-access/PIM restrictions to Recovery Services vault management operations, and lock replication/failover configuration via resource locks.
  3. If a failover or replication change was triggered maliciously, coordinate with DR owners to halt and reverse the operation before data is overwritten.

Evidence Collection

  1. Export the relevant AzureActivity log entries (operation name, caller, callerIpAddress, resourceId, correlationId, status) for the affected time window.
  2. Capture Entra ID sign-in and audit logs for the caller, including role-assignment change events and token/consent grants.
  3. Snapshot the current RBAC role assignments and replication configuration of the affected vault for before/after comparison.

Escalation Criteria

  • !Escalate to incident response if an unauthorized principal successfully executed a failover, modified replication protection, or created role assignments on a production Recovery Services vault.
  • !Escalate to the cloud security and DR owners if privilege elevation is confirmed or if the caller cannot be attributed to an approved operator or automation identity.

Investigation Guide

Forensic Artifacts

  • >AzureActivity log records for MICROSOFT.RECOVERYSERVICES operations
  • >Entra ID audit log entries for roleAssignments/write events
  • >Recovery Services vault replication and recovery-plan configuration state

Tuning Guidance

Build an allowlist (drOperators / dr_operators_allowlist.csv) of all sanctioned DR operators and automation service principals and their expected source IP ranges. Exclude known IaC deployment identities. Start in monitor mode to baseline normal failover-drill cadence, then alert only on sensitive operations from off-baseline callers. Because CVE-2026-118286 is theoretical, prioritize access-control anomaly signals (new callers, new role assignments) over raw operation volume.


Hunting Queries

Hunts for role assignments scoped to Recovery Services vaults over the last 30 days to find unexpected privilege grants.

Hunting — KQL
kql
// df00tech DF00-9a558f1e45 · https://df00tech.com/detections/CVE-2026-118286 · licence: https://df00tech.com/detections/licence
AzureActivity | where TimeGenerated > ago(30d) | where OperationNameValue == "Microsoft.Authorization/roleAssignments/write" | where ResourceId has "Microsoft.RecoveryServices/vaults" | summarize count() by Caller, CallerIpAddress, ResourceId
Hunting — SPL
spl
``` df00tech DF00-9a558f1e45 · https://df00tech.com/detections/CVE-2026-118286 · licence: https://df00tech.com/detections/licence ```
index=azure sourcetype="mscs:azure:activity" operationName.value="Microsoft.Authorization/roleAssignments/write" resourceId="*Microsoft.RecoveryServices/vaults*" | stats count by caller, callerIpAddress, resourceId

Atomic Red Team Tests

Test 1 Unauthorized role assignment scoped to Recovery Services vault
linux

Simulates privilege elevation by assigning a management role over an ASR vault from a non-baseline principal in a lab subscription.

Command

bash
az role assignment create --assignee "$TEST_PRINCIPAL_ID" --role "Site Recovery Contributor" --scope "/subscriptions/$SUB_ID/resourceGroups/$RG/providers/Microsoft.RecoveryServices/vaults/$VAULT"

Cleanup

bash
az role assignment delete --assignee "$TEST_PRINCIPAL_ID" --role "Site Recovery Contributor" --scope "/subscriptions/$SUB_ID/resourceGroups/$RG/providers/Microsoft.RecoveryServices/vaults/$VAULT"

Expected Telemetry

AzureActivity record with OperationNameValue Microsoft.Authorization/roleAssignments/write and ResourceId referencing the Recovery Services vault.

Expected Detection

KQL/SPL rules flag the role assignment by a caller outside the DR-operator allowlist.

Test 2 Replication protected item modification by off-baseline caller
linux

Simulates an unauthorized write to an ASR replication protected item in a lab vault.

Command

bash
az rest --method put --url "https://management.azure.com/subscriptions/$SUB_ID/resourceGroups/$RG/providers/Microsoft.RecoveryServices/vaults/$VAULT/replicationFabrics/$FABRIC/replicationProtectionContainers/$CONTAINER/replicationProtectedItems/$ITEM?api-version=2023-06-01" --body @protected-item.json

Cleanup

bash
echo 'Remove or revert the lab replication protected item via the Azure portal or az rest delete call.'

Expected Telemetry

AzureActivity record for .../replicationProtectedItems/write operation.

Expected Detection

Detection rules surface the replication write from a non-allowlisted caller.

Test 3 Unplanned failover action on recovery plan
linux

Simulates a failover trigger on a lab ASR recovery plan to validate failover-action detection.

Command

bash
az rest --method post --url "https://management.azure.com/subscriptions/$SUB_ID/resourceGroups/$RG/providers/Microsoft.RecoveryServices/vaults/$VAULT/replicationRecoveryPlans/$PLAN/failover?api-version=2023-06-01" --body '{"properties":{"failoverDirection":"PrimaryToRecovery"}}'

Cleanup

bash
echo 'Reprotect / failback the lab recovery plan via the Azure portal to restore original state.'

Expected Telemetry

AzureActivity record for .../replicationRecoveryPlans/failover/action operation.

Expected Detection

Detection rules alert on the failover action initiated by an unauthorized principal.

Related Detections