{"id":"a07f0359-4c90-4dc4-a681-8ffea40b4f47","title":"Service Binary in Suspicious Folder","description":"Detect the creation of a service with a service binary located in a suspicious directory","author":"Florian Roth (Nextron Systems), frack113","status":"test","level":"high","date":"2022-05-02","modified":"2025-10-07","tags":["attack.persistence","attack.defense-impairment","attack.t1112"],"technique_ids":["T1112"],"logsource":{"category":"registry_set","product":"windows"},"falsepositives":["Unknown"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1562.001/T1562.001.md"],"source_path":"rules/windows/registry/registry_set/registry_set_creation_service_susp_folder.yml","source_sha256":"cb92b513e558f67b0471c6510aab3a87c88f589bb9b21b2c6f63981dc68badcd","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/registry/registry_set/registry_set_creation_service_susp_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: Service Binary in Suspicious Folder\nid: a07f0359-4c90-4dc4-a681-8ffea40b4f47\nrelated:\n    - id: c0abc838-36b0-47c9-b3b3-a90c39455382\n      type: obsolete\nstatus: test\ndescription: Detect the creation of a service with a service binary located in a suspicious directory\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1562.001/T1562.001.md\nauthor: Florian Roth (Nextron Systems), frack113\ndate: 2022-05-02\nmodified: 2025-10-07\ntags:\n    - attack.persistence\n    - attack.defense-impairment\n    - attack.t1112\nlogsource:\n    category: registry_set\n    product: windows\ndetection:\n    selection_service_start:\n        TargetObject|startswith: 'HKLM\\System\\CurrentControlSet\\Services\\'\n        TargetObject|endswith: '\\Start'\n        Image|contains:\n            - '\\Users\\Public\\'\n            - '\\Perflogs\\'\n            - '\\ADMIN$\\'\n            - '\\Temp\\'\n        Details:\n            - 'DWORD (0x00000000)'  # boot\n            - 'DWORD (0x00000001)'  # System\n            - 'DWORD (0x00000002)'  # Automatic\n            # 3 - Manual , 4 - Disabled\n    selection_service_imagepath:\n        TargetObject|startswith: 'HKLM\\System\\CurrentControlSet\\Services\\'\n        TargetObject|endswith: '\\ImagePath'\n        Details|contains:\n            - '\\Users\\Public\\'\n            - '\\Perflogs\\'\n            - '\\ADMIN$\\'\n            - '\\Temp\\'\n    filter_optional_avast:\n        Image|contains|all: # Filter FP with Avast software\n            - '\\Common Files\\'\n            - '\\Temp\\'\n    filter_optional_mbamservice:\n        TargetObject|endswith: '\\CurrentControlSet\\Services\\MBAMInstallerService\\ImagePath'\n        Details|endswith: '\\AppData\\Local\\Temp\\MBAMInstallerService.exe\"'\n        Image: 'C:\\Windows\\system32\\services.exe'\n    condition: 1 of selection_* and not 1 of filter_optional_*\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1112","id":"T1112","name":"Modify Registry","page":"techniques/enterprise/T1112/"}],"data_path":"data/detection-rules/a07f0359-4c90-4dc4-a681-8ffea40b4f47.json","kind":"sigma"}
