Skip to content

Commit

Permalink
Bed 4969: Direct Access Users group missing from collection or post-p…
Browse files Browse the repository at this point in the history
…rocessing (#1115)

* Do not throw away ADLocalGroups with 0 members if the group name begins with Direct Access Users

* Clean up
  • Loading branch information
AD7ZJ authored Jan 30, 2025
1 parent 78bd0da commit 9da7f72
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/api/src/daemons/datapipe/convertors.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
package datapipe

import (
"strings"

"github.com/specterops/bloodhound/ein"
"github.com/specterops/bloodhound/graphschema/ad"
)
Expand All @@ -34,7 +36,8 @@ func convertComputerData(computer ein.Computer, converted *ConvertedData) {

converted.RelProps = append(converted.RelProps, ein.ParseComputerMiscData(computer)...)
for _, localGroup := range computer.LocalGroups {
if !localGroup.Collected || len(localGroup.Results) == 0 {
// throw away groups with 0 members unless the group name begins with "DIRECT ACCESS USERS"
if !localGroup.Collected || (len(localGroup.Results) == 0 && !strings.HasPrefix(strings.ToUpper(localGroup.Name), "DIRECT ACCESS USERS")) {
continue
}

Expand Down

0 comments on commit 9da7f72

Please sign in to comment.