ATT&CK coverage › Technique

Command and Scripting Interpreter: JavaScript T1059.007

Adversaries may abuse various implementations of JavaScript for execution. JavaScript (JS) is a platform-independent scripting language (compiled just-in-time at runtime) commonly associated with scripts in webpages, though JS can be executed in runtime environments outside the browser.

Events covered

9 catalog events are tagged with this technique by at least one rule.

ProviderEvent IDTitle
Sysmon1Process creation
Sysmon7Image loaded
Sysmon8CreateRemoteThread
Sysmon11FileCreate
Security-Auditing4688A new process has been created.
AppLocker8004FilePathBuffer was prevented from running.
AppLocker8007FilePathBuffer was prevented from running.
AppLocker8022PackageBuffer was prevented from running.
AppLocker8025PackageBuffer was prevented from running.

Authoring guide

Patterns shared across the 20 rules above: which fields they filter on, what specific values they look for, and what they exclude. Field names are normalized across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (12 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
Image17ends_with 15, in 2\cscript.exe, \wscript.exe, \wmic.exe, \node.exe, "*\\wscript.exe"
CommandLine11match 11.gif, \AppData\Local\Temp\, .dat, .doc, chcp
OriginalFileName9eq 9node.exe, wmic.exe, csc.exe, wscript.exe, cscript.exe
TargetFilename3match 2, ends_with 1, starts_with 1.vbs, .exe, \Retrive, :\Users\, \deno\remote\https\
ParentImage3ends_with 3, starts_with 1, eq 1\excel.exe, \onenote.exe, C:\Windows\System32\sdiagnhost.exe, \hh.exe, \node.exe
Product2eq 2Node.js
Hashes2match 2IMPHASH=16A48C3CABF98A9DC1BF02C07FE1EA00, IMPHASH=1B1A3F43BF37B5BFE60751F2EE2F326E, IMPHASH=9D87C9D67CE724033C0B40CC4CA1B206
ImageLoaded2in 2"*\\adsldpc.dll", "*\\Wldap32.dll", "*\\adsldp.dll", "*\\wbemcomn.dll", "*\\wbemdisp.dll"
EventID2eq 27
ParentCommandLine1match 1, regex_match 1FromBase64String, \Contacts\, :\Windows\Temp\
TargetImage1match 1\SysWOW64\
StartModule1is_null 1

Top indicator values (180 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique.

FieldKindValueRules (here)Corpus reach
Imageends_with\cscript.exe464
Imageends_with\wscript.exe464
Imageends_with\wmic.exe337
CommandLinematch.jpg27
CommandLinematch.xml25
CommandLinematch.txt27
CommandLinematch.doc24
CommandLinematch.csv22
CommandLinematch.gif26
CommandLinematch.xls24
CommandLinematch.png27
CommandLinematch.ppt24
Imageends_with\cmd.exe292
CommandLinematch.js26
Imageends_with\node.exe23
ProducteqNode.js22
OriginalFileNameeqnode.exe22
CommandLinematch\AppData\Local\Temp\216
HashesmatchIMPHASH=9D87C9D67CE724033C0B40CC4CA1B20622
HashesmatchIMPHASH=B12619881D79C3ACADF45E752A58554A22

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Sigma 18 rules

Splunk 2 rules