← Back to SOC feed Coverage →

Sticky Keys

kql MEDIUM Azure-Sentinel
huntingmicrosoftofficialpersistenceransomware
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-25T23:00:00Z · Confidence: medium

Hunt Hypothesis

The Sticky Keys detection identifies potential adversary use of a compromised service account for persistence and privilege escalation, commonly seen in ransomware attacks. SOC teams should proactively hunt for this behavior in Azure Sentinel to detect and mitigate early-stage lateral movement and unauthorized access.

KQL Query

// Checks for possible hijacking of Sticky Keys feature 
AlertInfo | where Title == "Sticky Keys binary hijack detected"

Analytic Rule Definition

id: 3c82774a-df78-44eb-9ab3-13ef37c63ae4
name: Sticky Keys
description: |
  A technique used in numerous ransomware attacks is a Sticky Keys hijack for privilege escalation/persistence. Surface realted alerts with this query.
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - AlertInfo
tactics:
- Ransomware
query: |
  // Checks for possible hijacking of Sticky Keys feature 
  AlertInfo | where Title == "Sticky Keys binary hijack detected"

MITRE ATT&CK Context

References

False Positive Guidance

Original source: https://github.com/Azure/Azure-Sentinel/blob/main/Hunting Queries/Microsoft 365 Defender/Ransomware/Sticky Keys.yaml