Suspicious Service Installed

Detects installation of NalDrv or PROCEXP152 services via registry-keys to non-system32 folders. Both services are used in the tool Ghost-In-The-Logs (https://github.com/bats3c/Ghost-In-The-Logs), which uses KDU (https://github.com/hfiref0x/KDU)

Sigma rule (View on GitHub)

 1title: Suspicious Service Installed
 2id: f2485272-a156-4773-82d7-1d178bc4905b
 3status: test
 4description: |
 5  Detects installation of NalDrv or PROCEXP152 services via registry-keys to non-system32 folders.
 6  Both services are used in the tool Ghost-In-The-Logs (https://github.com/bats3c/Ghost-In-The-Logs), which uses KDU (https://github.com/hfiref0x/KDU)  
 7references:
 8    - https://web.archive.org/web/20200419024230/https://blog.dylan.codes/evading-sysmon-and-windows-event-logging/
 9author: xknow (@xknow_infosec), xorxes (@xor_xes)
10date: 2019-04-08
11modified: 2026-06-29
12tags:
13    - attack.defense-impairment
14    - attack.t1685
15logsource:
16    category: registry_set
17    product: windows
18detection:
19    selection:
20        TargetObject:
21            - 'HKLM\System\CurrentControlSet\Services\NalDrv\ImagePath'
22            - 'HKLM\System\CurrentControlSet\Services\PROCEXP152\ImagePath'
23    filter:
24        Image|endswith:
25            # Please add the full paths that you use in your environment to tighten the rule
26            - '\procexp64.exe'
27            - '\procexp64a.exe'
28            - '\procexp.exe'
29            - '\procmon64.exe'
30            - '\procmon64a.exe'
31            - '\procmon.exe'
32            - '\handle.exe'
33            - '\handle64.exe'
34            - '\handle64a.exe'
35        Details|contains: '\WINDOWS\system32\Drivers\PROCEXP152.SYS'
36    condition: selection and not filter
37falsepositives:
38    - Other legimate tools using this service names and drivers. Note - clever attackers may easily bypass this detection by just renaming the services. Therefore just Medium-level and don't rely on it.
39level: medium

References

Related rules

to-top