kevmap

TechniquesT1059.007 › AN0734

AN0734 Analytic 0734

macOS · attack.mitre.org · ATT&CK Enterprise v19.2

<p>Detects JavaScript for Automation (JXA) via osascript or compiled scripts using OSAKit APIs. Flags execution involving system modification, inter-process scripting, or browser abuse.</p>
Detects
T1059.007 JavaScript
Part of
DET0264 Cross-Platform Detection of JavaScript Execution Abuse

Log sources and channels

Exactly as MITRE states them in x_mitre_log_source_references. Where a channel is vague, it is vague in the source; kevmap does not tidy it.

Log sourceChannelData component
macos:unifiedloglog stream with predicate 'eventMessage CONTAINS "osascript"'DC0029 Script Execution
macos:osqueryprocess_eventsDC0032 Process Creation
macos:syslog/var/log/system.logDC0064 Command Execution

Mutable elements

Parameters MITRE marks as environment-specific. These are the knobs you are expected to tune; they are why an analytic is not a rule.

FieldDescription
ScriptLocationExecution of JXA from user-controlled paths like ~/Downloads or /Volumes.
ParentProcessosascript invoked by third-party apps (VSCode, browsers, etc.).
APIInvocationUse of OSAKit API by apps not typically scripting-enabled.

KEV CVEs whose mapped technique this analytic detects

CVEVendor / productState
CVE-2013-3346Adobe Reader and AcrobatMapped
CVE-2015-5119Adobe Flash PlayerMapped
CVE-2018-4990Adobe Acrobat and ReaderMapped
CVE-2021-21148Google Chromium V8Mapped
CVE-2021-21166Google ChromiumMapped
CVE-2021-21206Google Chromium BlinkMapped
CVE-2021-30554Google Chromium WebGLMapped
CVE-2021-37975Google Chromium V8Mapped
CVE-2022-22963VMware Tanzu Spring CloudMapped
CVE-2022-24682Synacor Zimbra Collaborate Suite (ZCS)Mapped
CVE-2023-22515Atlassian Confluence Data Center and ServerMapped
CVE-2023-26360Adobe ColdFusionMapped
CVE-2023-5631Roundcube WebmailMapped
CVE-2025-34028Commvault Command CenterMapped