← Back to SOC feed Coverage →

RunMRU with non-ASCII characters

kql MEDIUM Azure-Sentinel
T1204.004
DeviceRegistryEvents
huntingmicrosoftofficial
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-05-20T11:00:00Z · Confidence: medium

Hunt Hypothesis

Adversaries may use non-ASCII characters in the RunMRU registry key to obfuscate malicious persistence mechanisms. SOC teams should proactively hunt for this behavior in Azure Sentinel to detect potential persistence techniques that evade traditional detection methods.

KQL Query

//Identifies non-ASCII data written to the RunMRU registry key by explorer. This may indicate user-pasted commands from social engineering tactics like "ClickFix", where users are tricked into executing code.
DeviceRegistryEvents
  | where InitiatingProcessFileName == "explorer.exe"
  | where ActionType == "RegistryValueSet"
  | where RegistryKey endswith "RunMRU"
  | where RegistryValueData matches regex "[^[:ascii]]"
  // If too noisy add the following filter
  // | where RegistryValueData contains "#"

Analytic Rule Definition

id: 6e8ee46f-80ee-46f6-be49-49a66f01edce
name: RunMRU with non-ASCII characters
description: |
  Identifies non-ASCII data written to the RunMRU registry key by explorer.
description-detailed: |
  Identifies non-ASCII data written to the RunMRU registry key by explorer. This may indicate user-pasted commands from social engineering tactics like "ClickFix", where users are tricked into executing code.
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - DeviceRegistryEvents
tactics:
- Execution
relevantTechniques:
- T1204.004
query: |
  //Identifies non-ASCII data written to the RunMRU registry key by explorer. This may indicate user-pasted commands from social engineering tactics like "ClickFix", where users are tricked into executing code.
  DeviceRegistryEvents
    | where InitiatingProcessFileName == "explorer.exe"
    | where ActionType == "RegistryValueSet"
    | where RegistryKey endswith "RunMRU"
    | where RegistryValueData matches regex "[^[:ascii]]"
    // If too noisy add the following filter
    // | where RegistryValueData contains "#"
version: 1.0.1

Required Data Sources

Sentinel TableNotes
DeviceRegistryEventsEnsure 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/Microsoft 365 Defender/Execution/RunMRUWithNonASCIICharacters.yaml