T1037
Boot or Logon Initialization Scripts
ESXi · Linux · macOS · Network Devices · Windowsnothing on this site yetT1037 on attack.mitre.org
Adversaries may use scripts automatically executed at boot or logon initialization to establish persistence. Initialization scripts can be used to perform administrative functions, which may often execute other programs or send information to an internal logging server. These scripts can vary based on operating system and whether applied locally or remotely. Adversaries may use these scripts to maintain persistence on a single system.
If this is happening now
Checklists and playbooks to open while the alert is still live.
Suspicious execution on an endpoint
An EDR alert, an unexplained process, or a user reporting something odd.
Cloud account compromise
Impossible travel, an unrecognised inbox rule, or a reported invoice-fraud attempt.
how MITRE says to see it
Boot or Logon Initialization Scripts Detection Strategy
- Monitoring modification and execution of user or system logon scripts such as in registry Run keys or startup folders.
- Detection of changes or execution of shell initialization scripts like.bashrc,.profile, or /etc/profile for persistence.
- Monitoring for modification and execution of login hook scripts or LaunchAgents/LaunchDaemons used for persistence.
- Detection of modification to ESXi rc.local.d or rc scripts that are used to execute on boot.