Thehive: [Bug] Issues surrounding Alerts merging

Created on 29 Sep 2020  路  4Comments  路  Source: TheHive-Project/TheHive

This Issue is intended to serve as a list of issues when merging multiple alerts into one case

Request Type

Bug

Work Environment

| Question | Answer
|---------------------------|--------------------
| OS version (server) | RedHat 7.8
| OS version (client) | MAC & Windows
| TheHive version / git hash | 4.0.0-1
| Package Type | RPM
| Browser type & version | Chrome, And Firefox

Problem Description

When merging multiple alerts into a single case, multiple issues occur.

  1. The description of the first alert is added to case being merged into, the rest are discarded
  2. Custom Fields in Alerts are added into the Case causing duplicate Custom Fields in the case
  3. Webhook output of the Case Update action shows an array (when an object is expected) in the details.customfields section.

Steps to Reproduce

  1. Create 3 or more alerts with similar or identical observables
  2. Create a case off of 1 of the alerts
  3. Merge the other alerts from step 1 into the case created in step 2 by number (since similar case merge button doesn't work in version 4.0.0)

Complementary information

Looking at the trace logs there are no errors generated. I am currently scrubbing out any PII or IP data that can't be shared, and I will follow up with this data. I have a log of merging about 10 alerts into a single case and it generated >12000 lines of data so this will take a bit to pair down.

TheHive4 bug

Most helpful comment

@vi-or-die ,

Responding to your problem description :

  1. All alerts merged are now displayed in the description
  2. I couldn't reproduce this behavior but I don't see duplicate fields so I guess it was corrected in a previous commit
  3. I set up a webhook receiver and looked at the log when merging alerts in a case. In the CaseUpdate log message, details.customFields now appears as an object containing each custom field.

All 4 comments

1553 Seems to be related to this?

@vi-or-die ,

Responding to your problem description :

  1. All alerts merged are now displayed in the description
  2. I couldn't reproduce this behavior but I don't see duplicate fields so I guess it was corrected in a previous commit
  3. I set up a webhook receiver and looked at the log when merging alerts in a case. In the CaseUpdate log message, details.customFields now appears as an object containing each custom field.

Sweet thank you for fixing this!! I will re-evaluate #2 once we get 4.0.1.

@vi-or-die ,

I reproduced 2. by importing an alert with a case template. I fixed this bug with issue #1552.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rhaist picture rhaist  路  4Comments

milesflo picture milesflo  路  3Comments

zpriddy picture zpriddy  路  4Comments

UndecodedFuture picture UndecodedFuture  路  5Comments

Passimist picture Passimist  路  4Comments