Sigma rule: PowerShell Scripts Installed as Services - Security
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-a37831bfef81, updated 2022-11-29T00:00:00.000Z.
Rule
- Title
- PowerShell Scripts Installed as Services - Security
- Status
- test
- Level
- high
- Author
- oscd.community, Natalia Shornikova
- Date
- 2020-10-06
- Modified
- 2022-11-29
- File
- rules/windows/builtin/security/win_security_powershell_script_installed_as_service.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects powershell script installed as a Service
Log source
- product
- windows
- service
- security
- definition
- The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697
Detection
selection:
EventID: 4697
ServiceFileName|contains:
- 'powershell'
- 'pwsh'
condition: selectionFalse positives (as the rule lists them)
- Unknown
Tags
- attack.execution
- attack.t1569.002
MITRE ATT&CK ids this rule names
Related rules
References
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/builtin/security/win_security_powershell_script_installed_as_service.yml
Sources and licences
SigmaHQ
"PowerShell Scripts Installed as Services - Security" by oscd.community, Natalia Shornikova (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/builtin/security/win_security_powershell_script_installed_as_service.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: PowerShell Scripts Installed as Services - Security",
entity page, dataset version ref-a37831bfef81, updated 2022-11-29T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/2a926e6a-4b81-4011-8a96-e36cc8c04302 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 2a926e6a-4b81-4011-8a96-e36cc8c04302, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.