T1059: Command and Scripting Interpreter
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.[1][2][3]
Analyst context for executives and security teams
Command and Scripting Interpreter is a high-value execution behavior because it represents the normal tools administrators and platforms use to run work: shells, PowerShell, Python, JavaScript, Visual Basic, cloud APIs, network device CLIs, hypervisor CLIs, and container CLIs/APIs. For leaders, the issue is not that these tools exist; it is whether the organization can distinguish approved administration and automation from suspicious execution across endpoints, cloud, identity, network devices, ESXi, SaaS, Office, and containers.
Executive priority
Treat T1059 as a coverage and resilience question: do critical systems have logging, least privilege, execution controls, and incident response procedures for interpreter abuse? Because this technique spans many platforms, gaps often appear outside traditional endpoint monitoring, especially in cloud APIs, network devices, hypervisors, and containers. Executives should ask for evidence that command execution is logged, reviewed, and constrained for privileged users and administrative interfaces.
Technical view
ATT&CK provides no official detection text for this parent technique, but the relationship to DET0516 indicates behavioral detection of command and scripting interpreter abuse is relevant. SOC and detection teams should validate coverage by sub-technique and platform: PowerShell and Windows command shell on Windows; Unix shell on Linux, macOS, ESXi, and network devices; AppleScript on macOS; Python, JavaScript, Visual Basic, AutoHotKey/AutoIT, and Lua where present; cloud API execution across IaaS, identity provider, Office Suite, and SaaS; hypervisor CLI on ESXi; and container CLI/API activity in container environments. Detection should focus on unusual interpreter execution context, remote command execution patterns, privileged use, unexpected parent/child process relationships where available, and administrative command activity inconsistent with approved operations.
Likely telemetry
- Endpoint process creation and command-line telemetry for Windows, Linux, and macOS systems
- PowerShell activity and remote command logging where PowerShell is used
- Shell history and command audit records for Unix-like systems, ESXi, and network devices
- Cloud API, cloud CLI, in-browser cloud shell, identity provider, SaaS, and Office Suite audit logs
- Container daemon/API and container CLI activity logs
Detection direction
- Map detections to the T1059 sub-techniques instead of relying on one generic rule; each interpreter and platform has different normal behavior.
- Baseline approved administrative automation so detections do not drown in legitimate scripts, cloud CLI use, configuration management, or help desk activity.
- Prioritize visibility for remote execution paths referenced by ATT&CK, including PowerShell remoting, remote services, network device command history, and remote shell execution patterns.
- Validate blind spots beyond endpoints: cloud APIs, identity provider activity, SaaS administration, containers, ESXi, and network device CLIs may not be covered by standard EDR telemetry.
- Tune for suspicious context rather than interpreter name alone: uncommon user, privileged account use, unusual host, unexpected command sequence, script execution from untrusted locations, or activity following initial access payloads.
Mitigation priorities
- Start with auditing: verify command, script, cloud API, network device, container, and hypervisor activity is recorded and periodically reviewed.
- Apply privileged account management so interpreter and CLI use requiring elevated permissions is limited, accountable, and monitored.
- Use execution prevention, application control, script blocking, and code signing where practical to reduce unauthorized script and binary execution.
- Disable or remove unnecessary interpreters, features, programs, and administrative interfaces where business use does not justify exposure.
- Limit unauthorized software installation so additional interpreters or scripting tools are not introduced without approval.
Analyst notes and limits
This object is a parent technique with many sub-techniques, so useful assessment requires environment-specific scoping. The most important defensive question is whether each platform’s native execution interfaces are governed and observable. Relationship context supports DET0516 behavioral detection and mitigations including audit, privileged account management, software restriction, execution prevention, behavior prevention, code signing, web content restriction, feature removal, and antimalware.
MITRE did not provide official detection text for T1059 in the supplied fields. This take therefore avoids asserting specific detection logic or coverage. Local platform inventory, administrative workflows, logging configuration, and retention practices are required to determine actual exposure and monitoring maturity.
Command and Scripting Interpreter
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.[1][2][3]
How security teams should use this page
Treat this object as behavior context, not an attribution claim. Validate the related groups, software, data sources, and mitigations against official ATT&CK relationships and your own telemetry before making control-coverage decisions.
Related techniques
This mirrors the MITRE pattern of making group, software, campaign, and technique relationships scannable. Relationship notes come from mirrored ATT&CK relationship text when available.
| Domain | ID | Name | Relationship / procedure |
|---|---|---|---|
| Enterprise | T1059.005 | Visual Basic Sub-technique | Visual Basic subtechnique of this object. |
| Enterprise | T1059.002 | AppleScript Sub-technique | AppleScript subtechnique of this object. |
| Enterprise | T1059.003 | Windows Command Shell Sub-technique | Windows Command Shell subtechnique of this object. |
| Enterprise | T1059.013 | Container CLI/API Sub-technique | Container CLI/API subtechnique of this object. |
| Enterprise | T1059.004 | Unix Shell Sub-technique | Unix Shell subtechnique of this object. |
| Enterprise | T1059.010 | AutoHotKey & AutoIT Sub-technique | AutoHotKey & AutoIT subtechnique of this object. |
| Enterprise | T1059.008 | Network Device CLI Sub-technique | Network Device CLI subtechnique of this object. |
| Enterprise | T1059.012 | Hypervisor CLI Sub-technique | Hypervisor CLI subtechnique of this object. |
| Enterprise | T1059.006 | Python Sub-technique | Python subtechnique of this object. |
| Enterprise | T1059.001 | PowerShell Sub-technique | PowerShell subtechnique of this object. |
| Enterprise | T1059.009 | Cloud API Sub-technique | Cloud API subtechnique of this object. |
| Enterprise | T1059.011 | Lua Sub-technique | Lua subtechnique of this object. |
| Enterprise | T1059.007 | JavaScript Sub-technique | JavaScript subtechnique of this object. |
Groups, software, and campaigns
G0117: Fox Kitten
Fox Kitten is threat actor with a suspected nexus to the Iranian government that has been active since at least 2017 against entities in the Middle East, North Africa, Europe, Australia, and North America. Fox Kitten has targeted multiple industrial verticals including oil and gas, technology, government, defense, healthcare, manufacturing, and engineering.[1][2][3][4]
G0038: Stealth Falcon
Stealth Falcon is a threat group that has conducted targeted spyware attacks against Emirati journalists, activists, and dissidents since at least 2012. Circumstantial evidence suggests there could be a link between this group and the United Arab Emirates (UAE) government, but that has not been confirmed. [1]
G1035: Winter Vivern
Winter Vivern is a group linked to Russian and Belorussian interests active since at least 2020 targeting various European government and NGO entities, along with sporadic targeting of Indian and US victims. The group leverages a combination of document-based phishing activity and server-side exploitation for initial access, leveraging adversary-controlled and -created infrastructure for follow-on command and control.[1][2][3][4][5]
G0046: FIN7
FIN7 is a financially-motivated threat group that has been active since 2013. FIN7 has targeted the retail, restaurant, hospitality, software, consulting, financial services, medical equipment, cloud services, media, food and beverage, transportation, pharmaceutical, and utilities industries in the United States. A portion of FIN7 was operated out of a front company called Combi Security and often used point-of-sale malware for targeting efforts. Since 2020, FIN7 shifted operations to big game hunting (BGH), including use of REvil ransomware and their own Ransomware-as-a-Service (RaaS), Darkside. FIN7 may be linked to the Carbanak Group, but multiple threat groups have been observed using Carbanak, leading these groups to be tracked separately.[1][2][3][4][5][6][7]
G0037: FIN6
G0053: FIN5
FIN5 is a financially motivated threat group that has targeted personally identifiable information and payment card information. The group has been active since at least 2008 and has targeted the restaurant, gaming, and hotel industries. The group is made up of actors who likely speak Russian. [1] [2] [3]
G0073: APT19
APT19 is a Chinese-based threat group that has targeted a variety of industries, including defense, finance, energy, pharmaceutical, telecommunications, high tech, education, manufacturing, and legal services. In 2017, a phishing campaign was used to target seven law and investment firms. [1] Some analysts track APT19 and Deep Panda as the same group, but it is unclear from open source information if the groups are the same. [2] [3] [4]
G0050: APT32
APT32 is a suspected Vietnam-based threat group that has been active since at least 2014. The group has targeted multiple private sector industries as well as foreign governments, dissidents, and journalists with a strong focus on Southeast Asian countries like Vietnam, the Philippines, Laos, and Cambodia. They have extensively used strategic web compromises to compromise victims.[1][2][3]
G0035: Dragonfly
Dragonfly is a cyber espionage group that has been attributed to Russia's Federal Security Service (FSB) Center 16.[1][2] Active since at least 2010, Dragonfly has targeted defense and aviation companies, government entities, companies related to industrial control systems, and critical infrastructure sectors worldwide through supply chain, spearphishing, and drive-by compromise attacks.[3][4][5][6][7][8][9]
G1031: Saint Bear
Saint Bear is a Russian-nexus threat actor active since early 2021, primarily targeting entities in Ukraine and Georgia. The group is notable for a specific remote access tool, Saint Bot, and information stealer, OutSteel in campaigns. Saint Bear typically relies on phishing or web staging of malicious documents and related file types for initial access, spoofing government or related entities.[1][2] Saint Bear has previously been confused with Ember Bear operations, but analysis of behaviors, tools, and targeting indicates these are distinct clusters.
G0107: Whitefly
Whitefly is a cyber espionage group that has been operating since at least 2017. The group has targeted organizations based mostly in Singapore across a wide variety of sectors, and is primarily interested in stealing large amounts of sensitive information. The group has been linked to an attack against Singapore’s largest public health organization, SingHealth.[1]
G0087: APT39
APT39 is one of several names for cyber espionage activity conducted by the Iranian Ministry of Intelligence and Security (MOIS) through the front company Rana Intelligence Computing since at least 2014. APT39 has primarily targeted the travel, hospitality, academic, and telecommunications industries in Iran and across Asia, Africa, Europe, and North America to track individuals and entities considered to be a threat by the MOIS.[1][2][3][4][5]
S0334: DarkComet
S1227: StarProxy
StarProxy is custom malware used by Mustang Panda as a post-compromise tool, to enable proxying of traffic between the infected machine and other machines on the same network. [1]
S0023: CHOPSTICK
CHOPSTICK is a malware family of modular backdoors used by APT28. It has been used since at least 2012 and is usually dropped on victims as second-stage malware, though it has been used as first-stage malware in several cases. It has both Windows and Linux variants. [1] [2] [3] [4] It is tracked separately from the X-Agent for Android.
S0695: Donut
S0618: FIVEHANDS
S0167: Matryoshka
Matryoshka is a malware framework used by CopyKittens that consists of a dropper, loader, and RAT. It has multiple versions; v1 was seen in the wild from July 2016 until January 2017. v2 has fewer commands and other minor differences. [1] [2]
S0434: Imminent Monitor
Imminent Monitor was a commodity remote access tool (RAT) offered for sale from 2012 until 2019, when an operation was conducted to take down the Imminent Monitor infrastructure. Various cracked versions and variations of this RAT are still in circulation.[1]
S0487: Kessel
S1151: ZeroCleare
S0032: gh0st RAT
S0598: P.A.S. Webshell
P.A.S. Webshell is a publicly available multifunctional PHP webshell in use since at least 2016 that provides remote access and execution on target web servers.[1]
S0219: WINERACK
C0005: Operation Spalax
Operation Spalax was a campaign that primarily targeted Colombian government organizations and private companies, particularly those associated with the energy and metallurgical industries. The Operation Spalax threat actors distributed commodity malware and tools using generic phishing topics related to COVID-19, banking, and law enforcement action. Security researchers noted indicators of compromise and some infrastructure overlaps with other campaigns dating back to April 2018, including at least one separately attributed to APT-C-36, however identified enough differences to report this as separate, unattributed activity.[1]
C0029: Cutting Edge
Cutting Edge was a campaign conducted by suspected China-nexus espionage actors, variously identified as UNC5221/UTA0178 and UNC5325, that began as early as December 2023 with the exploitation of zero-day vulnerabilities in Ivanti Connect Secure (previously Pulse Secure) VPN appliances. Cutting Edge targeted the U.S. defense industrial base and multiple sectors globally including telecommunications, financial, aerospace, and technology. Cutting Edge featured the use of defense evasion and living-off-the-land (LoTL) techniques along with the deployment of web shells and other custom malware.[1][2][3][4][5]
C0053: FLORAHOX Activity
FLORAHOX Activity is conducted using a hybrid operational relay box (ORB) network, which combines two types of infrastructure: compromised devices and leased Virtual Private Servers (VPS). The compromised devices include end-of-life routers and IoT devices, while VPS space is commercially leased and managed by ORB network administrators. This hybrid ORB network allows adversaries to proxy and obscure malicious traffic, making the source of the traffic more difficult to trace.
The FLORAHOX ORB network has been leveraged by multiple cyber threat actors, including China-nexus actors like ZIRCONIUM. These adversaries conduct espionage campaigns through FLORAHOX Activity, relying on the ORB network's ability to funnel traffic through Tor nodes, provisioned VPS servers, and compromised routers to obfuscate malicious traffic.[1]
C0046: ArcaneDoor
ArcaneDoor is a campaign targeting networking devices from Cisco and other vendors between July 2023 and April 2024, primarily focused on government and critical infrastructure networks. ArcaneDoor is associated with the deployment of the custom backdoors Line Runner and Line Dancer. ArcaneDoor is attributed to a group referred to as UAT4356 or STORM-1849, and is assessed to be a state-sponsored campaign.[1][2]
All related ATT&CK context
Mitigation direction
Object version and sync metadata
The fields below describe the current mirrored snapshot. When Glexia retains multiple ATT&CK source imports, you can open the table to compare the same object across releases (hashes and MITRE timestamps). For MITRE’s own release notes and roadmap, see ATT&CK resources — Updates .
Imported snapshots across ATT&CK releases (1)
| Release | Bundle imported | Object version | Modified | Status | Raw hash |
|---|---|---|---|---|---|
| 19.1 | 2.7 | Current bundle | 8a29e36c9ad4… |
Mirrored ATT&CK source object
The raw object is retained through the mirrored ATT&CK source bundle and object hash. The raw endpoint returns the exact object from the mirrored bundle when available.
External references and citations
MITRE external references are preserved separately from Glexia analysis so citations remain traceable to their original source records.
-
[1]
Powershell Remote Commands
Microsoft. (2020, August 21). Running Remote Commands. Retrieved July 26, 2021.
Open source URL -
[2]
Cisco IOS Software Integrity Assurance - Command History
Cisco. (n.d.). Cisco IOS Software Integrity Assurance - Command History. Retrieved October 21, 2020.
Open source URL -
[3]
Remote Shell Execution in Python
Abdou Rockikz. (2020, July). How to Execute Shell Commands in a Remote Machine in Python. Retrieved July 26, 2021.
Open source URL -
[4]
mitre-attack T1059Open source URL
Source: MITRE ATT&CK®. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. MITRE ATT&CK and ATT&CK are registered trademarks of The MITRE Corporation. Glexia is not affiliated with or endorsed by MITRE.