Command and Scripting Interpreter
Description
Adversaries may abuse command and script interpreters to execute commands, scripts, or binaries. These interfaces and languages provide ways of interacting with computer systems and are a common feature across many different platforms. Most systems come with some built-in command-line interface and scripting capabilities, for example, macOS and Linux distributions include some flavor of Unix Shell while Windows installations include the Windows Command Shell and PowerShell.
There are also cross-platform interpreters such as Python, as well as those commonly associated with client applications such as JavaScript and Visual Basic.
Adversaries may abuse these technologies in various ways as a means of executing arbitrary commands. Commands and scripts can be embedded in Initial Access payloads delivered to victims as lure documents or as secondary payloads downloaded from an existing C2. Adversaries may also execute commands through interactive terminals/shells, as well as utilize various Remote Services in order to achieve remote Execution.
- ATLAS ID
- AML.T0050
- Maturity
- RealizedUsed by real adversaries against AI systems in the wild.
- Platforms
- Enterprise
Mitigations
- AML.M0011Restrict Library Loading
Restrict library loading so command and script interpreters cannot load untrusted libraries as an execution mechanism.
Case studies that use it
- AML.CS0050OpenClaw 1-Click Remote Code Execution
- AML.CS0052LLMSmith: RCE Vulnerabilities in LLM-Integrated Applications
- AML.CS0060Cross-Site Scripting via Prompt Manipulation in Lenovo AI Chatbot
- AML.CS0061AI in the Middle: Web-Based AI Services as C2 Relays
- AML.CS0062RCE Vulnerability in Semantic Kernel Search Plugin
- AML.CS0068Autonomous OpenAI Evaluation Agents Compromise Hugging Face Infrastructure
Related ATT&CK technique
ATLAS adapts this technique from MITRE ATT&CK Enterprise.
Marked techniques are also explained, with detection notes and certification relevance, on our interactive ATT&CK map.
Across MITRE's defensive frameworks
Linked through the 1 ATT&CK technique above.
Counter with D3FEND
Defensive techniques MITRE D3FEND maps to the same ATT&CK techniques.
- D3-DADynamic Analysis1 shared
- D3-EFAEmulated File Analysis1 shared
- D3-EALExecutable Allowlisting1 shared
- D3-EDLExecutable Denylisting1 shared
- D3-CFContent Filtering1 shared
- D3-CMContent Modification1 shared
- D3-DFDecoy File1 shared
- D3-FAFile Analysis1 shared
- D3-FEFile Encryption1 shared
- D3-FEVFile Eviction1 shared
- D3-FIMFile Integrity Monitoring1 shared
- D3-LFPLocal File Permissions1 shared
Detect with CAR
MITRE CAR analytics that cover the same ATT&CK techniques.
- CAR-2013-02-003Processes Spawning cmd.exe1 shared
- CAR-2014-04-003Powershell Execution1 shared
- CAR-2014-11-002Outlier Parents of Cmd1 shared
- CAR-2021-01-002Unusually Long Command Line Strings1 shared
- CAR-2014-11-004Remote PowerShell Sessions1 shared
- CAR-2013-04-002Quick execution of a series of suspicious commands1 shared