OpenCTI
OpenCTI Pack.#
This Integration is part of theManages indicators from OpenCTI.
This integration was tested with version 5.12.17 of OpenCTI.
#
Configure OpenCTI in CortexParameter | Required |
---|---|
Base URL | True |
API Key (leave empty. Fill in the API key in the password field.) | False |
Trust any certificate (not secure) | False |
Use system proxy settings | False |
#
CommandsYou can execute these commands from the CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.
#
opencti-get-indicatorsGets indicators from OpenCTI.
#
Base Commandopencti-get-indicators
#
InputArgument Name | Description | Required |
---|---|---|
limit | The maximum number of indicators to return. Default value is 50. Maximum value is 500. | Optional |
score_start | Score minimum value to filter by. Values range is 0-100. | Optional |
score_end | Score maximum value to filter by. Values range is 0-100. | Optional |
indicator_types | The indicator types to fetch. Out-of-the-box indicator types supported in XSOAR are: Account, Domain, Email, File, Host, IP, IPv6, Registry Key, and URL. Possible values are: ALL, Account, Domain, Email, File, Host, IP, IPv6, Registry Key, URL. Default is ALL. | Optional |
last_run_id | The last ID from the previous call, from which to begin pagination for this call. You can find this value at the OpenCTI.IndicatorsList.LastRunID context path. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
OpenCTI.Indicators.IndicatorsList.type | String | Indicator type. |
OpenCTI.Indicators.IndicatorsList.value | String | Indicator value. |
OpenCTI.Indicators.IndicatorsList.id | String | Indicator ID. |
OpenCTI.Indicators.IndicatorsList.createdBy | Unknown | The creator of the indicator. |
OpenCTI.Indicators.IndicatorsList.score | Number | Indicator score. |
OpenCTI.Indicators.IndicatorsList.description | String | Indicator description. |
OpenCTI.Indicators.IndicatorsList.labels | Unknown | Indicator labels. |
OpenCTI.Indicators.IndicatorsList.marking | Unknown | Indicator marking definitions. |
OpenCTI.Indicators.IndicatorsList.externalReferences | Unknown | Indicator external references. |
OpenCTI.Indicators.LastRunID | String | The last ID of the previous fetch to use for pagination. |
#
Command Example!opencti-get-indicators score_start=20 score_end=70 indicator_types=Domain
#
Context Example#
Human Readable Output#
Indicators
type value id Domain TestDomainDocs.com 7ed5946a-81a2-4490-8be8-06d3633a41fb Domain test1111 ebe37223-f455-4122-b83d-3cfb8d8784ea Domain xcvbnm 74faf2e8-bbab-4a1a-a548-58db202c5e57
#
opencti-indicator-deleteDelete indicator.
#
Base Commandopencti-indicator-delete
#
InputArgument Name | Description | Required |
---|---|---|
id | Indicator ID. | Required |
#
Context OutputThere is no context output for this command.
#
Command Example!opencti-indicator-delete id=74faf2e8-bbab-4a1a-a548-58db202c5e57
#
Human Readable OutputIndicator deleted.
#
opencti-indicator-field-updateUpdate the indicator field. The fields that can be updated are: score, description.
#
Base Commandopencti-indicator-field-update
#
InputArgument Name | Description | Required |
---|---|---|
id | Indicator ID. | Required |
field | Indicator field to update. Possible values are: score, description. | Required |
value | Value of the field to update. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
OpenCTI.Indicator.id | String | Updated indicator ID. |
#
Command Example!opencti-indicator-field-update field=score id=81d63245-9ba3-495d-8e78-03b037d71e01 value=100
#
Context Example#
Human Readable OutputIndicator 81d63245-9ba3-495d-8e78-03b037d71e01 updated successfully.
#
opencti-indicator-createCreate new indicator.
#
Base Commandopencti-indicator-create
#
InputArgument Name | Description | Required |
---|---|---|
type | The indicator type to create. Out-of-the-box indicator types supported in XSOAR are: Account, Domain, Email, File-MD5, File-SHA1, File-SHA256, Host, IP, IPV6, Registry Key, and URL. Possible values are: Account, Domain, Email, File-MD5, File-SHA1, File-SHA256, Host, IP, IPv6, Registry Key, URL. | Required |
created_by | Organization ID. Use opencti-organization-list to find all organization IDs in OpenCTI, or use opencti-organization-create to create a new organization ID. | Optional |
marking_id | Indicator marking definition ID. Use opencti-marking-definition-list to find all marking definition IDs in OpenCTI. | Optional |
label_id | Indicator label ID. Use opencti-label-list to find all label IDs in OpenCTI, or use opencti-label-create to create a new label. | Optional |
external_references_id | External references URL. Use opencti-external-reference-create to create a new external reference. | Optional |
description | Indicator description. | Optional |
score | Indicator score. Values range is 0 - 100. Default value is 50. | Optional |
value | Indicator value. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
OpenCTI.Indicator.id | String | New indicator ID. |
OpenCTI.Indicator.value | String | New indicator value. |
OpenCTI.Indicator.type | String | New indicator type. |
#
Command Example!opencti-indicator-create type=Domain created_by=0c7cb378-64c3-4809-b423-986ac7cecf91 description=test value="TestDomainDocs.com" score=70 label_id=fa57f98e-f2f5-45fd-97f2-bf2c53119044 marking_id=9128e411-c759-4af0-aeb0-b65f12082648
#
Context Example#
Human Readable OutputIndicator created successfully. New Indicator id: 7ed5946a-81a2-4490-8be8-06d3633a41fb
#
opencti-indicator-field-addAdd a field to the indicator. Fields that can be added are marking definition and label.
#
Base Commandopencti-indicator-field-add
#
InputArgument Name | Description | Required |
---|---|---|
id | Indicator ID. | Required |
field | Indicator field to add. Possible values are: marking, label. | Required |
value | Value of the field to add. Enter label ID or marking definition ID. Use opencti-label-list to find all label IDs in OpenCTI, or use opencti-label-create to create a new label. Use opencti-marking-definition-list to find all marking definition IDs in OpenCTI. | Required |
#
Context OutputThere is no context output for this command.
#
Command Example!opencti-indicator-field-add id=33bd535b-fa1c-41e2-a6f9-80d82dd29a9b field=label value=07cfae2d-6cc9-42c5-9fd0-32eff8142404
#
Human Readable OutputAdded label successfully.
#
opencti-indicator-field-removeRemove indicator field value. Fields which values can be removed are marking definition and label.
#
Base Commandopencti-indicator-field-remove
#
InputArgument Name | Description | Required |
---|---|---|
id | Indicator ID. | Required |
field | Indicator field to update. Possible values are: marking, label. | Required |
value | Value of the field to remove. Enter label ID or marking definition ID. Use opencti-label-list to find all label IDs in OpenCTI or opencti-marking-definition-list to find all marking definition IDs in OpenCTI. | Required |
#
Context OutputThere is no context output for this command.
#
Command Example!opencti-indicator-field-remove id=33bd535b-fa1c-41e2-a6f9-80d82dd29a9b field=marking value=c9819001-c80c-45e1-8edb-e543e350f195
#
Human Readable Outputmarking: c9819001-c80c-45e1-8edb-e543e350f195 was removed successfully from indicator: 33bd535b-fa1c-41e2-a6f9-80d82dd29a9b.
#
opencti-organization-listGet a list of all organizations in OpenCTI.
#
Base Commandopencti-organization-list
#
InputArgument Name | Description | Required |
---|---|---|
limit | The maximum number of organizations to return per fetch. Default value is 50. Maximum value is 200. Default is 50. | Optional |
last_run_id | The last ID from the previous call, from which to begin pagination for this call. You can find this value at the OpenCTI.Organizations.organizationsLastRun context path. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
OpenCTI.Organizations.OrganizationsList.id | String | Organization ID. |
OpenCTI.Organizations.OrganizationsList.name | String | Organization name. |
OpenCTI.Organizations.organizationsLastRun | String | The last ID of the previous fetch to use for pagination. |
#
Command Example!opencti-organization-list limit=2
#
Context Example#
Human Readable Output#
Organizations
Name Id Test_Organization 1e12fe87-db3e-4838-8391-6910547bf60d ExampleOrganization 11ddff08-8933-46d7-ab22-31f49496499f
#
opencti-organization-createCreate a new organization.
#
Base Commandopencti-organization-create
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the organization to create. | Required |
description | Description of the organization. | Optional |
reliability | Reliability of the organization. Possible values are: A, B, C, D, E, F. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
OpenCTI.Organization.id | String | New organization ID. |
#
Command Example!opencti-organization-create name=ExampleOrganization description="create organization" reliability="C"
#
Context Example#
Human Readable OutputOrganization ExampleOrganization was created successfully with id: 11ddff08-8933-46d7-ab22-31f49496499f.
#
opencti-label-listGet list of all labels.
#
Base Commandopencti-label-list
#
InputArgument Name | Description | Required |
---|---|---|
limit | The maximum number of labels to return per fetch. Default is 50. | Optional |
last_run_id | The last ID from the previous call, from which to begin pagination for this call. You can find this value at the OpenCTI.Labels.labelsLastRun context path. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
OpenCTI.Labels.LabelsList.id | String | Label ID. |
OpenCTI.Labels.LabelsList.value | String | Label name. |
OpenCTI.Labels.labelsLastRun | String | The last ID of the previous fetch to use for pagination. |
#
Command Example!opencti-label-list limit=2
#
Context Example#
Human Readable Output#
Labels
Value Id demisto_lablel 7ba41668-1594-4a09-9be5-3640f2c2d253 devdemisto fa57f98e-f2f5-45fd-97f2-bf2c53119044
#
opencti-label-createCreate a new label.
#
Base Commandopencti-label-create
#
InputArgument Name | Description | Required |
---|---|---|
name | Name of the new label to create. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
OpenCTI.Label.id | String | New label ID. |
#
Command Example!opencti-label-create name=docsTest
#
Context Example#
Human Readable OutputLabel docsTest was created successfully with id: beb5159a-e162-4352-b7d7-6e355db7f057.
#
opencti-external-reference-createCreate external reference.
#
Base Commandopencti-external-reference-create
#
InputArgument Name | Description | Required |
---|---|---|
url | External references URL. | Required |
source_name | External references source name. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
OpenCTI.externalReference.id | String | New external reference ID. |
#
Command Example!opencti-external-reference-create source_name=source_name url=www.url.com
#
Context Example#
Human Readable OutputReference source_name was created successfully with id: 8339d023-ada2-4b32-8a29-0a3897fc096d.
#
opencti-marking-definition-listGet a list of all marking definitions.
#
Base Commandopencti-marking-definition-list
#
InputArgument Name | Description | Required |
---|---|---|
limit | The maximum number of marking definitions to return per fetch. Default is 50. | Optional |
last_run_id | The last ID from the previous call, from which to begin pagination for this call. You can find this value at the OpenCTI.MarkingDefinitions.markingsLastRun context path. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
OpenCTI.MarkingDefinitions.MarkingDefinitionsList.id | String | Marking definition ID. |
OpenCTI.MarkingDefinitions.MarkingDefinitionsList.value | String | Marking definition name. |
OpenCTI.MarkingDefinitions.markingsLastRun | String | The last ID of the previous fetch to use for pagination. |
#
Command Example!opencti-marking-definition-list limit=2
#
Context Example#
Human Readable Output#
Markings
Value Id TLP:GREEN dc911977-796a-4d96-95e4-615bd1c41263 TLP:AMBER 9128e411-c759-4af0-aeb0-b65f12082648