Detectionmediumtest

Powershell Store File In Alternate Data Stream

Storing files in Alternate Data Stream (ADS) similar to Astaroth malware.

Open in Detection LabConvert ruleBuild Package
François HubautCreated 2021-09-02Updated 2022-12-25a699b30e-d010-46c8-bbd1-ee2e26765fe9windows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script

Definition

Requirements: Script Block Logging must be enabled

Detection Logic
Detection Logic1 selector
detection:
    selection_compspec:
        ScriptBlockText|contains|all:
            - 'Start-Process'
            - '-FilePath "$env:comspec" '
            - '-ArgumentList '
            - '>'
    condition: selection_compspec
False Positives
Unknown

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

Testing & Validation

Regression Tests

by frack113
Positive Detection Test1 matchevtx

Microsoft-Windows-PowerShell

Rule Metadata
Rule ID
a699b30e-d010-46c8-bbd1-ee2e26765fe9
Status
test
Level
medium
Type
Detection
Created
2021-09-02
Modified
2022-12-25
Path
rules/windows/powershell/powershell_script/posh_ps_store_file_in_alternate_data_stream.yml
Raw Tags
attack.stealthattack.t1564.004
View on GitHub