Detection rules › Kusto
Detect device token stealing with WDAC
This rule uses a WDAC audit policy to ingest missing Microsoft Defender for Endpoint events. By doing this, we can detect PRT token stealing on a device when exploiting the MicrosoftAccountTokenProvider.dll. For more detailed information on the WDAC audit policy, see the blogpost added in the references.
MITRE ATT&CK coverage
References
Telemetry coverage
| Platform | Record / event type |
|---|---|
| Microsoft Defender for Endpoint | DeviceEvents action any: Defender event |
Rule body
DeviceEvents
| where ActionType startswith "AppControl"
| where FileName =~ "MicrosoftAccountTokenProvider.dll"
| invoke FileProfile(InitiatingProcessSHA1, 1000)
| where GlobalPrevalence < 250
Stages and Predicates
Stage 1: source
DeviceEvents
Stage 2: where
| where ActionType startswith "AppControl"
Stage 3: where
| where FileName =~ "MicrosoftAccountTokenProvider.dll"
Stage 4: invoke
| invoke FileProfile(InitiatingProcessSHA1, 1000)
Stage 5: where
| where GlobalPrevalence < 250
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
ActionType | starts_with |
| field:"ActionType" kind:starts_with value:"AppControl" |
FileName | eq |
| field:"file_name" kind:eq value:"MicrosoftAccountTokenProvider.dll" |
GlobalPrevalence | lt |
| field:"GlobalPrevalence" kind:lt value:"250" |