{"id":"4a5f5a5e-ac01-474b-9b4e-d61298c9df1d","title":"PowerShell as a Service in Registry","description":"Detects that a powershell code is written to the registry as a service.","author":"oscd.community, Natalia Shornikova","status":"test","level":"high","date":"2020-10-06","modified":"2023-08-17","tags":["attack.execution","attack.t1569.002"],"technique_ids":["T1569.002"],"logsource":{"category":"registry_set","product":"windows"},"falsepositives":["Unknown"],"references":["https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse"],"source_path":"rules/windows/registry/registry_set/registry_set_powershell_as_service.yml","source_sha256":"1dafb1474c2c859572372403cc5ca50bfe9da9f7ae45c80a5272d182c7453c80","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/registry/registry_set/registry_set_powershell_as_service.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: PowerShell as a Service in Registry\nid: 4a5f5a5e-ac01-474b-9b4e-d61298c9df1d\nstatus: test\ndescription: Detects that a powershell code is written to the registry as a service.\nreferences:\n    - https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse\nauthor: oscd.community, Natalia Shornikova\ndate: 2020-10-06\nmodified: 2023-08-17\ntags:\n    - attack.execution\n    - attack.t1569.002\nlogsource:\n    category: registry_set\n    product: windows\ndetection:\n    selection:\n        TargetObject|contains: '\\Services\\'\n        TargetObject|endswith: '\\ImagePath'\n        Details|contains:\n            - 'powershell'\n            - 'pwsh'\n    condition: selection\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1569.002","id":"T1569.002","name":"Service Execution","page":"techniques/enterprise/T1569.002/"}],"data_path":"data/detection-rules/4a5f5a5e-ac01-474b-9b4e-d61298c9df1d.json","kind":"sigma"}
