Detection rule
PUA - Process Hacker Driver Load
Overview
Detects driver load of the Process Hacker tool
- Rule id
67add051-9ee7-4ad3-93ba-42935615ae8d- ATT&CK techniques
- T1543 Create or Modify System Process
- Severity
- High
- Confidence
- Low
- Origin
- SigmaHQ (community)
- SigmaHQ status
test- Used in defense packs
- The Gentlemen, qilin, Akira, majinahanashi
Validation
- ExperimentalSyntax checked only. Not yet tested on events.
- Test-data validatedMatched positive test events and ignored near-miss events. Not yet run in a production SIEM.
- SIEM-validatedRun in a real SIEM, with a recorded result.
2 of 2 positive test events matched; 1 of 1 near-miss events were correctly ignored. Community rule reused unmodified from SigmaHQ. OffSet7 converted it and tested it on synthetic events.
Detection logic and queries
Queries are shown exactly as generated. Test them in your environment before you deploy them.
Sigma
Sigma (YAML) · 67add051-9ee7-4ad3-93ba-42935615ae8d
title: PUA - Process Hacker Driver Load
id: 67add051-9ee7-4ad3-93ba-42935615ae8d
related:
- id: 10cb6535-b31d-4512-9962-513dcbc42cc1
type: similar
status: test
description: Detects driver load of the Process Hacker tool
references:
- https://processhacker.sourceforge.io/
author: Florian Roth (Nextron Systems)
date: 2022-11-16
modified: 2024-11-23
tags:
- attack.persistence
- attack.privilege-escalation
- cve.2021-21551
- attack.t1543
logsource:
category: driver_load
product: windows
detection:
selection:
- ImageLoaded|endswith: '\kprocesshacker.sys'
- Hashes|contains:
- 'IMPHASH=821D74031D3F625BCBD0DF08B70F1E77'
- 'IMPHASH=F86759BB4DE4320918615DC06E998A39'
- 'IMPHASH=0A64EEB85419257D0CE32BD5D55C3A18'
- 'IMPHASH=6E7B34DFC017700B1517B230DF6FF0D0'
condition: selection
falsepositives:
- Legitimate use of process hacker or system informer by developers or system administrators
level: highQRadar AQL
IBM QRadar AQL (hunting query)Hunting query
Hunting search for the Log Activity tab or the API. It is not a QRadar rule.
AQL search for the Log Activity tab or the API. It is NOT a deployable QRadar rule: real-time detection in QRadar is a CRE (Custom Rule Engine) rule, for which this build only writes a design specification (qradar_cre).
SELECT * FROM events WHERE devicetype=12 AND (LOWER(CONCAT('file directory', '/', filename)) LIKE '%\kprocesshacker.sys' OR (LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=821d74031d3f625bcbd0df08b70f1e77%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=f86759bb4de4320918615dc06e998a39%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=0a64eeb85419257d0ce32bd5d55c3a18%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=6e7b34dfc017700b1517b230df6ff0d0%'))QRadar CRE
Design for the QRadar Rule Wizard. It is not importable and has not been tested in QRadar.
- Rule name
OffSet7: PUA - Process Hacker Driver Load- Rule type
- Event rule (Local)
- Log source types
- Microsoft Windows Security Event Log DSM: Sysmon EID 6 (driver loaded)
Building blocks
BB:OffSet7:PUA Process Hacker Driver Load:selection(match)Any of the groups matches (OR): build one BB per group and a parent BB "when an event matches any of" them.CONCAT('file directory', '/', filename)ends with:\kprocesshacker.sysCONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')contains:IMPHASH=821D74031D3F625BCBD0DF08B70F1E77,IMPHASH=F86759BB4DE4320918615DC06E998A39,IMPHASH=0A64EEB85419257D0CE32BD5D55C3A18,IMPHASH=6E7B34DFC017700B1517B230DF6FF0D0
Main rule, option A (building blocks)
- when the event(s) were detected by one or more of these log source types:
Microsoft Windows Security Event Log DSM: Sysmon EID 6 (driver loaded) - when an event matches the condition built from these building blocks:
BB:OffSet7:PUA Process Hacker Driver Load:selection
Main rule, option B (AQL filter test)
- when the event matches this AQL filter query:
devicetype=12 AND (LOWER(CONCAT('file directory', '/', filename)) LIKE '%\kprocesshacker.sys' OR (LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=821d74031d3f625bcbd0df08b70f1e77%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=f86759bb4de4320918615dc06e998a39%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=0a64eeb85419257d0ce32bd5d55c3a18%' OR LOWER(CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH')) LIKE '%imphash=6e7b34dfc017700b1517b230df6ff0d0%'))
Rule response
- Severity 7, credibility 6, relevance 7
- Ensure the detected event is part of an offense; index offense on Log Source (host) and annotate with the rule title and OffSet7 rule id
- Respond no more than once per 30 minutes per Log Source (tune per environment)
Limitations
- QRadar AQL LIKE / CRE string tests are case-sensitive unless the property is lower-cased; the AQL option uses LOWER() where the backend applied it.
Splunk
Splunk SPLSearch
Search for Splunk with Windows/Sysmon field names. A scheduled search or ES correlation search also needs a schedule, time range, throttling and an adaptive response, set in your environment.
ImageLoaded="*\\kprocesshacker.sys" OR Hashes IN ("*IMPHASH=821D74031D3F625BCBD0DF08B70F1E77*", "*IMPHASH=F86759BB4DE4320918615DC06E998A39*", "*IMPHASH=0A64EEB85419257D0CE32BD5D55C3A18*", "*IMPHASH=6E7B34DFC017700B1517B230DF6FF0D0*")Splunk savedsearches.conf stanzaScheduled search template
Template stanza. Review schedule, alert actions and index/sourcetype for your environment before enabling.
[default]
dispatch.earliest_time = -30d
dispatch.latest_time = now
[PUA - Process Hacker Driver Load]
description = Detects driver load of the Process Hacker tool
search = ImageLoaded="*\\kprocesshacker.sys" OR Hashes IN ("*IMPHASH=821D74031D3F625BCBD0DF08B70F1E77*", "*IMPHASH=F86759BB4DE4320918615DC06E998A39*", "*IMPHASH=0A64EEB85419257D0CE32BD5D55C3A18*", "*IMPHASH=6E7B34DFC017700B1517B230DF6FF0D0*")Elastic
Elastic Lucene (ECS)Hunting query
Lucene query over ECS fields (Winlogbeat/Elastic Agent Windows mappings). A detection rule also needs an index pattern, schedule and actions.
file.path:*\\kprocesshacker.sys OR (winlog.event_data.Hashes:(*IMPHASH\=821D74031D3F625BCBD0DF08B70F1E77* OR *IMPHASH\=F86759BB4DE4320918615DC06E998A39* OR *IMPHASH\=0A64EEB85419257D0CE32BD5D55C3A18* OR *IMPHASH\=6E7B34DFC017700B1517B230DF6FF0D0*))Elastic EQL (ECS)Hunting query
EQL query over ECS fields. Usable in an Elastic Security EQL rule after review; index pattern and schedule are set per environment.
any where file.path:"*\\kprocesshacker.sys" or (winlog.event_data.Hashes like~ ("*IMPHASH=821D74031D3F625BCBD0DF08B70F1E77*", "*IMPHASH=F86759BB4DE4320918615DC06E998A39*", "*IMPHASH=0A64EEB85419257D0CE32BD5D55C3A18*", "*IMPHASH=6E7B34DFC017700B1517B230DF6FF0D0*"))Elastic ES|QL (ECS)Hunting query
ES|QL query over ECS fields; the FROM clause uses * and must be narrowed to your indices.
from * metadata _id, _index, _version | where ends_with(file.path, "\\kprocesshacker.sys") or winlog.event_data.Hashes like "*IMPHASH=821D74031D3F625BCBD0DF08B70F1E77*" or winlog.event_data.Hashes like "*IMPHASH=F86759BB4DE4320918615DC06E998A39*" or winlog.event_data.Hashes like "*IMPHASH=0A64EEB85419257D0CE32BD5D55C3A18*" or winlog.event_data.Hashes like "*IMPHASH=6E7B34DFC017700B1517B230DF6FF0D0*"No working conversion: Microsoft Sentinel KQL (ASIM) (No ASIM parser/table for this log source in the stock pipeline (see native draft on the Event table where one exists).); Microsoft Defender XDR KQL (No documented Defender XDR table with these fields (DeviceEvents ActionTypes are only listed in the in-portal schema); not drafted.)
Required telemetry
- Log source
product: windows · category: driver_load- Fields used
HashesImageLoaded
False positives
- Legitimate use of process hacker or system informer by developers or system administrators
Investigation and response
No OffSet7 investigation guidance has been written for this rule yet. Start from the false positives above and the ATT&CK technique pages.
References
Author and attribution
- Author
- Florian Roth (Nextron Systems)
- Source
- SigmaHQ ·
rules/windows/driver_load/driver_load_win_pua_process_hacker.yml - Upstream commit
9688134317a2- Licence
- Detection Rule License (DRL) 1.1
Version history
- Version 1Imported from SigmaHQ
- OffSet7 build · SigmaHQ
9688134317a2