-
Notifications
You must be signed in to change notification settings - Fork 126
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
[Feature Request] Ability to save & export settings and custom queries #18
Comments
We have this feature tracked internally and have plans to implement it. When we start moving on it we will provide updates to this issue. Initial expectation is that we will support the existing custom query JSON format for import and export. |
On re-reading, this is slightly different than #31, so will leave open. |
I'm trying to figure out how the new community version works. I don't understand how to implement the |
The queries presented within the UI are presently stored within bhce/packages/javascript/bh-shared-ui/src/commonSearches.tsx. We will be adding mechanisms to more easily import/export saved queries in the future. |
Hello @StephenHinck , once this feature has been implemented, is it gonna be announced anywhere? |
Yes, all changes to features/functionality are included in release notes and this issue request would be closed at that time. |
Is there the way to currently get customqueries.json mounted inside docker image? |
If you have existing customqueries, you could write a quick API integration to read those files and add them as saved queries within BHCE. See https://support.bloodhoundenterprise.io/hc/en-us/articles/11311053342619 for more details on how to use the API! |
@StephenHinck hi, |
It does. However, we still need to pull through support for a few cypher verbs, which is generally where you run into those issues today. |
So I did this. I'm developing bloodhound-cli, a CLI tool for the BloodHound CE API. I recently added a queries subcommand to import and export custom queries. $ bhcli queries my-bloodhound-queries.json
INFO: Imported 12 custom queries.
$ bhcli queries --save queries-backup.json
INFO: Saved 12 queries to queries-backup.json The I hope this is useful for someone. |
Hello @exploide, this looks very promising! |
It doesn't do any conversion, it just automates the import of queries. If the query uses legacy properties which changed in BHCE, the query won't work (however, the import would probably look successful ). For example the way high value / tier 0 nodes are tagged changed between BloodHound legacy and CE, so this will not be compatible. The ADCS stuff also got completely reinvented. |
Huge bummer. :( |
I understand your problem but I fear this is no easy task. And while it might be possible to have some kind of conversion script for typical cases (which would probably fail in a lot of edge cases) I don't really see this in scope of |
As this enhanced BloodHound project grows, surely more and more customization options will be developed.
It'd be nice to be able to export/import those options along with settings and even customized queries in order to harmonize different instances of BloodHound CE.
The text was updated successfully, but these errors were encountered: