CAPECattack pattern

CAPEC-698 Install Malicious Extension

High Official page ↗
Abstraction
Detailed
Status
Stable
Likelihood of attack
Medium
Typical severity
High
CAPEC version
3.9

Description

An adversary directly installs or tricks a user into installing a malicious extension into existing trusted software, with the goal of achieving a variety of negative technical impacts.

Extended description

Many software applications allow users to install third-party software extensions/plugins that provide additional features and functionality. Adversaries can take advantage of this behavior to install malware on a system with relative ease. This may require the adversary compromising a system and then installing the malicious extension themself. An alternate approach entails masquerading the malicious extension as a legitimate extension. The adversary then convinces users to install the malicious component, via means such as social engineering, or simply waits for victims to unknowingly install the malware on their systems. Once the malicious extension has been installed, the adversary can achieve a variety of negative technical impacts such as obtaining sensitive information, executing unauthorized commands, observing/modifying network traffic, and more.

Execution flow

1. [Explore] [Identify target(s)] The adversary must first identify target software that allows for extensions/plugins and which they wish to exploit, such as a web browser or desktop application. To increase the attack space, this will often be popular software with a large user-base. 2. [Experiment] [Create malicious extension] Having identified a suitable target, the adversary crafts a malicious extension/plugin that can be installed by the underlying target software. This malware may be targeted to execute on specific operating systems or be operating system agnostic. 3. [Exploit] [Install malicious extension] The malicious extension/plugin is installed by the underlying target software and executes the adversary-created malware, resulting in a variety of negative technical impacts.

Prerequisites

• The adversary must craft malware based on the type of software and system(s) they intend to exploit. • If the adversary intends to install the malicious extension themself, they must first compromise the target machine via some other means.

Skills required

• [Medium] Ability to create malicious extensions that can exploit specific software applications and systems. • [Medium] Optional: Ability to exploit target system(s) via other means in order to gain entry.

Consequences

• Confidentiality, Access Control: Read Data • Integrity, Access Control: Modify Data • Authorization, Access Control: Execute Unauthorized Commands, Alter Execution Logic, Gain Privileges

Mitigations

• Only install extensions/plugins from official/verifiable sources. • Confirm extensions/plugins are legitimate and not malware masquerading as a legitimate extension/plugin. • Ensure the underlying software leveraging the extension/plugin (including operating systems) is up-to-date. • Implement an extension/plugin allow list, based on the given security policy. • If applicable, confirm extensions/plugins are properly signed by the official developers. • For web browsers, close sessions when finished to prevent malicious extensions/plugins from executing the the background.

Related

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

  • T1505.004 IIS Components sub-technique
  • T1176 Software Extensions technique

Child of · CAPEC (1)

Weakness · CWE (2)

  • CWE-507 Trojan Horse weakness
  • CWE-829 Inclusion of Functionality from Untrusted Control Sphere weakness

Referenced by CWE · attack pattern (2)

  • CWE-507 Trojan Horse weakness
  • CWE-829 Inclusion of Functionality from Untrusted Control Sphere weakness