ThreatConnect
ThreatConnect: indicator lookups and changes over the v3 REST API, and STIX 2.1 ingestion from its TAXII server.
threatconnect_2.3.0.tgz
Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.
Connects FortiSOAR to ThreatConnect two ways.
Lookups and changes over the v3 REST API. Reputation lookups for IP, file hash, email, URL and host; get, list, create, update and delete indicators; flag false positives and record observations; browse owners, groups and tags. Any other endpoint can be called with Invoke ThreatConnect REST API, which signs the request for you (HMAC with an Access ID and Secret Key, or an API token) and refuses a full URL, so credentials only go to the configured server.
STIX ingestion from the TAXII 2.1 server. Fetch STIX Indicators (Bulk) reads a collection (one per
ThreatConnect owner), follows every page, and turns each indicator's STIX pattern into an Address, Host,
URL, EmailAddress or File record. The sample playbook ThreatConnect > STIX Ingest keeps a last-pull
cursor and writes the Threat Intel Feeds module; an indicator's own TLP marking and confidence are used when
it carries them. Patterns the feed cannot ingest (ASN, mutex, registry key) are skipped and counted.
Set up. Install the connector, then create a configuration with the server URL and either the Access ID
and Secret Key or an API token. For STIX ingestion also fill in the TAXII Username and Password: the TAXII
Server Service App in ThreatConnect authenticates a dedicated TAXII user with HTTP Basic, so these are
separate from the REST credentials. The TAXII base path defaults to the App 2.0 location
(/api/services/taxii/v2/taxii); use /api/services/taxii/v1 for App 1.0. Schedule ThreatConnect > STIX Ingest for a recurring pull. Ingestion needs the Threat Intel Management solution pack from the
Content Hub.
Good to know. ThreatConnect does not document the TAXII added_after filter, so the connector sends it
and also applies the cursor itself; a server that ignores it costs bandwidth, not duplicates. Tested against
a mock that follows ThreatConnect's documentation, not yet against a live tenant. Version 2.3.0 removes the
v3 REST ingest playbooks: ingestion is STIX only.
Configuration · 7 fields
- Server URL
api_base_urltext requiredThe URL of the ThreatConnect server (e.g. https://app.threatconnect.com).
- Authentication Type
auth_typeselect requiredAuthentication method used to call the ThreatConnect v3 API.
Options HMAC (Access ID + Secret Key)Bearer TokenWhen Authentication Type is HMAC (Access ID + Secret Key)
- Access ID
api_access_idpassword requiredAccess ID for your ThreatConnect API user.
- Secret Key
api_secret_keypassword requiredSecret Key for your ThreatConnect API user. Used to sign each request.
When Authentication Type is Bearer Token
- Bearer Token
bearer_tokenpassword requiredThreatConnect Personal Access Token. Sent as 'Authorization: TC-Token <token>'.
- Default Organization
api_default_orgtextDefault organization (owner name) used when an action does not pass an explicit owner.
- Verify SSL
verifycheckboxVerify the TLS certificate of the ThreatConnect server. Default true.
Default
true - TAXII Username
taxii_usernametextThe TAXII user for the ThreatConnect TAXII Server Service App. Needed only for the STIX/TAXII actions and STIX ingestion; HTTP Basic is used there, not the HMAC or token above.
- TAXII Password
taxii_passwordpasswordPassword of the TAXII user.
- TAXII Base Path
taxii_base_pathtextPath of the TAXII service on the server.
Default
/api/services/taxii/v2/taxii
Operations · 24
Get IP Reputation 3 params
hunt_iphunt_ipRetrieves the reputation for a specific IP address using the ThreatConnect API based on the IP address and other input parameters you have specified.
- IP Address
indicatortext requiredSpecify the IP address whose reputation information you want to retrieve using the ThreatConnect API.
- Owner
ownerselect(Optional) Owner (organization, community or source) to act on. Pick from the list or enter a name. Overrides the 'Default Organization' of the configuration.
- Include Additional Params
includeAdditionalcheckbox(Optional) Select this option to include the 'tags', 'threatAssess' and 'associatedGroups.attributes' keys in the response of this operation.
Default
trueWhen Include Additional Params is true
- Include Fields
include_paramsmultiselect requiredIf you select this option, then from the Include Fields list, select one or more parameters whose keys you want to include in the response of this operation. You can choose any or all of the following options: Tags, Threat Assess, and/or Associated Groups.
Default
trueOptions TagsThreat AssessAssociated GroupsWhen Include Fields is Associated Groups
- Attributes
attributescheckboxIf you choose Associated Groups, then select the Attributes option to include the 'associatedGroups.attributes' keys in the response of this operation.
Default
true
Get File Reputation 3 params
hunt_filehunt_fileRetrieves the reputation of a specific file hash using the ThreatConnect API based on the file hash and other input parameters you have specified.
- File Hash
indicatortext requiredSpecify the file hash whose reputation information you want to retrieve using the ThreatConnect API.
- Owner
ownerselect(Optional) Owner (organization, community or source) to act on. Pick from the list or enter a name. Overrides the 'Default Organization' of the configuration.
- Include Additional Params
includeAdditionalcheckbox(Optional) Select this option to include the 'tags', 'threatAssess' and 'associatedGroups.attributes' keys in the response of this operation.
Default
trueWhen Include Additional Params is true
- Include Fields
include_paramsmultiselect requiredIf you select this option, then from the Include Fields list, select one or more parameters whose keys you want to include in the response of this operation. You can choose any or all of the following options: Tags, Threat Assess, and/or Associated Groups
Default
trueOptions TagsThreat AssessAssociated GroupsWhen Include Fields is Associated Groups
- Attributes
attributescheckboxIf you choose Associated Groups, then select the Attributes option to include the 'associatedGroups.attributes' keys in the response of this operation.
Default
true
Get Email Reputation 3 params
hunt_emailhunt_emailRetrieves the reputation for a specific email address using the ThreatConnect API based on the email address and other input parameters you have specified.
- Email Address
indicatortext requiredSpecify the email address whose reputation information you want to retrieve using the ThreatConnect API.
- Owner
ownerselect(Optional) Owner (organization, community or source) to act on. Pick from the list or enter a name. Overrides the 'Default Organization' of the configuration.
- Include Additional Params
includeAdditionalcheckbox(Optional) Select this option to include the 'tags', 'threatAssess' and 'associatedGroups.attributes' keys in the response of this operation.
Default
trueWhen Include Additional Params is true
- Include Fields
include_paramsmultiselect requiredIf you select this option, then from the Include Fields list, select one or more parameters whose keys you want to include in the response of this operation. You can choose any or all of the following options: Tags, Threat Assess, and/or Associated Groups.
Default
trueOptions TagsThreat AssessAssociated GroupsWhen Include Fields is Associated Groups
- Attributes
attributescheckbox(Optional) If you choose Associated Groups, then select the Attributes option to include the 'associatedGroups.attributes' keys in the response of this operation
Default
true
Get URL Reputation 3 params
hunt_urlhunt_urlRetrieves the reputation of a specific URL using the ThreatConnect API based on the URL address and other input parameters you have specified.
- URL
indicatortext requiredSpecify the URL whose reputation information you want to retrieve using the ThreatConnect API.
- Owner
ownerselect(Optional) Owner (organization, community or source) to act on. Pick from the list or enter a name. Overrides the 'Default Organization' of the configuration.
- Include Additional Params
includeAdditionalcheckbox(Optional) Select this option to include the 'tags', 'threatAssess' and 'associatedGroups.attributes' keys in the response of this operation.
Default
trueWhen Include Additional Params is true
- Include Fields
include_paramsmultiselect requiredIf you select this option, then from the Include Fields list, select one or more parameters whose keys you want to include in the response of this operation. You can choose any or all of the following options: Tags, Threat Assess, and/or Associated Groups.
Default
trueOptions TagsThreat AssessAssociated GroupsWhen Include Fields is Associated Groups
- Attributes
attributescheckbox(Optional) If you choose Associated Groups, then select the Attributes option to include the 'associatedGroups.attributes' keys in the response of this operation
Default
true
Get Host Reputation 3 params
hunt_hosthunt_hostRetrieves the reputation of a specific host using the ThreatConnect API based on the hostname and other input parameters you have specified.
- Host
indicatortext requiredSpecify the host whose reputation information you want to retrieve using the ThreatConnect API
- Owner
ownerselect(Optional) Owner (organization, community or source) to act on. Pick from the list or enter a name. Overrides the 'Default Organization' of the configuration.
- Include Additional Params
includeAdditionalcheckbox(Optional) Select this option to include the 'tags', 'threatAssess' and 'associatedGroups.attributes' keys in the response of this operation.
Default
trueWhen Include Additional Params is true
- Include Fields
include_paramsmultiselect requiredIf you select this option, then from the Include Fields list, select one or more parameters whose keys you want to include in the response of this operation. You can choose any or all of the following options: Tags, Threat Assess, and/or Associated Groups.
Default
trueOptions TagsThreat AssessAssociated GroupsWhen Include Fields is Associated Groups
- Attributes
attributescheckbox(Optional) If you choose Associated Groups, then select the Attributes option to include the 'associatedGroups.attributes' keys in the response of this operation
Default
true
List Indicator 3 params
list_indicatorlist_indicatorRetrieves indicators using the ThreatConnect API based on the input parameters you have specified
- Include Additional Params
includeAdditionalcheckbox(Optional) Select this option to include the 'tags', 'threatAssess', and 'associatedGroups.attributes' keys in the response of this operation.
Default
true - Limit
resultLimitinteger(Optional) The number of records that should be returned in a single search. By default, it is set as "100", and the maximum value that can be specified for 'resultLimit' is 10000.
- Offset
resultStartinteger(Optional) The offset value retrieves a subset of records that starts from the offset value. The offset works with the 'Limit' parameter to determine how many records to retrieve starting from the offset. By default, it is set as "0".
Invoke ThreatConnect REST API 3 params
invoke_apiinvoke_apiCalls any ThreatConnect REST endpoint on the configured server. The request is signed or token-authenticated for you; a full URL is refused so credentials never leave the server.
- Endpoint
endpointtext requiredPath on the server, for example /api/v3/tags. Query parameters may follow the path.
- Method
methodselectHTTP method. Defaults to GET.
Default
GETOptions GETPOSTPUTDELETE - Request Body
request_bodyjson(Optional) JSON object sent with POST and PUT.
Fetch Indicators (Bulk) 5 params
fetch_indicatorsfetch_indicatorsBulk-pulls indicators from ThreatConnect with optional type / owner / modified-since filters and full pagination. Used by scheduled data ingestion and available on-demand.
- Indicator Type
indicator_typeselectRestrict the pull to a single ThreatConnect indicator type.
Default
AnyOptions AnyAddressHostURLEmailAddressFile - Owner
ownerselectRestrict the pull to indicators owned by this Source/Community/Organization. Defaults to the connector's Default Organization.
- Modified Since
modified_sincedatetimeISO 8601 datetime; only indicators with lastModified >= this value are returned.
- Page Size
page_sizeintegerIndicators fetched per API page. ThreatConnect caps this at 1000.
Default
500 - Limit (Optional)
limitintegerCap total indicators returned across all pages.
ReturnsindicatorscounttruncatedGet Indicator 3 params
get_indicatorget_indicatorRetrieves one indicator by id or summary.
- Indicator
indicatortext requiredIndicator id or summary (the value, for example an IP address or a file hash).
- Owner
ownerselect(Optional) Owner (organization, community or source) to act on. Pick from the list or enter a name. Overrides the 'Default Organization' of the configuration.
- Additional Fields
fieldstext(Optional) Comma-separated extra fields to include, for example tags,attributes,associatedGroups.
Create Indicator 9 params
create_indicatorcreate_indicatorCreates an indicator. If it already exists in the owner it is updated instead. A file hash is recognised as MD5, SHA1 or SHA256 by its length.
- Indicator Type
indicator_typeselect requiredType of indicator to create. Used by the Indicator Type setting.
Default
AddressOptions AddressEmailAddressFileHostURLASNCIDREmail SubjectHashtagMutexUser Agent - Value
indicatortext requiredThe indicator value: an IP address, host name, URL, email address, file hash, ASN, CIDR block, mutex name and so on.
- Owner
ownerselect(Optional) Owner (organization, community or source) to act on. Pick from the list or enter a name. Overrides the 'Default Organization' of the configuration.
- Rating
ratingtext(Optional) Threat rating from 0 to 5, for example 3.5.
- Confidence
confidenceinteger(Optional) Confidence from 0 to 100.
- Tags
tagstext(Optional) Comma-separated tags.
- Security Labels
security_labelstext(Optional) Comma-separated security labels, for example TLP:AMBER.
- Description
descriptiontext(Optional) Stored as the Description attribute.
- Other Fields
other_fieldsjson(Optional) Extra fields merged into the request body, for example {"dnsActive": true}.
Update Indicator 10 params
update_indicatorupdate_indicatorChanges an indicator. Only the fields you set are sent. Tags and security labels are added unless you choose Replace or Remove.
- Indicator
indicatortext requiredIndicator id or summary (the value, for example an IP address or a file hash).
- Owner
ownerselect(Optional) Owner (organization, community or source) to act on. Pick from the list or enter a name. Overrides the 'Default Organization' of the configuration.
- Rating
ratingtext(Optional) New threat rating from 0 to 5.
- Confidence
confidenceinteger(Optional) New confidence from 0 to 100.
- Tags
tagstext(Optional) Comma-separated tags.
- Tag Mode
tag_modeselectHow the tags are applied.
Default
AddOptions AddReplaceRemove - Security Labels
security_labelstext(Optional) Comma-separated security labels. Used by the Security Labels setting.
- Security Label Mode
label_modeselectHow the security labels are applied.
Default
AddOptions AddReplaceRemove - Description
descriptiontext(Optional) Stored as the Description attribute.
- Other Fields
other_fieldsjson(Optional) Extra fields merged into the request body.
Delete Indicator 2 params
delete_indicatordelete_indicatorDeletes an indicator from an owner. ThreatConnect keeps it in the deleted list.
- Indicator
indicatortext requiredIndicator id or summary (the value, for example an IP address or a file hash).
- Owner
ownerselect(Optional) Owner (organization, community or source) to act on. Pick from the list or enter a name. Overrides the 'Default Organization' of the configuration.
Mark False Positive 2 params
mark_false_positivemark_false_positiveFlags an indicator as a false positive.
- Indicator
indicatortext requiredIndicator id or summary (the value, for example an IP address or a file hash).
- Owner
ownerselect(Optional) Owner (organization, community or source) to act on. Pick from the list or enter a name. Overrides the 'Default Organization' of the configuration.
Add Observation 3 params
add_observationadd_observationRecords that the indicator was seen in your environment.
- Indicator
indicatortext requiredIndicator id or summary (the value, for example an IP address or a file hash).
- Owner
ownerselect(Optional) Owner (organization, community or source) to act on. Pick from the list or enter a name. Overrides the 'Default Organization' of the configuration.
- Observations
observationsintegerNumber of sightings to add. Defaults to 1.
Default
1
List Deleted Indicators 3 params
list_deleted_indicatorslist_deleted_indicatorsLists indicators deleted since a time, to keep a mirror in step.
- Owner
ownerselect(Optional) Owner (organization, community or source) to act on. Pick from the list or enter a name. Overrides the 'Default Organization' of the configuration.
- Indicator Type
indicator_typeselect(Optional) Only this type. Used by the Indicator Type setting.
Default
AnyOptions AnyAddressEmailAddressFileHostURLASNCIDREmail SubjectHashtagMutexUser Agent - Deleted Since
deleted_sincedatetime(Optional) Only indicators deleted at or after this time.
List Owners
list_ownerslist_ownersLists the organizations, communities and sources your credentials can see.
No parameters.
List Groups 6 params
list_groupslist_groupsLists groups such as adversaries, incidents and reports, optionally by type, name or a TQL filter.
- Owner
ownerselect(Optional) Owner (organization, community or source) to act on. Pick from the list or enter a name. Overrides the 'Default Organization' of the configuration.
- Group Type
group_typeselect(Optional) Only this type. Used by the Group Type setting.
Default
AnyOptions AnyAdversaryCampaignDocumentEmailEventIncidentIntrusion SetReportSignatureThreatTacticTask - Name
nametext(Optional) Exact group name.
- TQL
tqltext(Optional) Extra TQL filter, ANDed with the other filters.
- Start
resultStartinteger(Optional) Offset of the first result.
- Limit
resultLimitinteger(Optional) Number of results. Used by the Limit setting.
Get Group 2 params
get_groupget_groupRetrieves one group by id.
- Group ID
group_idtext requiredNumeric id of the group.
- Owner
ownerselect(Optional) Owner (organization, community or source) to act on. Pick from the list or enter a name. Overrides the 'Default Organization' of the configuration.
List Tags 3 params
list_tagslist_tagsLists tags.
- Owner
ownerselect(Optional) Owner (organization, community or source) to act on. Pick from the list or enter a name. Overrides the 'Default Organization' of the configuration.
- Start
resultStartinteger(Optional) Offset of the first result.
- Limit
resultLimitinteger(Optional) Number of results. Used by the Limit setting.
Get Owner Options
get_owner_optionsget_owner_optionsPopulates owner dropdowns: every owner the credentials can see, as Name (Type) / name pairs.
No parameters.
ReturnstypeitemsList TAXII Collections
taxii_list_collectionstaxii_list_collectionsLists the STIX collections the TAXII user can read. ThreatConnect serves one collection per owner (organization or source).
No parameters.
ReturnscollectionsGet TAXII Objects 4 params
taxii_get_objectstaxii_get_objectsReads one page of STIX objects from a collection, exactly as the TAXII server sends them. Pass the returned next value back in to read on.
- Collection
collectionselect requiredA TAXII collection: a ThreatConnect owner's name, or the collection id.
- Added After
added_afterdatetimeOnly objects added after this time. ThreatConnect does not document this filter, so a server may ignore it.
- Limit
limitintegerObjects per page.
Default
100 - Next
nexttextThe next value from the previous page.
ReturnsmorenextobjectsFetch STIX Indicators (Bulk) 5 params
fetch_stix_indicatorsfetch_stix_indicatorsBulk-pulls indicators from the ThreatConnect TAXII 2.1 server, follows every page, and returns them in the same record shape as Fetch Indicators (Bulk). Used by scheduled STIX ingestion and available on-demand.
- Indicator Type
indicator_typeselectRestrict the pull to a single ThreatConnect indicator type.
Default
AnyOptions AnyAddressHostURLEmailAddressFile - Collection
ownerselectA TAXII collection (an owner name or collection id). Blank uses the Default Organization, and without one every readable collection.
- Modified Since
modified_sincedatetimeISO 8601 datetime; only indicators modified at or after this time are returned. Applied by the connector as well as sent to the server.
- Page Size
page_sizeintegerObjects fetched per TAXII page.
Default
500 - Limit (Optional)
limitintegerCap total indicators returned across all pages.
ReturnsindicatorscounttruncatedskippedcollectionsGet Collection Options
get_collection_optionsget_collection_optionsPopulates collection dropdowns: the name of every collection the TAXII user can read.
No parameters.
Returnstypeitems