Service Security Descriptor Tampering Via Sc.EXE

Detection of sc.exe utility adding a new service with special permission which hides that service.

Sigma rule (View on GitHub)

 1title: Service Security Descriptor Tampering Via Sc.EXE
 2id: 98c5aeef-32d5-492f-b174-64a691896d25
 3related:
 4    - id: 99cf1e02-00fb-4c0d-8375-563f978dfd37 # Deny Service Access
 5      type: similar
 6    - id: a537cfc3-4297-4789-92b5-345bfd845ad0 # Specific Technique
 7      type: similar
 8status: test
 9description: Detection of sc.exe utility adding a new service with special permission which hides that service.
10references:
11    - https://blog.talosintelligence.com/2021/10/threat-hunting-in-large-datasets-by.html
12    - https://www.sans.org/blog/red-team-tactics-hiding-windows-services/
13    - https://twitter.com/Alh4zr3d/status/1580925761996828672
14    - https://twitter.com/0gtweet/status/1628720819537936386
15    - https://itconnect.uw.edu/tools-services-support/it-systems-infrastructure/msinf/other-help/understanding-sddl-syntax/
16author: Nasreddine Bencherchali (Nextron Systems)
17date: 2023-02-28
18tags:
19    - attack.persistence
20    - attack.privilege-escalation
21    - attack.execution
22    - attack.stealth
23    - attack.t1574.011
24logsource:
25    category: process_creation
26    product: windows
27detection:
28    selection_img:
29        - Image|endswith: '\sc.exe'
30        - OriginalFileName: 'sc.exe'
31    selection_cli:
32        CommandLine|contains: 'sdset'
33    condition: all of selection_*
34falsepositives:
35    - Unknown
36level: medium

References

Related rules

to-top