T1059.004 - Unix Shell
Sub-technique
Tattiche:
Execution
Execution
Piattaforme:
ESXi Linux macOS Network Devices
ESXi Linux macOS Network Devices
Rilevamento:
Not specified
Not specified
Description:
Adversaries may abuse Unix shell commands and scripts for execution. Unix shells are the primary command prompt on Linux, macOS, and ESXi systems, though many variations of the Unix shell exist (e.g. sh, ash, bash, zsh, etc.) depending on the specific OS or distribution.(Citation: DieNet Bash)(Citation: Apple ZShell) Unix shells can control every aspect of a system, with certain commands requiring elevated privileges.
Unix shells also support scripts that enable sequential execution of commands as well as other typical programming operations such as conditionals and loops. Common uses of shell scripts include long or repetitive tasks, or the need to run the same set of commands on multiple systems.
Adversaries may abuse Unix shells to execute various commands or payloads. Interactive shells may be accessed through command and control channels or during lateral movement such as with [SSH](https://attack.mitre.org/techniques/T1021/004). Adversaries may also leverage shell scripts to deliver and execute multiple commands on victims or as part of payloads used for persistence.
Some systems, such as embedded devices, lightweight Linux distributions, and ESXi servers, may leverage stripped-down Unix shells via Busybox, a small executable that contains a variety of tools, including a simple shell.
Unix shells also support scripts that enable sequential execution of commands as well as other typical programming operations such as conditionals and loops. Common uses of shell scripts include long or repetitive tasks, or the need to run the same set of commands on multiple systems.
Adversaries may abuse Unix shells to execute various commands or payloads. Interactive shells may be accessed through command and control channels or during lateral movement such as with [SSH](https://attack.mitre.org/techniques/T1021/004). Adversaries may also leverage shell scripts to deliver and execute multiple commands on victims or as part of payloads used for persistence.
Some systems, such as embedded devices, lightweight Linux distributions, and ESXi servers, may leverage stripped-down Unix shells via Busybox, a small executable that contains a variety of tools, including a simple shell.
Usato da Attori (10)
Malware (20)
COATHANGER other
WindTail other
Exaramel for Linux other
CASTLETAP other
NETWIRE other
J-magic other
Gomir other
BOLDMOVE other
Turian other
Hildegard other
Cuckoo Stealer other
Skidmap other
REPTILE other
Doki other
Fysbis other
Kazuar other
Green Lambert other
SnappyTCP other
Chaos other
Anchor other
Metadata
| MITRE ID: | T1059.004 |
| STIX ID: | attack-pattern--a9d4b653-6915-... |
| Piattaforme: | ESXi, Linux, macOS, Network Devices |
| Created: | 13/01/2026 17:48 |
| Updated: | 06/03/2026 16:00 |