Skip to content

Commit 44b6047

Browse files
committed
Ignore write access to /adm folder in GPOs, it's not an attack vector
1 parent 69eadcf commit 44b6047

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/integrations/activedirectory/analyze/gpoimport.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ func ImportGPOInfo(ginfo activedirectory.GPOdump, ao *engine.IndexedGraph) error
7373
activedirectory.WhenChanged, item.Timestamp,
7474
)
7575

76+
if strings.EqualFold(relativepath, "/adm") ||
77+
strings.EqualFold(relativepath, "/gpt.ini") {
78+
// not really useful from an attack perspective
79+
continue
80+
}
7681
if relativepath == "/" {
7782
ao.EdgeTo(itemobject, gpoobject, EdgeFSPartOfGPO)
7883
gpoobject.Adopt(itemobject)

0 commit comments

Comments
 (0)