Threaticon
Toggle sidebar

You're viewing a limited, public preview. Log in for full access.

Log in User Guide
Log in Get started
Data Components DC0029 — Script Execution
DC0029

Script Execution

35 analytic(s) · 29 detection strategy(ies)

Description

The execution of a text file that contains code via the interpreter.

Referenced in Analytics

35
AN0029 Analytic 0029 DET0010

Detects macros or VBA triggers set to execute on document open or close events, often correlating with embedded payloads or C2 traffic shortly after execution.

m365:office m365:office
AN0173 Analytic 0173 DET0063

Detects native Python or framework-based execution from Terminal, embedded apps, or launchd jobs. Flags network calls, persistence writes, or system enumeration after Python launch.

macos:unifiedlog macos:osquery macos:syslog
AN0174 Analytic 0174 DET0063

Detects Python execution from non-standard user contexts or cron jobs that invoke outbound traffic, access sensitive files, or perform process injection (e.g., ptrace or /proc memory maps).

auditd:SYSCALL linux:syslog
AN0199 Analytic 0199 DET0072

Detects adversary use of logon script configuration via Group Policy or user object attributes, followed by script execution post-authentication. Behavior includes modification of script path or file, then process execution under user logon context.

WinEventLog:Security WinEventLog:System WinEventLog:Security WinEventLog:Security
AN0210 Analytic 0210 DET0076

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.

macos:unifiedlog macos:osquery macos:syslog
AN0211 Analytic 0211 DET0076

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.

auditd:SYSCALL linux:syslog
AN0231 Analytic 0231 DET0082

Modification of user desktop backgrounds, login screen messages, or system banners by adversaries using admin privileges or script execution. May coincide with tampering in /Library/Desktop Pictures/ or use of AppleScript.

macos:unifiedlog macos:unifiedlog
AN0281 Analytic 0281 DET0101

Detects embedded Lua interpreter execution or script injection on devices supporting Lua scripting (e.g., routers, firewalls), often seen in modified firmware or abused APIs.

networkdevice:runtime
AN0313 Analytic 0313 DET0112

Monitoring for modification and execution of login hook scripts or LaunchAgents/LaunchDaemons used for persistence.

macos:unifiedlog fs:fsusage macos:osquery
AN0314 Analytic 0314 DET0112

Detection of modification to ESXi rc.local.d or rc scripts that are used to execute on boot.

esxi:vmkernel esxi:hostd
AN0340 Analytic 0340 DET0121

Creation or modification of Login Items using AppleScript or Service Management Framework. Detection focuses on file creation/modification of `backgrounditems.btm`, new executables in `Contents/Library/LoginItems/`, use of `SMLoginItemSetEnabled` API, or suspicious processes triggered post-login without user interaction. Behavioral pivot includes anomalous AppleEvents, suspicious parent-child process pairs, and login-triggered execution chains.

macos:unifiedlog macos:unifiedlog macos:unifiedlog macos:unifiedlog
AN0345 Analytic 0345 DET0124

Process invokes a standard encoder (e.g., PowerShell -enc, certutil -encode, base64 via .NET/Invoke-Expression) or emits long Base64/hex literals → shortly followed by outbound network egress with high bytes_out:bytes_in ratio or HTTP headers/payloads containing Base64/MIME blocks.

WinEventLog:Security WinEventLog:Sysmon WinEventLog:PowerShell M365Defender:DeviceNetworkEvents
AN0511 Analytic 0511 DET0181

Creation or modification of stored procedures invoking xp_cmdshell or CLR assemblies for command execution and persistence.

WinEventLog:Application WinEventLog:Sysmon WinEventLog:Application
AN0512 Analytic 0512 DET0181

SQL stored procedures that invoke OS-level commands via `xp_cmdshell` equivalent or via UDF (User-Defined Functions) mechanisms.

auditd:SYSCALL ApplicationLogs:SQL
AN0533 Analytic 0533 DET0186

Use of pbpaste, AppleScript, or third-party automation frameworks (e.g., Automator) to collect clipboard or file content in bursts. Observable via unified logs.

macos:unifiedlog macos:unifiedlog
AN0543 Analytic 0543 DET0190

Detects registry and Group Policy modifications that disable or weaken MFA, suspicious PowerShell usage modifying MFA-related attributes, and anomalous login sessions succeeding without expected MFA challenge.

WinEventLog:Security WinEventLog:PowerShell
AN0578 Analytic 0578 DET0202

Detects interactive or scripted abuse of cmd.exe, batch files, or shell invocation chains. Focuses on parent-child relationships (e.g., cmd.exe launched from unusual parents), anomalous command-line parameters, and chaining with discovery, credential access, or lateral movement behaviors.

WinEventLog:Security WinEventLog:Sysmon EDR:scriptblock
AN0658 Analytic 0658 DET0237

Detection of modified or newly created /etc/rc.local or /etc/init.d scripts followed by suspicious execution during system startup.

auditd:SYSCALL linux:syslog
AN0733 Analytic 0733 DET0264

Detects JavaScript execution through WSH (wscript.exe, cscript.exe) or HTA (mshta.exe), particularly when spawned from Office macros, web browsers, or abnormal user paths. Correlates script execution with outbound network activity or system modification.

WinEventLog:Sysmon m365:defender WinEventLog:Sysmon
AN0734 Analytic 0734 DET0264

Detects JavaScript for Automation (JXA) via osascript or compiled scripts using OSAKit APIs. Flags execution involving system modification, inter-process scripting, or browser abuse.

macos:unifiedlog macos:osquery macos:syslog
AN0735 Analytic 0735 DET0264

Detects Node.js or JavaScript interpreter execution from web shells, cron jobs, or local users. Correlates execution with reverse shell behavior, file modifications, or abnormal outbound connections.

auditd:SYSCALL linux:syslog
AN0838 Analytic 0838 DET0300

Detect anomalous chains of memory allocation and execution inside the same process (e.g., VirtualAlloc → memcpy → VirtualProtect → CreateThread). Unlike process injection, reflective code loading does not perform cross-process memory writes — the suspicious activity occurs entirely within the process’s own PID context.

WinEventLog:Sysmon WinEventLog:Sysmon etw:Microsoft-Windows-DotNETRuntime etw:Microsoft-Antimalware-Scan-Interface WinEventLog:Sysmon
AN0927 Analytic 0927 DET0326

A process/script constructs or references a custom/alphabet translation table (e.g., 64/85/32+ arbitrary chars, XOR/base-N loops) or emits long high-entropy strings that do NOT validate as standard Base64/Hex → shortly after, the same process (or its child) generates outbound traffic with asymmetric bytes_out:bytes_in, fixed-size beacons, or protocol/header mismatches (e.g., Content-Type says JSON but body fails JSON parse / contains non-standard alphabet).

WinEventLog:Security WinEventLog:Sysmon WinEventLog:PowerShell m365:defender
AN1018 Analytic 1018 DET0357

Execution of `ping`, `vmkping`, or `curl` from shell or through automation jobs/scripts to verify Internet egress.

esxi:shell esxi:hostd
AN1034 Analytic 1034 DET0367

Correlates Group Policy updates that configure network logon scripts with subsequent remote file execution behaviors triggered by user logons to identify potential persistence or execution chains tied to adversarial manipulation of logon scripts.

WinEventLog:Security WinEventLog:Security WinEventLog:System
AN1049 Analytic 1049 DET0372

Shell scripts or binaries invoking repeated 'sleep', 'ping', or low-level syscalls (e.g., nanosleep) in short-lived execution chains with no user or system interaction. Frequently seen in malicious cron jobs or payload stagers.

auditd:SYSCALL auditd:PROCTITLE
AN1075 Analytic 1075 DET0381

Correlates file enumeration of XML files in the SYSVOL share with suspicious process execution that decodes or reads encrypted credentials embedded in Group Policy Preference files (e.g., Get-GPPPassword.ps1, gpprefdecrypt.py, Metasploit). Detects abnormal access to \DOMAIN\SYSVOL combined with XML file parsing or decryption logic.

WinEventLog:Sysmon WinEventLog:Sysmon WinEventLog:Security WinEventLog:PowerShell
AN1082 Analytic 1082 DET0384

Identifies use of sh/bash/zsh in suspicious context, such as user scripts launched from non-standard apps (e.g., Preview.app), embedded in LaunchDaemons, or executed outside Terminal.app. Looks for misuse in Automator, LaunchAgents, or NSAppleScript-executed shell.

macos:unifiedlog macos:osquery macos:syslog
AN1359 Analytic 1359 DET0493

Detects anomalous use of Mach ports, Apple Events, or XPC services for inter-process execution or code injection. Focuses on unexpected processes attempting to send privileged Apple Events (e.g., automation scripts injecting into security-sensitive apps).

macos:unifiedlog macos:osquery
AN1442 Analytic 1442 DET0521

Detects AppleScript or Objective-C usage to generate fake authentication windows (e.g., using display dialog or NSAlert) from user-launched or persistence-related processes.

macos:unifiedlog macos:osquery
AN1502 Analytic 1502 DET0545

Monitor for suspicious use of cloud-native administrative command services (e.g., AWS Systems Manager Run Command, Azure RunCommand, GCP OS Config) to execute code inside VMs. Detect anomalies such as commands/scripts executed by unexpected users, execution outside of maintenance windows, or commands initiated by service accounts not normally tied to administration. Correlate cloud control-plane activity logs with host-level execution (process creation, script execution) to validate if commands materialized inside the guest OS.

AWS:CloudTrail azure:activity azure:vmguest
AN1535 Analytic 1535 DET0556

MSBuild.exe is invoked outside expected developer/build contexts or with anomalous arguments (e.g., non-canonical paths, remote shares, Base64/obfuscated property values). Within a short window, it (a) spawns high-risk LOLBins/script interpreters, (b) writes new PE/DLL/script artifacts into user-writable paths and executes them, (c) loads unsigned/user-writable modules, (d) performs memory injection/thread creation into other processes, and/or (e) initiates outbound network connections.

WinEventLog:Security WinEventLog:Sysmon WinEventLog:Sysmon WinEventLog:Sysmon WinEventLog:Sysmon WinEventLog:Sysmon WinEventLog:Microsoft-Windows-CodeIntegrity/Operational EDR:AMSI
AN1569 Analytic 1569 DET0568

Detects abnormal HID device enumeration via I/O Registry (ioreg -p IOUSB) and keystroke injection targeting AppleScript, osascript, or PowerShell equivalents. Defender correlates new USB device connections with rapid script execution.

macos:unifiedlog macos:unifiedlog
AN1619 Analytic 1619 DET0587

Account discovery via VBA macros, COM objects, or embedded scripting.

m365:unified
AN2063 Analytic 2063 DET0920

Detection identifies execution of scripts or files that appear visually benign (low printable character ratio) but result in runtime decoding, dynamic evaluation, and subsequent process or network activity. Correlation links script execution with abnormal Unicode density and follow-on behavior such as child process creation or outbound connections.

WinEventLog:Sysmon WinEventLog:Sysmon WinEventLog:Security WinEventLog:PowerShell WinEventLog:Sysmon WinEventLog:Sysmon

Detection Strategies

29
DET0010 Behavioral Detection of Event Triggered Execution Across Platforms DET0063 Cross-Platform Behavioral Detection of Python Execution DET0072 Detect Logon Script Modifications and Execution DET0076 Behavioral Detection of Visual Basic Execution (VBS/VBA/VBScript) DET0082 Internal Website and System Content Defacement via UI or Messaging Modifications DET0101 Detection Strategy for Lua Scripting Abuse DET0112 Boot or Logon Initialization Scripts Detection Strategy DET0121 Detection Strategy for T1547.015 – Login Items on macOS DET0124 Behavior-chain detection for T1132.001 Data Encoding: Standard Encoding (Base64/Hex/MIME) across Windows, Linux, macOS, ESXi DET0181 Detection Strategy for SQL Stored Procedures Abuse via T1505.001 DET0186 Automated File and API Collection Detection Across Platforms DET0190 Detect MFA Modification or Disabling Across Platforms DET0202 Behavioral Detection of Windows Command Shell Execution DET0237 Detection Strategy for Boot or Logon Initialization Scripts: RC Scripts DET0264 Cross-Platform Detection of JavaScript Execution Abuse DET0300 Detection Strategy for Reflective Code Loading DET0326 Behavior-chain detection for T1132.002 Data Encoding: Non-Standard Encoding across Windows, Linux, macOS, ESXi DET0357 Behavioral Detection of Internet Connection Discovery DET0367 Detect Network Logon Script Abuse via Multi-Event Correlation on Windows DET0372 Multi-Platform Detection Strategy for T1678 - Delay Execution DET0381 Detect Access and Decryption of Group Policy Preference (GPP) Credentials in SYSVOL DET0384 Behavioral Detection of Unix Shell Execution DET0493 Detect Abuse of Inter-Process Communication (T1559) DET0521 Behavioral Detection of Spoofed GUI Credential Prompts DET0545 Detection Strategy for Cloud Administration Command DET0556 Behavior-chain detection strategy for T1127.001 Trusted Developer Utilities Proxy Execution: MSBuild (Windows) DET0568 Detection Strategy for Input Injection DET0587 Enumeration of User or Account Information Across Platforms DET0920 Detection Strategy for Invisible Unicode

Details

MITRE ID
DC0029
STIX ID
x-mitre-data-component--9f387817-df83-432a-b56b-a8fb7f71eedd
Analytics
35
Detection Strategies
29
Leaving Threaticon

This link opens an external site that isn't part of the platform.