{"id":"612e47e9-8a59-43a6-b404-f48683f45bd6","title":"ServiceDll Hijack","description":"Detects changes to the \"ServiceDLL\" value related to a service in the registry.\nThis is often used as a method of persistence.\n","author":"frack113","status":"test","level":"medium","date":"2022-02-04","modified":"2024-04-03","tags":["attack.persistence","attack.privilege-escalation","attack.t1543.003"],"technique_ids":["T1543.003"],"logsource":{"category":"registry_set","product":"windows"},"falsepositives":["Administrative scripts","Installation of a service"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1543.003/T1543.003.md#atomic-test-4---tinyturla-backdoor-service-w64time","https://www.hexacorn.com/blog/2013/09/19/beyond-good-ol-run-key-part-4/"],"source_path":"rules/windows/registry/registry_set/registry_set_servicedll_hijack.yml","source_sha256":"bdfcdafbf13bf826c31ee3bfb79c80193af392cafc55e40df467f1b25494c69a","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/registry/registry_set/registry_set_servicedll_hijack.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: ServiceDll Hijack\nid: 612e47e9-8a59-43a6-b404-f48683f45bd6\nstatus: test\ndescription: |\n    Detects changes to the \"ServiceDLL\" value related to a service in the registry.\n    This is often used as a method of persistence.\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1543.003/T1543.003.md#atomic-test-4---tinyturla-backdoor-service-w64time\n    - https://www.hexacorn.com/blog/2013/09/19/beyond-good-ol-run-key-part-4/\nauthor: frack113\ndate: 2022-02-04\nmodified: 2024-04-03\ntags:\n    - attack.persistence\n    - attack.privilege-escalation\n    - attack.t1543.003\nlogsource:\n    category: registry_set\n    product: windows\ndetection:\n    selection:\n        TargetObject|contains|all:\n            - '\\System\\'\n            - 'ControlSet'\n            - '\\Services\\'\n        TargetObject|endswith: '\\Parameters\\ServiceDll'\n    filter_main_printextensionmanger:\n        Details: 'C:\\Windows\\system32\\spool\\drivers\\x64\\3\\PrintConfig.dll'\n    filter_main_domain_controller:\n        Image: 'C:\\Windows\\system32\\lsass.exe'\n        TargetObject|endswith: '\\Services\\NTDS\\Parameters\\ServiceDll'\n        Details: '%%systemroot%%\\system32\\ntdsa.dll'\n    filter_main_poqexec:\n        Image: 'C:\\Windows\\System32\\poqexec.exe'\n    filter_optional_safetica:\n        Image|endswith: '\\regsvr32.exe'\n        Details: 'C:\\Windows\\System32\\STAgent.dll'\n    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*\nfalsepositives:\n    - Administrative scripts\n    - Installation of a service\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1543.003","id":"T1543.003","name":"Windows Service","page":"techniques/enterprise/T1543.003/"}],"data_path":"data/detection-rules/612e47e9-8a59-43a6-b404-f48683f45bd6.json","kind":"sigma"}
