Gold Open Source
ExplorePackagesVulnerabilitiesCWEsMCP ServersScan
Login
Gold Open Source

The authoritative source for production-ready open-source components. Every package, container image, AI model, and MCP server undergoes rigorous verification for security, malware, and license compliance.

Explore Gold

  • Explore Everything
  • Packages
  • Gold Certified Packages
  • Container Images
  • AI Models
  • MCP Servers
  • Agent Skills
  • Chip Manufacturers

Security Data & Tools

  • Scan Your Dependencies
  • Trending Threats
  • Threat RSS Feeds
  • CVE Database
  • Actively Exploited (KEV)
  • SGZ Zero-Days
  • CWE Index
  • MITRE ATT&CK
  • Malicious Packages
  • Security Glossary
  • Supply-Chain Report
  • Developers (API & Badge)
  • Chrome Extension
  • Credits & Data Sources

Products

  • The Platform
  • ESSCM
  • Portal
  • TPRM
  • OSM
  • Cowork
  • Code / Runner
  • Guard

Use Cases

  • Know Your Software
  • Auto-Fix Vulnerabilities
  • Asset Discovery
  • AI Governance
  • MCP Server Security
  • Supply Chain Compliance
  • Zero-Day Discovery
  • All Use Cases

Company

  • About
  • Pricing
  • Blog
  • Documentation
  • Safeguard Academy
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Gold Open Source. All rights reserved.

Built with care bySafeguard
Home/ATT&CK/T1059/T1059.004
MITRE ATT&CK Sub-Technique

T1059.004: Unix Shell

ShareXLinkedInRedditHN

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.

Tactics
Execution
Platforms
ESXi, Linux, macOS, Network Devices

▪Parent technique

T1059: Command and Scripting Interpreter

▪Mitigations (1)

M1038Execution Prevention

Prevent the execution of unauthorized or malicious code on systems by implementing application control, script blocking, and other execution prevention mechanisms. This ensures that only trusted and authorized code is executed, reducing the risk of malware and unauthorized actions. This mitigation can be implemented through the following measures: Application Control: - Use Case: Use tools like AppLocker or Windows Defender Application Control (WDAC) to create whitelists of authorized applications and block unauthorized ones. On Linux, use tools like SELinux or AppArmor to define mandatory access control policies for application execution. - Implementation: Allow only digitally signed or pre-approved applications to execute on servers and endpoints. (e.g., `New-AppLockerPolicy -PolicyType Enforced -FilePath "C:\Policies\AppLocker.xml"`) Script Blocking: - Use Case: Use script control mechanisms to block unauthorized execution of scripts, such as PowerShell or JavaScript. Web Browsers: Use browser extensions or settings to block JavaScript execution from untrusted sources. - Implementation: Configure PowerShell to enforce Constrained Language Mode for non-administrator users. (e.g., `Set-ExecutionPolicy AllSigned`) Executable Blocking: - Use Case: Prevent execution of binaries from suspicious locations, such as `%TEMP%` or `%APPDATA%` directories. - Implementation: Block execution of `.exe`, `.bat`, or `.ps1` files from user-writable directories. Dynamic Analysis Prevention: - Use Case: Use behavior-based execution prevention tools to identify and block malicious activity in real time. - Implemenation: Employ EDR solutions that analyze runtime behavior and block suspicious code execution.

▪Used by groups (10)

G0096APT41G0106RockeG0139TeamTNTG0143Aquatic PandaG1015Scattered SpiderG1017Volt TyphoonG1041Sea TurtleG1047Velvet AntG1048UNC3886G1052Contagious Interview

▪Software using this technique (47)

S0021DerusbimalwareS0077CallMemalwareS0198NETWIREmalwareS0220ChaosmalwareS0265KazuarmalwareS0279ProtonmalwareS0352OSX_OCEANLOTUS.DmalwareS0369CoinTickermalwareS0377EburymalwareS0401Exaramel for LinuxmalwareS0402OSX/ShlayermalwareS0410FysbismalwareS0451LoudMinermalwareS0466WindTailmalwareS0468SkidmapmalwareS0482BundloremalwareS0492CookieMinermalwareS0502DrovorubmalwareS0504AnchormalwareS0584AppleJeusmalwareS0587PenquinmalwareS0599KinsingmalwareS0600DokimalwareS0601HildegardmalwareS0641KobalosmalwareS0647TurianmalwareS0658XCSSETmalwareS0690Green LambertmalwareS1016MacMamalwareS1105COATHANGERmalwareS1107NKAbusemalwareS1108PULSECHECKmalwareS1109PACEMAKERmalwareS1114ZIPLINEmalwareS1123PITSTOPmalwareS1153Cuckoo StealermalwareS1161BPFDoormalwareS1163SnappyTCPmalwareS1184BOLDMOVEmalwareS1198GomirmalwareS1203J-magicmalwareS1217VIRTUALPITAmalwareS1219REPTILEmalwareS1222RIFLESPINEmalwareS1224CASTLETAPmalwareS9008Shai-HuludmalwareS9015BRICKSTORMmalware

▪Reference

T1059.004on MITRE ATT&CK

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation.