Detectionmediumtest

Remote Access Tool - MeshAgent Command Execution via MeshCentral

Detects the use of MeshAgent to execute commands on the target host, particularly when threat actors might abuse it to execute commands directly. MeshAgent can execute commands on the target host by leveraging win-console to obscure their activities and win-dispatcher to run malicious code through IPC with child processes.

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
kostastsaleCreated Sun Sep 2274a2b202-73e0-4693-9a3a-9d36146d0775windows
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 Logic1 selector
detection:
    selection:
        ParentImage|endswith: '\meshagent.exe'
        Image|endswith:
            - '\cmd.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
    condition: selection
False Positives

False positives can be found in environments using MeshAgent for remote management, analysis should prioritize the grandparent process, MeshAgent.exe, and scrutinize the resulting child processes triggered by any suspicious interactive commands directed at the target host.

MITRE ATT&CK

Other

attack.t1219.002
Rule Metadata
Rule ID
74a2b202-73e0-4693-9a3a-9d36146d0775
Status
test
Level
medium
Type
Detection
Created
Sun Sep 22
Path
rules/windows/process_creation/proc_creation_win_remote_access_tools_meshagent_exec.yml
Raw Tags
attack.command-and-controlattack.t1219.002
View on GitHub