-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Query GUID
e7e9a927-3f34-42c7-b921-d8bcf626011e
Query content
MATCH (n:Base)
WHERE n.unconstraineddelegation = true
AND NOT ((n:Tag_Tier_Zero) OR COALESCE(n.system_tags, '') CONTAINS 'admin_tier_0')
RETURN n
Issue description
Hey folks! :)
The query works fine, however I'd propose changing it to only exclude DCs and not all Tier Zero Objects.
DCs run with unconstrained delegations by default:
- "Unconstrained delegation is enabled by default and required on all domain controllers (DCs)." - https://www.crowe.com/insights/crowe-cyber-watch/unconstrained-delegation-too-trusting-for-its-own-good
- "Review the recommended action at ... to discover which of your non-domain controller entities are configured for unsecure Kerberos delegation." - https://learn.microsoft.com/en-us/defender-for-identity/security-assessment-unconstrained-kerberos
To my knowledge an unconstrained delegation on any other Tier Zero object would be a misconfiguration.
So from my point of view it would make sense to exclude DCs but include any other Tier Zero Object.
I modified the query to this one:
MATCH (n:Base)
WHERE n.unconstraineddelegation = true
OPTIONAL MATCH (n)-[:MemberOf]->(g:Group)
WHERE g.objectid ENDS WITH '-516' // Domain Controllers
WITH n, g
WHERE g IS NULL
RETURN n
LIMIT 1000
In case my suggestion gets accepted, changing the title to "Non-DCs with unconstrained delegation" would make sense.
Have a great day, cheers! :)
BloodHound version
lastest version
BloodHound DB
default Neo4j