Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bloodhound customqueries: better RDP queries #324

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

gbe
Copy link
Contributor

@gbe gbe commented Apr 5, 2024

Dear team,

I noticed that when querying Bloodhound to get a list of machines where Domain users can RDP to, it only lists the machines where the single node "domain users" has a direct canRDP relationtype with the computer objects.

The existing query does not take into account that Domain Users can be member of a group, and it's this group that has a canRDP relationship with the computers.

This PR fixes that, and is basically the union of the builtin queries: First Degree RDP Privileges and Group Delegated RDP Privileges.

In addition:

  • I added new queries to return paths from authenticated users->RDP->computers, with a distinction machines != servers.
  • the case of some keywords were switched to uppercase for clarity.

@gbe gbe changed the title Bloodhount customqueries: better RDP queries Bloodhound customqueries: better RDP queries Apr 5, 2024
@QU35T-code QU35T-code added the enhancement New feature or request label Apr 5, 2024
@QU35T-code QU35T-code added the waiting for review A review is requested label Apr 5, 2024
@ShutdownRepo
Copy link
Member

Thank you @gbe LGTM 🚀

@ShutdownRepo ShutdownRepo merged commit 3e11d1f into ThePorgs:dev Apr 5, 2024
@ShutdownRepo ShutdownRepo removed the waiting for review A review is requested label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants