---
title: "CAPEC-636: Hiding Malicious Data or Code within Files"
url: https://radicalnotion.ai/capec/capec-636
type: capec
description: "Files on various operating systems can have a complex format which allows for the storage of other data, in addition to its contents. Often this is metadata about the file, such as a cached thumbnail for an image file. Unless utilities are invoked in a particular way, this data is not visible during the normal use of the file. It is possible for an attacker to store malicious data or code using these facilities, which would be difficult to discover."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-636: Hiding Malicious Data or Code within Files

- **Abstraction:** Standard
- **Status:** Draft
- **Typical severity:** High
- **CAPEC catalog version:** 3.9

## Description

Files on various operating systems can have a complex format which allows for the storage of other data, in addition to its contents. Often this is metadata about the file, such as a cached thumbnail for an image file. Unless utilities are invoked in a particular way, this data is not visible during the normal use of the file. It is possible for an attacker to store malicious data or code using these facilities, which would be difficult to discover.

## Prerequisites

- The operating system must support a file system that allows for alternate data storage for a file.

## Mitigations

- Many tools are available to search for the hidden data. Scan regularly for such data using one of these tools.

## Related weaknesses (CWE)

- [CWE-506](https://radicalnotion.ai/cwe/cwe-506): Embedded Malicious Code

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-165](https://radicalnotion.ai/capec/capec-165) | File Manipulation |
| Child | [CAPEC-35](https://radicalnotion.ai/capec/capec-35) | Leverage Executable Code in Non-Executable Files |
| Child | [CAPEC-168](https://radicalnotion.ai/capec/capec-168) | Windows ::DATA Alternate Data Stream |

## Taxonomy mappings

| Taxonomy | Entry | Id |
| --- | --- | --- |
| ATTACK | Data Obfuscation: Steganography | 1001.002 |
| ATTACK | Obfuscated Files or Information: Steganography | 1027.003 |
| ATTACK | Obfuscated Files or Information: Compile After Delivery | 1027.004 |
| ATTACK | Signed Binary Proxy Execution: Compiled HTML File | 1218.001 |
| ATTACK | Template Injection | 1221 |

## Frequently asked questions

### What is CAPEC-636?

Files on various operating systems can have a complex format which allows for the storage of other data, in addition to its contents. Often this is metadata about the file, such as a cached thumbnail for an image file. Unless utilities are invoked in a particular way, this data is not visible during the normal use of the file. It is possible for an attacker to store malicious data or code using these facilities, which would be difficult to discover.

### How do you prevent CAPEC-636?

Many tools are available to search for the hidden data. Scan regularly for such data using one of these tools.

### What weaknesses does CAPEC-636 target?

CAPEC-636 exploits one CWE weakness: CWE-506 (Embedded Malicious Code).

### How severe is CAPEC-636?

MITRE rates CAPEC-636 as High severity.

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

---

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