---
title: "CAPEC-165: File Manipulation"
url: https://radicalnotion.ai/capec/capec-165
type: capec
description: "An attacker modifies file contents or attributes (such as extensions or names) of files in a manner to cause incorrect processing by an application. Attackers use this class of attacks to cause applications to enter unstable states, overwrite or expose sensitive information, and even execute arbitrary code with the application's privileges. This class of attacks differs from attacks on configuration information (even if file-based) in that file manipulation causes the file processing to result in non-standard behaviors, such as buffer overflows or use of the incorrect interpreter. Configuration attacks rely on the application interpreting files correctly in order to insert harmful configuration information. Likewise, resource location attacks rely on controlling an application's ability to locate files, whereas File Manipulation attacks do not require the application to look in a non-default location, although the two classes of attacks are often combined."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-165: File Manipulation

- **Abstraction:** Meta
- **Status:** Draft
- **Typical severity:** Medium
- **CAPEC catalog version:** 3.9

## Description

An attacker modifies file contents or attributes (such as extensions or names) of files in a manner to cause incorrect processing by an application. Attackers use this class of attacks to cause applications to enter unstable states, overwrite or expose sensitive information, and even execute arbitrary code with the application's privileges. This class of attacks differs from attacks on configuration information (even if file-based) in that file manipulation causes the file processing to result in non-standard behaviors, such as buffer overflows or use of the incorrect interpreter. Configuration attacks rely on the application interpreting files correctly in order to insert harmful configuration information. Likewise, resource location attacks rely on controlling an application's ability to locate files, whereas File Manipulation attacks do not require the application to look in a non-default location, although the two classes of attacks are often combined.

## Prerequisites

- The target must use the affected file without verifying its integrity.

## Resources required

- None: No specialized resources are required to execute this type of attack. In some cases, tools can be used to better control the response of the targeted application to the modified file.

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Child | [CAPEC-73](https://radicalnotion.ai/capec/capec-73) | User-Controlled Filename |
| Child | [CAPEC-572](https://radicalnotion.ai/capec/capec-572) | Artificially Inflate File Sizes |
| Child | [CAPEC-635](https://radicalnotion.ai/capec/capec-635) | Alternative Execution Due to Deceptive Filenames |
| Child | [CAPEC-636](https://radicalnotion.ai/capec/capec-636) | Hiding Malicious Data or Code within Files |
| Related | [CAPEC-23](https://radicalnotion.ai/capec/capec-23) | File Content Injection |
| Related | [CAPEC-561](https://radicalnotion.ai/capec/capec-561) | Windows Admin Shares with Stolen Credentials |
| Related | [CAPEC-643](https://radicalnotion.ai/capec/capec-643) | Identify Shared Files/Directories on System |
| Related | [CAPEC-644](https://radicalnotion.ai/capec/capec-644) | Use of Captured Hashes (Pass The Hash) |

## Taxonomy mappings

| Taxonomy | Entry | Id |
| --- | --- | --- |
| ATTACK | Masquerading: Rename System Utilities | 1036.003 |

## Frequently asked questions

### What is CAPEC-165?

An attacker modifies file contents or attributes (such as extensions or names) of files in a manner to cause incorrect processing by an application. Attackers use this class of attacks to cause applications to enter unstable states, overwrite or expose sensitive information, and even execute arbitrary code with the application's privileges. This class of attacks differs from attacks on configuration information (even if file-based) in that file manipulation causes the file processing to result in non-standard behaviors, such as buffer overflows or use of the incorrect interpreter. Configuration attacks rely on the application interpreting files correctly in order to insert harmful configuration information. Likewise, resource location attacks rely on controlling an application's ability to locate files, whereas File Manipulation attacks do not require the application to look in a non-default location, although the two classes of attacks are often combined.

### How severe is CAPEC-165?

MITRE rates CAPEC-165 as Medium severity.

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

---

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