Windows ETW: Kernel-General resets registry hive access bits in temp hive paths

Detects ETW EventID 16 when access bits are reset for Temp \SAM or \SECURITY hives.

FreeReviewedSigma · High · v2
Product
windows
Service
system
Author
Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2017-05-15
Updated
2026-07-31
title: "Windows ETW: Kernel-General resets registry hive access bits in temp hive paths"
id: 6a4259e0-46e1-4d8e-a2d4-a7fab9efd85e
related:
  - id: 839dd1e8-eda8-4834-8145-01beeee33acd
    type: obsolete
  - id: 39f919f3-980b-4e6f-a975-8af7e507ef2b
    type: derived
status: test
description: This rule identifies Kernel-General ETW events where a registry hive located under the temporary directory (containing \Temp\SAM or \Temp\SECURITY) has its access bits reset. Resetting hive access bits can indicate attempts to access or extract protected registry data from hives that have not been recognized recently. The detection relies on Windows System ETW telemetry (Microsoft-Windows-Kernel-General, EventID 16) including the hive name in the event.
references:
  - https://github.com/nasbench/Misc-Research/blob/b20da2336de0f342d31ef4794959d28c8d3ba5ba/ETW/Microsoft-Windows-Kernel-General.md
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/builtin/system/microsoft_windows_kernel_general/win_system_susp_critical_hive_location_access_bits_cleared.yml
author: Florian Roth (Nextron Systems), Huntrule Team
date: 2017-05-15
modified: 2024-01-18
tags:
  - attack.credential-access
  - attack.t1003.002
logsource:
  product: windows
  service: system
detection:
  selection:
    EventID: 16
    Provider_Name: Microsoft-Windows-Kernel-General
    HiveName|contains:
      - \Temp\SAM
      - \Temp\SECURITY
  condition: selection
falsepositives:
  - Unknown
level: high
license: DRL-1.1