Skip to content

Commit a3462ed

Browse files
committedMar 25, 2025·
Emit warning for unhandled privileges encountered while processing local machine data
1 parent 44a1b98 commit a3462ed

File tree

1 file changed

+7
-0
lines changed
  • modules/integrations/localmachine/analyze

1 file changed

+7
-0
lines changed
 

‎modules/integrations/localmachine/analyze/import.go

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package analyze
22

33
import (
44
"fmt"
5+
"internal/sync"
56
"net/url"
67
"path/filepath"
78
"strings"
@@ -14,6 +15,8 @@ import (
1415
"github.com/lkarlslund/adalanche/modules/windowssecurity"
1516
)
1617

18+
var unhandledPrivileges sync.HashTrieMap[string, struct{}]
19+
1720
// Returns the computer object
1821
func ImportCollectorInfo(ao *engine.Objects, cinfo localmachine.Info) (*engine.Object, error) {
1922
var machine *engine.Object
@@ -230,6 +233,10 @@ func ImportCollectorInfo(ao *engine.Objects, cinfo localmachine.Info) (*engine.O
230233
ui.Trace().Msgf("SeEnableDelegationPrivilege hit")
231234
continue
232235
default:
236+
_, loaded := unhandledPrivileges.LoadOrStore(pi, struct{}{})
237+
if !loaded {
238+
ui.Warn().Msgf("Unhandled privilege encountered; %v", pi)
239+
}
233240
continue
234241
}
235242
for _, sidstring := range pi.AssignedSIDs {

0 commit comments

Comments
 (0)
Please sign in to comment.