LoFP LoFP / legitimate scripts

Techniques

Sample rules

Script Initiated Connection to Non-Local Network

Description

Detects a script interpreter wscript/cscript opening a network connection to a non-local network. Adversaries may use script to download malicious payloads.

Detection logic

condition: selection and not 1 of filter_main_*
filter_main_local_ranges:
  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
filter_main_ms_ranges:
  DestinationIp|cidr: 20.0.0.0/11
selection:
  Image|endswith:
  - \wscript.exe
  - \cscript.exe
  Initiated: 'true'

Script Initiated Connection

Description

Detects a script interpreter wscript/cscript opening a network connection. Adversaries may use script to download malicious payloads.

Detection logic

condition: selection
selection:
  Image|endswith:
  - \wscript.exe
  - \cscript.exe
  Initiated: 'true'