TheHive-Project / TheHive

TheHive: a Scalable, Open Source and Free Security Incident Response Platform
https://thehive-project.org
GNU Affero General Public License v3.0
3.39k stars 618 forks source link

[Question] Cortex Connector #2327

Open StiveN99 opened 2 years ago

StiveN99 commented 2 years ago

Request Type

Question

Work Environment

Question Answer
OS version (server) Debian, Ubuntu, CentOS, RedHat, ...
OS version (client) XP, Seven, 10, Ubuntu, ...
Virtualized Env. True / False
Dedicated RAM XX GB
vCPU 4 / 8 / 16 / 32
TheHive version / git hash 4.x, hash of the commit
Package Type RPM, DEB, Docker, Binary, From source
Database Cassandra / BerlkelyDB
Index type Lucene / Elasticsearch
Attachments storage Local, NFS, S3, HDFS
Browser type & version If applicable

Question

Hi there,

If running an analyzer from Thehive, is it normal that the cortex rest api connector return some duplicate results with the same cortexJobid? Here is the case where I was able to replicate the behaviour:

1- Run an analyzer from TheHive on a specific Observable 2- Rerun the same analyzer 3- Check the analyzer results and notice only the first analysis as results while the second one return "no records found" 4- Call the Cortex Connnector rest api and get all jobs for the same observable as above. 5- The service return duplicate jobs with the same cortexJobId and results.

My questions is , it is normal for the Cortex Connector to return duplicate job while TheHive will display only the result from the first analysis? Is the cortexJobId a unique id for each individual analyzer job ? My assumption is that the Cortex Connector will not rerun the jobs if the results are the same so it just return the job results twice?

Thanks for your help