Detection rules › Sigma

Potential CVE-2022-22954 Exploitation Attempt - VMware Workspace ONE Access Remote Code Execution

Status
test
Severity
medium
Log source
category process_creation, product windows
Author
@kostastsale
Source
github.com/SigmaHQ/sigma

Detects potential exploitation attempt of CVE-2022-22954, a remote code execution vulnerability in VMware Workspace ONE Access and Identity Manager. As reported by Morphisec, part of the attack chain, threat actors used PowerShell commands that executed as a child processes of the legitimate Tomcat "prunsrv.exe" process application.

Known false positives

  • Some false positives are possible as part of a custom script implementation from admins executed with cmd.exe as the child process.

MITRE ATT&CK coverage

Telemetry coverage

Rule body

title: Potential CVE-2022-22954 Exploitation Attempt - VMware Workspace ONE Access Remote Code Execution
id: 5660d8db-6e25-411f-b92f-094420168a5d
status: test
description: |
    Detects potential exploitation attempt of CVE-2022-22954, a remote code execution vulnerability in VMware Workspace ONE Access and Identity Manager.
    As reported by Morphisec, part of the attack chain, threat actors used PowerShell commands that executed as a child processes of the legitimate Tomcat "prunsrv.exe" process application.
references:
    - https://blog.morphisec.com/vmware-identity-manager-attack-backdoor
    - https://github.com/DrorDvash/CVE-2022-22954_VMware_PoC
author: '@kostastsale'
date: 2022-04-25
tags:
    - attack.execution
    - attack.initial-access
    - attack.t1059.006
    - attack.t1190
    - cve.2022-22954
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection_parent:
        ParentImage|endswith: '\prunsrv.exe'
    selection_payload_pwsh:
        Image|endswith: '\powershell.exe'
    selection_payload_cmd:
        Image|endswith: '\cmd.exe'
        CommandLine|contains: '/c powershell'
    condition: selection_parent and 1 of selection_payload_*
falsepositives:
    - Some false positives are possible as part of a custom script implementation from admins executed with cmd.exe as the child process.
level: medium

Stages and Predicates

Stage 0: condition

selection_parent and 1 of selection_payload_*

Stage 1: selection_parent

selection_parent:
    ParentImage|endswith: '\prunsrv.exe'

Stage 2: selection_payload_pwsh

selection_payload_pwsh:
    Image|endswith: '\powershell.exe'

Stage 3: selection_payload_cmd

selection_payload_cmd:
    Image|endswith: '\cmd.exe'
    CommandLine|contains: '/c powershell'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • /c powershell corpus 3 (sigma 3)
field:"CommandLine" kind:match value:"/c powershell"
Imageends_with
  • \cmd.exe corpus 130 (sigma 130)
  • \powershell.exe corpus 179 (sigma 178, kusto 1)
field:"Image" kind:ends_with
ParentImageends_with
  • \prunsrv.exe
field:"ParentImage" kind:ends_with value:"\prunsrv.exe"