Bug
| Question | Answer
|---------------------------|--------------------
| OS version (server) | Ubuntu (TheHive training VM 3.4.0)
| OS version (client) | N/A
| TheHive version / git hash | 3.4.0-1
| Package Type | TheHive training VM 3.4.0
| Browser type & version | Firefox 75.0
When running a Cortex Analyzer that reports artifacts (aka. observables), tags and message (aka. description) that are set for the artifacts are not kept when "importing" artifacts.
The tags and message appear in the artifacts list that is brought by the Analyzer (clicking "Show observables" on Analyzer's report), but when selecting artifacts and clicking "Import Selection", tags and comment are replaced by The Hive generated ones, and Analyzer's set ones are discarded.
Hi securechicken
This is beacuse is a JavaScript wich "import" observables on client side. This JavaScript overwrite your tags.
Regards,
Thanks @torsolaso, very nice to have such a quick explanation! Indeed, all artifacts params (except data and dataType) are overwritten by this client-side script.
Well, that does not seem to be what is expected in such a case, or am I missing something on the way we are supposed to import observables from analyzer's artifacts?
I think that to fix this problem we need modify this line getting enrichment tags.
I guess that perhaps the matter may be related https://github.com/TheHive-Project/TheHive/issues/1113 and https://github.com/TheHive-Project/TheHive/issues/1263
Hello @securechicken and thanks @torsolaso I'll fix it. Nice catch
The use case we have to decide here is: how to deal with the tags when you select multiple observables of the same type (potentially with different tags) and hit Import?
Same question for the message value.
A solution could be :