-
Notifications
You must be signed in to change notification settings - Fork 271
BED-6591: Pre-built query fix for Entra privileged roles queries #1960
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
Conversation
WalkthroughExpanded the highPrivilegedRoleDisplayNameRegex to include "Privileged Role Administrator" and removed name-based role filtering from shortest-path queries to Tier Zero / High Value targets in both AGI and AGT common searches; exported/public signatures unchanged. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant UI as Shared UI
participant Search as Common Searches (AGI/AGT)
participant DB as Graph DB (Cypher)
Note over UI,Search: Trigger shortest-path / privileged-role searches
UI->>Search: requestShortestPaths(tier=TierZero/HighValue)
Search->>DB: MATCH shortestPath... WHERE t.tier = "TierZero" AND s <> t
Note right of DB: Role-name filter removed\nhighPrivilegedRoleDisplayNameRegex updated
DB-->>Search: return paths
Search-->>UI: results
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used🧬 Code graph analysis (1)packages/javascript/bh-shared-ui/src/commonSearchesAGI.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
maffkipp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great!
Description
highPrivilegedRoleDisplayNameRegexAZRole clause from ´Shortest paths from Entra Users to Tier Zero / High Value targets` as the query is targeting Tier Zero, not just privileged roles that are Tier ZerohighPrivilegedRoleDisplayNameRegexas the is highly privileged / Tier ZeroMotivation and Context
Resolves BED-6591
Why is this change required? What problem does it solve?
Originates from an issue on the BloodHound Query Library repo: SpecterOps/BloodHoundQueryLibrary#31
How Has This Been Tested?
Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to
see how your change affects other areas of the code, etc.
Built BHCE and ran all three affected queries with Entra sample data and confirmed they return the correct data.
Screenshots (optional):
Types of changes
Checklist:
Summary by CodeRabbit