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: 2023-08-17
12tags:
13    - attack.t1562.001
14    - attack.defense-evasion
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            - '\procexp.exe'
28            - '\procmon64.exe'
29            - '\procmon.exe'
30            - '\handle.exe'
31            - '\handle64.exe'
32        Details|contains: '\WINDOWS\system32\Drivers\PROCEXP152.SYS'
33    condition: selection and not filter
34falsepositives:
35    - 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.
36level: medium

References

Related rules

to-top