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

API-Connect to IBM X-Force #184

Closed
csoc49 opened this issue Apr 17, 2019 · 4 comments
Closed

API-Connect to IBM X-Force #184

csoc49 opened this issue Apr 17, 2019 · 4 comments
Labels

Comments

@csoc49
Copy link

csoc49 commented Apr 17, 2019

Hy,

we have a problem by connecting to the IBM X-Force API.
We always get a 401 API error.

We use these URL https://api.xforce.ibmcloud.com/ and take our API-Key and pwd in the Cortex configuration. Is there anybody with an idea??

:-/

@ssstonebraker
Copy link

ssstonebraker commented Apr 19, 2019

Hey i figured out how to fix this. I had the same problem and spent a couple hours figuring it out

I kept receiving an "API error" when attempting to run TheHive Project Cortex Analyzer for IBM Xforce.

There is currently a bug that is adding an extra / with every request.

To fix this issue you need to modify this file:

/opt/Cortex-Analyzers/analyzers/IBMXForce/ibmxforce_lookup.py

Command to fix the problem:

perl -pi -e 's|%s/|%s|g' /opt/Cortex-Analyzers/analyzers/IBMXForce/ibmxforce_lookup.py

source:
https://brakertech.com/thehive-project-cortex-ibm-xforce-analyzer-is-not-working/

@csoc49
Copy link
Author

csoc49 commented Apr 19, 2019

Hey, thank you, it works!!!
I suspected that, but I was not sure.

@saadkadhi
Copy link
Contributor

@jeromeleonard can you please fix this problem in the upcoming Cortex-Analyzers release?

@csoc49 @ssstonebraker this is an analyzer related problem, not Cortex. Thank you for spotting it and we'd appreciate it if you could open future analyzer/responder related issues on the Cortex-Analyzers repository.

@saadkadhi
Copy link
Contributor

Will be addressed in TheHive-Project/Cortex-Analyzers#487.

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

4 participants