System tool name executed from outside its expected system directory
Matches the Windows leg of AN0009: a Sysmon process creation whose `Image` file name matches a fixed system tool but whose path is not System32, SysWOW64 or WinSxS. That name-plus-location mismatch is the payoff of PATH hijacking — an earlier entry in the PATH environment variable resolves to an attacker's binary of the same name before the real one is ever reached, so the process that actually launches carries the right file name and the wrong path. `net.exe` and `powershell.exe` are MITRE's own SuspiciousBinaryList examples; `net1.exe`, `ipconfig.exe`, `whoami.exe`, `systeminfo.exe`, `tasklist.exe`, `netstat.exe`, `reg.exe`, `sc.exe`, `schtasks.exe` and `cmd.exe` are added here as tools that, like `net.exe`, ship from a single fixed OS location and are common targets for exactly this hijack. MITRE's other named example, `python.exe`, is deliberately excluded: Windows does not ship Python, so there is no fixed system directory to filter against, and without that anchor the selection would reduce to "any python.exe launch" with no location discriminator at all — the same test this rule relies on for every other entry. This rule sees only the effect (the wrong binary ran under the right name); it cannot see the cause, a PATH environment variable or registry PATH key that puts a writable directory ahead of System32, so it says nothing about how the directory got there. Requires Sysmon with process creation logging enabled; this is not native Windows telemetry and is absent without the Sysmon driver installed and configured to capture EventID 1. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0004, not hand-written and not tested by its author. Any lab result is on this rule's own page.Full descriptionShow less
The detection
The 4 SIEM queries below are previews produced by Siemphony’s own translator, not pySigma, and none has been executed against a real backend — review before you deploy.
detection.yml
Sentinel · KQL
Run this as a search.
DeviceProcessEvents| where ((FolderPath endswith "\\net.exe" or FolderPath endswith "\\net1.exe" or FolderPath endswith "\\ipconfig.exe" or FolderPath endswith "\\whoami.exe" or FolderPath endswith "\\systeminfo.exe" or FolderPath endswith "\\tasklist.exe" or FolderPath endswith "\\netstat.exe" or FolderPath endswith "\\reg.exe" or FolderPath endswith "\\sc.exe" or FolderPath endswith "\\schtasks.exe" or FolderPath endswith "\\cmd.exe" or FolderPath endswith "\\powershell.exe") and not ((FolderPath contains ":\\Windows\\System32\\" or FolderPath contains ":\\Windows\\SysWOW64\\" or FolderPath contains ":\\Windows\\WinSxS\\")))
Splunk · SPL
Run this as a search.
index=* ((Image="*\\net.exe" OR Image="*\\net1.exe" OR Image="*\\ipconfig.exe" OR Image="*\\whoami.exe" OR Image="*\\systeminfo.exe" OR Image="*\\tasklist.exe" OR Image="*\\netstat.exe" OR Image="*\\reg.exe" OR Image="*\\sc.exe" OR Image="*\\schtasks.exe" OR Image="*\\cmd.exe" OR Image="*\\powershell.exe") AND NOT ((Image="*:\\Windows\\System32\\*" OR Image="*:\\Windows\\SysWOW64\\*" OR Image="*:\\Windows\\WinSxS\\*")))Elastic · ES|QL
Run this as a search.
FROM logs-*| WHERE ((TO_LOWER(process.executable) LIKE "*\\\\net.exe" OR TO_LOWER(process.executable) LIKE "*\\\\net1.exe" OR TO_LOWER(process.executable) LIKE "*\\\\ipconfig.exe" OR TO_LOWER(process.executable) LIKE "*\\\\whoami.exe" OR TO_LOWER(process.executable) LIKE "*\\\\systeminfo.exe" OR TO_LOWER(process.executable) LIKE "*\\\\tasklist.exe" OR TO_LOWER(process.executable) LIKE "*\\\\netstat.exe" OR TO_LOWER(process.executable) LIKE "*\\\\reg.exe" OR TO_LOWER(process.executable) LIKE "*\\\\sc.exe" OR TO_LOWER(process.executable) LIKE "*\\\\schtasks.exe" OR TO_LOWER(process.executable) LIKE "*\\\\cmd.exe" OR TO_LOWER(process.executable) LIKE "*\\\\powershell.exe") AND NOT ((TO_LOWER(process.executable) LIKE "*:\\\\windows\\\\system32\\\\*" OR TO_LOWER(process.executable) LIKE "*:\\\\windows\\\\syswow64\\\\*" OR TO_LOWER(process.executable) LIKE "*:\\\\windows\\\\winsxs\\\\*")))
Wazuh · XML rule
Deploy to your manager — this is a rule, not a search.
<group name="sigma,windows,process_creation,"> <!-- Rule ids must be unique on your manager; 100000+ is the user range. --> <rule id="100000" level="7"> <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. --> <field name="Image" type="pcre2">(?i)(\\net\.exe$|\\net1\.exe$|\\ipconfig\.exe$|\\whoami\.exe$|\\systeminfo\.exe$|\\tasklist\.exe$|\\netstat\.exe$|\\reg\.exe$|\\sc\.exe$|\\schtasks\.exe$|\\cmd\.exe$|\\powershell\.exe$)</field> <field name="Image" negate="yes" type="pcre2">(?i)(:\\Windows\\System32\\|:\\Windows\\SysWOW64\\|:\\Windows\\WinSxS\\)</field> <description>System tool name executed from outside its expected system directory</description> <mitre> <id>T1574.007</id> </mitre> </rule></group>
Verdicts · reactions · comments
Community
Verdicts from engineers who actually deployed it, and the conversation around it.
Nobody has run this in a real environment and said what happened.
Verdicts from engineers who deployed it
0 castNo verdicts reported yet. The first one is worth more than the tenth — say what you ran it against.
Log in to report a verdict.
Log in to join the discussion.
No comments yet. Someone who deploys this will have something to say about it.