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

Error reading ingest file /opt/bloodhound/work/tmp/*: error validating meta tag: file is not valid json #658

Open
5 of 9 tasks
Fenr1r-g opened this issue Jun 19, 2024 · 4 comments
Labels
bug Something isn't working ticketed (automation only) Ticket has been created internally for tracking

Comments

@Fenr1r-g
Copy link

Description:

While trying to ingest JSONs collected via Sharphound 2.4.1 using the webUI, the ingestion fails with the backend reporting the following error: "Error reading ingest file /opt/bloodhound/work/tmp/{temp_filename}: error validating meta tag: file is not valid json"

sample metatag collected using Sharphound 2.4.3: "meta":{"methods":29695,"type":"domains","count":1,"version":5}}

After testing collection with SharpHound 2.3.0 and 2.3.4, both have been successfully ingested and are displayed appropriately.

I am using the latest version of BloodhoundCE using the docker-compose instructions with no special modifications made.

Component(s) Affected:

  • [X ] UI
  • API
  • Neo4j
  • PostgreSQL
  • [ X] Data Collector (SharpHound, AzureHound)
  • Other (tooling, documentation, etc.)

Steps to Reproduce:

  1. Collect data using the latest version of SharpHound
  2. Go to the Administration page of the bloodhound webUI
  3. Upload a JSON for ingestion
  4. See error in the docker terminal

Expected Behavior:

Successful ingestion.

Actual Behavior:

An error.

Screenshot 2024-06-13 130135

Environment Information:

BloodHound: Latest

Collector: Sharphound 2.4.3

OS: Ubuntu 22.03

Browser (if UI related): Firefox latest

Docker (if using Docker): latest

Additional Information:

Sharphound 2.3.0 and 2.3.4 both create JSONs that can be ingested and viewed. Additionally, when changing the JSON from UTF8BOM > UTF8, bloodhound claims to succesfully ingests the file, but doesn't actually update statistics or show anything in the UI. A quick check of the Neo4j database shows that the data is successfully uploaded in this way.

Potential Solution (Optional):

If you have any ideas about what might be causing the issue or how it could be fixed, you can share them here.

Related Issues:

If you've found related issues in the project's issue tracker, mention them here.

Contributor Checklist:

  • I have searched the issue tracker to ensure this bug hasn't been reported before or is not already being addressed.
  • I have provided clear steps to reproduce the issue.
  • I have included relevant environment information details.
  • I have attached necessary supporting documents.
  • I have checked that any JSON files I am attempting to upload to BloodHound are valid.
@Fenr1r-g Fenr1r-g added bug Something isn't working triage This issue requires triaging labels Jun 19, 2024
@StephenHinck StephenHinck added ticketed (automation only) Ticket has been created internally for tracking and removed triage This issue requires triaging labels Jun 20, 2024
@StephenHinck
Copy link
Collaborator

@Fenr1r-g - we have a team actively looking at SharpHound collection and file ingest. I'll make sure this is pulled into that effort for review!

@brandonshearin
Copy link
Contributor

brandonshearin commented Jul 3, 2024

@Fenr1r-g I believe a PR just merged that should address this problem , which will be included in our next release. If you are seeking to test out this fix sooner than the next release date, you can do so by pulling the edge image from docker:

docker pull specterops/bloodhound:edge

Let me know if this issue persists!

@Anon-Exploiter
Copy link

@Fenr1r-g I believe a PR just merged that should address this problem , which will be included in our next release. If you are seeking to test out this fix sooner than the next release date, you can do so by pulling the edge image from docker:

docker pull specterops/bloodhound:edge

Let me know if this issue persists!

Ran into the same issue with edge version

image

@StephenHinck
Copy link
Collaborator

That PR was a first attempt but didn't fully solve the problem. We've got a second crack at it going here: #764. Still hopefully tracking to the next release (Targeting the week of August 19th)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ticketed (automation only) Ticket has been created internally for tracking
Projects
None yet
Development

No branches or pull requests

4 participants