PowerShell Suspicious Script with Screenshot Capabilities

edit

PowerShell Suspicious Script with Screenshot Capabilities

edit

Detects PowerShell scripts that can take screenshots, which is a common feature in post-exploitation kits and remote access tools (RATs).

Rule type: query

Rule indices:

  • winlogbeat-*
  • logs-windows.*

Severity: medium

Risk score: 47

Runs every: 5m

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

Maximum alerts per execution: 100

References:

Tags:

  • Elastic
  • Host
  • Windows
  • Threat Detection
  • Collection

Version: 2

Rule authors:

  • Elastic

Rule license: Elastic License v2

Rule query

edit
event.category:process and
  powershell.file.script_block_text : (
    CopyFromScreen and
    (System.Drawing.Bitmap or Drawing.Bitmap)
  )

Framework: MITRE ATT&CKTM