T1059.005: Command and Scripting Interpreter: Visual Basic (VBScript within the ASP file)
T1059.005 (Command and Scripting Interpreter: Visual Basic (VBScript within the ASP file)) is classified under the Execution tactic within the MITRE ATT&CK framework. Techniques that result in adversary-controlled code running on a local or remote target system, including command-line interpreters, PowerShell payloads, and native binary proxy execution. In telemetry gathered across enterprise endpoints and the EMBER 2018 benchmark, this technique was weaponized across 25 distinct malware families, totaling over 17,319 validated samples.
Technical Anatomy & Adversary Tradecraft
Adversaries leverage Command and Scripting Interpreter: Visual Basic (VBScript within the ASP file) to accomplish operational objectives while minimizing anomalous forensic footprints. When executing Command and Scripting Interpreter: Visual Basic (VBScript within the ASP file), malicious binaries commonly interact directly with low-level Windows APIs, kernel mode drivers, or native scripting interfaces to bypass traditional file-integrity monitors and static antivirus signatures.
In modern multi-stage campaigns, T1059.005 is frequently observed functioning as an intermediate bridge: initial access payloads (such as spearphishing loaders or exploit macros) execute Command and Scripting Interpreter: Visual Basic (VBScript within the ASP file) to establish in-memory execution or persistence before staging secondary ransomware or data-exfiltration implants.
https://attack.mitre.org/techniques/T1059/005/.
Detection Engineering & Threat Hunting
Detecting Command and Scripting Interpreter: Visual Basic (VBScript within the ASP file) requires telemetry correlation across endpoint detection and response (EDR) agents, Sysmon event streams, and security information event management (SIEM) pipelines:
- Process Creation & Lineage: Monitor parent-child process anomalies where unexpected parent binaries (e.g., Office executables, web browsers, or script hosts) spawn command shells or native Windows utilities.
- API Hooking & Behavioral Telemetry: EDR platforms should flag rapid calls to memory allocation, process injection, or registry manipulation APIs originating from unbacked executable memory regions.
- Network Anomaly Correlation: Cross-reference endpoint execution timestamps with external network socket establishment to identify anomalous beaconing or covert data staging.
SOC Containment & Hardening Guidance
To mitigate risks associated with T1059.005 (Command and Scripting Interpreter: Visual Basic (VBScript within the ASP file)) across production infrastructure, security teams should implement the following defensive controls:
- Attack Surface Reduction (ASR): Enforce strict application control policies (WDAC or AppLocker) to restrict execution to signed and verified corporate binaries.
- Least Privilege & Credential Hygiene: Restrict local administrative privileges to prevent adversaries from tampering with defensive agents or escalating privileges.
- Network Microsegmentation: Restrict lateral communication across endpoint VLANs to prevent wormable payloads from utilizing Command and Scripting Interpreter: Visual Basic (VBScript within the ASP file) across adjacent network segments.
Cataloged Malware Families Utilizing T1059.005 (25 Families)
The following malware families in the SystemHelpDesk catalog have been verified utilizing T1059.005 (Command and Scripting Interpreter: Visual Basic (VBScript within the ASP file)):
| Family | Category | Sample Count | Technical Summary |
|---|---|---|---|
| emotet | Loader | 12,943 | Emotet (initially identified in 2014 as Geodo or Heodo) is historically recognized as one of the most destructive and costly botnet malware loaders ever observe... |
| kovter | Trojan | 2,414 | Kovter is an extraordinarily evasive, polymorphic malware strain first detected in 2013. Initially engineered as a screen-locking police-impersonation ransomwar... |
| cerber | Ransomware | 1,792 | Cerber is an influential, early Ransomware-as-a-Service (RaaS) operation that operated with immense commercial success between February 2016 and late 2017. Deve... |
| autohk | Trojan | 120 | The "AutoHK" malware family refers to a broad category of malicious programs that utilize AutoHotkey (AHK), a legitimate and open-source scripting language desi... |
| scriptkd | Ransomware | 15 | Scriptkd (classified as Ransom:Win32/Scriptkd and Trojan-Ransom.Win32.Scriptkd) is a script-based and multi-stage crypto-ransomware family combining Windows Scr... |
| autoitscript | Trojan | 5 | Autoitscript (classified in antivirus detection telemetry under designations including Trojan:Win32/Autoitscript, Trojan.Win32.Autoitscript, and Win32/Autoitscr... |
| jenxcus | Trojan | 4 | Worm:VBS/Jenxcus (often referred to as Houdini or Dinihu) is a prolific, script-based worm and Remote Access Trojan (RAT) written entirely in Visual Basic Scrip... |
| scribble | Ransomware | 4 | TrojanDownloader:O97M/Scribble (or similar macro-based droppers) represents a prevalent technique for initial access: the weaponization of Microsoft Office docu... |
| hancitor | Ransomware | 3 | TrojanDownloader:Win32/Hancitor (also widely known as **Chanitor**) is a highly prolific and dangerous Initial Access Broker (IAB) and downloader trojan. It is ... |
| adodb | Backdoor | 2 | Adodb (classified in antivirus detection telemetry under designations including Backdoor:Win32/Adodb, Backdoor.Win32.Adodb, and Win32/Adodb) is a interactive re... |
| gamaredon | Trojan | 2 | Trojan:Win32/Gamaredon (also tracked as Actinium, Shuckworm, or Primitive Bear) represents the malware ecosystem of a highly active Advanced Persistent Threat (... |
| macrodrop | Ransomware | 2 | TrojanDownloader:O97M/Macrodrop is a highly prevalent category of malware that utilizes weaponized Microsoft Office macros (VBA code) to establish an initial fo... |
| vjworm | Backdoor | 2 | Worm:VBS/Vjworm (and its variants like JS/Vjworm) is a highly aggressive, self-propagating worm written in scripting languages (Visual Basic Script or JavaScrip... |
| autophyte | Trojan | 1 | Autophyte (classified in antivirus detection telemetry under designations including Trojan:Win32/Autophyte, Trojan.Win32.Autophyte, and Win32/Autophyte) is a mu... |
| emotetn | Ransomware | 1 | <h3>Executive Summary</h3> EmotetN represents a specific detection signature or component variant of the notorious Emotet malware family. Originally designed as... |
| hkautoit | Trojan | 1 | Trojan:Win32/Hkautoit denotes a malicious payload that has been compiled using AutoIt, a legitimate Windows scripting language designed for automating UI tasks.... |
| loveletter | Ransomware | 1 | <h3>Executive Summary</h3> Loveletter (infamously known as the "ILOVEYOU" bug) is a historic, highly destructive mass-mailing worm that caused catastrophic glob... |
| psyme | Ransomware | 1 | <h3>Executive Summary</h3> Psyme is a classification for a family of malicious Trojans that rely heavily on scripting languages—specifically VBScript (.vbs) and... |
| rietspoof | Ransomware | 1 | <h3>Executive Summary</h3> Rietspoof is a highly sophisticated, multi-stage Trojan Downloader that emerged in early 2019. Unlike "smash-and-grab" malware, Riets... |
| vbcode | Ransomware | 1 | <h3>Executive Summary</h3> VBCode is a general classification given to malicious scripts or Trojans written entirely or predominantly in Visual Basic Script (VB... |
| vbdrop | Ransomware | 1 | <h3>Executive Summary</h3> VBDrop is a generic classification for a vast array of Trojan droppers developed using Visual Basic (VB) or Visual Basic Script (VBS)... |
| vbmod | Ransomware | 1 | <h3>Executive Summary</h3> VBMod is a generic detection identifier utilized by security vendors to classify a wide variety of trojans, worms, and malicious down... |
| vxidl | Advanced Threat | 1 | <h3>Executive Summary</h3> Vxidl (often detected as VBS/Vxidl or Virus.VBS.Vxidl) is a classification for legacy script-based viruses and worms, typically writt... |
| zepto | Ransomware | 1 | <h3>Executive Summary</h3> Zepto is a highly destructive ransomware variant that gained massive notoriety in mid-2016. It is a direct evolution (and effectively... |
| vbs_worm_generator | Worm | Sampled | VBS Worm Generator (widely known as VBSWG and documented in security records as Worm.VBSWG or VBS Worm Generator by [K]Alamar) is an infamous malware constructi... |