This detection identifies potential keyboard hooking or input monitoring behaviors by analyzing specific virtualized keyboard flag anomalies that often indicate early-stage reconnaissance or credential harvesting activities. A SOC team should proactively hunt for these signals in Azure Sentinel to uncover stealthy adversaries who manipulate user input streams before triggering more obvious authentication events, thereby reducing the dwell time of undetected threats.
rule VxKBDflags1024
{
meta:
author="malware-lu"
strings:
$a0 = { 8B EC 2E 89 2E 24 03 BC 00 04 8C D5 2E 89 2E 22 }
condition:
$a0 at pe.entry_point
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the VxKBDflags1024 detection rule, along with suggested filters and exclusions:
Scenario: Automated Keyboard Input Simulation by RPA Tools
KBD_FLAGS values that mimic the pattern detected by VxKBDflags1024 during high-volume data entry tasks.UiPath.Studio.exe, AutomationAnywhere.Agent.exe) or filter alerts where the parent process is one of these tools and the event occurs within a defined “RPA Execution” time window.Scenario: Scheduled Accessibility Feature Activation
svchost.exe process when the parent is gpsvc (Group Policy Client) or ccmexec.exe, specifically during the scheduled maintenance window defined in the enterprise policy schedule.Scenario: Macro Execution in Microsoft Office Suite
KBD_FLAGS anomaly targeted