{"id":"a95b9b42-1308-4735-a1af-abb1c5e6f5ac","title":"Suspicious Service DACL Modification Via Set-Service Cmdlet","description":"Detects suspicious DACL modifications via the \"Set-Service\" cmdlet using the \"SecurityDescriptorSddl\" flag (Only available with PowerShell 7) that can be used to hide services or make them unstopable","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"high","date":"2022-10-18","modified":"","tags":["attack.privilege-escalation","attack.persistence","attack.t1543.003"],"technique_ids":["T1543.003"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unknown"],"references":["https://www.sans.org/blog/red-team-tactics-hiding-windows-services/","https://learn.microsoft.com/pt-br/windows/win32/secauthz/sid-strings"],"source_path":"rules/windows/process_creation/proc_creation_win_powershell_service_dacl_modification_set_service.yml","source_sha256":"8ee59c99fe169a4661c2a07f1a268c174234b090640f3e0a8c6021fd848c1c01","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_powershell_service_dacl_modification_set_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: Suspicious Service DACL Modification Via Set-Service Cmdlet\nid: a95b9b42-1308-4735-a1af-abb1c5e6f5ac\nrelated:\n    - id: 99cf1e02-00fb-4c0d-8375-563f978dfd37\n      type: derived\nstatus: test\ndescription: Detects suspicious DACL modifications via the \"Set-Service\" cmdlet using the \"SecurityDescriptorSddl\" flag (Only available with PowerShell 7) that can be used to hide services or make them unstopable\nreferences:\n    - https://www.sans.org/blog/red-team-tactics-hiding-windows-services/\n    - https://learn.microsoft.com/pt-br/windows/win32/secauthz/sid-strings\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2022-10-18\ntags:\n    - attack.privilege-escalation\n    - attack.persistence\n    - attack.t1543.003\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\pwsh.exe'\n        - OriginalFileName: 'pwsh.dll'\n    selection_sddl_flag:\n        CommandLine|contains:\n            - '-SecurityDescriptorSddl '\n            - '-sd '\n    selection_set_service:\n        CommandLine|contains|all:\n            - 'Set-Service '\n            - 'D;;'\n        CommandLine|contains:\n            - ';;;IU'\n            - ';;;SU'\n            - ';;;BA'\n            - ';;;SY'\n            - ';;;WD'\n    condition: all of selection_*\nfalsepositives:\n    - Unknown\nlevel: high\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/a95b9b42-1308-4735-a1af-abb1c5e6f5ac.json","kind":"sigma"}
