Coder Social home page Coder Social logo

bloodhound-custom-queries's Introduction

BloodHound Custom Queries

Custom Query list for the Bloodhound GUI based off my cheatsheet

Replace the .json file located in C:\Users[USERNAME]\AppData\Roaming\BloodHound\customqueries.json with this one, or open up your file (click on the pencil icon next to Custom Queries in the Queries tab) and copy+paste in my contents, Then refresh Bloodhound (Queries tab>Custom Queries>Refresh icon). icons

Tweet me with questions/concerns/comments: https://twitter.com/Haus3c

bloodhound-custom-queries's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bloodhound-custom-queries's Issues

Line 280 "Find Kerberoastable users and where they are AdminTo"

Currently query reads: "query": "OPTIONAL MATCH (u1:User) WHERE u1.hasspn=true OPTIONAL MATCH (u1)-[r:AdminTo]->(c:Computer) RETURN u"

Should read: "query": "OPTIONAL MATCH (u1:User) WHERE u1.hasspn=true OPTIONAL MATCH (u1)-[r:AdminTo]->(c:Computer) RETURN u1"

Although, even with that, the data I'm looking at only returns the kerberoastable accounts. I tried adding ",c" to the end of the query and I do get the machines, but it's missing the relationship between the two. When I tried adding "r" as well, it went back to producing only kerberoastable accounts

Incorrect queries?

Are the two queries below correct?

  • Find users that logged in within the last 90 days
  • Find users with passwords last set within the last 90 days <-- I'll be using this as an example

I took your query and added info to get the actual name and pwdlastset timestamp. In the Neo4j browser:
MATCH (u:User) WHERE u.pwdlastset < (datetime().epochseconds - (90 * 86400)) and NOT u.pwdlastset IN [-1.0, 0.0] RETURN u.name, u.pwdlastset

I get this data back:

u.name u.pwdlastset
"USERNAME@DOMAIN" 1540398615.0

Converting that timestamp to a date:
MATCH (u:User) WHERE u.pwdlastset < (datetime().epochseconds - (90 * 86400)) and NOT u.pwdlastset IN [-1.0, 0.0] RETURN u.name,datetime({epochSeconds:toInteger(u.pwdlastset)})

I get this data back (which is more than 90 days):

u.name datetime({epochSeconds:toInteger(u.pwdlastset)})
"USERNAME@DOMAIN" "2018-10-24T16:30:15Z"

I think the text needs to be flipped to read Find users with passwords last set in 90 days or more or the less than symbol (<) needs to be flipped around to a greater than symbol (>)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.