ATT&CK · T1059.004 · sub-technique
Unix Shell
Tactics: execution
About
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. 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. 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.
Used by actors
10 known groups
Software
47 malware/tools implement this
Corpus indicators tagged with this technique
459 indicators in the corpus carry T1059.004.
| Indicator | Type | Family | Sev | Src |
|---|---|---|---|---|
| cve-2026-3844 | cve | — | 85 | 1 |
| cve-2025-12057 | cve | — | 85 | 1 |
| cve-2025-34117 | cve | — | 85 | 1 |
| cve-2026-0740 | cve | — | 85 | 1 |
| cve-2007-5693 | cve | — | 85 | 1 |
| cve-2025-34085 | cve | — | 85 | 1 |
| cve-2020-17456 | cve | — | 85 | 1 |
| cve-2025-2492 | cve | — | 85 | 2 |
| cve-2021-25646 | cve | — | 85 | 1 |
| cve-2026-1969 | cve | — | 85 | 1 |
| cve-2025-7443 | cve | — | 85 | 1 |
| cve-2026-5815 | cve | — | 85 | 1 |
| cve-2025-34037 | cve | — | 85 | 1 |
| cve-2025-7852 | cve | — | 85 | 1 |
| cve-2014-2321 | cve | — | 85 | 1 |
| cve-2021-4045 | cve | — | 85 | 1 |
| cve-2020-22653 | cve | — | 85 | 2 |
| cve-2020-22658 | cve | — | 85 | 2 |
| cve-2017-18377 | cve | — | 85 | 1 |
| cve-2013-7471 | cve | — | 85 | 1 |
| cve-2022-47945 | cve | — | 85 | 1 |
| cve-2021-29441 | cve | — | 85 | 1 |
| 9c44bc9373377831c45dd0ac2661a28e | hash | — | 80 | 3 |
| b8eed63ab9cbdca494f26a6f66bfd4a0a693b3f0 | hash | — | 80 | 3 |
| 605169623267c4eb73693b22b811dc7a | hash | — | 80 | 1 |
| 0d1f6685b4e284f92ef25c0f9358bcdc | hash | — | 80 | 1 |
| 01e3dce00ea45829bd9f6a583004976ac63973a0 | hash | cryptojacking | 80 | 1 |
| 1fc0a876a121882ffaad6677f444cf5b | hash | — | 80 | 1 |
| 86db2530298e6335d3ecc66c2818cfbd0a6b11fcdfcb75f575b9fcce1faa00f1 | hash | — | 80 | 1 |
| 123e80a34508c4dede7cc70e76931fcc | hash | — | 80 | 3 |
Showing the top 30 by severity of 459.