Suspicious Powershell Store File In Alternate Data Stream (via ps_script)

This rule detects storing files in Alternate Data Stream (ADS) similar to Astaroth malware.

SigmamediumWindowsv1
sigma
title: Suspicious Powershell Store File In Alternate Data Stream (via ps_script)
id: c752a6e9-c92a-5515-a341-66c0b2d5c84e
status: stable
description: This rule detects storing files in Alternate Data Stream (ADS) similar to Astaroth malware.
references:
    - https://attack.mitre.org/techniques/T1564/004/
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1564.004/T1564.004.md
author: Huntrule Team
date: 2026-04-30
tags:
    - attack.stealth
    - 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

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.