{"id":"74a2b202-73e0-4693-9a3a-9d36146d0775","title":"Remote Access Tool - MeshAgent Command Execution via MeshCentral","description":"Detects the use of MeshAgent to execute commands on the target host, particularly when threat actors might abuse it to execute commands directly.\nMeshAgent 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.\n","author":"@Kostastsale","status":"test","level":"medium","date":"2024-09-22","modified":"","tags":["attack.command-and-control","attack.t1219.002"],"technique_ids":["T1219.002"],"logsource":{"product":"windows","category":"process_creation"},"falsepositives":["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."],"references":["https://github.com/Ylianst/MeshAgent","https://github.com/Ylianst/MeshAgent/blob/52cf129ca43d64743181fbaf940e0b4ddb542a37/modules/win-dispatcher.js#L173","https://github.com/Ylianst/MeshAgent/blob/52cf129ca43d64743181fbaf940e0b4ddb542a37/modules/win-info.js#L55"],"source_path":"rules/windows/process_creation/proc_creation_win_remote_access_tools_meshagent_exec.yml","source_sha256":"09c5c664e7a8d17593df903f7138a682673970961777acaab3c951a922743c66","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_remote_access_tools_meshagent_exec.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Remote Access Tool - MeshAgent Command Execution via MeshCentral\nid: 74a2b202-73e0-4693-9a3a-9d36146d0775\nstatus: test\ndescription: |\n    Detects the use of MeshAgent to execute commands on the target host, particularly when threat actors might abuse it to execute commands directly.\n    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.\nreferences:\n    - https://github.com/Ylianst/MeshAgent\n    - https://github.com/Ylianst/MeshAgent/blob/52cf129ca43d64743181fbaf940e0b4ddb542a37/modules/win-dispatcher.js#L173\n    - https://github.com/Ylianst/MeshAgent/blob/52cf129ca43d64743181fbaf940e0b4ddb542a37/modules/win-info.js#L55\nauthor: '@Kostastsale'\ndate: 2024-09-22\ntags:\n    - attack.command-and-control\n    - attack.t1219.002\nlogsource:\n    product: windows\n    category: process_creation\ndetection:\n    selection:\n        ParentImage|endswith: '\\meshagent.exe'\n        Image|endswith:\n            - '\\cmd.exe'\n            - '\\powershell.exe'\n            - '\\pwsh.exe'\n    condition: selection\nfalsepositives:\n    - 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.\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1219.002","id":"T1219.002","name":"Remote Desktop Software","page":"techniques/enterprise/T1219.002/"}],"data_path":"data/detection-rules/74a2b202-73e0-4693-9a3a-9d36146d0775.json","kind":"sigma"}
