CAPECattack pattern

CAPEC-662 Adversary in the Browser (AiTB)

Very High Official page ↗
Abstraction
Standard
Status
Stable
Likelihood of attack
High
Typical severity
Very High
CAPEC version
3.9

Description

An adversary exploits security vulnerabilities or inherent functionalities of a web browser, in order to manipulate traffic between two endpoints.

Extended description

This attack first requires the adversary to trick the victim into installing a Trojan Horse application on their system, such as a malicious web browser plugin, which the adversary then leverages to mount the attack. The victim interacts with a web application, such as a banking website, in a normal manner and under the assumption that the connection is secure. However, the adversary can now alter and/or reroute traffic between the client application (e.g., web browser) and the coinciding endpoint, while simultaneously displaying intended transactions and data back to the user. The adversary may also be able to glean cookies, HTTP sessions, and SSL client certificates, which can be used to pivot into an authenticated intranet. Identifying AITB is often difficult because these attacks are successful even when security mechanisms such as SSL/PKI and multifactor authentication are present, since they still function as intended during the attack.

Execution flow

1. [Experiment] The adversary tricks the victim into installing the Trojan Horse malware onto their system. 2. [Experiment] The adversary inserts themself into the communication channel initially acting as a routing proxy between the two targeted components. 3. [Exploit] The adversary observes, filters, or alters passed data of their choosing to gain access to sensitive information or to manipulate the actions of the two target components for their own purposes.

Prerequisites

• The adversary must install or convince a user to install a Trojan. • There are two components communicating with each other. • An attacker is able to identify the nature and mechanism of communication between the two target components. • Strong mutual authentication is not used between the two target components yielding opportunity for adversarial interposition. • For browser pivoting, the SeDebugPrivilege and a high-integrity process must both exist to execute this attack.

Skills required

• [Medium] Tricking the victim into installing the Trojan is often the most difficult aspect of this attack. Afterwards, the remainder of this attack is fairly trivial.

Consequences

• Integrity: Modify Data • Confidentiality, Access Control, Authorization: Gain Privileges • Confidentiality: Read Data

Mitigations

• Ensure software and applications are only downloaded from legitimate and reputable sources, in addition to conducting integrity checks on the downloaded component. • Leverage anti-malware tools, which can detect Trojan Horse malware. • Use strong, out-of-band mutual authentication to always fully authenticate both ends of any communications channel. • Limit user permissions to prevent browser pivoting. • Ensure browser sessions are regularly terminated and when their effective lifetime ends.

Related

Att&ck technique · MITRE ATT&CK (1)

  • T1185 Browser Session Hijacking technique

Child of · CAPEC (1)

  • CAPEC-94 Adversary in the Middle (AiTM) attack pattern

Weakness · CWE (2)

  • CWE-300 Channel Accessible by Non-Endpoint weakness
  • CWE-494 Download of Code Without Integrity Check weakness

Referenced by CAPEC · can precede (2)

  • CAPEC-185 Malicious Software Download attack pattern
  • CAPEC-542 Targeted Malware attack pattern

Referenced by CWE · attack pattern (2)

  • CWE-300 Channel Accessible by Non-Endpoint weakness
  • CWE-494 Download of Code Without Integrity Check weakness