CmdID

CmdID / Rules / Windows

Unusual File Download From File Sharing Websites - File Stream

A Sigma rule for alternate data streams being written on Windows, by Florian Roth (Nextron Systems).

medium 1 ATT&CK technique

What it looks for

its detection, as SigmaHQ writes it
detection:
  selection_domain:
    Contents|contains:
      - '.githubusercontent.com'
      - '0x0.st'
      - 'anonfiles.com'
      - 'bashupload.com'
      - 'cdn.discordapp.com'
      - 'chunk.io'
      - 'ddns.net'
      - 'dl.dropboxusercontent.com'
      - 'ghostbin.co'
      - 'github.com'
      - 'glitch.me'
      - 'gofile.io'
      - 'hastebin.com'
      - 'mediafire.com'
      - 'mega.nz'
      - 'onrender.com'
      - 'pages.dev'
      - 'paste.ee'
      - 'pastebin.com'
      - 'pastebin.pl'
      - 'pastetext.net'
      - 'pixeldrain.com'
      - 'privatlab.com'
      - 'privatlab.net'
      - 'send.exploit.in'
      - 'sendspace.com'
      - 'storage.googleapis.com'
      - 'storjshare.io'
      - 'supabase.co'
      - 'temp.sh'
      - 'transfer.sh'
      - 'trycloudflare.com'
      - 'ufile.io'
      - 'w3spaces.com'
      - 'workers.dev'
      - 'x0.at'
  selection_extension:
    TargetFilename|contains:
      - '.bat:Zone'
      - '.cmd:Zone'
      - '.ps1:Zone'
  condition: all of 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 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.

ATT&CK

the techniques it is tagged with
T1564.004Hide Artifacts: NTFS File Attributes