Latest alertCVE-2018-11776 in Apache Struts Confirmed Exploited in the WildRead
Search all news in the platform

Detection rule

HackTool - PCHunter Execution

HighTest-data validatedSigmaHQ (community)T1007T1012T1057T1082T1083

Overview

Detects suspicious use of PCHunter, a tool like Process Hacker to view and manipulate processes, kernel options and other low level stuff

Rule id
fca949cc-79ca-446e-8064-01aa7e52ece5
ATT&CK techniques
T1007 System Service Discovery, T1012 Query Registry, T1057 Process Discovery, T1082 System Information Discovery, T1083 File and Directory Discovery
Severity
High
Confidence
Low
Origin
SigmaHQ (community)
SigmaHQ status
test
Used in defense packs
qilin, Akira, safepay, rhysida, Play, nightspire, braincipher, majinahanashi

Validation

  1. ExperimentalSyntax checked only. Not yet tested on events.
  2. Test-data validatedMatched positive test events and ignored near-miss events. Not yet run in a production SIEM.
  3. SIEM-validatedRun in a real SIEM, with a recorded result.

3 of 3 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) · fca949cc-79ca-446e-8064-01aa7e52ece5

Download
title: HackTool - PCHunter Execution
id: fca949cc-79ca-446e-8064-01aa7e52ece5
status: test
description: Detects suspicious use of PCHunter, a tool like Process Hacker to view and manipulate processes, kernel options and other low level stuff
references:
    - https://web.archive.org/web/20231210115125/http://www.xuetr.com/
    - https://www.crowdstrike.com/blog/falcon-overwatch-report-finds-increase-in-ecrime/
    - https://www.hexacorn.com/blog/2018/04/20/kernel-hacking-tool-you-might-have-never-heard-of-xuetr-pchunter/
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali
date: 2022-10-10
modified: 2024-11-23
tags:
    - attack.execution
    - attack.discovery
    - attack.t1082
    - attack.t1057
    - attack.t1012
    - attack.t1083
    - attack.t1007
logsource:
    category: process_creation
    product: windows
detection:
    selection_image:
        Image|endswith:
            - '\PCHunter64.exe'
            - '\PCHunter32.exe'
    selection_pe:
        - OriginalFileName: 'PCHunter.exe'
        - Description: 'Epoolsoft Windows Information View Tools'
    selection_hashes:
        Hashes|contains:
            - 'SHA1=5F1CBC3D99558307BC1250D084FA968521482025'
            - 'MD5=987B65CD9B9F4E9A1AFD8F8B48CF64A7'
            - 'SHA256=2B214BDDAAB130C274DE6204AF6DBA5AEEC7433DA99AA950022FA306421A6D32'
            - 'IMPHASH=444D210CEA1FF8112F256A4997EED7FF'
            - 'SHA1=3FB89787CB97D902780DA080545584D97FB1C2EB'
            - 'MD5=228DD0C2E6287547E26FFBD973A40F14'
            - 'SHA256=55F041BF4E78E9BFA6D4EE68BE40E496CE3A1353E1CA4306598589E19802522C'
            - 'IMPHASH=0479F44DF47CFA2EF1CCC4416A538663'
    condition: 1 of selection_*
falsepositives:
    - Unlikely
level: high

QRadar CRE

Design for the QRadar Rule Wizard. It is not importable and has not been tested in QRadar.

Rule name
OffSet7: HackTool - PCHunter Execution
Rule type
Event rule (Local)
Log source types
Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1

Building blocks

  • BB:OffSet7:HackTool PCHunter Execution:selection_image (match)
    All test lines must match (AND).
    • Process Path / Process Name ends with: \PCHunter64.exe, \PCHunter32.exe
  • BB:OffSet7:HackTool PCHunter Execution:selection_pe (match)
    Any of the groups matches (OR): build one BB per group and a parent BB "when an event matches any of" them.
    • Filename is equal to (case-insensitive): PCHunter.exe
    • custom property needed: Description is equal to (case-insensitive): Epoolsoft Windows Information View Tools
      No QRadar property mapped for "Description": create a custom event property (regex or JSON) on the DSM first.
  • BB:OffSet7:HackTool PCHunter Execution:selection_hashes (match)
    All test lines must match (AND).
    • CONCAT('MD5=', 'MD5 Hash ', 'SHA1=', 'SHA1 Hash ', 'SHA256=', 'SHA256 Hash ', 'IMPHASH=', 'IMP HASH') contains: SHA1=5F1CBC3D99558307BC1250D084FA968521482025, MD5=987B65CD9B9F4E9A1AFD8F8B48CF64A7, SHA256=2B214BDDAAB130C274DE6204AF6DBA5AEEC7433DA99AA950022FA306421A6D32, IMPHASH=444D210CEA1FF8112F256A4997EED7FF, SHA1=3FB89787CB97D902780DA080545584D97FB1C2EB, MD5=228DD0C2E6287547E26FFBD973A40F14, SHA256=55F041BF4E78E9BFA6D4EE68BE40E496CE3A1353E1CA4306598589E19802522C, IMPHASH=0479F44DF47CFA2EF1CCC4416A538663

Main rule, option A (building blocks)

  1. when the event(s) were detected by one or more of these log source types: Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1
  2. when an event matches the condition built from these building blocks: (ANY of [BB:OffSet7:HackTool PCHunter Execution:selection_image, BB:OffSet7:HackTool PCHunter Execution:selection_pe, BB:OffSet7:HackTool PCHunter Execution:selection_hashes])

Main rule, option B (AQL filter test)

Not available: the AQL conversion failed for this rule.

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

  • AQL conversion failed (field 'Description' is not supported); only the building-block design is available.
  • 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.

Image IN ("*\\PCHunter64.exe", "*\\PCHunter32.exe") OR OriginalFileName="PCHunter.exe" OR Description="Epoolsoft Windows Information View Tools" OR Hashes IN ("*SHA1=5F1CBC3D99558307BC1250D084FA968521482025*", "*MD5=987B65CD9B9F4E9A1AFD8F8B48CF64A7*", "*SHA256=2B214BDDAAB130C274DE6204AF6DBA5AEEC7433DA99AA950022FA306421A6D32*", "*IMPHASH=444D210CEA1FF8112F256A4997EED7FF*", "*SHA1=3FB89787CB97D902780DA080545584D97FB1C2EB*", "*MD5=228DD0C2E6287547E26FFBD973A40F14*", "*SHA256=55F041BF4E78E9BFA6D4EE68BE40E496CE3A1353E1CA4306598589E19802522C*", "*IMPHASH=0479F44DF47CFA2EF1CCC4416A538663*")

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

[HackTool - PCHunter Execution]
description = Detects suspicious use of PCHunter, a tool like Process Hacker to view and manipulate processes, kernel options and other low level stuff
search = Image IN ("*\\PCHunter64.exe", "*\\PCHunter32.exe") OR OriginalFileName="PCHunter.exe" OR Description="Epoolsoft Windows Information View Tools" OR Hashes IN ("*SHA1=5F1CBC3D99558307BC1250D084FA968521482025*", "*MD5=987B65CD9B9F4E9A1AFD8F8B48CF64A7*", "*SHA256=2B214BDDAAB130C274DE6204AF6DBA5AEEC7433DA99AA950022FA306421A6D32*", "*IMPHASH=444D210CEA1FF8112F256A4997EED7FF*", "*SHA1=3FB89787CB97D902780DA080545584D97FB1C2EB*", "*MD5=228DD0C2E6287547E26FFBD973A40F14*", "*SHA256=55F041BF4E78E9BFA6D4EE68BE40E496CE3A1353E1CA4306598589E19802522C*", "*IMPHASH=0479F44DF47CFA2EF1CCC4416A538663*")

Microsoft Sentinel

Microsoft Sentinel KQL (ASIM)Hunting query

Hunting query over ASIM-normalized tables. An analytics rule also needs a schedule, entity mapping and alert grouping.

imProcessCreate
| where (TargetProcessName endswith "\\PCHunter64.exe" or TargetProcessName endswith "\\PCHunter32.exe") or (TargetProcessFileOriginalName =~ "PCHunter.exe" or TargetProcessFileDescription =~ "Epoolsoft Windows Information View Tools") or ((TargetProcessSHA1 startswith "5F1CBC3D99558307BC1250D084FA968521482025" or TargetProcessSHA1 startswith "3FB89787CB97D902780DA080545584D97FB1C2EB") or (TargetProcessMD5 startswith "987B65CD9B9F4E9A1AFD8F8B48CF64A7" or TargetProcessMD5 startswith "228DD0C2E6287547E26FFBD973A40F14") or (TargetProcessSHA256 startswith "2B214BDDAAB130C274DE6204AF6DBA5AEEC7433DA99AA950022FA306421A6D32" or TargetProcessSHA256 startswith "55F041BF4E78E9BFA6D4EE68BE40E496CE3A1353E1CA4306598589E19802522C") or (TargetProcessIMPHASH startswith "444D210CEA1FF8112F256A4997EED7FF" or TargetProcessIMPHASH startswith "0479F44DF47CFA2EF1CCC4416A538663"))

Defender XDR

Microsoft Defender XDR KQLHunting query

Advanced hunting query. A custom detection rule also needs a frequency, impacted entities and actions.

DeviceProcessEvents
| where (FolderPath endswith "\\PCHunter64.exe" or FolderPath endswith "\\PCHunter32.exe") or (ProcessVersionInfoOriginalFileName =~ "PCHunter.exe" or ProcessVersionInfoFileDescription =~ "Epoolsoft Windows Information View Tools") or ((SHA1 startswith "5F1CBC3D99558307BC1250D084FA968521482025" or SHA1 startswith "3FB89787CB97D902780DA080545584D97FB1C2EB") or (MD5 startswith "987B65CD9B9F4E9A1AFD8F8B48CF64A7" or MD5 startswith "228DD0C2E6287547E26FFBD973A40F14") or (SHA256 startswith "2B214BDDAAB130C274DE6204AF6DBA5AEEC7433DA99AA950022FA306421A6D32" or SHA256 startswith "55F041BF4E78E9BFA6D4EE68BE40E496CE3A1353E1CA4306598589E19802522C"))

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.

(process.executable:(*\\PCHunter64.exe OR *\\PCHunter32.exe)) OR (process.pe.original_file_name:PCHunter.exe OR process.pe.description:"Epoolsoft Windows Information View Tools") OR (winlog.event_data.Hashes:(*SHA1\=5F1CBC3D99558307BC1250D084FA968521482025* OR *MD5\=987B65CD9B9F4E9A1AFD8F8B48CF64A7* OR *SHA256\=2B214BDDAAB130C274DE6204AF6DBA5AEEC7433DA99AA950022FA306421A6D32* OR *IMPHASH\=444D210CEA1FF8112F256A4997EED7FF* OR *SHA1\=3FB89787CB97D902780DA080545584D97FB1C2EB* OR *MD5\=228DD0C2E6287547E26FFBD973A40F14* OR *SHA256\=55F041BF4E78E9BFA6D4EE68BE40E496CE3A1353E1CA4306598589E19802522C* OR *IMPHASH\=0479F44DF47CFA2EF1CCC4416A538663*))

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 (process.executable like~ ("*\\PCHunter64.exe", "*\\PCHunter32.exe")) or (process.pe.original_file_name:"PCHunter.exe" or process.pe.description:"Epoolsoft Windows Information View Tools") or (winlog.event_data.Hashes like~ ("*SHA1=5F1CBC3D99558307BC1250D084FA968521482025*", "*MD5=987B65CD9B9F4E9A1AFD8F8B48CF64A7*", "*SHA256=2B214BDDAAB130C274DE6204AF6DBA5AEEC7433DA99AA950022FA306421A6D32*", "*IMPHASH=444D210CEA1FF8112F256A4997EED7FF*", "*SHA1=3FB89787CB97D902780DA080545584D97FB1C2EB*", "*MD5=228DD0C2E6287547E26FFBD973A40F14*", "*SHA256=55F041BF4E78E9BFA6D4EE68BE40E496CE3A1353E1CA4306598589E19802522C*", "*IMPHASH=0479F44DF47CFA2EF1CCC4416A538663*"))

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(process.executable, "\\PCHunter64.exe") or ends_with(process.executable, "\\PCHunter32.exe") or process.pe.original_file_name=="PCHunter.exe" or process.pe.description=="Epoolsoft Windows Information View Tools" or winlog.event_data.Hashes like "*SHA1=5F1CBC3D99558307BC1250D084FA968521482025*" or winlog.event_data.Hashes like "*MD5=987B65CD9B9F4E9A1AFD8F8B48CF64A7*" or winlog.event_data.Hashes like "*SHA256=2B214BDDAAB130C274DE6204AF6DBA5AEEC7433DA99AA950022FA306421A6D32*" or winlog.event_data.Hashes like "*IMPHASH=444D210CEA1FF8112F256A4997EED7FF*" or winlog.event_data.Hashes like "*SHA1=3FB89787CB97D902780DA080545584D97FB1C2EB*" or winlog.event_data.Hashes like "*MD5=228DD0C2E6287547E26FFBD973A40F14*" or winlog.event_data.Hashes like "*SHA256=55F041BF4E78E9BFA6D4EE68BE40E496CE3A1353E1CA4306598589E19802522C*" or winlog.event_data.Hashes like "*IMPHASH=0479F44DF47CFA2EF1CCC4416A538663*"

No working conversion: IBM QRadar AQL (hunting query) (QRadar AQL backend has no property mapping for field "Description")

Required telemetry

Log source
product: windows · category: process_creation
Fields used
Description Hashes Image OriginalFileName

False positives

  • Unlikely

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), Nasreddine Bencherchali
Source
SigmaHQ · rules/windows/process_creation/proc_creation_win_hktl_pchunter.yml
Upstream commit
9688134317a2
Licence
Detection Rule License (DRL) 1.1

Version history

  1. Version 1Imported from SigmaHQ
  2. OffSet7 build · SigmaHQ 9688134317a2

Related rules

  • PUA - Seatbelt Execution

    HighTest-data validatedT1083T1087T1526Splunk · Sentinel · Defender XDR · ElasticUpdated 4 February 2023