← Back to SOC feed Coverage →

Suspected ProxyToken Exploitation

kql MEDIUM Azure-Sentinel
T1190
W3CIISLog
evasionexploithuntingmicrosoftofficial
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Azure-Sentinel →
Retrieved: 2026-06-04T23:00:00Z · Confidence: medium

Hunt Hypothesis

Adversaries may exploit ProxyToken vulnerabilities to bypass authentication and gain unauthorized access to Azure resources. SOC teams should proactively hunt for this behavior to detect and mitigate potential lateral movement and privilege escalation in their environment.

KQL Query

W3CIISLog
//Exclude local addresses, using the ipv4_is_private operator
| where ipv4_is_private(cIP) == false and  cIP !startswith "fe80" and cIP !startswith "::" and cIP !startswith "127."
| where csMethod =~ "POST"
| where csUriStem has "/ecp"
| where isnotempty(csCookie) and csCookie has "SecurityToken"
| where csUriQuery has "msExchEcpCanary"
| extend timestamp=TimeGenerated, HostCustomEntity=Computer, IPCustomEntity=cIP

Analytic Rule Definition

id: 141a3be6-be08-4519-9698-2fc908f6761c
name: Suspected ProxyToken Exploitation
description: |
  'Looks for activity that might indicate exploitation of the ProxyToken vulnerability - CVE-2021-33766
  Ref: https://www.zerodayinitiative.com/blog/2021/8/30/proxytoken-an-authentication-bypass-in-microsoft-exchange-server'
requiredDataConnectors:
  - connectorId: AzureMonitor(IIS)
    dataTypes:
      - W3CIISLog
tactics:
  - InitialAccess
relevantTechniques:
  - T1190
query: |
  W3CIISLog
  //Exclude local addresses, using the ipv4_is_private operator
  | where ipv4_is_private(cIP) == false and  cIP !startswith "fe80" and cIP !startswith "::" and cIP !startswith "127."
  | where csMethod =~ "POST"
  | where csUriStem has "/ecp"
  | where isnotempty(csCookie) and csCookie has "SecurityToken"
  | where csUriQuery has "msExchEcpCanary"
  | extend timestamp=TimeGenerated, HostCustomEntity=Computer, IPCustomEntity=cIP
entityMappings:
  - entityType: Host
    fieldMappings:
      - identifier: FullName
        columnName: Computer
  - entityType: IP
    fieldMappings:
      - identifier: Address
        columnName: cIP

Required Data Sources

Sentinel TableNotes
W3CIISLogEnsure this data connector is enabled

MITRE ATT&CK Context

References

False Positive Guidance

Original source: https://github.com/Azure/Azure-Sentinel/blob/main/Hunting Queries/W3CIISLog/SuspectedProxyTokenExploitation.yaml