T1546.004 Unix Shell Configuration Modification
PersistencePrivilege Escalationon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0020 Detect Shell Configuration Modification for Persistence via Event-Triggered Execution
AN0059 Linux
Detects modification of shell startup/logout scripts such as ~/.bashrc, ~/.bash_profile, or /etc/profile, followed by anomalous process execution or network connections upon interactive or remote shell login.
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLAUDIT_SYSCALL (open, write, rename, unlink) | Not mapped to Sentinel yet. |
auditd:EXECVEexecution of unexpected binaries during user shell startup | Not mapped to Sentinel yet. |
NSM:Flowunexpected network activity initiated shortly after shell session starts | Not mapped to Sentinel yet. |
AN0060 macOS
Correlates zsh shell configuration file changes (e.g., ~/.zshrc, ~/.zlogin, /etc/zprofile) with execution of unauthorized binaries or unexpected network activity triggered on Terminal.app launch.
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:unifiedloglaunch of Terminal.app or shell with non-standard environment setup | Not mapped to Sentinel yet. |
macos:endpointsecurityES_EVENT_TYPE_NOTIFY_WRITE, targeting .zshrc, .zlogin, .zprofile | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (0)
No Content Hub rule is tagged with this technique.
In Sigma rules
1 SigmaHQ community rule name it in their tags.
Mitigations
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.