Detection rules › Sigma

Potential PlugX Activity

Status
test
Severity
high
Log source
category process_creation, product windows
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the execution of an executable that is typically used by PlugX for DLL side loading starting from an uncommon location

MITRE ATT&CK coverage

Telemetry coverage

Rule body

title: Potential PlugX Activity
id: aeab5ec5-be14-471a-80e8-e344418305c2
status: test
description: Detects the execution of an executable that is typically used by PlugX for DLL side loading starting from an uncommon location
references:
    - http://www.hexacorn.com/blog/2016/03/10/beyond-good-ol-run-key-part-36/
    - https://countuponsecurity.com/2017/06/07/threat-hunting-in-the-enterprise-with-appcompatprocessor/
author: Florian Roth (Nextron Systems)
date: 2017-06-12
modified: 2023-02-03
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.execution
    - attack.stealth
    - attack.s0013
    - attack.t1574.001
    - detection.emerging-threats
logsource:
    category: process_creation
    product: windows
detection:
    selection_cammute:
        Image|endswith: '\CamMute.exe'
    filter_cammute:
        Image|contains:
            - '\Lenovo\Communication Utility\'
            - '\Lenovo\Communications Utility\'
    selection_chrome_frame:
        Image|endswith: '\chrome_frame_helper.exe'
    filter_chrome_frame:
        Image|contains: '\Google\Chrome\application\'
    selection_devemu:
        Image|endswith: '\dvcemumanager.exe'
    filter_devemu:
        Image|contains: '\Microsoft Device Emulator\'
    selection_gadget:
        Image|endswith: '\Gadget.exe'
    filter_gadget:
        Image|contains: '\Windows Media Player\'
    selection_hcc:
        Image|endswith: '\hcc.exe'
    filter_hcc:
        Image|contains: '\HTML Help Workshop\'
    selection_hkcmd:
        Image|endswith: '\hkcmd.exe'
    filter_hkcmd:
        Image|contains:
            - '\System32\'
            - '\SysNative\'
            - '\SysWow64\'
    selection_mc:
        Image|endswith: '\Mc.exe'
    filter_mc:
        Image|contains:
            - '\Microsoft Visual Studio'
            - '\Microsoft SDK'
            - '\Windows Kit'
    selection_msmpeng:
        Image|endswith: '\MsMpEng.exe'
    filter_msmpeng:
        Image|contains:
            - '\Microsoft Security Client\'
            - '\Windows Defender\'
            - '\AntiMalware\'
    selection_msseces:
        Image|endswith: '\msseces.exe'
    filter_msseces:
        Image|contains:
            - '\Microsoft Security Center\'
            - '\Microsoft Security Client\'
            - '\Microsoft Security Essentials\'
    selection_oinfo:
        Image|endswith: '\OInfoP11.exe'
    filter_oinfo:
        Image|contains: '\Common Files\Microsoft Shared\'
    selection_oleview:
        Image|endswith: '\OleView.exe'
    filter_oleview:
        Image|contains:
            - '\Microsoft Visual Studio'
            - '\Microsoft SDK'
            - '\Windows Kit'
            - '\Windows Resource Kit\'
    selection_rc:
        Image|endswith: '\rc.exe'
    filter_rc:
        Image|contains:
            - '\Microsoft Visual Studio'
            - '\Microsoft SDK'
            - '\Windows Kit'
            - '\Windows Resource Kit\'
            - '\Microsoft.NET\'
    condition: ( selection_cammute and not filter_cammute ) or ( selection_chrome_frame and not filter_chrome_frame ) or ( selection_devemu and not filter_devemu ) or ( selection_gadget and not filter_gadget ) or ( selection_hcc and not filter_hcc ) or ( selection_hkcmd and not filter_hkcmd ) or ( selection_mc and not filter_mc ) or ( selection_msmpeng and not filter_msmpeng ) or ( selection_msseces and not filter_msseces ) or ( selection_oinfo and not filter_oinfo ) or ( selection_oleview and not filter_oleview ) or ( selection_rc and not filter_rc )
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

( selection_cammute and not filter_cammute ) or ( selection_chrome_frame and not filter_chrome_frame ) or ( selection_devemu and not filter_devemu ) or ( selection_gadget and not filter_gadget ) or ( selection_hcc and not filter_hcc ) or ( selection_hkcmd and not filter_hkcmd ) or ( selection_mc and not filter_mc ) or ( selection_msmpeng and not filter_msmpeng ) or ( selection_msseces and not filter_msseces ) or ( selection_oinfo and not filter_oinfo ) or ( selection_oleview and not filter_oleview ) or ( selection_rc and not filter_rc )

Stage 1: selection_cammute

selection_cammute:
    Image|endswith: '\CamMute.exe'

Stage 2: not filter_cammute

filter_cammute:
    Image|contains:
        - '\Lenovo\Communication Utility\'
        - '\Lenovo\Communications Utility\'

Stage 3: selection_chrome_frame

selection_chrome_frame:
    Image|endswith: '\chrome_frame_helper.exe'

Stage 4: not filter_chrome_frame

filter_chrome_frame:
    Image|contains: '\Google\Chrome\application\'

Stage 5: selection_devemu

selection_devemu:
    Image|endswith: '\dvcemumanager.exe'

Stage 6: not filter_devemu

filter_devemu:
    Image|contains: '\Microsoft Device Emulator\'

Stage 7: selection_gadget

selection_gadget:
    Image|endswith: '\Gadget.exe'

Stage 8: not filter_gadget

filter_gadget:
    Image|contains: '\Windows Media Player\'

Stage 9: selection_hcc

selection_hcc:
    Image|endswith: '\hcc.exe'

Stage 10: not filter_hcc

filter_hcc:
    Image|contains: '\HTML Help Workshop\'

Stage 11: selection_hkcmd

selection_hkcmd:
    Image|endswith: '\hkcmd.exe'

Stage 12: not filter_hkcmd

filter_hkcmd:
    Image|contains:
        - '\System32\'
        - '\SysNative\'
        - '\SysWow64\'

Stage 13: selection_mc

selection_mc:
    Image|endswith: '\Mc.exe'

Stage 14: not filter_mc

filter_mc:
    Image|contains:
        - '\Microsoft Visual Studio'
        - '\Microsoft SDK'
        - '\Windows Kit'

Stage 15: selection_msmpeng

selection_msmpeng:
    Image|endswith: '\MsMpEng.exe'

Stage 16: not filter_msmpeng

filter_msmpeng:
    Image|contains:
        - '\Microsoft Security Client\'
        - '\Windows Defender\'
        - '\AntiMalware\'

Stage 17: selection_msseces

selection_msseces:
    Image|endswith: '\msseces.exe'

Stage 18: not filter_msseces

filter_msseces:
    Image|contains:
        - '\Microsoft Security Center\'
        - '\Microsoft Security Client\'
        - '\Microsoft Security Essentials\'

Stage 19: selection_oinfo

selection_oinfo:
    Image|endswith: '\OInfoP11.exe'

Stage 20: not filter_oinfo

filter_oinfo:
    Image|contains: '\Common Files\Microsoft Shared\'

Stage 21: selection_oleview

selection_oleview:
    Image|endswith: '\OleView.exe'

Stage 22: not filter_oleview

filter_oleview:
    Image|contains:
        - '\Microsoft Visual Studio'
        - '\Microsoft SDK'
        - '\Windows Kit'
        - '\Windows Resource Kit\'

Stage 23: selection_rc

selection_rc:
    Image|endswith: '\rc.exe'

Stage 24: not filter_rc

filter_rc:
    Image|contains:
        - '\Microsoft Visual Studio'
        - '\Microsoft SDK'
        - '\Windows Kit'
        - '\Windows Resource Kit\'
        - '\Microsoft.NET\'

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imagematch\Lenovo\Communication Utility\excludes:Image field:"Image" value:"\Lenovo\Communication Utility\"
Imagematch\Lenovo\Communications Utility\excludes:Image field:"Image" value:"\Lenovo\Communications Utility\"
Imagematch\Google\Chrome\application\excludes:Image field:"Image" value:"\Google\Chrome\application\"
Imagematch\Microsoft Device Emulator\excludes:Image field:"Image" value:"\Microsoft Device Emulator\"
Imagematch\Windows Media Player\excludes:Image field:"Image" value:"\Windows Media Player\"
Imagematch\HTML Help Workshop\excludes:Image field:"Image" value:"\HTML Help Workshop\"
Imagematch\SysNative\excludes:Image field:"Image" value:"\SysNative\"
Imagematch\SysWow64\excludes:Image field:"Image" value:"\SysWow64\"
Imagematch\System32\excludes:Image field:"Image" value:"\System32\"
Imagematch\Microsoft SDKexcludes:Image field:"Image" value:"\Microsoft SDK"
Imagematch\Microsoft Visual Studioexcludes:Image field:"Image" value:"\Microsoft Visual Studio"
Imagematch\Windows Kitexcludes:Image field:"Image" value:"\Windows Kit"
Imagematch\AntiMalware\excludes:Image field:"Image" value:"\AntiMalware\"
Imagematch\Microsoft Security Client\excludes:Image field:"Image" value:"\Microsoft Security Client\"
Imagematch\Windows Defender\excludes:Image field:"Image" value:"\Windows Defender\"
Imagematch\Microsoft Security Center\excludes:Image field:"Image" value:"\Microsoft Security Center\"
Imagematch\Microsoft Security Essentials\excludes:Image field:"Image" value:"\Microsoft Security Essentials\"
Imagematch\Common Files\Microsoft Shared\excludes:Image field:"Image" value:"\Common Files\Microsoft Shared\"
Imagematch\Windows Resource Kit\excludes:Image field:"Image" value:"\Windows Resource Kit\"
Imagematch\Microsoft.NET\excludes:Image field:"Image" value:"\Microsoft.NET\"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \CamMute.exe
  • \Gadget.exe
  • \Mc.exe
  • \MsMpEng.exe corpus 2 (sigma 2)
  • \OInfoP11.exe
  • \OleView.exe corpus 2 (sigma 2)
  • \chrome_frame_helper.exe
  • \dvcemumanager.exe
  • \hcc.exe
  • \hkcmd.exe
  • \msseces.exe
  • \rc.exe
field:"Image" kind:ends_with