Windows: java.exe Parent Spawning cmd/powershell/bash Processes

Alerts when java.exe launches cmd, PowerShell, or bash on Windows, a potential sign of command execution.

FreeReviewedSigma · Medium · v2
Product
windows
Category
process_creation
Author
Andreas Hunkeler (@Karneades), Nasreddine Bencherchali (SigmaHQ), DRL 1.1
Published
2021-12-17
Updated
2026-07-31

What it detects

This rule identifies Windows process creation events where java.exe is the parent process and it spawns a command shell (cmd.exe, PowerShell, pwsh) or a bash.exe. Such parent-child execution patterns can indicate malicious execution flow following application exploitation or other unauthorized command execution. The detection relies on Windows process creation telemetry, specifically parent image paths and child image/command lines matching the listed shells, with an exclusion for build-related activity.

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.