T1037 Boot or Logon Initialization Scripts
PersistencePrivilege Escalationon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0112 Boot or Logon Initialization Scripts Detection Strategy
AN0311 Windows
Monitoring modification and execution of user or system logon scripts such as in registry Run keys or startup folders.
| MITRE log source | In Microsoft Sentinel |
|---|---|
WinEventLog:SecurityEventCode=4688 |
The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only. |
WinEventLog:SecurityEventCode=4657 |
The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only. |
WinEventLog:TaskSchedulerEventCode=106 |
|
AN0312 Linux
Detection of changes or execution of shell initialization scripts like .bashrc, .profile, or /etc/profile for persistence.
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLEXECVE | Not mapped to Sentinel yet. |
auditd:PATHPATH | Not mapped to Sentinel yet. |
linux:osqueryfile_events | Not mapped to Sentinel yet. |
AN0313 macOS
Monitoring for modification and execution of login hook scripts or LaunchAgents/LaunchDaemons used for persistence.
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:unifiedloglog | Not mapped to Sentinel yet. |
fs:fsusagefile | Not mapped to Sentinel yet. |
macos:osquerylaunchd | Not mapped to Sentinel yet. |
AN0314 ESXi
Detection of modification to ESXi rc.local.d or rc scripts that are used to execute on boot.
| MITRE log source | In Microsoft Sentinel |
|---|---|
esxi:vmkernelboot | Not mapped to Sentinel yet. |
esxi:hostdboot | Not mapped to Sentinel yet. |
AN0315 Network Devices
Detection of changes to device startup-config files that include boot scripts or scheduled execution routines.
| MITRE log source | In Microsoft Sentinel |
|---|---|
networkdevice:syslogconfig | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (3)
- Editing Linux scheduled tasks through Crontab
- Linux scheduled task Aggregation
- Rare process running on a Linux host
How the Content Hub rules for T1037 are built: their tables, filters, joins, schedules and windows.
In Sigma rules
4 SigmaHQ community rules name it or one of its sub-techniques in their tags.
- Potential Persistence Via Logon Scripts - CommandLine
- Uncommon Userinit Child Process
- Potential Persistence Via Logon Scripts - Registry
- Startup Item File Created - MacOS
Mitigations
Sub-techniques
T1037.001Logon Script (Windows)T1037.002Login HookT1037.003Network Logon ScriptT1037.004RC ScriptsT1037.005Startup Items
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.