---
title: "CAPEC-168: Windows ::DATA Alternate Data Stream"
url: https://radicalnotion.ai/capec/capec-168
type: capec
description: "An attacker exploits the functionality of Microsoft NTFS Alternate Data Streams (ADS) to undermine system security. ADS allows multiple \"files\" to be stored in one directory entry referenced as filename:streamname. One or more alternate data streams may be stored in any file or directory. Normal Microsoft utilities do not show the presence of an ADS stream attached to a file. The additional space for the ADS is not recorded in the displayed file size. The additional space for ADS is accounted for in the used space on the volume. An ADS can be any type of file. ADS are copied by standard Microsoft utilities between NTFS volumes. ADS can be used by an attacker or intruder to hide tools, scripts, and data from detection by normal system utilities. Many anti-virus programs do not check for or scan ADS. Windows Vista does have a switch (-R) on the command line DIR command that will display alternate streams."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-168: Windows ::DATA Alternate Data Stream

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

## Description

An attacker exploits the functionality of Microsoft NTFS Alternate Data Streams (ADS) to undermine system security. ADS allows multiple "files" to be stored in one directory entry referenced as filename:streamname. One or more alternate data streams may be stored in any file or directory. Normal Microsoft utilities do not show the presence of an ADS stream attached to a file. The additional space for the ADS is not recorded in the displayed file size. The additional space for ADS is accounted for in the used space on the volume. An ADS can be any type of file. ADS are copied by standard Microsoft utilities between NTFS volumes. ADS can be used by an attacker or intruder to hide tools, scripts, and data from detection by normal system utilities. Many anti-virus programs do not check for or scan ADS. Windows Vista does have a switch (-R) on the command line DIR command that will display alternate streams.

## Prerequisites

- The target must be running the Microsoft NTFS file system.

## Resources required

- The attacker must have command line or programmatic access to the target's files system with write/read permissions.

## Mitigations

- Design: Use FAT file systems which do not support Alternate Data Streams.
- Implementation: Use Vista dir with the -R switch or utility to find Alternate Data Streams and take appropriate action with those discovered.
- Implementation: Use products that are Alternate Data Stream aware for virus scanning and system security operations.

## Related weaknesses (CWE)

- [CWE-69](https://radicalnotion.ai/cwe/cwe-69): Improper Handling of Windows ::DATA Alternate Data Stream
- [CWE-212](https://radicalnotion.ai/cwe/cwe-212): Improper Removal of Sensitive Information Before Storage or Transfer

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-636](https://radicalnotion.ai/capec/capec-636) | Hiding Malicious Data or Code within Files |

## Taxonomy mappings

| Taxonomy | Entry | Id |
| --- | --- | --- |
| OWASP Attacks | Windows alternate data stream | - |

## Frequently asked questions

### What is CAPEC-168?

An attacker exploits the functionality of Microsoft NTFS Alternate Data Streams (ADS) to undermine system security. ADS allows multiple "files" to be stored in one directory entry referenced as filename:streamname. One or more alternate data streams may be stored in any file or directory. Normal Microsoft utilities do not show the presence of an ADS stream attached to a file. The additional space for the ADS is not recorded in the displayed file size. The additional space for ADS is accounted for in the used space on the volume. An ADS can be any type of file. ADS are copied by standard Microsoft utilities between NTFS volumes. ADS can be used by an attacker or intruder to hide tools, scripts, and data from detection by normal system utilities. Many anti-virus programs do not check for or scan ADS. Windows Vista does have a switch (-R) on the command line DIR command that will display alternate streams.

### How do you prevent CAPEC-168?

Design: Use FAT file systems which do not support Alternate Data Streams.

### What weaknesses does CAPEC-168 target?

CAPEC-168 exploits 2 CWE weaknesses: CWE-69 (Improper Handling of Windows ::DATA Alternate Data Stream) and CWE-212 (Improper Removal of Sensitive Information Before Storage or Transfer).

### How severe is CAPEC-168?

MITRE rates CAPEC-168 as Medium severity.

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

---

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