{"id":"9b0f8a61-91b2-464f-aceb-0527e0a45020","title":"Potential COM Object Hijacking Via TreatAs Subkey - Registry","description":"Detects COM object hijacking via TreatAs subkey","author":"Kutepov Anton, oscd.community","status":"test","level":"medium","date":"2019-10-23","modified":"2025-10-26","tags":["attack.privilege-escalation","attack.persistence","attack.t1546.015"],"technique_ids":["T1546.015"],"logsource":{"category":"registry_set","product":"windows"},"falsepositives":["Maybe some system utilities in rare cases use linking keys for backward compatibility"],"references":["https://bohops.com/2018/08/18/abusing-the-com-registry-structure-part-2-loading-techniques-for-evasion-and-persistence/"],"source_path":"rules/windows/registry/registry_set/registry_set_persistence_com_key_linking.yml","source_sha256":"b6a3d8808f68bf0913d672703fcaf1adcd423acf4ed4a67746d1423fe81d6dba","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/registry/registry_set/registry_set_persistence_com_key_linking.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Potential COM Object Hijacking Via TreatAs Subkey - Registry\nid: 9b0f8a61-91b2-464f-aceb-0527e0a45020\nstatus: test\ndescription: Detects COM object hijacking via TreatAs subkey\nreferences:\n    - https://bohops.com/2018/08/18/abusing-the-com-registry-structure-part-2-loading-techniques-for-evasion-and-persistence/\nauthor: Kutepov Anton, oscd.community\ndate: 2019-10-23\nmodified: 2025-10-26\ntags:\n    - attack.privilege-escalation\n    - attack.persistence\n    - attack.t1546.015\nlogsource:\n    category: registry_set\n    product: windows\ndetection:\n    selection:\n        TargetObject|contains|all:\n            - 'HKU\\'\n            - 'Classes\\CLSID\\'\n            - '\\TreatAs'\n    filter_main_svchost:\n        # Example of target object by svchost\n        # TargetObject: HKU\\S-1-5-21-1098798288-3663759343-897484398-1001_Classes\\CLSID\\{0003000A-0000-0000-C000-000000000046}\\TreatAs\n        Image: 'C:\\WINDOWS\\system32\\svchost.exe'\n    condition: selection and not 1 of filter_main_*\nfalsepositives:\n    - Maybe some system utilities in rare cases use linking keys for backward compatibility\nlevel: medium\nregression_tests_path: regression_data/rules/windows/registry/registry_set/registry_set_persistence_com_key_linking/info.yml\nsimulation:\n    - type: atomic-red-team\n      name: COM hijacking via TreatAs\n      technique: T1546.015\n      atomic_guid: 33eacead-f117-4863-8eb0-5c6304fbfaa9\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1546.015","id":"T1546.015","name":"Component Object Model Hijacking","page":"techniques/enterprise/T1546.015/"}],"data_path":"data/detection-rules/9b0f8a61-91b2-464f-aceb-0527e0a45020.json","kind":"sigma"}
