Detection rules › Sigma

Suspicious Child Process of SAP NetWeaver

Status
experimental
Severity
medium
Log source
category process_creation, product windows
Author
Elastic (idea), Swachchhanda Shrawan Poudel (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects suspicious child processes spawned by SAP NetWeaver that could indicate potential exploitation of vulnerability that allows arbitrary execution via webshells such as CVE-2025-31324.

Known false positives

  • Legitimate administrative activities such as software updates

MITRE ATT&CK coverage

Telemetry coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule body

title: Suspicious Child Process of SAP NetWeaver
id: 5b304bcb-ac33-49d0-87af-fa1b3ca94333
status: experimental
description: |
    Detects suspicious child processes spawned by SAP NetWeaver that could indicate potential
    exploitation of vulnerability that allows arbitrary execution via webshells such as CVE-2025-31324.
author: Elastic (idea), Swachchhanda Shrawan Poudel (Nextron Systems)
date: 2025-04-28
tags:
    - attack.execution
    - attack.initial-access
    - attack.t1190
    - attack.persistence
    - attack.t1059.003
    - cve.2025-31324
    - detection.emerging-threats
references:
    - https://reliaquest.com/blog/threat-spotlight-reliaquest-uncovers-vulnerability-behind-sap-netweaver-compromise/
    - https://onapsis.com/blog/active-exploitation-of-sap-vulnerability-cve-2025-31324/
logsource:
    category: process_creation
    product: windows
detection:
    selection_parent_img:
        ParentImage|contains:
            - '\j2ee\cluster\apps\sap.com\irj\servlet_jsp\irj\work'
            - '\j2ee\cluster\apps\sap.com\irj\servlet_jsp\irj\root'
    selection_current_dict:
        CurrentDirectory|contains:
            - '\j2ee\cluster\apps\sap.com\irj\servlet_jsp\irj\work'
            - '\j2ee\cluster\apps\sap.com\irj\servlet_jsp\irj\root'
    selection_child:
        Image|endswith:
            - '\cmd.exe'
            - '\powershell.exe'
            - '\powershell_ise.exe'
            - '\pwsh.exe'
            - '\wscript.exe'
            - '\cscript.exe'
            - '\regsvr32.exe'
            - '\rundll32.exe'
            - '\mshta.exe'
            - '\certutil.exe'
            - '\bitsadmin.exe'
            - '\python.exe'
    condition: (selection_parent_img or selection_current_dict) and selection_child
falsepositives:
    - Legitimate administrative activities such as software updates
level: medium

Stages and Predicates

Stage 0: condition

(selection_parent_img or selection_current_dict) and selection_child

Stage 1: selection_parent_img

selection_parent_img:
    ParentImage|contains:
        - '\j2ee\cluster\apps\sap.com\irj\servlet_jsp\irj\work'
        - '\j2ee\cluster\apps\sap.com\irj\servlet_jsp\irj\root'

Stage 2: selection_current_dict

selection_current_dict:
    CurrentDirectory|contains:
        - '\j2ee\cluster\apps\sap.com\irj\servlet_jsp\irj\work'
        - '\j2ee\cluster\apps\sap.com\irj\servlet_jsp\irj\root'

Stage 3: selection_child

selection_child:
    Image|endswith:
        - '\cmd.exe'
        - '\powershell.exe'
        - '\powershell_ise.exe'
        - '\pwsh.exe'
        - '\wscript.exe'
        - '\cscript.exe'
        - '\regsvr32.exe'
        - '\rundll32.exe'
        - '\mshta.exe'
        - '\certutil.exe'
        - '\bitsadmin.exe'
        - '\python.exe'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CurrentDirectorymatch
  • \j2ee\cluster\apps\sap.com\irj\servlet_jsp\irj\root
  • \j2ee\cluster\apps\sap.com\irj\servlet_jsp\irj\work
field:"CurrentDirectory" kind:match
Imageends_with
  • \bitsadmin.exe corpus 29 (sigma 29)
  • \certutil.exe corpus 44 (sigma 43, kusto 1)
  • \cmd.exe corpus 130 (sigma 130)
  • \cscript.exe corpus 72 (sigma 72)
  • \mshta.exe corpus 66 (sigma 66)
  • \powershell.exe corpus 179 (sigma 178, kusto 1)
  • \powershell_ise.exe corpus 41 (sigma 41)
  • \pwsh.exe corpus 165 (sigma 164, kusto 1)
  • \python.exe corpus 4 (sigma 4)
  • \regsvr32.exe corpus 64 (sigma 64)
  • \rundll32.exe corpus 94 (sigma 94)
  • \wscript.exe corpus 74 (sigma 74)
field:"Image" kind:ends_with
ParentImagematch
  • \j2ee\cluster\apps\sap.com\irj\servlet_jsp\irj\root
  • \j2ee\cluster\apps\sap.com\irj\servlet_jsp\irj\work
field:"ParentImage" kind:match