TAXII 1.x ========= To use TAXII 1.x endpoints, you must have a TAXII user account created in your ThreatConnect Organization. To do this, follow the instructions for `creating a TAXII user `_. ThreatConnect offers three TAXII 1.x Services: 1. `Discovery Service <#discovery-service>`__: Provides information about offered TAXII Services 2. `Collection Management Service <#collection-management-service>`__: Supports management of TAXII Data Collection subscriptions 3. `Poll Service <#poll-service>`__: Supports consumer-initiated pulls of cyber-threat information (i.e., pull messaging) .. hint:: The descriptions above are taken from the `TAXII Services Specification `_ documentation, which you may find helpful for further reference. Authentication -------------- Requests to a TAXII endpoint must be authenticated using `Basic Authentication `_ with the username and password of a TAXII-user account. The value created by the basic authentication should be sent with the request with the ``Authorization`` header. Note that this is different than the authentication scheme used for normal API requests. For example, the ``Authorization`` header for requests to TAXII endpoints should look like: ``Authorization: Basic b1gB1rdz007``. Discovery Service ----------------- The discovery service is available at ``/taxii/discovery/``. Sample Discovery Request ^^^^^^^^^^^^^^^^^^^^^^^^ .. code:: POST /taxii/discovery/ HTTP/1.1 Authorization: Basic b1gB1rdz007 Accept: application/xml Content-Type: application/xml X-TAXII-Accept: urn:taxii.mitre.org:message:xml:1.1 X-TAXII-Content-Type: urn:taxii.mitre.org:message:xml:1.1 Cache-Control: no-cache X-TAXII-Services: urn:taxii.mitre.org:services:1.1 X-TAXII-Protocol: urn:taxii.mitre.org:protocol:http:1.0 Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.8 Host: api.threatconnect.com Connection: close Content-Length: 97 .. hint:: The XML at the bottom of the request above goes in the body of the request. Sample Discovery Response ^^^^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: xml urn:taxii.mitre.org:protocol:https:1.0 https://api.threatconnect.com/taxii/poll urn:taxii.mitre.org:message:xml:1.1 urn:taxii.mitre.org:protocol:https:1.0 https://api.threatconnect.com/taxii/collection-management urn:taxii.mitre.org:message:xml:1.1 urn:taxii.mitre.org:protocol:https:1.0 https://api.threatconnect.com/taxii/discovery urn:taxii.mitre.org:message:xml:1.1 Collection Management Service ----------------------------- The Collection Management Service is available at ``/taxii/collection-management/``. Sample Collection Management Request ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. code:: POST /taxii/collection-management/ HTTP/1.1 Authorization: Basic b1gB1rdz007 Accept: application/xml Content-Type: application/xml X-TAXII-Accept: urn:taxii.mitre.org:message:xml:1.1 X-TAXII-Content-Type: urn:taxii.mitre.org:message:xml:1.1 Cache-Control: no-cache X-TAXII-Services: urn:taxii.mitre.org:services:1.1 X-TAXII-Protocol: urn:taxii.mitre.org:protocol:http:1.0 Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.8 Host: api.threatconnect.com Connection: close Content-Length: 132 .. hint:: The XML at the bottom of the request above goes in the body of the request. Sample Collection Management Response ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: xml ThreatConnect Organization Data urn:taxii.mitre.org:protocol:https:1.0 https://api.threatconnect.com/taxii/poll urn:taxii.mitre.org:message:xml:1.1 ThreatConnect Source Data urn:taxii.mitre.org:protocol:https:1.0 https://api.threatconnect.com/taxii/poll urn:taxii.mitre.org:message:xml:1.1 Poll Service ------------ The Poll Service is available at ``/taxii/poll/``. Sample Poll Request ^^^^^^^^^^^^^^^^^^^ .. code:: POST /taxii/poll/ HTTP/1.1 Authorization: Basic b1gB1rdz007 Accept: application/xml Content-Type: application/xml X-TAXII-Accept: urn:taxii.mitre.org:message:xml:1.1 X-TAXII-Content-Type: urn:taxii.mitre.org:message:xml:1.1 Cache-Control: no-cache X-TAXII-Services: urn:taxii.mitre.org:services:1.1 X-TAXII-Protocol: urn:taxii.mitre.org:protocol:http:1.0 Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.8 Host: api.threatconnect.com Connection: close Content-Length: 514 2017-07-13T00:00:00Z 2017-07-13T23:00:00Z FULL .. hint:: The XML at the bottom of the request above goes in the body of the request. .. note:: The maximum date range (in hours) between the ``Exclusive_Begin_Timestamp`` and the ``Inclusive_End_Timestamp`` is 24 hours. Sample Poll Response ^^^^^^^^^^^^^^^^^^^^ .. code-block:: xml 2017-07-13T00:00:00Z 2017-07-13T23:00:00Z 1 Report: Finance Branch Log Analysis INDICATORS Domain Watchlist Host: example.com|threatassess: 450|falsepositives: 1|owner: Finance Branch Log Analysis example.com 0 ThreatConnect - Finance Branch Log Analysis 2017-07-13T15:49:05.000Z https://app.threatconnect.com/auth/indicators/details/host.xhtml?host=example.com