CmdID

CmdID / Rules / Windows

Network Connection Initiated From Process Located In Potentially Suspicious Or Uncommon Location

A Sigma rule for network connections on Windows, by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems).

high 1 ATT&CK technique

What it looks for

its detection, as SigmaHQ writes it
detection:
  filter_main_domains:
    DestinationHostname|endswith:
      - '.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.co.nz'
      - 'mega.nz'
      - 'onrender.com'
      - 'pages.dev'
      - 'paste.ee'
      - 'pastebin.com'
      - 'pastebin.pl'
      - 'pastetext.net'
      - 'portmap.io'
      - '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:
    Image|contains:
      - ':\$Recycle.bin'
      - ':\Perflogs\'
      - ':\Temp\'
      - ':\Users\Default\'
      - ':\Users\Public\'
      - ':\Windows\Fonts\'
      - ':\Windows\IME\'
      - ':\Windows\System32\Tasks\'
      - ':\Windows\Tasks\'
      - '\config\systemprofile\'
      - '\Contacts\'
      - '\Favorites\'
      - '\Favourites\'
      - '\Music\'
      - '\Pictures\'
      - '\Videos\'
      - '\Windows\addins\'
    Initiated: 'true'
  condition: selection and not 1 of filter_main_*

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), Nasreddine Bencherchali (Nextron Systems), under the Detection Rule License 1.1. CmdID evaluates it on a connection the command line opens - a URL it fetches, a reverse shell's host and port - as Sysmon records it: a test on what a command line cannot show, such as the parent process or the user, is not met.

Command lines that trip it

documented abuse, read by CmdID

The commands LOLBAS or GTFOBins documents for mpcmdrun.exe trip it: each is on its program’s page, read by CmdID.

ATT&CK

the techniques it is tagged with
T1105Ingress Tool Transfer