Cscript.exe

type: OSBinaries
Binary used to execute scripts in Windows

Full path

C:\Windows\System32\cscript.exe
C:\Windows\SysWOW64\cscript.exe

Commands

  1. ADSUser T1564.004

    Can be used to evade defensive countermeasures or to hide as a persistence mechanism

    cscript //e:vbscript {PATH_ABSOLUTE}:script.vbs

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

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: WSH

Detection

Resources

acknowledgement: Oddvar Moe @oddvarmoe