Unusual File Download from Direct IP Address
A Sigma rule for alternate data streams being written on Windows, by Nasreddine Bencherchali (Nextron Systems), Florian Roth (Nextron Systems).
high 1 ATT&CK technique
What it looks for
detection:
selection:
Contents|re: 'http[s]?://[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'
TargetFilename|contains:
- '.ps1:Zone'
- '.bat:Zone'
- '.exe:Zone'
- '.vbe:Zone'
- '.vbs:Zone'
- '.dll:Zone'
- '.one:Zone'
- '.cmd:Zone'
- '.hta:Zone'
- '.xll:Zone'
- '.lnk:Zone'
condition: selection
The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by Nasreddine Bencherchali (Nextron Systems), Florian Roth (Nextron Systems), under the Detection Rule License 1.1. CmdID evaluates it on the file stream a command line writes - a redirection, a download, the destination of esentutl, expand, makecab, reg export or regedit - as Sysmon records it: a test on what a command line cannot show, such as the parent process or the user, is not met.
None of the everyday examples and documented commands on CmdID’s program pages trips it. To see whether a command line does, paste it into CmdID.