{"id":"a537cfc3-4297-4789-92b5-345bfd845ad0","title":"Service DACL Abuse To Hide Services Via Sc.EXE","description":"Detects usage of the \"sc.exe\" utility adding a new service with special permission seen used by threat actors which makes the service hidden and unremovable.","author":"Andreas Hunkeler (@Karneades)","status":"test","level":"high","date":"2021-12-20","modified":"2022-08-08","tags":["attack.persistence","attack.privilege-escalation","attack.execution","attack.stealth","attack.t1574.011"],"technique_ids":["T1574.011"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unknown"],"references":["https://blog.talosintelligence.com/2021/10/threat-hunting-in-large-datasets-by.html","https://www.sans.org/blog/red-team-tactics-hiding-windows-services/","https://twitter.com/Alh4zr3d/status/1580925761996828672","https://itconnect.uw.edu/tools-services-support/it-systems-infrastructure/msinf/other-help/understanding-sddl-syntax/"],"source_path":"rules/windows/process_creation/proc_creation_win_sc_sdset_hide_sevices.yml","source_sha256":"748f440ffb11ec6e08ce795cd1135cd252444bbed24c682b6ffc956b1b8e5d09","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_sc_sdset_hide_sevices.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Service DACL Abuse To Hide Services Via Sc.EXE\nid: a537cfc3-4297-4789-92b5-345bfd845ad0\nrelated:\n    - id: 99cf1e02-00fb-4c0d-8375-563f978dfd37 # Deny Service Access\n      type: similar\n    - id: 98c5aeef-32d5-492f-b174-64a691896d25 # Generic SD tampering\n      type: similar\nstatus: test\ndescription: Detects usage of the \"sc.exe\" utility adding a new service with special permission seen used by threat actors which makes the service hidden and unremovable.\nreferences:\n    - https://blog.talosintelligence.com/2021/10/threat-hunting-in-large-datasets-by.html\n    - https://www.sans.org/blog/red-team-tactics-hiding-windows-services/\n    - https://twitter.com/Alh4zr3d/status/1580925761996828672\n    - https://itconnect.uw.edu/tools-services-support/it-systems-infrastructure/msinf/other-help/understanding-sddl-syntax/\nauthor: Andreas Hunkeler (@Karneades)\ndate: 2021-12-20\nmodified: 2022-08-08\ntags:\n    - attack.persistence\n    - attack.privilege-escalation\n    - attack.execution\n    - attack.stealth\n    - attack.t1574.011\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\sc.exe'\n        - OriginalFileName: 'sc.exe'\n    selection_cli:\n        CommandLine|contains|all:\n            - 'sdset'\n            # Summary of permissions\n            #   DC: Delete All Child Objects\n            #   LC: List Contents\n            #   WP: Write All Properties\n            #   DT: Delete Subtree\n            #   SD: Delete\n            - 'DCLCWPDTSD'\n    condition: all of selection_*\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1574.011","id":"T1574.011","name":"Services Registry Permissions Weakness","page":"techniques/enterprise/T1574.011/"}],"data_path":"data/detection-rules/a537cfc3-4297-4789-92b5-345bfd845ad0.json","kind":"sigma"}
