TheHive4py icon indicating copy to clipboard operation
TheHive4py copied to clipboard

[Feature Request] Add function to run all analyzers or get the list of analyzers available

Open D4rkw0lv3s opened this issue 4 years ago • 0 comments

Add function to run all analyzers or get the list of analyzers available

Request Type

Feature Request

Work Environment

Question Answer
OS version (server) CentOS
OS version (client) 7
TheHive4py version / git hash latest

Problem Description

The function run_analyzer(self, cortex_id, artifact_id, analyzer_id), only allows to run one analyzer, and we need to manually set the "analyzer_id". So if we try to automate it, we would need the list of the available analyzer for that artifact/type

Steps to Reproduce

....

Possible Solutions

  1. In TheHive UI we have a button called "Run all" that executes all analyzers for that artifact, the idea would be to have a function that could do the same as "Run all", e.g.: run_all_analyzers(self, cortex_id, artifact_id) And in the backend the function runs all analyzers.

  2. Other option would be a function that outputs the list of available analyzer_id's for that artifact. So this way the user be able to from this list do a loop and run all analyzers at the same time, E.g.: get_available_analyzers(self, cortex_id)

Complementary information

The first option would be great.

D4rkw0lv3s avatar May 28 '21 14:05 D4rkw0lv3s