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

Allow arbitrary parameters for a job #86

Closed
To-om opened this issue Apr 9, 2018 · 1 comment
Closed

Allow arbitrary parameters for a job #86

To-om opened this issue Apr 9, 2018 · 1 comment
Assignees
Milestone

Comments

@To-om
Copy link
Contributor

To-om commented Apr 9, 2018

Request Type

Feature Request

Work Environment

Cortex 2.0.2

Problem Description

When submitting job, parameters can be set but they are merged with configuration and must be declared in analyzer definition file (json file). The aim of this issue is to permit to send arbitrary parameters to an analyzer. Parameters will not be merged with configuration anymore but added in new "parameters" key. Parameters must be a JSON object.

With the job request:

{
  "data": "127.0.0.1",
  "dataType": "ip",
  "tlp": 2,
  "message": "here",
  "parameters": {
    "param1": "value1",
    "param2": "value2",
  }
}

the analyzer will receive:

{
  "data": "127.0.0.1",
  "dataType": "ip",
  "tlp": 2,
  "message": "here",
  "config": { ... },
  "parameters": {
    "param1": "value1",
    "param2": "value2",
  }
}
@To-om To-om added this to the 2.0.3 milestone Apr 9, 2018
@To-om To-om self-assigned this Apr 9, 2018
To-om added a commit that referenced this issue Apr 9, 2018
@To-om To-om closed this as completed Apr 9, 2018
@janwychowaniak
Copy link

Hello.
Is there any possibility to make use of this parameters section for jobs started from TheHive? How I can set them for observables created in TheHive, preferably with using its API?
What I want to accomplish is to find a way to pass arbitrary information via TheHive API all the way through to a custom Cortex analyzer I wrote.
Thanks.

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

No branches or pull requests

2 participants