Skip to content

Commit

Permalink
Domain Authenticated users is member of Authenticated users on Domain…
Browse files Browse the repository at this point in the history
… members
  • Loading branch information
lkarlslund committed Sep 27, 2022
1 parent de0d736 commit b5e5231
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/integrations/localmachine/analyze/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,12 @@ func ImportCollectorInfo(ao *engine.Objects, cinfo localmachine.Info) (*engine.O

authenticatedusers, _, _ := ri.GetSIDObject(windowssecurity.AuthenticatedUsersSID, Auto)
authenticatedusers.SetFlex(engine.ObjectCategorySimple, "Group") // This could go wrong
authenticatedusers.EdgeTo(everyone, activedirectory.EdgeMemberOfGroup)

everyone.EdgeTo(authenticatedusers, activedirectory.EdgeMemberOfGroup)
if cinfo.Machine.IsDomainJoined {
domainauthenticatedusers, _, _ := ri.GetSIDObject(windowssecurity.EveryoneSID, Domain)
domainauthenticatedusers.EdgeTo(authenticatedusers, activedirectory.EdgeMemberOfGroup)
}

var macaddrs, ipaddresses []string

Expand Down

0 comments on commit b5e5231

Please sign in to comment.