.. /Cscript.exe
Star

Alternate data streams (WSH)

Binary used to execute scripts in Windows


Paths:

Resources:
Acknowledgements:

Detection:

Alternate data streams

  1. Use cscript.exe to exectute a Visual Basic script stored in an Alternate Data Stream (ADS).

    cscript //e:vbscript c:\ads\file.txt:script.vbs
    Use case
    Can be used to evade defensive countermeasures or to hide as a persistence mechanism
    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
    This LOLBAS executes scripts in Windows Script Host (WSH) languages, such as VBScript and JScript.