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

[Question] Run Responder via API #2471

Open
meganie opened this issue Sep 18, 2023 · 0 comments
Open

[Question] Run Responder via API #2471

meganie opened this issue Sep 18, 2023 · 0 comments
Labels

Comments

@meganie
Copy link

meganie commented Sep 18, 2023

Request Type

Question

Work Environment

Question Answer
OS version (server) Ubuntu 22.04.2
OS version (client) Windows Server 2019
Virtualized Env. True
Dedicated RAM 8 GB
vCPU 4
TheHive version 5.2.3-1
Package Type DEB
Database Cassandra
Index type Elasticsearch
Attachments storage Local

Question

I would like to run a responder via the TheHive API but I can't get it working.
When I run it via the GUI on an observable it works just fine.

I've check out the API documentation: https://docs.strangebee.com/thehive/api-docs/#operation/Create%20an%20action

Here is what I'm trying:
curl -k -u user:password -H 'Content-Type: application/json' -XPOST https://xxx/api/connector/cortex/action -d '{"cortexId": "Cortex", "objectId": "~1188056", "objectType": "case_artifact", "responderId": "MSDefender-IsolateMachine_1_0"}'

And this is the response:
{"responderId":"MSDefender-IsolateMachine_1_0","responderName":"-","responderDefinition":"-","cortexId":"Cortex","cortexJobId":"-","objectType":"Observable","objectId":"~1188056","status":"Waiting","startDate":1695041124055,"endDate":1695041124055,"operations":"[]","report":"{}"}

Within Cortex I don't see anything in the Jobs History and if I check out the observable within TheHive I can find this Responder Report:
play.api.libs.json.JsResultException: JsResultException(errors:List((,List(JsonValidationError(List('id' is undefined on json object, available keys are type, message),List())))))

Do I have to use something different as the responderId and how can I find that ID?

@meganie meganie changed the title [Question] [Question] Run Responder via API Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant