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
{{ message }}
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.
Taxii services that publish multiple message bindings fail to be parsed by minemeld.
Expected behavior
Taxii service should look through list of provided message bindings to determine compatibility.
Current behavior
Taxii script simply pulls the first element of the list of message bindings, and if it is not 1.1, reports it as failed.
Possible solution
Change this
for pi in tci.polling_service_instances:
LOG.info('{} - message binding: {}'.format(
self.name, pi.poll_message_bindings
))
if pi.poll_message_bindings[0] == libtaxii.constants.VID_TAXII_XML_11:
self.poll_service = pi.poll_address
LOG.info('{} - poll service found'.format(self.name))
break
To this
for pi in tci.polling_service_instances:
LOG.info('{} - message binding: {}'.format(
self.name, pi.poll_message_bindings
))
if libtaxii.constants.VID_TAXII_XML_11 in pi.poll_message_bindings:
self.poll_service = pi.poll_address
LOG.info('{} - poll service found'.format(self.name))
break
Screenshots
Example Collecton output
Service Type: COLLECTION_MANAGEMENT
Service Version: urn:taxii.mitre.org:services:1.1
Protocol Binding: urn:taxii.mitre.org:protocol:https:1.0
Service Address: https://blah.this.is.not.real.com/taxii/acsc/services/collections
Message Binding: urn:taxii.mitre.org:message:xml:1.0
Message Binding: urn:taxii.mitre.org:message:xml:1.1
Available: True
Message: example
Context
Your Environment
Version used: 0.9.66 (Container)
The text was updated successfully, but these errors were encountered:
Describe the bug
Taxii services that publish multiple message bindings fail to be parsed by minemeld.
Expected behavior
Taxii service should look through list of provided message bindings to determine compatibility.
Current behavior
Taxii script simply pulls the first element of the list of message bindings, and if it is not 1.1, reports it as failed.
Possible solution
Change this
To this
Screenshots
Example Collecton output
Service Type: COLLECTION_MANAGEMENT
Service Version: urn:taxii.mitre.org:services:1.1
Protocol Binding: urn:taxii.mitre.org:protocol:https:1.0
Service Address: https://blah.this.is.not.real.com/taxii/acsc/services/collections
Message Binding: urn:taxii.mitre.org:message:xml:1.0
Message Binding: urn:taxii.mitre.org:message:xml:1.1
Available: True
Message: example
Context
Your Environment
The text was updated successfully, but these errors were encountered: