Atlantiraptor Docs

Windows.ETW.Registry

Type: Client event (monitoring)

Monitors registry create, open, delete, and value modification events via the Kernel-Registry ETW provider.

The Windows Registry access is a great source of visibility into system activity. There are many ways of gaining visibility into this, the most reliable being Sysmon. However it is also possible to gain some visibility using ETW. The Microsoft-Windows-Kernel-Registry provider provides ETW events for registry modifications.

This artifact parses these events and ties them back to the accessing process. We recommend running this artifact with the process tracker.

NOTE: Experience shows this ETW provider is not very reliable and seems to miss a lot of registry events. This artifact should therefore be considered experimental.

Precondition: SELECT * FROM info() WHERE OS = "windows"

Parameters

Name Type Default Description
KeyNameRegex regex .
ProcessRegex regex .

Source

Defined in artifacts/definitions/Windows/ETW/Registry.yaml.

name: Windows.ETW.Registry
description: |
  Monitors registry create, open, delete, and value modification
  events via the Kernel-Registry ETW provider.
  
  The Windows Registry access is a great source of visibility into
  system activity. There are many ways of gaining visibility into
  this, the most reliable being Sysmon. However it is also possible to
  gain some visibility using ETW. The
  `Microsoft-Windows-Kernel-Registry` provider provides ETW events for
  registry modifications.

  This artifact parses these events and ties them back to the
  accessing process. We recommend running this artifact with the
  process tracker.

  NOTE: Experience shows this ETW provider is not very reliable and
  seems to miss a lot of registry events. This artifact should
  therefore be considered experimental.

type: CLIENT_EVENT

precondition: SELECT * FROM info() WHERE OS = "windows"

parameters:
- name: KeyNameRegex
  type: regex
  default: .
- name: ProcessRegex
  type: regex
  default: .

sources:
- query: |
    LET Cache <= lru(size=1000)
    LET EventLookup <= dict(
        `1`="CreateKey",
        `2`="OpenKey",
        `3`="DeleteKey",
        `4`="QueryKey",
        `5`="SetValueKey",
        `6`="DeleteValueKey",
        `7`="QueryValue",
        `8`="EnumerateKey",
        `9`="EnumerateValueKey"
    )

    LET registry_access = SELECT System, EventData,
       get(item=EventLookup, field=str(str=System.ID)) AS EventType,
       get(item=Cache, field=EventData.KeyObject) || EventData.KeyName AS KeyName
    FROM watch_etw(
      description="Microsoft-Windows-Kernel-Registry",
      guid="{70EB4F03-C1DE-4F73-A051-33D13D5413BD}", any=0x7720)
    WHERE System.ProcessID != getpid() -- exclude ourselves
        AND EventType  -- we only care about these events
        AND if(condition=System.ID in (1, 2, 4),
              then=set(item=Cache, field=EventData.KeyObject,
                       value=EventData.RelativeName),
              else=TRUE) -- set KeyName in the lru

    LET hits = SELECT System.TimeStamp AS Timestamp,
       process_tracker_get(id=System.ProcessID).Data AS Process,
       EventType, KeyName, EventData
    FROM registry_access
    WHERE KeyName =~ KeyNameRegex

    SELECT Timestamp, EventType,
       System AS _System, EventData AS _EventData,
       Process.Name AS ProcessName, Process.Username AS Owner,
       Process.CommandLine AS CommandLine,
       KeyName, EventData.ValueName AS ValueName
    FROM hits
    WHERE ProcessName =~ ProcessRegex

Edit this page on GitHub

© 2026 Atlant Security EOOD. Atlantiraptor is free software under the GNU Affero General Public License v3. It is based on Velociraptor by Velocidex, and keeps its copyright notices. Velociraptor is a trademark of its owner; Atlantiraptor is not affiliated with or endorsed by it.