{"id":"02ee49e2-e294-4d0f-9278-f5b3212fc588","title":"New RUN Key Pointing to Suspicious Folder","description":"Detects suspicious new RUN key element pointing to an executable in a suspicious folder","author":"Florian Roth (Nextron Systems), Markus Neis, Sander Wiebing, Swachchhanda Shrawan Poudel (Nextron Systems)","status":"experimental","level":"high","date":"2018-08-25","modified":"2025-10-06","tags":["attack.privilege-escalation","attack.persistence","attack.t1547.001"],"technique_ids":["T1547.001"],"logsource":{"category":"registry_set","product":"windows"},"falsepositives":["Software using weird folders for updates"],"references":["https://www.fireeye.com/blog/threat-research/2018/08/fin7-pursuing-an-enigmatic-and-evasive-global-criminal-operation.html","https://github.com/HackTricks-wiki/hacktricks/blob/e4c7b21b8f36c97c35b7c622732b38a189ce18f7/src/windows-hardening/windows-local-privilege-escalation/privilege-escalation-with-autorun-binaries.md"],"source_path":"rules/windows/registry/registry_set/registry_set_susp_run_key_img_folder.yml","source_sha256":"187ad9109dd04ab0c865b2d2626747943c899adaa467bd4c5a80fd59bf7861fa","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/registry/registry_set/registry_set_susp_run_key_img_folder.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: New RUN Key Pointing to Suspicious Folder\nid: 02ee49e2-e294-4d0f-9278-f5b3212fc588\nstatus: experimental\ndescription: Detects suspicious new RUN key element pointing to an executable in a suspicious folder\nreferences:\n    - https://www.fireeye.com/blog/threat-research/2018/08/fin7-pursuing-an-enigmatic-and-evasive-global-criminal-operation.html\n    - https://github.com/HackTricks-wiki/hacktricks/blob/e4c7b21b8f36c97c35b7c622732b38a189ce18f7/src/windows-hardening/windows-local-privilege-escalation/privilege-escalation-with-autorun-binaries.md\nauthor: Florian Roth (Nextron Systems), Markus Neis, Sander Wiebing, Swachchhanda Shrawan Poudel (Nextron Systems)\ndate: 2018-08-25\nmodified: 2025-10-06\ntags:\n    - attack.privilege-escalation\n    - attack.persistence\n    - attack.t1547.001\nlogsource:\n    category: registry_set\n    product: windows\ndetection:\n    selection_target:\n        TargetObject|contains:\n            - '\\Software\\Microsoft\\Windows\\CurrentVersion\\Run'\n            - '\\Software\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Run'\n            - '\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run'\n    selection_suspicious_paths_1:\n        Details|contains:\n            - ':\\Perflogs'\n            - :\\ProgramData'\n            - ':\\Windows\\Temp'\n            - ':\\Temp'\n            - '\\AppData\\Local\\Temp'\n            - '\\AppData\\Roaming'\n            - ':\\$Recycle.bin'\n            - ':\\Users\\Default'\n            - ':\\Users\\public'\n            - '%temp%'\n            - '%tmp%'\n            - '%Public%'\n            - '%AppData%'\n    selection_suspicious_paths_user_1:\n        Details|contains: ':\\Users\\'\n    selection_suspicious_paths_user_2:\n        Details|contains:\n            - '\\Favorites'\n            - '\\Favourites'\n            - '\\Contacts'\n            - '\\Music'\n            - '\\Pictures'\n            - '\\Documents'\n            - '\\Photos'\n    filter_main_windows_update:\n        TargetObject|contains: '\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\'\n        Image|startswith: 'C:\\Windows\\SoftwareDistribution\\Download\\'\n        Details|contains|all:\n            - 'rundll32.exe '\n            - 'C:\\WINDOWS\\system32\\advpack.dll,DelNodeRunDLL32'\n        Details|contains:\n            - '\\AppData\\Local\\Temp\\'\n            - 'C:\\Windows\\Temp\\'\n    filter_optional_spotify:\n        Image|endswith:\n            - 'C:\\Program Files\\Spotify\\Spotify.exe'\n            - 'C:\\Program Files (x86)\\Spotify\\Spotify.exe'\n            - '\\AppData\\Roaming\\Spotify\\Spotify.exe'\n        TargetObject|endswith: 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\Spotify'\n        Details|endswith: 'Spotify.exe --autostart --minimized'\n    condition: selection_target and (selection_suspicious_paths_1 or (all of selection_suspicious_paths_user_* )) and not 1 of filter_main_* and not 1 of filter_optional_*\nfalsepositives:\n    - Software using weird folders for updates\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1547.001","id":"T1547.001","name":"Registry Run Keys / Startup Folder","page":"techniques/enterprise/T1547.001/"}],"data_path":"data/detection-rules/02ee49e2-e294-4d0f-9278-f5b3212fc588.json","kind":"sigma"}
