Query: detection rule: Detect modification of the User Shell Folders registry values for Startup or Common Startup which could indicate persist
Matching passage: Sigma rule: Detect modification of the User Shell Folders registry values for Startup or Common Startup which could indicate persist. Logsource: windows / registry_set. Rule: title: Modify User Shell Folders Startup Value id: 9c226817-8dc9-46c2-a58d-66655aafd7dc related: - id: 8f3ab69a-aa22-4943-aa58-e0a52fdf6818 type: similar status: test description: 'Detect modification of the User Shell Folders registry values for Startup or Common Startup which could indicate persistence attempts. Attackers may modify User Shell Folders registry keys to point to malicious executables or scripts that will be executed during startup. This technique is often used to maintain persistence on a compromised system by ensuring that the malicious payload is executed automatically. ' references: - https://github.com/redcanaryco/atomic-red-team/blob/9e5b12c4912c07562aec7500447b11fa3e17e254/atomics/T1547.001/T1547.001.md - https://www.welivesecurity.com/en/eset-research/muddywater-snakes-riverbank/ author: frack113, Swachchhanda Shrawan Poudel (Nextron Systems) date: 2022-10-01 modified: 2026-01-05 tags: - attack.persistence - attack.privilege-escalation - attack.t1547.001 logsource: product: windows category: registry_set detection: selection: TargetObject|contains: - SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders - SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders TargetObject|endswith: - \Common Startup - \Startup filter_main_details_null: Details: null filter_main_programdata_startup: Details|contains: - C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup - '%ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup' filter_main_userprofile_startup_1: Details|contains: - '%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup' - '%%USERPROFILE%%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup' filter_main_userprofile_startup_2: Details|contains|all: - C:\Users\ - \AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup condition: selection and not 1 of filter_main_* falsepositives: - Unknown level: high regression_tests_path: regression_data/rules/windows/registry/registry_set/registry_set_susp_user_shell_folders/info.yml simulation: - type: atomic-red-team name: Change Startup Folder - HKLM Modify User Shell Folders Common Startup Value technique: T1547.001 atomic_guid: acfef903-7662-447e-a391-9c91c2f00f7b
Near-miss passage: Sigma rule: Detects an appx package that was added to the pipeline of the "to be processed" packages that is located in uncommon loc. Logsource: windows / appxdeployment-server. Rule: title: AppX Located in Uncommon Directory Added to Deployment Pipeline id: c977cb50-3dff-4a9f-b873-9290f56132f1 status: test description: 'Detects an appx package that was added to the pipeline of the "to be processed" packages that is located in uncommon locations. ' references: - Internal Research - https://www.sentinelone.com/labs/inside-malicious-windows-apps-for-malware-deployment/ - https://learn.microsoft.com/en-us/windows/win32/appxpkg/troubleshooting - https://news.sophos.com/en-us/2021/11/11/bazarloader-call-me-back-attack-abuses-windows-10-apps-mechanism/ author: Nasreddine Bencherchali (Nextron Systems) date: 2023-01-11 modified: 2025-12-03 tags: - attack.stealth logsource: product: windows service: appxdeployment-server detection: selection: EventID: 854 filter_main_generic: Path|contains: - :/Program%20Files - :/Windows/System32/ - :\Program Files (x86)\ - :\Program Files\ - :\Windows\ImmersiveControlPanel\ - :\Windows\PrintDialog\ - :\Windows\SystemApps\ - AppData/Local/Temp/WinGet/Microsoft.Winget.Source - x-windowsupdate:// filter_main_specific: Path|contains: - https://installer.teams.static.microsoft/ - https://res.cdn.office.net - https://statics.teams.cdn.live.net/ - https://statics.teams.cdn.office.net/ - microsoft.com filter_optional_onedrive: Path|contains: AppData\Local\Microsoft\OneDrive\ filter_optional_winget: Path|contains: - AppData/Local/Temp/WinGet/Microsoft.Winget.Source - AppData\Local\Temp\WinGet\Microsoft.Winget.Source filter_optional_x_windowsupdate: Path|contains: x-windowsupdate:// condition: selection and not 1 of filter_main_* and not 1 of filter_optional_* falsepositives: - Unknown level: medium