Windows: Detect Renamed ps.exe Executing netstat via cmd /c

Alerts on Windows executions of renamed PsTool-like ps.exe that include accept-eula and netstat via cmd.exe.

FreeReviewedSigma · High · v5
Product
windows
Category
process_creation
Author
Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2017-10-22
Updated
2026-07-31
title: "Windows: Detect Renamed ps.exe Executing netstat via cmd /c"
id: 2fd03545-218d-44bd-ab75-9ae00167a38b
status: test
description: This rule identifies process creation where the command line contains 'ps.exe -accepteula' and also includes '-s cmd /c netstat'. Attackers may rename Sysinternals utilities to evade simplistic allowlists and then run system reconnaissance commands through cmd. Telemetry relies on Windows process creation events including the full command line.
references:
  - https://www.us-cert.gov/ncas/alerts/TA17-293A
  - https://github.com/SigmaHQ/sigma/blob/master/rules-emerging-threats/2017/TA/Dragonfly/proc_creation_win_apt_ta17_293a_ps.yml
author: Florian Roth (Nextron Systems), Huntrule Team
date: 2017-10-22
modified: 2023-05-02
tags:
  - attack.stealth
  - attack.g0035
  - attack.t1036.003
  - car.2013-05-009
  - detection.emerging-threats
logsource:
  category: process_creation
  product: windows
detection:
  selection:
    CommandLine|contains|all:
      - ps.exe -accepteula
      - -s cmd /c netstat
  condition: selection
falsepositives:
  - Renamed SysInternals tool
level: high
license: DRL-1.1
related:
  - id: 18da1007-3f26-470f-875d-f77faf1cab31
    type: derived