VeriKQL by Kaushik Saha

T1497.002 User Activity Based Checks

DiscoveryStealthon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0420 Detect User Activity Based Sandbox Evasion via Input & Artifact Probing

AN1182 Windows

Process execution that probes user activity artifacts (e.g., desktop files, registry history) following recent user login/unlock events.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SysmonEventCode=1
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (1)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (1)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

WinEventLog:SysmonEventCode=10
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (10)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (10)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

WinEventLog:SecurityEventCode=4800, 4801
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4800, 4801)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4800, 4801)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4800, 4801)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

AN1183 Linux

Access to shell history or GUI input state (xdotool, xinput) for presence validation prior to payload execution.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLReads of ~/.bash_history, ~/.mozilla, or access to /dev/inputNot mapped to Sentinel yet.
auditd:SYSCALLExecution of xev, xdotool, or input activity emulatorsNot mapped to Sentinel yet.

AN1184 macOS

API usage or filesystem access revealing user state or browser artifacts (e.g., Safari bookmarks, CGEventState).

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogExecution of input detection APIs (e.g., CGEventSourceKeyState)Not mapped to Sentinel yet.
macos:unifiedlogAccess to ~/Library/Safari/Bookmarks.plist or recent filesNot mapped to Sentinel yet.

Content Hub rules tagged with it (0)

No Content Hub rule is tagged with this technique.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

In Sigma rules

No SigmaHQ rule names it in their tags outright.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.