Remote File Download via PowerShelledit

Identifies powershell.exe being used to download an executable file from an untrusted remote destination.

Rule type: eql

Rule indices:

  • 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


  • Elastic
  • Host
  • Windows
  • Threat Detection
  • Command and Control

Version: 2 (version history)

Added (Elastic Stack release): 7.11.0

Last modified (Elastic Stack release): 7.12.0

Rule authors: Elastic

Rule license: Elastic License v2

Rule queryedit

sequence by, process.entity_id with maxspan=30s [network
where : "powershell.exe" and network.protocol == "dns"
and not : ("localhost", "*",
"*", "*", "*",
"") and not user.domain : "NT AUTHORITY"]
[file where : "powershell.exe" and event.type ==
"creation" and file.extension : ("exe", "dll", "ps1", "bat") and
not : "__PSScriptPolicy*.ps1"]

Threat mappingedit


Rule version historyedit

Version 2 (7.12.0 release)
  • Formatting only