Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utility to make running an Analyzer locally easier, helpful in development #471

Merged
merged 2 commits into from
May 27, 2019

Conversation

ndejong
Copy link
Contributor

@ndejong ndejong commented Apr 23, 2019

A quick wrapper utility to make it easier to run an Analyzer locally, particularly in development

For example

(venv) ndejong@dev:~/Cortex-Analyzers$ ./utils/analyzer-runlocal.py -a analyzers/DShield/DShield_lookup.py -j /tmp/job.json | jq .

analyzer: DShield_lookup.py
job_id:   20190423Z152549-35eb0b4b
job_path: /tmp/analyzer-runlocal/20190423Z152549-35eb0b4b
command:  analyzers/DShield/DShield_lookup.py /tmp/analyzer-runlocal/20190423Z152549-35eb0b4b
runtime:  1.969221830368042

{
  "success": true,
  "summary": {
    "taxonomies": [
      {
        "level": "malicious",
        "namespace": "DShield",
        "predicate": "Score",
        "value": "1131 count(s) / 561 attack(s) / 2 threatfeed(s)"
      }
    ]
  },
...

(venv) ndejong@dev:~/Cortex-Analyzers$ cat /tmp/job.json 
{
    "dataType": "ip",
    "data": "1.1.1.1",
}

@nadouani nadouani self-assigned this Apr 26, 2019
@nadouani nadouani added the category:feature-request Issue is related to a feature request label Apr 26, 2019
@nadouani nadouani added this to the 2.1.0 milestone Apr 26, 2019
@jeromeleonard jeromeleonard changed the base branch from master to develop May 17, 2019 15:48
@jeromeleonard jeromeleonard merged commit 4686226 into TheHive-Project:develop May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:feature-request Issue is related to a feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants