Comments (3)
I investigated more and found out the json exports correctly have the multiple domain policies with the same name and different GUIDs.
However, when I query Neo4j DB directly, it only returns 1 object with that name.
from sharphound2.
This issue might have to be moved to BloodHound repo
from sharphound2.
Actually, it looks like in the OU collection, the GPO is referenced by name as well:
Extract from ous
json:
[...]
{
"Properties" : {
"name" : "DOMAIN [email protected]",
"highvalue" : false,
"blocksinheritance" : false
},
"Guid" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx",
"ChildOus" : [],
"Computers" : ["COMPUTER1.SUB.DOMAIN", "COMPUTER2.SUB.DOMAIN", "COMPUTER3.SUB.DOMAIN", "COMPUTER4.SUB.DOMAIN"],
"Users" : [],
"Links" : [{
"IsEnforced" : false,
"Name" : "DEFAULT DOMAIN CONTROLLERS [email protected]"
}
],
"Aces" : null
}
[...]
Below a redacted extract of the gpos
:
[...]
{
"Properties" : {
"highvalue" : false
},
"Name" : "DEFAULT DOMAIN CONTROLLERS [email protected]",
"Guid" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx01",
"Aces" : [{
"PrincipalName" : "[email protected]",
"PrincipalType" : "user",
"RightName" : "Owner",
"AceType" : ""
}, {
"PrincipalName" : "DOMAIN [email protected]",
"PrincipalType" : "group",
"RightName" : "WriteDacl",
"AceType" : ""
}, {
"PrincipalName" : "DOMAIN [email protected]",
"PrincipalType" : "group",
"RightName" : "WriteOwner",
"AceType" : ""
}, {
"PrincipalName" : "ENTERPRISE ADMINS@DOMAIN",
"PrincipalType" : "group",
"RightName" : "WriteDacl",
"AceType" : ""
}, {
"PrincipalName" : "ENTERPRISE ADMINS@DOMAIN",
"PrincipalType" : "group",
"RightName" : "WriteOwner",
"AceType" : ""
}
]
}, {
"Properties" : {
"highvalue" : false
},
"Name" : "DEFAULT DOMAIN CONTROLLERS [email protected]",
"Guid" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx02",
"Aces" : [{
"PrincipalName" : "[email protected]",
"PrincipalType" : "user",
"RightName" : "Owner",
"AceType" : ""
}, {
"PrincipalName" : "DOMAIN [email protected]",
"PrincipalType" : "group",
"RightName" : "WriteDacl",
"AceType" : ""
}, {
"PrincipalName" : "DOMAIN [email protected]",
"PrincipalType" : "group",
"RightName" : "WriteOwner",
"AceType" : ""
}, {
"PrincipalName" : "ENTERPRISE ADMINS@DOMAIN",
"PrincipalType" : "group",
"RightName" : "WriteDacl",
"AceType" : ""
}, {
"PrincipalName" : "ENTERPRISE ADMINS@DOMAIN",
"PrincipalType" : "group",
"RightName" : "WriteOwner",
"AceType" : ""
}
]
}
[...]
SharpHound should add the Guid property when collection GPO links with OUs: https://github.com/BloodHoundAD/SharpHound/blob/c26b0556bd7d15e7e4c8fb948e32d268321100e6/Sharphound2/Enumeration/ContainerHelpers.cs#L147
from sharphound2.
Related Issues (20)
- Unhandled Exception: AggregateException_ctor_DefaultMessage HOT 3
- Sharphound never completes HOT 7
- Unhandled Exception: System.MissingMethodException
- ForeignSecurityPrincipals not collected HOT 1
- Sharphound denial of service due to inefficient LDAP query in LocalGroupHelpers.cs HOT 2
- Why The SharpHound dont stop ?
- DomainController option does not seem to work. Need to request specific DC ip.
- Issue pulling rights from AD
- SharpHound can hang when using GPOLocalGroup due to bad regex in LocalGroupHelpers.cs
- Unhandled exception when DNS info not found
- SharpHound ends execution upon network disconnection
- ACL Option Causes Crash - "Value cannot be null. Parameter name: b"
- Suggestion: keep SID attribute for MappedPrincipals
- Missing object GUID for object filter in ACE
- Error in collecting Data
- Version 2 data not compatible with bloodhound 3
- Max loop interval duration?
- bad json when importing HOT 1
- SharpHound slow and cannot collect all AD objects HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharphound2.