T1219 Remote Access Tools
Command and Controlon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0496 Behavior-Chain Detection for Remote Access Tools (Tool-Agnostic)
AN1366 Windows
Chain of remote access tool behavior: (1) initial execution of remote-control/assist agent or GUI under user context; (2) persistence via service or autorun; (3) long-lived outbound connection/tunnel to external infrastructure; (4) interactive control signals such as shell or file-manager child processes spawned by the RAT parent.
| MITRE log source | In Microsoft Sentinel |
|---|---|
WinEventLog:SysmonEventCode=1 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:SystemEventCode=7045 |
|
WinEventLog:SysmonEventCode=12 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:SysmonEventCode=13, 14 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:SysmonEventCode=11 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:SysmonEventCode=3, 22 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
AN1367 Linux
Sequence of RAT agent execution, systemd persistence, and long-lived external egress; optional interactive shells spawned from the agent.
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLexecve: Agent/headless flags (listen/connect/reverse/tunnel) or remote-control binaries spawning shells | Not mapped to Sentinel yet. |
auditd:PATHWRITE: Drop of binaries/scripts in ~/.local, /tmp, or /opt tool dirs | Not mapped to Sentinel yet. |
WinEventLog:SysmonEventCode=3, 22 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
AN1368 macOS
Electron/GUI or headless RAT execution followed by LaunchAgent/Daemon persistence and persistent external connections; interactive children (osascript/sh/curl) spawned by parent.
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:unifiedlogProcess exec of remote-control apps or binaries with headless/connect flags | Not mapped to Sentinel yet. |
macos:osqueryCREATE/MODIFY: Creation of LaunchAgents/Daemons plists in user/system locations | Not mapped to Sentinel yet. |
macos:osqueryCONNECT: Long-lived connections from remote-control parents to external IPs/domains | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (10)
- AnyDesk Execution from Abnormal Folder - Potential Malicious Use of RMM Tool
- AnyDesk Service Installation - Potentially Malicious RMM Tool Installation
- Dev-0322 Command Line Activity November 2021
- Dev-0322 Command Line Activity November 2021 (ASIM Version)
- Dev-0322 File Drop Activity November 2021
- Dev-0322 File Drop Activity November 2021 (ASIM Version)
- Hunt for RMM tool execution following Teams messages
- MeshAgent Suspicious Child Process - Potential Malicious RMM Tool Usage
- NetSupport Manager Execution from Abnormal Folder - Potential Malicious Use of RMM Tool
- Remote Atera Agent Download - Command Line
How the Content Hub rules for T1219 are built: their tables, filters, joins, schedules and windows.
In Sigma rules
52 SigmaHQ community rules name it or one of its sub-techniques in their tags.
- Antivirus - Exploitation Framework Signature
- HackTool - Inveigh Execution Artefacts
- Atera Agent Installation
- HackTool - RemoteKrbRelay SMB Relay Secrets Dump Module Indicators
- Hijack Legit RDP Session to Move Laterally
- Potential CSharp Streamer RAT Loading .NET Executable Image
- Potential SocGholish Second Stage C2 DNS Query
- Remote Access Tool - AnyDesk Silent Installation
- Remote Access Tool - Anydesk Execution From Suspicious Folder
- Renamed Visual Studio Code Tunnel Execution
- Suspicious Binary Writes Via AnyDesk
- Suspicious Mstsc.EXE Execution With Local RDP File
- Suspicious TSCON Start as SYSTEM
- Anydesk Temporary Artefact
- DNS Query To AzureWebsites.NET By Non-Browser Process
- DNS Query To Remote Access Software Domain From Non-Browser App
- GoToAssist Temporary Installation Artefact
- Installation of TeamViewer Desktop
- Mesh Agent Service Installation
- Potential Amazon SSM Agent Hijacking
- Potential Linux Amazon SSM Agent Hijacking
- Potential Remote Desktop Connection to Non-Domain Host
- Remote Access Tool - Action1 Arbitrary Code Execution and Remote Sessions
- Remote Access Tool - AnyDesk Execution
- Remote Access Tool - AnyDesk Piped Password Via CLI
Mitigations
M1031Network Intrusion PreventionM1034Limit Hardware InstallationM1037Filter Network TrafficM1038Execution PreventionM1042Disable or Remove Feature or Program
Sub-techniques
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.