Adversaries may abuse Windows safe mode to disable endpoint defenses. Safe mode starts up the Windows operating system with a limited set of drivers and services. Third-party security software such as endpoint detection and response (EDR) tools may not start after booting Windows in safe mode. There are two versions of safe mode: Safe Mode and Safe Mode with Networking. It is possible to start additional services after a safe mode boot.[1][2]
Adversaries may abuse safe mode to disable endpoint defenses that may not start with a limited boot. Hosts can be forced into safe mode after the next reboot via modifications to Boot Configuration Data (BCD) stores, which are files that manage boot application settings.[3]
Adversaries may also add their malicious applications to the list of minimal services that start in safe mode by modifying relevant Registry values (i.e. Modify Registry). Malicious Component Object Model (COM) objects may also be registered and loaded in safe mode.[2][4][5][6]
ID | Name | Description |
---|---|---|
S1053 | AvosLocker |
AvosLocker can restart a compromised machine in safe mode.[7][8] |
S1070 | Black Basta |
Black Basta can reboot victim machines in safe mode with networking via |
S0496 | REvil |
ID | Mitigation | Description |
---|---|---|
M1026 | Privileged Account Management |
Restrict administrator accounts to as few individuals as possible, following least privilege principles, that may be abused to remotely boot a machine in safe mode.[4] |
M1054 | Software Configuration |
Ensure that endpoint defenses run in safe mode.[4] |
ID | Data Source | Data Component | Detects |
---|---|---|---|
DS0017 | Command | Command Execution |
Monitor executed commands and arguments associated with making configuration changes to boot settings, such as |
DS0009 | Process | Process Creation |
Monitor newly executed processes that may abuse Windows safe mode to disable endpoint defenses. |
DS0024 | Windows Registry | Windows Registry Key Creation |
Monitor Registry creation for services that may start on safe mode. For example, a program can be forced to start on safe mode boot by adding a |
Windows Registry Key Modification |
Monitor modifications to Registry data associated with enabling safe mode. For example, a service can be forced to start on safe mode boot by adding a |