CmdID

CmdID / Rules / Windows

Local Network Connection Initiated By Script Interpreter

A Sigma rule for network connections on Windows, by frack113.

medium 1 ATT&CK technique

What it looks for

its detection, as SigmaHQ writes it
detection:
  selection:
    DestinationIp|cidr:
      - '127.0.0.0/8'
      - '10.0.0.0/8'
      - '172.16.0.0/12'
      - '192.168.0.0/16'
      - '169.254.0.0/16'
      - '::1/128'
      - 'fe80::/10'
      - 'fc00::/7'
    Image|endswith:
      - '\wscript.exe'
      - '\cscript.exe'
    Initiated: 'true'
  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 frack113, 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.

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
T1105Ingress Tool Transfer