Skip to content

[Query Issue]: Non-Tier Zero account with unconstrained delegation #38

@kaasimir

Description

@kaasimir

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions