TheHive-Project / TheHive-Project/Cortex

Missing FileInfo dependencies in Docker "withdeps"

Open
#428 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

Request Type

Bug

Work Environment
Question Answer
OS version (server) CentOS
OS version (client) 8
Cortex version / git hash 3.1.6-1
Package Type Docker (withdeps)
Problem Description

The FileInfo analyzer raises an exception, claiming that the module "stringsifter" doesn't exist.
Traceback (most recent call last): File \"/opt/Cortex-Analyzers/analyzers/FileInfo/fileinfo_analyzer.py\ No module named 'stringsifter'",

Steps to Reproduce

Run a FileInfo analyzer from a freshly deployed Cortex container, which includes the dependencies.

Possible Solutions

From the Docker, run pip3 install -r /opt/Cortex-Analyzers/analyzers/FileInfo/requirements.txt to install several missing packages.

Complementary information

Then, the image should be saved and the configuration adapted in order to make the changes persistent.

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 by inspecting the Docker withdeps setup and /opt/Cortex-Analyzers/analyzers/FileInfo/requirements.txt, then reproduce the missing stringsifter error with a freshly deployed Cortex container. Check that the image includes the listed FileInfo dependencies persistently, and rerun the FileInfo analyzer to confirm it works without manual installation.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.