Query: alert when Detects the modification of the registry to allow a driver or service to persist in Safe Mode.
Matching passage: Sigma rule: Detects the modification of the registry to allow a driver or service to persist in Safe Mode.. Logsource: windows / registry_set. Rule: title: Registry Persistence via Service in Safe Mode id: 1547e27c-3974-43e2-a7d7-7f484fb928ec status: test description: Detects the modification of the registry to allow a driver or service to persist in Safe Mode. 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 author: frack113 date: 2022-04-04 modified: 2025-10-22 tags: - attack.stealth - attack.t1564.001 logsource: category: registry_set product: windows 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_* falsepositives: - Unknown level: high regression_tests_path: regression_data/rules/windows/registry/registry_set/registry_set_add_load_service_in_safe_mode/info.yml simulation: - type: atomic-red-team name: Windows Add Registry Value to Load Service in Safe Mode without Network technique: T1112 atomic_guid: 1dd59fb3-1cb3-4828-805d-cf80b4c3bbb5 - type: atomic-red-team name: Windows Add Registry Value to Load Service in Safe Mode with Network technique: T1112 atomic_guid: c173c948-65e5-499c-afbe-433722ed5bd4
Near-miss passage: Sigma rule: Detects the presence of the "u202+E" character, which causes a terminal, browser, or operating system to render text in. Logsource: windows / process_creation. Rule: title: Potential Defense Evasion Via Right-to-Left Override id: ad691d92-15f2-4181-9aa4-723c74f9ddc3 related: - id: e0552b19-5a83-4222-b141-b36184bb8d79 type: derived - id: 584bca0f-3608-4402-80fd-4075ff6072e3 type: derived status: test description: 'Detects the presence of the "u202+E" character, which causes a terminal, browser, or operating system to render text in a right-to-left sequence. This character is used as an obfuscation and masquerading techniques by adversaries to trick users into opening malicious files. ' references: - https://redcanary.com/blog/right-to-left-override/ - https://www.malwarebytes.com/blog/news/2014/01/the-rtlo-method - https://unicode-explorer.com/c/202E - https://tria.ge/241015-l98snsyeje/behavioral2 - https://unprotect.it/technique/right-to-left-override-rlo-extension-spoofing/ author: Micah Babinski, @micahbabinski, Swachchhanda Shrawan Poudel (Nextron Systems), Luc Génaux date: 2023-02-15 modified: 2026-03-20 tags: - attack.stealth - attack.t1036.002 logsource: category: process_creation product: windows detection: selection: CommandLine|contains: - \u202e - '[U+202E]' - ‮ condition: selection falsepositives: - Commandlines that contains scriptures such as arabic or hebrew might make use of this character level: high regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_susp_right_to_left_override/info.yml