TheHive-Project / TheHive-Project/Cortex-Analyzers

Enhance the artifact extraction

Open
#355 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

category:enhancement scope:analyzer
Dominant language
Python
Stars
490
Forks
405
Avg merge
2d 43m
Merged PRs (30d)
8

Description

Currently artifacts are extracted using the cortexutils.Extractor class or not at all. The available cortexutils class was created in order to provide a simple approach to extract observables from full-text analyzer results, but is not capable of doing it the right way for every scenario as it just uses regex pattern matching.
A good enhancement would be overwriting the artifacts function in the analyzer to extract the proper observables from the full key of the dictionary. In the end, the Extract observables configuration item in Cortex can be removed - at lease from my point of view that would be unnecessary then.

/cc @jeromeleonard @nadouani

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 reviewing the analyzer's artifacts function and the cortexutils.Extractor class described in the issue, then inspect how analyzer results expose the full key. Determine how proper observables should be extracted and whether removing Cortex's Extract observables configuration remains compatible; done means the relevant analyzers handle full results without relying on the regex-only extractor.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.