TheHive-Project / TheHive-Project/Cortex-Analyzers

[FR] CSV Parser Analyzer

Open
#916 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
490
Forks
405
Avg merge
2d 43m
Merged PRs (30d)
8

Description

Feature description
An Analyzer that pulls attributes for a given observable from a CSV file.

Example 1
When an observable is related to an internal IP address, one of the analyst tasks would be to identify more information about that IP, for instance the server/desktop name that has that IP assigned, and may be even the user that owns that desktop.
Such information can be stored in a simple CSV file as follows :

ip,servername,desktopname,username
10.0.0.1,Server01,,
10.10.0.1,,Desktop01,bob
10.10.0.2,,Desktop02,alice

The requested analyzer would simply take the observable (in this case the IP address) and look it up in the CSV, retreiving all corresponding attributes.

So, 10.10.0.1 would return the following :

desktopname username
Desktop01 bob

Example 2
When an observable is related to a username, the analyst may need more information about that username, such as the corresponding full name, business unit, job title, etc.
Such information can be stored in a simple CSV file as follows :

username,full-name,business-unit,job-title
john,John Doe,IT,System Administrator
alice,Alice Doe,Finance,Financial Analyst

The requested analyzer would simply take the observable (in this case the username) and look it up in the CSV, retreiving all corresponding attributes that it can find.

So, alice would return the following :

full-name business-unit job-title
Alice Doe Finance Financial Analyst

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

No files, tests, or entry points are named. Review existing analyzer implementations to understand the expected integration pattern, then define how the CSV is configured and how an observable is matched. Done means the analyzer returns all corresponding non-empty CSV attributes for examples such as an IP address or username.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.