Event Triggered Execution: Screensaver T1546.002

Tactics: Privilege Escalation, Persistence

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 C:\Windows\System32\, and C:\Windows\sysWOW64\ on 64-bit Windows systems, along with screensavers included with base Windows installations.

Events covered

7 catalog events are tagged with this technique by at least one rule.

Authoring guide

Patterns shared across the 8 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (14 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
Image3ends_with 3\bin\ccsvchst.exe, \explorer.exe, \kindle.exe, \reg.exe, \rundll32.exe
TargetFilename3contains 1, ends_with 1, wildcard 1.scr, /library/managed preferences/*, /system/library/preferences/*, /users/*/library/preferences/byhost/*, \\\\127.0.0
TargetObject2ends_with 1, wildcard 1\control panel\desktop\scrnsave.exe, hkey_users\*\control panel\desktop\scrnsave.exe, hkey_users\*\environment\userinitmprlogonscript, hkey_users\*\software\microsoft\command processor\autorun
event.type2eq 2change, start
host.os.type2eq 2
CommandLine1contains 1.scr, /d , /d 0
Details1length_compare 10, >
EventType1eq 1modification
file.name1wildcard 1com.apple.screensaver.*.plist
parent_process_name1eq 1ScreenSaverEngine
process.code_signature.exists1eq 1false
process.code_signature.trusted1eq 1false
process_name1wildcard 1curl, funzip, mktemp
registry_path1contains 1\\control panel\\desktop\\scrnsave.exe

Top indicator values (94 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
CommandLinecontains
.scr
15
CommandLinecontains
/d
12
CommandLinecontains
/d 0
12
CommandLinecontains
/d 1
12
CommandLinecontains
/f
17
CommandLinecontains
/t reg_sz
12
CommandLinecontains
/v screensaveactive
1
CommandLinecontains
/v screensaverissecure
1
CommandLinecontains
/v screensavetimeout
1
CommandLinecontains
/v scrnsave.exe
1
CommandLinecontains
hkcu\control panel\desktop
1
CommandLinecontains
hkey_current_user\control panel\desktop
1
Detailslength_compare
0
14
Detailslength_compare
>
14
EventTypeeq
modification
115
Imageends_with
\bin\ccsvchst.exe
1
Imageends_with
\explorer.exe
114
Imageends_with
\kindle.exe
1
Imageends_with
\reg.exe
158
Imageends_with
\rundll32.exe
195
Imageends_with
\tiworker.exe
1
TargetFilenamecontains
\\\\127.0.0
1
TargetFilenamecontains
\admin$\
1
TargetFilenameends_with
.scr
18
TargetFilenameends_with
\uwfservicingscr.scr
1
TargetFilenamewildcard
/library/managed preferences/*
1
TargetFilenamewildcard
/system/library/preferences/*
1
TargetFilenamewildcard
/users/*/library/preferences/byhost/*
1
TargetObjectends_with
\control panel\desktop\scrnsave.exe
1
TargetObjectwildcard
hkey_users\*\control panel\desktop\scrnsave.exe
1

Exclusions (31 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
Detailseq
%windir%\system32\Ribbons.scr
1
Detailseq
%windir%\system32\rundll32.exe user32.dll,LockWorkStation
1
Detailseq
C:\Windows\System32\poqexec.exe /skip_critical_poq /display_progress...
1
Detailseq
C:\windows\System32\poqexec.exe /display_progress \SystemRoot\WinSxS\pending.xml
1
Detailseq
scrnsave.scr
1
Detailswildcard
C:\Program Files (x86)\*.exe
1
Detailswildcard
C:\Program Files\*.exe
1
Detailswildcard
C:\Windows\system32\userinit.exe
1
Detailswildcard
cmd.exe
1
Imageends_with
\bin\ccsvchst.exe
1
Imageends_with
\explorer.exe
1
Imageends_with
\kindle.exe
1
Imageends_with
\rundll32.exe
1
Imageends_with
\tiworker.exe
1
Imageeq
/system/library/coreservices/managedclient.app/contents/macos/managedclient
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Sigma 4 rules

Elastic 3 rules

Splunk 1 rule