Execution · ATT&CK v20
T1059.007 Command and Scripting Interpreter: JavaScript
A Execution technique. Running the attacker’s code on a system.
- T1059.007Technique ID
- ExecutionTactic
- 2Places taught
What the attacker does
The attacker runs JavaScript or JScript code: a .js file opened by Windows Script Host, script inside an HTA or HTML file, or Node.js on a developer or server machine.
How it shows up in the logs
- wscript.exe or cscript.exe running a .js or .jse file from Downloads, a temp folder or an extracted archive.
- mshta.exe with javascript: on the command line, or node.exe starting shells and network tools.
- Network connections from the script host right after.
Questions to ask in triage
- Where did the script file come from (mail, browser download, package)?
- What did it start or download?
- Can .js files be set to open in a text editor by policy?
Read T1059.007 on attack.mitre.org
A sub-technique of T1059.
Where you meet it in CyberSim
In the hands-on labs
A simulated machine in your browser.
In the cases
Part of the answer in 1 investigation, in these learning paths:
Which case is not said here: finding it is the case.
More Execution techniques
- T1047 Windows Management Instrumentation
- T1059.001 Command and Scripting Interpreter: PowerShell
- T1059.004 Command and Scripting Interpreter: Unix Shell
- T1072 Software Deployment Tools
- T1204.002 User Execution: Malicious File
- T1204.004 User Execution: Malicious Copy and Paste
- T1204.005 User Execution: Malicious Library
- T1569.002 System Services: Service Execution
- T1698 Indirect Prompt Injection
Source: MITRE ATT&CK T1059.007, tactic TA0002.