---
title: "CAPEC-549: Local Execution of Code"
url: https://radicalnotion.ai/capec/capec-549
type: capec
description: "An adversary installs and executes malicious code on the target system in an effort to achieve a negative technical impact. Examples include rootkits, ransomware, spyware, adware, and others."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-549: Local Execution of Code

- **Abstraction:** Meta
- **Status:** Stable
- **Typical severity:** High
- **Likelihood of attack:** Medium
- **CAPEC catalog version:** 3.9

## Description

An adversary installs and executes malicious code on the target system in an effort to achieve a negative technical impact. Examples include rootkits, ransomware, spyware, adware, and others.

## Prerequisites

- Knowledge of the target system's vulnerabilities that can be capitalized on with malicious code.The adversary must be able to place the malicious code on the target system.

## Resources required

- The means by which the adversary intends to place the malicious code on the system dictates the tools required. For example, suppose the adversary wishes to leverage social engineering and convince a legitimate user to open a malicious file attached to a seemingly legitimate email. In this case, the adversary might require a tool capable of wrapping malicious code into an innocuous filetype (e.g., PDF, .doc, etc.)

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Integrity, Availability | Execute Unauthorized Commands | Run Arbitrary Code |
| Confidentiality, Integrity, Availability | Other | Depending on the type of code executed by the adversary, the consequences of this attack pattern can vary widely. |

## Mitigations

- Employ robust cybersecurity training for all employees.
- Implement system antivirus software that scans all attachments before opening them.
- Regularly patch all software.
- Execute all suspicious files in a sandbox environment.

## Example instances

BlueBorne refers to a set of nine vulnerabilities on different platforms (Linux, Windows, Android, iOS) that offer an adversary the ability to install and execute malicious code on a system if they were close in proximity to a Bluetooth enabled device. One vulnerability affecting iOS versions 7 through 9 allowed an attacker to overflow the Low Energy Audio Protocol since commands sent over this protocol are improperly validated and gain the elevated permissions of the Bluetooth stack. These vulnerabilities were a result of poor validation and were patched shortly after their exposure in 2017, but many non-updated devices remain vulnerable.

## Related weaknesses (CWE)

- [CWE-829](https://radicalnotion.ai/cwe/cwe-829): Inclusion of Functionality from Untrusted Control Sphere

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Child | [CAPEC-542](https://radicalnotion.ai/capec/capec-542) | Targeted Malware |
| Related | [CAPEC-561](https://radicalnotion.ai/capec/capec-561) | Windows Admin Shares with Stolen Credentials |
| Related | [CAPEC-644](https://radicalnotion.ai/capec/capec-644) | Use of Captured Hashes (Pass The Hash) |

## Frequently asked questions

### What is CAPEC-549?

An adversary installs and executes malicious code on the target system in an effort to achieve a negative technical impact. Examples include rootkits, ransomware, spyware, adware, and others.

### How do you prevent CAPEC-549?

Employ robust cybersecurity training for all employees.

### What weaknesses does CAPEC-549 target?

CAPEC-549 exploits one CWE weakness: CWE-829 (Inclusion of Functionality from Untrusted Control Sphere).

### How severe is CAPEC-549?

MITRE rates CAPEC-549 as High severity with medium likelihood of attack.

Primary source: [MITRE CAPEC](https://capec.mitre.org/data/definitions/549.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/capec/capec-549). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
