Detection rules › Sigma

Suspicious Shells Spawn by Java Utility Keytool

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Andreas Hunkeler (@Karneades)
Source
github.com/SigmaHQ/sigma

Detects suspicious shell spawn from Java utility keytool process (e.g. adselfservice plus exploitation)

MITRE ATT&CK coverage

TacticTechniques
Initial AccessNo specific technique
PersistenceNo specific technique
Privilege EscalationNo specific technique

Event coverage

Rule body yaml

title: Suspicious Shells Spawn by Java Utility Keytool
id: 90fb5e62-ca1f-4e22-b42e-cc521874c938
status: test
description: Detects suspicious shell spawn from Java utility keytool process (e.g. adselfservice plus exploitation)
references:
    - https://redcanary.com/blog/intelligence-insights-december-2021
    - https://www.synacktiv.com/en/publications/how-to-exploit-cve-2021-40539-on-manageengine-adselfservice-plus.html
author: Andreas Hunkeler (@Karneades)
date: 2021-12-22
modified: 2023-01-21
tags:
    - attack.initial-access
    - attack.persistence
    - attack.privilege-escalation
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith: '\keytool.exe'
        Image|endswith:
            - '\cmd.exe'
            - '\sh.exe'
            - '\bash.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\schtasks.exe'
            - '\certutil.exe'
            - '\whoami.exe'
            - '\bitsadmin.exe'
            - '\wscript.exe'
            - '\cscript.exe'
            - '\scrcons.exe'
            - '\regsvr32.exe'
            - '\hh.exe'
            - '\wmic.exe'
            - '\mshta.exe'
            - '\rundll32.exe'
            - '\forfiles.exe'
            - '\scriptrunner.exe'
            - '\mftrace.exe'
            - '\AppVLP.exe'
            - '\systeminfo.exe'
            - '\reg.exe'
            - '\query.exe'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ParentImage|endswith: '\keytool.exe'
    Image|endswith:
        - '\cmd.exe'
        - '\sh.exe'
        - '\bash.exe'
        - '\powershell.exe'
        - '\pwsh.exe'
        - '\schtasks.exe'
        - '\certutil.exe'
        - '\whoami.exe'
        - '\bitsadmin.exe'
        - '\wscript.exe'
        - '\cscript.exe'
        - '\scrcons.exe'
        - '\regsvr32.exe'
        - '\hh.exe'
        - '\wmic.exe'
        - '\mshta.exe'
        - '\rundll32.exe'
        - '\forfiles.exe'
        - '\scriptrunner.exe'
        - '\mftrace.exe'
        - '\AppVLP.exe'
        - '\systeminfo.exe'
        - '\reg.exe'
        - '\query.exe'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
Imageends_with
  • \AppVLP.exe corpus 6 (sigma 6)
  • \bash.exe corpus 22 (sigma 22)
  • \bitsadmin.exe corpus 29 (sigma 29)
  • \certutil.exe corpus 43 (sigma 43)
  • \cmd.exe corpus 130 (sigma 130)
  • \cscript.exe corpus 73 (sigma 73)
  • \forfiles.exe corpus 12 (sigma 12)
  • \hh.exe corpus 16 (sigma 16)
  • \mftrace.exe corpus 6 (sigma 6)
  • \mshta.exe corpus 67 (sigma 67)
  • \powershell.exe corpus 182 (sigma 182)
  • \pwsh.exe corpus 168 (sigma 168)
  • \query.exe corpus 6 (sigma 6)
  • \reg.exe corpus 58 (sigma 58)
  • \regsvr32.exe corpus 65 (sigma 65)
  • \rundll32.exe corpus 95 (sigma 95)
  • \schtasks.exe corpus 56 (sigma 56)
  • \scrcons.exe corpus 9 (sigma 9)
  • \scriptrunner.exe corpus 12 (sigma 12)
  • \sh.exe corpus 16 (sigma 16)
  • \systeminfo.exe corpus 11 (sigma 11)
  • \whoami.exe corpus 19 (sigma 19)
  • \wmic.exe corpus 60 (sigma 60)
  • \wscript.exe corpus 75 (sigma 75)
ParentImageends_with
  • \keytool.exe