kevmap

TechniquesT1059.004 › AN1081

AN1081 Analytic 1081

Linux · attack.mitre.org · ATT&CK Enterprise v19.2

<p>Detects bash, sh, zsh, or BusyBox shell execution initiated via remote sessions, unauthorized users, or embedded within secondary script interpreters. Focus is on chained behavior: shell > suspicious commands > network discovery or persistence indicators.</p>
Detects
T1059.004 Unix Shell
Part of
DET0384 Behavioral Detection of Unix Shell Execution

Log sources and channels

Exactly as MITRE states them in x_mitre_log_source_references. Where a channel is vague, it is vague in the source; kevmap does not tidy it.

Log sourceChannelData component
auditd:SYSCALLexecveDC0032 Process Creation
linux:osquerysocket_eventsDC0078 Network Traffic Flow
linux:syslogauth.log / secure.logDC0067 Logon Session Creation

Mutable elements

Parameters MITRE marks as environment-specific. These are the knobs you are expected to tune; they are why an analytic is not a rule.

FieldDescription
ExecutableNameDetect variants like /bin/sh, /usr/local/bin/zsh, /bin/busybox sh.
UserContextShell used by service accounts, root, or rare accounts.
ParentProcessShell invoked by unexpected parents (e.g., curl, mail, apache2).
TimeWindowExecution outside maintenance windows or normal activity periods.
CommandLinePatternFlags use of loops, download commands, chaining (|, &&), or reverse shells.

KEV CVEs whose mapped technique this analytic detects

CVEVendor / productState
CVE-2014-6271GNU Bourne-Again Shell (Bash)Mapped
CVE-2014-7169GNU Bourne-Again Shell (Bash)Mapped
CVE-2016-10033PHP PHPMailerMapped
CVE-2019-0708Microsoft Remote Desktop ServicesMapped
CVE-2021-36380Sunhillo SureLineMapped
CVE-2022-20699Cisco Small Business RV160, RV260, RV340, and RV345 Series RoutersMapped
CVE-2022-20700Cisco Small Business RV160, RV260, RV340, and RV345 Series RoutersMapped
CVE-2023-38831RARLAB WinRARMapped
CVE-2023-39780ASUS RT-AX55 RoutersMapped
CVE-2023-44221SonicWall SMA100 AppliancesMapped
CVE-2023-46604Apache ActiveMQMapped
CVE-2024-24919Check Point Quantum Security GatewaysMapped
CVE-2024-27443Synacor Zimbra Collaboration Suite (ZCS)Mapped
CVE-2025-25257Fortinet FortiWebMapped