VeriKQL by Kaushik Saha

T1037.004 RC Scripts

PersistencePrivilege Escalationon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0237 Detection Strategy for Boot or Logon Initialization Scripts: RC Scripts

AN0658 Linux

Detection of modified or newly created /etc/rc.local or /etc/init.d scripts followed by suspicious execution during system startup.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLexecveNot mapped to Sentinel yet.
linux:syslogboot logsNot mapped to Sentinel yet.

AN0659 macOS

Detection of edits or additions to /etc/rc.common, /Library/StartupItems, or /System/Library/StartupItems and associated script execution during login or reboot.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogprocess eventsNot mapped to Sentinel yet.
fs:fsusagefile activityNot mapped to Sentinel yet.

AN0660 ESXi

Detection of changes to /etc/rc.local.d/local.sh or rc.local during post-boot script execution with abnormal commands or additions.

MITRE log sourceIn Microsoft Sentinel
esxi:syslogboot logsNot mapped to Sentinel yet.
esxi:shelladmin command usageNot mapped to Sentinel yet.

AN0661 Network Devices

Detection of modified boot-time configuration scripts that persist malicious CLI commands across reboots.

MITRE log sourceIn Microsoft Sentinel
networkdevice:syslogstartup-configNot mapped to Sentinel yet.
networkdevice:syslogsystem boot logsNot 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

No SigmaHQ rule names it in their tags outright.

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.