TheHive-Project / TheHive-Project/Cortex

Analyzer EML-Parser doesn't work with Cortex 3.0.0 Docker version

Open
#231 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
1.6k
Forks
264
PR merge metrics
No merged PRs in 30d

Description

Analyzer EML-Parser doesn't work with Cortex 3.0.0 Docker version

Request Type

Bug

Work Environment
Question Answer
OS version (server) Docker
Cortex version / git hash 3.0.0
Package Type Docker
Problem Description

Docker Cortex 3.0.0 is build from a Debian 9 whereas Docker Cortex 2.1.3 is build from Debian 10. In Debian 9, the last python version is 3.5.3 : analyzer EML-Parser doesn't work with this version.

Steps to Reproduce
  1. Install Cortex 3.0.0 with Docker
  2. Enable EML-Parser
  3. Execute several times the analyzer on an eml with as another eml in attachment.
  4. Note that the body result is random (because the list order is random).
  5. Reproduce those step on Docker Cortex 2.1.3 and it works.
Possible Solutions

Use a Debian 10 to build the Cortex container, as before.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Docker build configuration for the Cortex 3.0.0 image and compare it with the 2.1.3 image, focusing on the Debian base and Python version used by EML-Parser. Reproduce the attached-EML case and confirm that the analyzer returns a stable body result on the updated base image.

Written by the indexing model from the issue text.

Assessment

Tech stack
debian, docker, python
Domain
infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.