Adversary-in-the-Middle

Adversaries may attempt to position themselves between two or more networked devices using an adversary-in-the-middle (AiTM) technique to support follow-on behaviors such as Network Sniffing or Transmitted Data Manipulation. By abusing features of common networking protocols that can determine the flow of network traffic (e.g. ARP, DNS, LLMNR, etc.), adversaries may force a device to communicate through an adversary controlled system so they can collect information or perform additional actions.[1]

Adversaries may leverage the AiTM position to attempt to modify traffic, such as in Transmitted Data Manipulation. Adversaries can also stop traffic from flowing to the appropriate destination, causing denial of service.

ID: T1557
Sub-techniques:  T1557.001, T1557.002
Platforms: Linux, Windows, macOS
Permissions Required: User
CAPEC ID: CAPEC-94
Contributors: Daniil Yugoslavskiy, @yugoslavskiy, Atomic Threat Coverage project
Version: 2.0
Created: 11 February 2020
Last Modified: 28 September 2021
Provided by LAYER 8

Procedure Examples

ID Name Description
S0281 Dok

Dok proxies web traffic to potentially monitor and alter victim HTTP(S) traffic.[2][3]

G0094 Kimsuky

Kimsuky has used modified versions of PHProxy to examine web traffic between the victim and the accessed website.[4]

Mitigations

ID Mitigation Description
M1042 Disable or Remove Feature or Program

Disable legacy network protocols that may be used to intercept network traffic if applicable, especially those that are not needed within an environment.

M1041 Encrypt Sensitive Information

Ensure that all wired and/or wireless traffic is encrypted appropriately. Use best practices for authentication protocols, such as Kerberos, and ensure web traffic that may contain credentials is protected by SSL/TLS.

M1037 Filter Network Traffic

Use network appliances and host-based security software to block network traffic that is not necessary within the environment, such as legacy protocols that may be leveraged for AiTM conditions.

M1035 Limit Access to Resource Over Network

Limit access to network infrastructure and resources that can be used to reshape traffic or otherwise produce AiTM conditions.

M1031 Network Intrusion Prevention

Network intrusion detection and prevention systems that can identify traffic patterns indicative of AiTM activity can be used to mitigate activity at the network level.

M1030 Network Segmentation

Network segmentation can be used to isolate infrastructure components that do not require broad network access. This may mitigate, or at least alleviate, the scope of AiTM activity.

M1017 User Training

Train users to be suspicious about certificate errors. Adversaries may use their own certificates in an attempt to intercept HTTPS traffic. Certificate errors may arise when the application’s certificate does not match the one expected by the host.

Detection

ID Data Source Data Component
DS0029 Network Traffic Network Traffic Content
Network Traffic Flow
DS0019 Service Service Creation
DS0024 Windows Registry Windows Registry Key Modification

Monitor network traffic for anomalies associated with known AiTM behavior. Consider monitoring for modifications to system configuration files involved in shaping network traffic flow.

References