-
Notifications
You must be signed in to change notification settings - Fork 385
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
[Bug] Cortex Analyzer OpenCTI #919
Comments
Since the new release of opencti the syntax has changed a bit.
to:
but the first query is not returning any result. |
Yes i agree with you, i don't have any results |
Hi, I have modified the analyzer to bring compatibility with the v4 and took the occasion to change a bit the logic. There are now 2 flavors, one to search exactly for an observable and another one to do a full text search of an observable (get URLs when you search for a domain name for eg). As with the first version, I have provided TheHive templates which haven't been tested. If someone wants to have a look at them on a TheHive test instance before the merge it would be nice. |
Thanks for the fix. I've just ended test and everything works fine.
|
|
At the moment we install v4 pycti and execute v3 code.. so, event to just keep supporting v3, we should have pinned pycti to an older release. Probably the easiest solution is to just move all to v4. Keep old templates and old json could be misleading. The only problem I can image is if someone is using opencti v3 and dockerized analyzer images because in this case analyzer image will be updated automagically. |
Nice catch. |
Thank you @dadokkio ! |
Describe the bug
I have an error with OpenCTI v4 and the cortex analyzer.
The version of pycti is 4.0.3
I have the error :
Traceback (most recent call last): File "/opt/Cortex-Analyzers/analyzers/OpenCTI/opencti.py", line 119, in OpenCTIAnalyzer().run() File "/opt/Cortex-Analyzers/analyzers/OpenCTI/opencti.py", line 74, in run observable = opencti["api_client"].stix_observable.read(AttributeError: 'OpenCTIApiClient' object has no attribute 'stix_observable'
Work environment
The text was updated successfully, but these errors were encountered: