Sigma Rule Library

Persistence Via Hhctrl.ocx

Detects when an attacker modifies the registry value of the "hhctrl" to point to a custom binary

View on GitHubOpen raw file

Detection logic

selection

TargetObject|contains: \CLSID\{52A2AAAE-085D-4187-97EA-8C30DB990436}\InprocServer32\(Default)

filter_main_default_value

Details:
  - "%%SystemRoot%%\\System32\\hhctrl.ocx"
  - "%%SystemRoot%%\\SysWOW64\\hhctrl.ocx"
  - "%%windir%%\\System32\\hhctrl.ocx"
  - "%%windir%%\\SysWOW64\\hhctrl.ocx"
  - "%SystemRoot%\\System32\\hhctrl.ocx"
  - "%SystemRoot%\\SysWOW64\\hhctrl.ocx"
  - "%windir%\\System32\\hhctrl.ocx"
  - "%windir%\\SysWOW64\\hhctrl.ocx"
  - C:\Windows\System32\hhctrl.ocx
  - C:\Windows\SysWOW64\hhctrl.ocx

Condition

selection and not 1 of filter_main_*

Raw YAML

title: Persistence Via Hhctrl.ocx
id: f10ed525-97fe-4fed-be7c-2feecca941b1
status: test
description: Detects when an attacker modifies the registry value of the "hhctrl" to point to a custom binary
references:
    - https://persistence-info.github.io/Data/hhctrl.html
    - https://www.hexacorn.com/blog/2018/04/23/beyond-good-ol-run-key-part-77/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-07-21
modified: 2026-11-12
tags:
    - attack.persistence
logsource:
    category: registry_set
    product: windows
detection:
    selection:
        TargetObject|contains: '\CLSID\{52A2AAAE-085D-4187-97EA-8C30DB990436}\InprocServer32\(Default)'
    filter_main_default_value:
        Details:
            - '%%SystemRoot%%\System32\hhctrl.ocx'
            - '%%SystemRoot%%\SysWOW64\hhctrl.ocx'
            - '%%windir%%\System32\hhctrl.ocx'
            - '%%windir%%\SysWOW64\hhctrl.ocx'
            - '%SystemRoot%\System32\hhctrl.ocx'
            - '%SystemRoot%\SysWOW64\hhctrl.ocx'
            - '%windir%\System32\hhctrl.ocx'
            - '%windir%\SysWOW64\hhctrl.ocx'
            - 'C:\Windows\System32\hhctrl.ocx'
            - 'C:\Windows\SysWOW64\hhctrl.ocx'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Unlikely
level: high

False positives

  • Unlikely

References

Similar rules