This detection identifies potential keylogging or credential harvesting activities by monitoring specific keystroke patterns associated with the VxKeypress1212 signature across endpoint devices. Proactively hunting for this behavior in Azure Sentinel allows the SOC team to uncover stealthy data exfiltration attempts that may evade standard alerting thresholds due to their low severity classification.
rule VxKeypress1212
{
meta:
author="malware-lu"
strings:
$a0 = { E8 [2] E8 [2] E8 [2] E8 [4] E8 [4] E8 [4] EA [4] 1E 33 DB 8E DB BB }
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 VxKeypress1212 detection rule, including suggested filters and exclusions:
Scenario: Remote Desktop Administration via RDP
ImageName is mstsc.exe and the parent process is a user-interactive session (e.g., SessionId > 1). Alternatively, exclude events where the CommandLine contains /v: or /admin.Scenario: Automated Password Reset Scripts
System.Windows.Forms.SendKeys or P/Invoke calls to simulate keystrokes, triggering the rule during maintenance windows.powershell.exe and the parent process is svchost.exe (indicating a scheduled task). Specifically, exclude if the command line contains keywords like -Command, “TaskScheduler”, or specific script paths (e.g., C:\Scripts\AutoReset.ps1).Scenario: Enterprise Endpoint DLP Agents