2018-06-09 00:15:06 +02:00
|
|
|
---
|
|
|
|
Name: Cscript.exe
|
2018-09-24 21:59:43 +02:00
|
|
|
Description: Binary used to execute scripts in Windows
|
|
|
|
Author: 'Oddvar Moe'
|
2018-06-09 00:15:06 +02:00
|
|
|
Created: '2018-05-25'
|
|
|
|
Commands:
|
|
|
|
- Command: cscript c:\ads\file.txt:script.vbs
|
|
|
|
Description: Use cscript.exe to exectute a Visual Basic script stored in an Alternate Data Stream (ADS).
|
2018-09-24 21:59:43 +02:00
|
|
|
Usecase: Can be used to evade defensive countermeasures or to hide as a persistence mechanism
|
2018-09-26 09:34:01 +02:00
|
|
|
Category: ADS
|
2018-09-24 21:59:43 +02:00
|
|
|
Privileges: User
|
|
|
|
MitreID: T1096
|
|
|
|
MitreLink: https://attack.mitre.org/wiki/Technique/T1096
|
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10
|
2018-06-09 00:15:06 +02:00
|
|
|
Full Path:
|
2018-09-24 21:59:43 +02:00
|
|
|
- Path: C:\Windows\System32\cscript.exe
|
|
|
|
- Path: C:\Windows\SysWOW64\cscript.exe
|
|
|
|
Code Sample:
|
|
|
|
- Code:
|
|
|
|
Detection:
|
|
|
|
- IOC: Cscript.exe executing files from alternate data streams
|
2018-06-09 00:15:06 +02:00
|
|
|
Resources:
|
2018-09-24 21:59:43 +02:00
|
|
|
- Link: https://gist.github.com/api0cradle/cdd2d0d0ec9abb686f0e89306e277b8f
|
|
|
|
- Link: https://oddvar.moe/2018/01/14/putting-data-in-alternate-data-streams-and-how-to-execute-it/
|
|
|
|
Acknowledgement:
|
|
|
|
- Person: Oddvar Moe
|
|
|
|
Handle: '@oddvarmoe'
|
|
|
|
---
|