Sigma rule: Registry Persistence via Service in Safe Mode
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-dd28b427cea7, updated 2025-10-22T00:00:00.000Z.
Rule
- Title
- Registry Persistence via Service in Safe Mode
- Status
- test
- Level
- high
- Author
- frack113
- Date
- 2022-04-04
- Modified
- 2025-10-22
- File
- rules/windows/registry/registry_set/registry_set_add_load_service_in_safe_mode.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the modification of the registry to allow a driver or service to persist in Safe Mode.
Log source
- product
- windows
- category
- registry_set
Detection
selection:
TargetObject|contains:
- '\Control\SafeBoot\Minimal\'
- '\Control\SafeBoot\Network\'
TargetObject|endswith: '\(Default)'
Details: 'Service'
filter_optional_sophos:
Image: 'C:\WINDOWS\system32\msiexec.exe'
TargetObject|endswith:
- '\Control\SafeBoot\Minimal\SAVService\(Default)'
- '\Control\SafeBoot\Network\SAVService\(Default)'
filter_optional_mbamservice:
Image|endswith: '\MBAMInstallerService.exe'
TargetObject|endswith: '\MBAMService\(Default)'
Details: 'Service'
filter_optional_hexnode:
Image: 'C:\Hexnode\Hexnode Agent\Current\HexnodeAgent.exe'
TargetObject|endswith:
- '\Control\SafeBoot\Minimal\Hexnode Updater\(Default)'
- '\Control\SafeBoot\Network\Hexnode Updater\(Default)'
- '\Control\SafeBoot\Minimal\Hexnode Agent\(Default)'
- '\Control\SafeBoot\Network\Hexnode Agent\(Default)'
Details: 'Service'
condition: selection and not 1 of filter_optional_*False positives (as the rule lists them)
- Unknown
Tags
- attack.stealth
- attack.t1564.001
MITRE ATT&CK ids this rule names
References
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1112/T1112.md#atomic-test-33---windows-add-registry-value-to-load-service-in-safe-mode-without-network
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1112/T1112.md#atomic-test-34---windows-add-registry-value-to-load-service-in-safe-mode-with-network
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/registry/registry_set/registry_set_add_load_service_in_safe_mode.yml
Sources and licences
SigmaHQ
"Registry Persistence via Service in Safe Mode" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/registry/registry_set/registry_set_add_load_service_in_safe_mode.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Registry Persistence via Service in Safe Mode",
entity page, dataset version ref-dd28b427cea7, updated 2025-10-22T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/1547e27c-3974-43e2-a7d7-7f484fb928ec (accessed 2026-11-03).
Underlying source: SigmaHQ rule 1547e27c-3974-43e2-a7d7-7f484fb928ec, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.