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

New Filters OpenCTI #9

Closed
Myskiv-Ivan opened this issue Dec 20, 2023 · 5 comments · Fixed by #11
Closed

New Filters OpenCTI #9

Myskiv-Ivan opened this issue Dec 20, 2023 · 5 comments · Fixed by #11
Assignees

Comments

@Myskiv-Ivan
Copy link

The configuration algorithm for the client API has been changed
OpenCTI-Platform/client-python@c99eea9#diff-2b4f37ba44d71fbbc094b19c4d4a62a44ac18eba483de4c0a53344bbf94f2171

@AmmisettyBhuvanesh
Copy link

the graphql schema changed...so old code is not working

@misje
Copy link
Owner

misje commented Jan 18, 2024

I upgraded OpenCTI myself today and experienced this. Here is a migration guide. I'll have a look.

@misje misje self-assigned this Jan 18, 2024
misje added a commit that referenced this issue Jan 18, 2024
StixCyberObservablesFiltering and IndicatorsFiltering no longer exist
and are replaced by FilterGroup. More information here:
https://docs.opencti.io/latest/reference/filters-migration/

Resolves #9.
@misje
Copy link
Owner

misje commented Jan 18, 2024

For some reason I never got a notification about this issue, otherwise I would have looked into it earlier. Would anyone please help testing the changes I just pushed? I haven't seen any errors on any real-world data yet, but it would be very helpful to get more eyes on the results before I merge.

@Myskiv-Ivan
Copy link
Author

For some reason I never got a notification about this issue, otherwise I would have looked into it earlier. Would anyone please help testing the changes I just pushed? I haven't seen any errors on any real-world data yet, but it would be very helpful to get more eyes on the results before I merge.

Hi
I took the modified script config and the filter for "GraphQL" works with the new filters
So far there have been no problems
I'm trying to finalize the script for FortiGate

@misje
Copy link
Owner

misje commented Jan 22, 2024

There is small mistake with rather huge implication with the current fix: the filter mode for indicator search must be "and": pattern_type must be stix and the simple stix query must both match.

@misje misje closed this as completed in cffa40b Jan 22, 2024
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

Successfully merging a pull request may close this issue.

3 participants