New Kernel Driver Via SC.EXE

Detects creation of a new service (kernel driver) with the type "kernel"

Sigma rule (View on GitHub)

 1title: New Kernel Driver Via SC.EXE
 2id: 431a1fdb-4799-4f3b-91c3-a683b003fc49
 3status: test
 4description: Detects creation of a new service (kernel driver) with the type "kernel"
 5references:
 6    - https://www.aon.com/cyber-solutions/aon_cyber_labs/yours-truly-signed-av-driver-weaponizing-an-antivirus-driver/
 7author: Nasreddine Bencherchali (Nextron Systems)
 8date: 2022-07-14
 9modified: 2025-10-07
10tags:
11    - attack.persistence
12    - attack.privilege-escalation
13    - attack.t1543.003
14logsource:
15    category: process_creation
16    product: windows
17detection:
18    selection:
19        Image|endswith: '\sc.exe'
20        CommandLine|contains:
21            - 'create'
22            - 'config'
23        CommandLine|contains|all:
24            - 'binPath'
25            - 'type'
26            - 'kernel'
27    filter_optional_avira_driver:
28        - CommandLine|contains|all:
29              - 'create netprotection_network_filter'
30              - 'type= kernel start= '
31              - 'binPath= System32\drivers\netprotection_network_filter'
32              - 'DisplayName= netprotection_network_filter'
33              - 'group= PNP_TDI tag= yes'
34        - CommandLine|contains|all:
35              - 'create avelam binpath=C:\Windows\system32\drivers\avelam.sys'
36              - 'type=kernel start=boot error=critical group=Early-Launch'
37    condition: selection and not 1 of filter_optional_*
38falsepositives:
39    - Rare legitimate installation of kernel drivers via sc.exe
40level: medium

References

Related rules

to-top