T1059.005 Visual Basic
Executionon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0076 Behavioral Detection of Visual Basic Execution (VBS/VBA/VBScript)
AN0209 Windows
Detects execution of VB-based scripts or macros (VBS/VBA/VBScript) through cscript.exe/wscript.exe, Office-based process chains, or HTA usage. Focuses on chained behavior: Office or HTML container spawns script host > script host spawns PowerShell, network connections, or process injection.
| MITRE log source | In Microsoft Sentinel |
|---|---|
WinEventLog:SysmonEventCode=1 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
WinEventLog:SysmonEventCode=7 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
AN0210 macOS
Detects embedded or emulated VBScript/VBA execution via Wine-based apps, Office for Mac abusing cross-platform .NET features, or macros dropped and invoked via AppleScript or third-party automation tools.
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:unifiedloglog stream --predicate 'eventMessage contains "wscript" OR "vbs"' | Not mapped to Sentinel yet. |
macos:osqueryprocess_events | Not mapped to Sentinel yet. |
macos:syslogsystem.log | Not mapped to Sentinel yet. |
AN0211 Linux
Detects abuse of Mono/.NET Core environments to execute VB-like scripts, often in environments with Office emulation or WINE. Focus is on rare invocations of scripting hosts like mono.exe or .NET shells, often seen in spam filtering or forensic labs with Office support.
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLexecve | Not mapped to Sentinel yet. |
linux:syslog/var/log/syslog | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (3)
- WMI Spawning Suspicious Child Process (Living off the Land)
- Potential Maldoc Execution Chain Observed
- Proxy VBScript Execution via CurrentVersion Registry Key
How the Content Hub rules for T1059.005 are built: their tables, filters, joins, schedules and windows.
In Sigma rules
29 SigmaHQ community rules name it in their tags.
- Potential QBot Activity
- Adwind RAT / JRAT
- Adwind RAT / JRAT File Artifact
- Csc.EXE Execution Form Potentially Suspicious Parent
- Cscript/Wscript Uncommon Script Extension Execution
- HTML Help HH.EXE Suspicious Child Process
- HackTool - CACTUSTORCH Remote Thread Creation
- HackTool - Koadic Execution
- Potential APT10 Cloud Hopper Activity
- Potential Remote SquiblyTwo Technique Execution
- Suspicious Child Process Of BgInfo.EXE
- Suspicious HH.EXE Execution
- Suspicious Reconnaissance Activity Via GatherNetworkInfo.VBS
- Suspicious Scripting in a WMI Consumer
- WScript or CScript Dropper - File
- Windows Shell/Scripting Processes Spawning Suspicious Programs
- AppLocker Prevented Application or Script from Running
- Potential Dropper Script Execution Via WScript/CScript/MSHTA
- Potential Reconnaissance Activity Via GatherNetworkInfo.VBS
- Uncommon Child Process Of BgInfo.EXE
- WSF/JSE/JS/VBA/VBE File Execution Via Cscript/Wscript
- XSL Script Execution Via WMIC.EXE
- Axios NPM Compromise Indicators - Windows
- HackTool - NetExec File Indicators
- AppLocker Application Would Have Been Blocked
Mitigations
M1021Restrict Web-Based ContentM1038Execution PreventionM1040Behavior Prevention on EndpointM1042Disable or Remove Feature or ProgramM1049Antivirus/Antimalware
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.