You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I read the Deployment and Setup section of the OpenCTI documentation as well as the Troubleshooting page and didn't find anything relevant to my problem.
I went through old GitHub issues and couldn't find anything relevant
I googled the issue and didn't find anything relevant
Description
We have this python script that is a custom wazuh integration with OpenCTI. When a new file is created on a monitored place in wazuh, wazuh will use this script to query OpenCTI about this file hash and create a new alert if the file exists (the script also works with IPs and domains but we are interested now in the file hashes).
Hi @igniter07 . I think the problem come from this part of your query.
SHA256 is not a valid observable type. You need to use "stixFile" type if you want to retrieve File relationships.
I did remove the "SHA256" and the error still the same.
The problem from what I understand is related to mapping the stixFile schema with hashes like SHA256, SHA1, etc..
Prerequisites
Description
We have this python script that is a custom wazuh integration with OpenCTI. When a new file is created on a monitored place in wazuh, wazuh will use this script to query OpenCTI about this file hash and create a new alert if the file exists (the script also works with IPs and domains but we are interested now in the file hashes).
The original script repo is this: https://github.com/misje/wazuh-opencti
But we modified the query to look a little bit like this:
` api_json_body={'query':
'''
fragment Labels on StixCoreObject {
objectLabel {
value
}
}
The error after testing this:
'errors': [{'message': 'Schema definition named [hashes] is missing mapping for attribute [SHA256]', 'locations': [{'line': 117, 'column': 15}], 'path': ['stixCyberObservables'], 'extensions': {'code': 'FUNCTIONAL_ERROR', 'data': {'http_status': 400, 'genre': 'BUSINESS'}}, 'name': 'FUNCTIONAL_ERROR'}], 'data': {'indicators': {'edges': [], 'pageInfo': {'startCursor': '', 'endCursor': '', 'hasNextPage': False, 'hasPreviousPage': False, 'globalCount': 0}}, 'stixCyberObservables': None}
Environment
Reproducible Steps
Steps to create the smallest reproducible scenario:
Additional information
The text was updated successfully, but these errors were encountered: