Detectionmediumtest
Shell Process Spawned by Java.EXE
Detects shell spawned from Java host process, which could be a sign of exploitation (e.g. log4j exploitation)
Andreas Hunkeler, Nasreddine BencherchaliCreated 2021-12-17Updated 2024-01-18dff1e1cc-d3fd-47c8-bfc2-aeb878a754c0windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic2 selectors
detection:
selection:
ParentImage|endswith: '\java.exe'
Image|endswith:
- '\bash.exe'
- '\cmd.exe'
- '\powershell.exe'
- '\pwsh.exe'
filter_main_build:
ParentImage|contains: 'build' # excluding CI build agents
CommandLine|contains: 'build' # excluding CI build agents
condition: selection and not 1 of filter_main_*False Positives
Legitimate calls to system binaries
Company specific internal usage
References
MITRE ATT&CK
Rule Metadata
Rule ID
dff1e1cc-d3fd-47c8-bfc2-aeb878a754c0
Status
test
Level
medium
Type
Detection
Created
2021-12-17
Modified
2024-01-18
Path
rules/windows/process_creation/proc_creation_win_java_susp_child_process_2.yml
Raw Tags
attack.initial-accessattack.persistenceattack.privilege-escalation