← All Challenges
Challenge 28: NTFS Alternate Data Streams
Difficulty: Hard
Category: Extension Heuristic Bypass
Objective
NTFS supports Alternate Data Streams (ADS) - additional named data streams attached to any file. The scanner only reads and analyzes the main $DATA stream of a file. Your goal is to hide executable content in an alternate stream where the scanner will never look.
Scanner Behavior
- The scanner opens files using standard file I/O, which accesses only the default (unnamed)
$DATAstream. - Extension checking is performed on the base filename only.
- The scanner does not enumerate or inspect alternate data streams.
- ADS content is completely invisible to the scanner’s analysis pipeline.
- The scanner does not parse or recognize the colon (
:) syntax used to address alternate streams.
Hints
- On NTFS,
file.txt:hiddenis a valid path that refers to a stream namedhiddenattached tofile.txt. - You can write arbitrary data to an ADS: the content is stored on disk but invisible to normal directory listings.
- Alternate streams can be executed directly by some Windows utilities and APIs.
- Consider how
wscript,cscript,powershell, orcmdhandle ADS paths. - The base file can be completely innocuous (even empty) while the ADS contains the real payload.
AMSI Raccoon Lab