T1219 Elastic Security · Elastic

Detect Remote Access Tools in Elastic Security

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/

Elastic Detection Query

Elastic Security (Elastic)
eql
process where event.type == "start" and
  process.name : (
    "teamviewer.exe", "teamviewer_service.exe",
    "anydesk.exe", "anydesk_service.exe",
    "screenconnect.exe", "screenconnectclient.exe", "connectwisecontrol.client.exe",
    "logmein.exe", "lmi_rescue.exe", "logmeinrescue.exe",
    "ammyyadmin.exe", "aa_v3.exe",
    "supremo.exe", "supremoservice.exe",
    "rustdesk.exe", "splashtop.exe", "splashtopremote.exe",
    "ateraagent.exe", "ninjaone.exe", "ninjaremote.exe",
    "simplehelp.exe", "dwrcs.exe", "dwrcst.exe",
    "tmate", "vnc.exe", "tvnserver.exe", "vncviewer.exe",
    "uvnc_service.exe", "winvnc.exe",
    "remotedesktopmanager.exe",
    "chrome_remote_desktop.exe", "remote_assistance_host.exe"
  )
medium severity high confidence

Detects execution of known Remote Access Tool (RAT) and Remote Management and Monitoring (RMM) processes associated with MITRE ATT&CK T1219. Covers commercial tools such as TeamViewer, AnyDesk, ScreenConnect, LogMeIn, AmmyyAdmin, RustDesk, Splashtop, Atera, NinjaRMM, and VNC variants. Enriches events with parent process context to differentiate service-launched vs user-interactive executions.

Data Sources

Windows endpoint logs via Elastic Agent or WinlogbeatElastic Endpoint Security (ECS process events)

Required Tables

logs-endpoint.events.process-*winlogbeat-*

False Positives & Tuning

  • Legitimate IT helpdesk or MSP-managed endpoints where RMM tools like Atera, NinjaRMM, or ScreenConnect are deployed as standard management tooling
  • Employees using TeamViewer or AnyDesk for authorized personal or business remote support sessions
  • Security team members using RMM tools for authorized internal incident response or asset management
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