-
Notifications
You must be signed in to change notification settings - Fork 640
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
[3.4.0-RC2] Observables are lost during Alarm to Case import #1079
Comments
Also not sure if related, but I found another issue with observables (maybe worth to open separate Github issue for it), when the "data" value is null . Creating alarm via logstash json like this: and this is how final json (for different alarm than on the screen shotabove), as seen in the http body packet where "user-agent" is with NULL value:
Then import this alarm into case and when viewing the "Observables" tab all the observeble itmes will be gone (not only those with null value). |
I'm running the same config, and all works well. As far as I know, you can only import observables if the type is defined in Admin -> Observables. You try to import data of type app_proto. Is this defined? Check out the application log (typically
You must create the observable types prior to importing. |
Indeed, it seems you have several datatypes that are not included in the stock install of TheHive. You'll have to create them as suggested by @github-pba. |
@saadkadhi and @github-pba you are awesome! Shall I open a new issue for the NULL value problem described in my comment or it's a know issue ? |
Thank you for the complement. I think it would be the best to open a new issue on the other thing. And to be honest: I didn't understand it. It would be helpful to provide sample code that generates the problem. Please, don't forget to close this issue (#1079). |
Oh, now I understand your problem. We can handle this here, I think. Would you please explain what sense it makes to create observables of some type but without any value? (Still I think there is really a problem, I saw a weird thing). |
Please checkout Issue 1080 I have just opened. I think this exactly describes what you encoutered. |
So my alerts are coming from suricata IDS and the jsons are not consistent.
This is not the optimal solution, but it saves a lot of pain which dynamic constructor will require. Where key is missing, let's say:
logstash is putting "nil" value for key "payload", fair enough. |
Exactly! Thanks for testing this for me. I'm still a newbie regarding this project. |
Request Type
Bug
Work Environment
Problem Description
I'm using a logstash pipeline to import alerts via Thehive's API.
The alarms are created successfully with 10 observables:
but when importing the alarm into an Empty case only 8 out of 10 observables are kept:
The text was updated successfully, but these errors were encountered: