Detectionhightest

NTFS Alternate Data Stream

Detects writing data into NTFS alternate data streams from powershell. Needs Script Block Logging.

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Sami RuohonenCreated Tue Jul 24Updated Sun Dec 258c521530-5169-495d-a199-0a3a881ad24ewindows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script

Definition

Requirements: Script Block Logging must be enabled

Detection Logic
Detection Logic2 selectors
detection:
    selection_content:
        ScriptBlockText|contains:
            - set-content
            - add-content
    selection_stream:
        ScriptBlockText|contains: '-stream'
    condition: all of selection*
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Rule Metadata
Rule ID
8c521530-5169-495d-a199-0a3a881ad24e
Status
test
Level
high
Type
Detection
Created
Tue Jul 24
Modified
Sun Dec 25
Path
rules/windows/powershell/powershell_script/posh_ps_ntfs_ads_access.yml
Raw Tags
attack.defense-evasionattack.t1564.004attack.executionattack.t1059.001
View on GitHub