Skip to content

Commit

Permalink
fix(processors): Overwrite KCB handle
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitstack committed Feb 25, 2025
1 parent 361ed84 commit 818fa7b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/etw/processors/registry_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ func (r *registryProcessor) processEvent(e *kevent.Kevent) (*kevent.Kevent, erro
switch e.Type {
case ktypes.RegKCBRundown, ktypes.RegCreateKCB:
khandle := e.Kparams.MustGetUint64(kparams.RegKeyHandle)
if _, ok := r.keys[khandle]; !ok {
r.keys[khandle], _ = e.Kparams.GetString(kparams.RegPath)
}
r.keys[khandle] = e.Kparams.MustGetString(kparams.RegPath)
kcbCount.Add(1)
case ktypes.RegDeleteKCB:
khandle := e.Kparams.MustGetUint64(kparams.RegKeyHandle)
Expand Down

0 comments on commit 818fa7b

Please sign in to comment.