Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may establish persistence by executing malicious content triggered by user inactivity.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-14 | ✗→✓ | ▲ Improved | 58% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -38% | 0% |
| case-19 | ✗→✓ | ▲ Improved | -24% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 58% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 40% | 0% |
> Sub-technique of: T1546
Adversaries may establish persistence by executing malicious content triggered by user inactivity. Screensavers are programs that execute after a configurable time of user inactivity and consist of Portable Executable (PE) files with a .scr file extension. The Windows screensaver application scrnsave.scr is located in <code>C:\Windows\System32\</code>, and <code>C:\Windows\sysWOW64\</code> on 64-bit Windows systems, along with screensavers included with base Windows installations.
The following screensaver settings are stored in the Registry (<code>HKCU\Control Panel\Desktop\</code>) and could be manipulated to achieve persistence:
Adversaries can use screensaver settings to maintain persistence by setting the screensaver to run malware after a certain timeframe of user inactivity.
Platforms: Windows
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
This test copies a binary into the Windows System32 folder and sets it as the screensaver so it will execute for persistence. Requires a reboot and logon.
Supported Platforms: windows Elevation Required: Yes
cmdreg export "HKEY_CURRENT_USER\Control Panel\Desktop" %userprofile%\backup.reg copy #{input_binary} "%SystemRoot%\System32\evilscreensaver.scr" reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveActive /t REG_SZ /d 1 /f reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveTimeout /t REG_SZ /d 60 /f reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaverIsSecure /t REG_SZ /d 0 /f reg.exe add "HKEY_CURRENT_USER\Control Panel\Desktop" /v SCRNSAVE.EXE /t REG_SZ /d "%SystemRoot%\System32\evilscreensaver.scr" /f if #{reboot} NEQ 0 shutdown /r /t 0
If Atomic Red Team tests are not applicable, manually verify the technique by:
Block .scr files from being executed from non-standard locations.
Use Group Policy to disable screensavers if they are unnecessary.
| Finding | Severity | Impact | | -------------------------------- | -------- | -------------------- | | Screensaver technique applicable | Low | Privilege Escalation |
| CWE ID | Title | | ------- | ----------------------------- | | CWE-269 | Improper Privilege Management |
Other measured skills in the registry, with their headline benchmark lift.