From 211e37d190aebbbb250a2edc329437f177c1639d Mon Sep 17 00:00:00 2001 From: Max Altgelt Date: Tue, 11 Nov 2025 18:10:04 +0100 Subject: [PATCH] fix: rename fields that were named type --- thorlog/v3/cobaltstrike.go | 2 +- thorlog/v3/hostinfo.go | 2 +- thorlog/v3/processhandle.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/thorlog/v3/cobaltstrike.go b/thorlog/v3/cobaltstrike.go index d39c12d..12dcd76 100644 --- a/thorlog/v3/cobaltstrike.go +++ b/thorlog/v3/cobaltstrike.go @@ -1,7 +1,7 @@ package thorlog type BeaconConfig struct { - Type string `json:"type" textlog:"type"` + Type string `json:"beacon_type" textlog:"type"` C2 string `json:"c2" textlog:"c2"` Port string `json:"port" textlog:"port"` SpawnTo string `json:"spawn_to" textlog:"spawnto"` diff --git a/thorlog/v3/hostinfo.go b/thorlog/v3/hostinfo.go index 0b929b8..8a07370 100644 --- a/thorlog/v3/hostinfo.go +++ b/thorlog/v3/hostinfo.go @@ -147,7 +147,7 @@ type PlatformInfoWindows struct { jsonlog.ObjectHeader Name string `json:"name" textlog:"name"` - Type string `json:"type" textlog:"type"` + Type string `json:"os_type" textlog:"type"` Version string `json:"version" textlog:"version"` Proc string `json:"proc" textlog:"proc"` Arch string `json:"arch" textlog:"arch"` diff --git a/thorlog/v3/processhandle.go b/thorlog/v3/processhandle.go index 99694fe..33bef18 100644 --- a/thorlog/v3/processhandle.go +++ b/thorlog/v3/processhandle.go @@ -9,7 +9,7 @@ type ProcessHandle struct { Name string `json:"name" textlog:"name"` Handle uint64 `json:"handle" textlog:"handle,omitempty"` - Type string `json:"type,omitempty" textlog:"type,omitempty"` + Type string `json:"handle_type,omitempty" textlog:"type,omitempty"` } func (ProcessHandle) reportable() {}