Lateral Tool Transfer

edit

Identifies the creation or change of a Windows executable file over network shares. Adversaries may transfer tools or other files between systems in a compromised environment.

Rule type: eql

Rule indices:

  • logs-endpoint.events.*
  • winlogbeat-*
  • logs-windows.*

Severity: medium

Risk score: 47

Runs every: 5 minutes

Searches indices from: now-9m (Date Math format, see also Additional look-back time)

Maximum alerts per execution: 100

Tags:

  • Elastic
  • Host
  • Windows
  • Threat Detection
  • Lateral Movement

Version: 3 (version history)

Added (Elastic Stack release): 7.11.0

Last modified (Elastic Stack release): 7.16.0

Rule authors: Elastic

Rule license: Elastic License v2

Rule query

edit
sequence by host.id with maxspan=30s [network where event.type ==
"start" and process.pid == 4 and destination.port == 445 and
network.direction : ("incoming", "ingress") and network.transport ==
"tcp" and source.address != "127.0.0.1" and source.address != "::1"
] by process.entity_id /* add more executable extensions here if
they are not noisy in your environment */ [file where event.type in
("creation", "change") and process.pid == 4 and file.extension :
("exe", "dll", "bat", "cmd")] by process.entity_id

Threat mapping

edit

Framework: MITRE ATT&CKTM

Rule version history

edit
Version 3 (7.16.0 release)
  • Updated query, changed from:

    sequence by host.id with maxspan=30s [network where event.type ==
    "start" and process.pid == 4 and destination.port == 445 and
    network.direction == "incoming" and network.transport == "tcp" and
    source.address != "127.0.0.1" and source.address != "::1" ] by
    process.entity_id /* add more executable extensions here if they are
    not noisy in your environment */ [file where event.type in
    ("creation", "change") and process.pid == 4 and file.extension :
    ("exe", "dll", "bat", "cmd")] by process.entity_id
Version 2 (7.12.0 release)
  • Formatting only