T1219 Sumo Logic CSE · Sumo

Detect Remote Access Tools in Sumo Logic CSE

An adversary may use legitimate remote access tools to establish an interactive command and control channel within a network. Remote access tools create a session between two trusted hosts through a graphical interface, a command line interaction, a protocol tunnel via development or management software, or hardware-level access such as KVM (Keyboard, Video, Mouse) over IP solutions. Desktop support software and remote management software allow a user to control a computer remotely as if they are a local user inheriting the user or software permissions. This software is commonly used for troubleshooting, software installation, and system management. Adversaries may similarly abuse response features included in EDR and other defensive tools that enable remote access. Remote access tools may be installed and used post-compromise as an alternate communications channel for redundant access or to establish an interactive remote desktop session with the target system.

MITRE ATT&CK

Tactic
Command and Control
Technique
T1219 Remote Access Tools
Canonical reference
https://attack.mitre.org/techniques/T1219/

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
_sourceCategory=*windows*sysmon* OR _sourceCategory=*endpoint*process*
| where EventID = "1" OR EventCode = "1"
| parse field=Image "*\\*" as image_dir, image_file nodrop
| where image_file matches /(?i)(teamviewer|teamviewer_service|anydesk|anydesk_service|screenconnect|connectwisecontrol|logmein|lmi_rescue|logmeinrescue|ammyyadmin|aa_v3|supremo|supremoservice|rustdesk|splashtop|ateraagent|ninjaone|ninjaremote|simplehelp|dwrcs|dwrcst|tmate|tvnserver|vncviewer|uvnc_service|winvnc|chrome_remote_desktop|remote_assistance_host)\.exe$/
| eval rat_category = if(image_file matches /(?i)(teamviewer|anydesk|screenconnect|connectwise)/, "Commercial RMM",
    if(image_file matches /(?i)(vnc|tvnserver|winvnc|uvnc)/, "VNC",
    if(image_file matches /(?i)(logmein|lmi_rescue)/, "LogMeIn",
    if(image_file matches /(?i)(ammyy|aa_v3)/, "AmmyyAdmin",
    if(image_file matches /(?i)(rustdesk|splashtop|supremo)/, "Other RMM",
    if(image_file matches /(?i)(atera|ninja|simplehelp|dwrcs)/, "MSP Tool",
    "Unknown"))))))
| eval is_service_launched = if(ParentImage matches /(?i)(services\.exe|svchost\.exe)/, "Yes", "No")
| eval is_user_launched = if(ParentImage matches /(?i)(explorer\.exe|cmd\.exe|powershell\.exe)/, "Yes", "No")
| count by _time, Computer, User, image_file, CommandLine, ParentImage, rat_category, is_service_launched, is_user_launched
| sort by _time desc
medium severity high confidence

Sumo Logic CSE query detecting Remote Access Tool (RAT) and RMM software execution on Windows endpoints via Sysmon Event ID 1 (Process Create). Parses process image paths, classifies tool categories, and annotates whether the launch originated from a service or an interactive user session to assist analyst triage under MITRE ATT&CK T1219.

Data Sources

Sysmon logs forwarded to Sumo Logic via installed collectorWindows endpoint agent with process telemetry

Required Tables

Windows Sysmon Event ID 1 (Process Create)

False Positives & Tuning

  • Corporate endpoints where RMM agents like NinjaRMM or Atera are deployed under a formal managed services agreement
  • Help desk technicians initiating ad hoc TeamViewer or AnyDesk sessions to assist end users
  • Developers or QA engineers using RustDesk or tmate for cross-team terminal or desktop sharing
Download portable Sigma rule (.yml)

Other platforms for T1219


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1AnyDesk Portable Execution from Temp Directory

    Expected signal: Sysmon Event ID 1: Process Create with Image=%TEMP%\anydesk_test.exe. Sysmon Event ID 3: Network connection to AnyDesk relay servers (*.net.anydesk.com). Sysmon Event ID 11: File creation in %TEMP% for the AnyDesk binary. Sysmon Event ID 22: DNS query for anydesk.com domains.

  2. Test 2TeamViewer Service Installation Detection

    Expected signal: Sysmon Event ID 12: Registry key created at HKCU\SOFTWARE\TeamViewer_Test. Sysmon Event ID 13: Registry value set for Run key persistence. Security Event ID 4688: reg.exe process creation with command line containing TeamViewer.

  3. Test 3VNC Server Execution Test

    Expected signal: Sysmon Event ID 1: Process Create with Image containing tvnserver.exe or cmd.exe (mock). If TightVNC present: Sysmon Event ID 3 for VNC listening on port 5900. Security Event ID 4688 with command line arguments.

Unlock Pro Content

Get the full detection package for T1219 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections