VeriKQL by Kaushik Saha

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 sourceIn Microsoft Sentinel
auditd:SYSCALLAUDIT_SYSCALL (open, write, rename, unlink)Not mapped to Sentinel yet.
auditd:EXECVEexecution of unexpected binaries during user shell startupNot mapped to Sentinel yet.
NSM:Flowunexpected network activity initiated shortly after shell session startsNot 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 sourceIn Microsoft Sentinel
macos:unifiedloglaunch of Terminal.app or shell with non-standard environment setupNot mapped to Sentinel yet.
macos:endpointsecurityES_EVENT_TYPE_NOTIFY_WRITE, targeting .zshrc, .zlogin, .zprofileNot mapped to Sentinel yet.

Content Hub rules tagged with it (0)

No Content Hub rule is tagged with this technique.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

In Sigma rules

1 SigmaHQ community rule name it in their tags.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

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.