This detection rule identifies adversaries attempting to exploit path traversal vulnerabilities by accessing unauthorized directories within Windows environments, which often precedes data exfiltration or privilege escalation attacks. Proactively hunting for these suspicious access patterns in Azure Sentinel is critical to intercept early-stage reconnaissance activities before attackers can leverage the vulnerability to compromise sensitive system files or execute malicious payloads.
rule SUSP_Reversed_Hacktool_Author : FILE {
meta:
description = "Detects a suspicious path traversal into a Windows folder"
author = "Florian Roth (Nextron Systems)"
reference = "https://hackingiscool.pl/cmdhijack-command-argument-confusion-with-path-traversal-in-cmd-exe/"
date = "2020-06-10"
score = 65
id = "33e20d75-af07-5df2-82c3-c48aec37a947"
strings:
$x1 = "iwiklitneg" fullword ascii wide
$x2 = " eetbus@ " ascii wide
condition:
filesize < 4000KB and
1 of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 2 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the “Detects a suspicious path traversal into a Windows folder” rule, including suggested filters and exclusions:
Antivirus Real-Time Scanning
C:\Windows to scan system files, registry hives, or update definition databases in real-time. This often generates high volumes of path traversal events that mimic attack patterns.MsMpEng.exe, CrowdStrike.exe) and restrict the scope to the C:\Windows\System32 directory, as these tools rarely need to traverse outside standard system directories during routine scans.Scheduled System Maintenance Tasks
C:\Windows directory structure to optimize disk space and verify integrity. These tasks often use wildcards in their path arguments, triggering traversal alerts.svchost.exe or taskscheduler.exe AND the Command Line contains keywords like “maintenance,” “cleanup,” or specific Task IDs known to run during off-hours (e.g., 02:00–04:00).Software Deployment and Patching Agents
C:\Windows folder to verify patch installation status, read system configuration files, or deploy new updates. This behavior is common during maintenance windows.