{"id":"2a926e6a-4b81-4011-8a96-e36cc8c04302","title":"PowerShell Scripts Installed as Services - Security","description":"Detects powershell script installed as a Service","author":"oscd.community, Natalia Shornikova","status":"test","level":"high","date":"2020-10-06","modified":"2022-11-29","tags":["attack.execution","attack.t1569.002"],"technique_ids":["T1569.002"],"logsource":{"product":"windows","service":"security","definition":"The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697"},"falsepositives":["Unknown"],"references":["https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse"],"source_path":"rules/windows/builtin/security/win_security_powershell_script_installed_as_service.yml","source_sha256":"180b4f31513c49fbb2a9d7f54d681bcebd82da4dbe4a26e55b1f14a3aa37f447","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/builtin/security/win_security_powershell_script_installed_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 Scripts Installed as Services - Security\nid: 2a926e6a-4b81-4011-8a96-e36cc8c04302\nrelated:\n    - id: a2e5019d-a658-4c6a-92bf-7197b54e2cae\n      type: derived\nstatus: test\ndescription: Detects powershell script installed as a Service\nreferences:\n    - https://speakerdeck.com/heirhabarov/hunting-for-powershell-abuse\nauthor: oscd.community, Natalia Shornikova\ndate: 2020-10-06\nmodified: 2022-11-29\ntags:\n    - attack.execution\n    - attack.t1569.002\nlogsource:\n    product: windows\n    service: security\n    definition: The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697\ndetection:\n    selection:\n        EventID: 4697\n        ServiceFileName|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/2a926e6a-4b81-4011-8a96-e36cc8c04302.json","kind":"sigma"}
