Bloodhound Cypher Queries

Return all users

MATCH (u:User) RETURN u 

Return all computers

MATCH (c:Computer) RETURN c

Return the users with the name containing "ADMIN"

MATCH (u:User) WHERE u.name =~ ".ADMIN." RETURN u.name

Return all the users and the computer they are admin to

MATCH p = (u:User)-[:AdminTo]->(c:Computer) RETURN p

Return the users with the name containing "ADMIN" and the computer they are admin to

MATCH p = (u:User)-[:AdminTo]->(c:Computer) WHERE u.name =~ ".ADMIN." RETURN p 
MATCH p=shortestPath((c {owned: true})-[*1..3]->(s)) WHERE NOT c = s RETURN p 
MATCH p=shortestPath((u {highvalue: false})-[1..]->(g:Group {name: 'DOMAIN [email protected]'})) WHERE NOT (u)-[:MemberOf1..]->(:Group {highvalue: true}) RETURN p

List all owned users

MATCH (m:User) WHERE m.owned=TRUE RETURN m

List all owned computers

MATCH (m:Computer) WHERE m.owned=TRUE RETURN m

List all owned groups

List all high value targets

List the groups of all owned users

Find all Kerberostable Users

Find all users with an SPN/find all kerberostable users with passwords last set less than 5 years ago

Find kerberostable users with a path to DA

Find machines Domain Users can RDP into

Last updated