EXPLORE
← Back to Explore
sigmamediumHunting

Powershell Store File In Alternate Data Stream

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

MITRE ATT&CK

defense-evasion

Detection Query

selection_compspec:
  ScriptBlockText|contains|all:
    - Start-Process
    - '-FilePath "$env:comspec" '
    - "-ArgumentList "
    - ">"
condition: selection_compspec

Author

frack113

Created

2021-09-02

Data Sources

windowsps_script

Platforms

windows

Tags

attack.defense-evasionattack.t1564.004
Raw Content
title: Powershell Store File In Alternate Data Stream
id: a699b30e-d010-46c8-bbd1-ee2e26765fe9
status: test
description: Storing files in Alternate Data Stream (ADS) similar to Astaroth malware.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1564.004/T1564.004.md
author: frack113
date: 2021-09-02
modified: 2022-12-25
tags:
    - attack.defense-evasion
    - attack.t1564.004
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection_compspec:
        ScriptBlockText|contains|all:
            - 'Start-Process'
            - '-FilePath "$env:comspec" '
            - '-ArgumentList '
            - '>'
    condition: selection_compspec
falsepositives:
    - Unknown
level: medium