自动化接入 · API / MCP EN

技术说明 · T1059.007

JavaScript

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. JScript is the Microsoft implementation of the same scripting standard. JScript is interpreted via the Windows Script engine and thus integrated with many components of Windows such as the Component Object Model and Internet Explorer HTML Application (HTA) pages. JavaScript for Automation (JXA) is a macOS scripting language based on JavaScript, included as part of Apple’s Open Scripting Architecture (OSA), that was introduced in OSX 10.10. Apple’s OSA provides scripting capabilities to control applications, interface with the operating system, and bridge access into the rest of Apple’s internal APIs. As of OSX 10.10, OSA only supports two languages, JXA and AppleScript. Scripts can be executed via the command line utility <code>osascript</code>, they can be compiled into applications or script files via <code>osacompile</code>, and they can be compiled and executed in memory of other programs by leveraging the OSAKit Framework. Adversaries may abuse various implementations of JavaScript to execute various behaviors. Common uses include hosting malicious scripts on websites as part of a Drive-by Compromise or downloading and executing these script files as secondary payloads. Since these payloads are text-based, it is also very common for adversaries to obfuscate their content as part of Obfuscated Files or Information.

ATT&CK T1059.007 platforms — 状态 有效 版本 20.1

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.1 JScript is the Microsoft implementation of the same scripting standard. JScript is interpreted via the Windows Script engine and thus integrated with many components of Windows such as the Component Object Model and Internet Explorer HTML Application (HTA) pages.234 JavaScript for Automation (JXA) is a macOS scripting language based on JavaScript, included as part of Apple’s Open Scripting Architecture (OSA), that was introduced in OSX 10.10. Apple’s OSA provides scripting capabilities to control applications, interface with the operating system, and bridge access into the rest of Apple’s internal APIs. As of OSX 10.10, OSA only supports two languages, JXA and AppleScript. Scripts can be executed via the command line utility <code>osascript</code>, they can be compiled into applications or script files via <code>osacompile</code>, and they can be compiled and executed in memory of other programs by leveraging the OSAKit Framework.56789 Adversaries may abuse various implementations of JavaScript to execute various behaviors. Common uses include hosting malicious scripts on websites as part of a Drive-by Compromise or downloading and executing these script files as secondary payloads. Since these payloads are text-based, it is also very common for adversaries to obfuscate their content as part of Obfuscated Files or Information.

  1. NodeJS
  2. JScrip May 2018
  3. Microsoft JScript 2007
  4. Microsoft Windows Scripts
  5. Apple About Mac Scripting 2016
  6. SpecterOps JXA 2020
  7. SentinelOne macOS Red Team
  8. Red Canary Silver Sparrow Feb2021
  9. MDSec macOS JXA and VSCode

使用该技术的组织

组织名称国家
grp_g1037TA577—
grp_g0021Molerats—
grp_g1038TA578—
grp_g0120Evilnum—
grp_g1031Saint BearRussia
grp_g1035Winter Vivern—
grp_g1056TeamPCP—
grp_g0129Mustang PandaChina
grp_g0119Indrik SpiderRussia
grp_g0037FIN6—
grp_g0077LeafminerIran
grp_g0080Cobalt Group—
grp_g1057ShinyHunters—
grp_g0126Higaisa—
grp_g1019MoustachedBouncer—
grp_g1052Contagious Interview—
grp_g0069MuddyWater—
grp_g1033Star Blizzard—
grp_g0082APT38DPRK
grp_g0091Silence—
grp_g1059NIMBUS MANTICORE—
grp_g0046FIN7—
grp_g0010TurlaRussia
grp_g0099APT-C-36—
grp_g0092TA505—
grp_g0094KimsukyDPRK
grp_g0140LazyScripter—
grp_g1006Earth LuscaChina
grp_g0121SidewinderIndia
grp_g0050APT32Vietnam

断言

尚无指向该技术的公开断言。

记录自动入库·未人工复核;置信度与有效期按引用读取。