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

Requesting analyzer report from cortex with thehive4py #107

Closed
KleinLorenz opened this issue Mar 3, 2019 · 1 comment
Closed

Requesting analyzer report from cortex with thehive4py #107

KleinLorenz opened this issue Mar 3, 2019 · 1 comment

Comments

@KleinLorenz
Copy link

I'm in the process of setting up a system that automatically exports mails from an outlook mailbox, creates a case with observables and automatically analyzes them.

Now after analyzing these observables I'd like to request the report the analyzer generated but I'm not quite getting there.

I tried using this simple function that looks like this:

def get_analyzer_report(self, job_id):

    req = self.url + "/api/connector/cortex/job/{}".format(job_id)

    try:
        return requests.post(req, headers={'Content-Type': 'application/json'}, proxies=self.proxies, auth=self.auth, verify=self.cert, data=json.dumps({}))
    except requests.exception.RequestException as e:
        raise AlertException("Couldnt get report of case")

Now if I run this on an existing job I get the following error.
`ERROR :: {'type': 'NotFoundError', 'message': '/api/connector/cortex/job/case_id not found'}

@KleinLorenz
Copy link
Author

KleinLorenz commented Mar 6, 2019

Anyone any idea what I might be doing wrong?
https://github.com/TheHive-Project/TheHiveDocs/blob/master/api/connectors/cortex/report.md
Is a dead link and I can't find any further documentation as to how to solve this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant