OpenCTI

Manages OpenCTI platform. Compatible with OpenCTI 4.X API and OpenCTI 5.X API versions.

Data Enrichment & Threat Intelligence · OpenCTI

Details

IDOpenCTI
ProviderFiligran
CategoryData Enrichment & Threat Intelligence
From Version5.0.0
Docker Imagedemisto/vendors-sdk:1.0.0.10120494
Supported ModulesAgentix XSIAM

README

Manages indicators from OpenCTI.
This integration was tested with version 5.12.17 of OpenCTI.

Configure OpenCTI on Cortex XSOAR

  1. Navigate to Settings > Integrations > Servers & Services.
  2. Search for OpenCTI.
  3. Click Add instance to create and configure a new integration instance.

    Parameter 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
  4. Click Test to validate the URLs, token, and connection.

Commands

You can execute these commands from the Cortex XSOAR 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-indicators


Get indicators in OpenCTI.

Base Command

opencti-get-indicators

Input

Argument Name Description Required
search The indicator’s value to filter by, can be partial value. Optional
created_by The ID of the entity that created the indicator (use opencti-organization-list to find or create). Optional
creator The ID of the indicator creator. Optional
created_after Created after date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ. Optional
created_before Created before date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ. Optional
valid_until_after Valid until after date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ. Optional
valid_until_before Valid until before date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ. Optional
valid_from_after Valid from after date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ. Optional
valid_from_before Valid from before date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ. Optional
indicator_types The types of the indicator. Use opencti-indicator-types-list to find all indicator types in OpenCTI. Optional
label_id The label ID for the indicator (use opencti-label-list to find or create). Optional
limit The maximum number of indicators to return. Maximum value is 500. 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.Indicators.LastRunID context path. Optional
additional_filters List of filters to apply. Format: [{key: str, operator: str, values: list[str], mode: str}, …]. Optional
all_results When the argument is set to true, the limit argument is ignored. Possible values are: true, false. Default is false. Optional

Context Output

Path Type Description
OpenCTI.Indicators.IndicatorList.id string Unique ID of the indicator.
OpenCTI.Indicators.IndicatorList.name string Name of the indicator.
OpenCTI.Indicators.IndicatorList.description string Description of the indicator.
OpenCTI.Indicators.IndicatorList.pattern string The pattern associated with the indicator.
OpenCTI.Indicators.IndicatorList.validFrom string The valid-from date of the indicator.
OpenCTI.Indicators.IndicatorList.validUntil string The valid-until date of the indicator.
OpenCTI.Indicators.IndicatorList.score number Score of the indicator.
OpenCTI.Indicators.IndicatorList.confidence number Confidence of the indicator.
OpenCTI.Indicators.IndicatorList.createdBy string Name of the entity that created the indicator.
OpenCTI.Indicators.IndicatorList.creators list Name of the indicator creators.
OpenCTI.Indicators.IndicatorList.labels list Labels associated with the indicator.
OpenCTI.Indicators.IndicatorList.indicatorTypes list Types of the indicator.
OpenCTI.Indicators.IndicatorList.created string Creation date of the indicator.
OpenCTI.Indicators.IndicatorList.updatedAt string Last update date of the indicator.
OpenCTI.Indicators.LastRunID string The last ID of the previous fetch for pagination.

opencti-indicator-delete


Delete indicator.

Base Command

opencti-indicator-delete

Input

Argument Name Description Required
id Indicator ID. Required

Context Output

There is no context output for this command.

Command Example

!opencti-indicator-delete id=74faf2e8-bbab-4a1a-a548-58db202c5e57

Human Readable Output

Indicator deleted.

opencti-indicator-field-update


Update the indicator field. The fields that can be updated are: score, description.

Base Command

opencti-indicator-field-update

Input

Argument 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 Output

Path 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

{
    "OpenCTI": {
        "Indicator": {
            "id": "81d63245-9ba3-495d-8e78-03b037d71e01"
        }
    }
}

Human Readable Output

Indicator 81d63245-9ba3-495d-8e78-03b037d71e01 updated successfully.

opencti-indicator-create


Create new indicator.

Base Command

opencti-indicator-create

Input

Argument 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 Output

Path Type Description
OpenCTI.Indicator.id String New indicator ID.

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

{
    "OpenCTI": {
        "Indicator": {
            "id": "7ed5946a-81a2-4490-8be8-06d3633a41fb",
            "type": "Domain",
            "value": "TestDomainDocs.com"
        }
    }
}

Human Readable Output

Indicator created successfully. New Indicator id: 7ed5946a-81a2-4490-8be8-06d3633a41fb

opencti-indicator-field-add


Add a field to the indicator. Fields that can be added are marking definition and label.

Base Command

opencti-indicator-field-add

Input

Argument 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 Output

There 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 Output

Added label successfully.

opencti-indicator-field-remove


Remove indicator field value. Fields which values can be removed are marking definition and label.

Base Command

opencti-indicator-field-remove

Input

Argument 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

opencti-indicator-create


Create a new indicator in OpenCTI.

Base Command

opencti-indicator-create

Input

Argument Name Description Required
name Name of the indicator. Required
indicator Value of the indicator. Required
main_observable_type Main observable type for the indicator. Possible values are: Account, Domain, Email, File-MD5, File-SHA1, File-SHA256, IP, IPv6, Registry Key, URL. Required
indicator_types The types of the indicator. Use opencti-indicator-types-list to find all indicator types in OpenCTI. Optional
description The description of the indicator. Optional
confidence Confidence level for the indicator, value between 0 and 100. Default is 50. Optional
score The score of the indicator, value between 0 and 100. Default is 50. Optional
valid_from The valid-from date for the indicator in the format YYYY-MM-DDThh:mm:ss.sssZ. Optional
valid_until The valid-until date for the indicator in the format YYYY-MM-DDThh:mm:ss.sssZ. Optional
created_by The ID of the entity that created the indicator (use opencti-organization-list to find or create). Optional
label_id The label ID for the indicator (use opencti-label-list to find or create). Optional
marking_id The marking ID for the indicator (use opencti-marking-definition-list to find). Optional
external_references_id External references ID for the indicator (use opencti-external-reference-create to create). Optional
create_observables Create OpenCTI observable related with the OpenCTI indicator created. Possible values are: true, false. Default is false. Optional

Context Output

Path Type Description
OpenCTI.Indicator.id string New Indicator ID.
                },
                {
                    "id": "11ddff08-8933-46d7-ab22-31f49496499f",
                    "name": "ExampleOrganization"
                }
            ]
        },
        {
            "organizationsLastRun": "YXJyYXljb25uZWN0aW9uOjI="
        }
    ]
} }

#### Human Readable Output

>### Organizations
>|Name|Id|
>|---|---|
>| Test_Organization | 1e12fe87-db3e-4838-8391-6910547bf60d |
>| ExampleOrganization | 11ddff08-8933-46d7-ab22-31f49496499f |


### opencti-organization-create
***
Create a new organization.


#### Base Command

`opencti-organization-create`
#### Input

| **Argument 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 Output

| **Path** | **Type** | **Description** |
| --- | --- | --- |
| OpenCTI.Organization.id | String | New organization ID. | 


#### Command Example
```!opencti-organization-create name=ExampleOrganization description="create organization" reliability="C"```

#### Context Example
```json
{
    "OpenCTI": {
        "Organization": {
            "id": "11ddff08-8933-46d7-ab22-31f49496499f"
        }
    }
}

Human Readable Output

Organization ExampleOrganization was created successfully with id: 11ddff08-8933-46d7-ab22-31f49496499f.

opencti-label-list


Get list of all labels.

Base Command

opencti-label-list

Input

Argument 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 Output

Path 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

{
    "OpenCTI": {
        "Labels": {
            "LabelsList": [
                {
                    "id": "7ba41668-1594-4a09-9be5-3640f2c2d253",
                    "value": "demisto_lablel"
                },
                {
                    "id": "fa57f98e-f2f5-45fd-97f2-bf2c53119044",
                    "value": "devdemisto"
                }
            ],
            "labelsLastRun": "YXJyYXljb25uZWN0aW9uOjI="
        }
    }
}

Human Readable Output

Labels

Value Id
demisto_lablel 7ba41668-1594-4a09-9be5-3640f2c2d253
devdemisto fa57f98e-f2f5-45fd-97f2-bf2c53119044

opencti-label-create


Create a new label.

Base Command

opencti-label-create

Input

Argument Name Description Required
name Name of the new label to create. Required

Context Output

Path Type Description
OpenCTI.Label.id String New label ID.

Command Example

!opencti-label-create name=docsTest

Context Example

{
    "OpenCTI": {
        "Label": {
            "id": "beb5159a-e162-4352-b7d7-6e355db7f057"
        }
    }
}

Human Readable Output

Label docsTest was created successfully with id: beb5159a-e162-4352-b7d7-6e355db7f057.

opencti-external-reference-create


Create external reference.

Base Command

opencti-external-reference-create

Input

Argument Name Description Required
url External references URL. Required
source_name External references source name. Required

Context Output

Path 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

{
    "OpenCTI": {
        "externalReference": {
            "id": "8339d023-ada2-4b32-8a29-0a3897fc096d"
        }
    }
}

Human Readable Output

Reference source_name was created successfully with id: 8339d023-ada2-4b32-8a29-0a3897fc096d.

opencti-marking-definition-list


Get a list of all marking definitions.

Base Command

opencti-marking-definition-list

Input

Argument 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 Output

Path 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

{
    "OpenCTI": {
        "MarkingDefinitions": {
            "MarkingDefinitionsList": [
                {
                    "id": "dc911977-796a-4d96-95e4-615bd1c41263",
                    "value": "TLP:GREEN"
                },
                {
                    "id": "9128e411-c759-4af0-aeb0-b65f12082648",
                    "value": "TLP:AMBER"
                }
            ],
            "markingsLastRun": "YXJyYXljb25uZWN0aW9uOjI="
        }
    }
}

Human Readable Output

Markings

Value Id
TLP:GREEN dc911977-796a-4d96-95e4-615bd1c41263
TLP:AMBER 9128e411-c759-4af0-aeb0-b65f12082648

opencti-relationship-create


Create new relationship.

Base Command

opencti-relationship-create

Input

Argument Name Description Required
from_id Source entity ID for the relationship. Required
to_id Target entity ID for the relationship. Required
relationship_type Type of relationship to create. Possible values are: uses, targets, indicates, mitigates, attributed-to, located-at, related-to, derived-from, member-of, variant-of, part-of, communicates-with, compromises, delivers, owns, authored-by, impersonates, controls, hosts, investigates. Default is related-to. Optional
description Description of the relationship. Optional
confidence Confidence Number. Values range is 0 - 100. Optional

Context Output

Path Type Description
OpenCTI.Relationship.id unknown New Relationship ID.
OpenCTI.Relationship.relationshipType unknown New Relationship Type.

opencti-incident-delete


Delete incident.

Base Command

opencti-incident-delete

Input

Argument Name Description Required
id Incident ID. Required

Context Output

There is no context output for this command.

opencti-incident-create


Create new incident.

Base Command

opencti-incident-create

Input

Argument Name Description Required
name Incident name. Required
incident_type Incident Type name. Use opencti-incident-types-list to find all incident types in OpenCTI. Optional
confidence Incident Confidence Number. Values range is 0 - 100. Default value is 50. Optional
severity Incident severity. Possible values are: low, medium, high, critical. Optional
description Incident description. Optional
source Incident Source. Optional
objective Incident objective. Optional
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
first_seen Incident First seen. YYYY-MM-DDThh:mm:ss.sssZ. Optional
last_seen Incident Last seen. YYYY-MM-DDThh:mm:ss.sssZ. Optional
label_id Incident label ID. Use opencti-label-list to find all label IDs in OpenCTI, or use opencti-label-create to create a new label. Optional
marking_id Observable marking definition ID. Use opencti-marking-definition-list to find all marking definition IDs in OpenCTI. Optional
external_references_id External references URL. Use opencti-external-reference-create to create a new external reference. Optional

Context Output

Path Type Description
OpenCTI.Incident.id String New Incident ID.

opencti-observable-field-add


Add a field to the observable. Fields that can be added are marking definition and label.

Base Command

opencti-observable-field-add

Input

Argument Name Description Required
id Observable ID. Required
field Observable 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 Output

There is no context output for this command.

opencti-indicator-update


Update a indicator in OpenCTI.

Base Command

opencti-indicator-update

Input

Argument Name Description Required
id ID of the indicator. Required
name Name of the indicator. Optional
indicator_types The types of the indicator. Use opencti-indicator-types-list to find all indicator types in OpenCTI. Optional
description The description of the indicator. Optional
confidence Confidence level for the indicator, value between 0 and 100. Default is 50. Default is 50. Optional
score The score of the indicator, value between 0 and 100. Default is 50. Default is 50. Optional
valid_from The valid-from date for the indicator in the format YYYY-MM-DDThh:mm:ss.sssZ. Optional
valid_until The valid-until date for the indicator in the format YYYY-MM-DDThh:mm:ss.sssZ. Optional
label_id The label ID for the indicator (use opencti-label-list to find or create). Optional
marking_id The marking ID for the indicator (use opencti-marking-definition-list to find). Optional
external_references_id External references ID for the indicator (use opencti-external-reference-create to create). Optional

Context Output

Path Type Description
OpenCTI.Indicator.id string New Indicator ID.
OpenCTI.Indicator.name string Name of the updated indicator.
OpenCTI.Indicator.validFrom string The valid-from date of the updated indicator.
OpenCTI.Indicator.validUntil string The valid-until date of the updated indicator.

opencti-relationship-list


Get a list of all relationships in OpenCTI.

Base Command

opencti-relationship-list

Input

Argument Name Description Required
from_id The relationship from entity ID. Required
limit The maximum number of relationships 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.Relationships.relationshipsLastRun context path. Optional

Context Output

Path Type Description
OpenCTI.Relationships.RelationshipsList.id String Relationship ID.
OpenCTI.Relationships.RelationshipsList.relationshipType String Relationship type.
OpenCTI.Relationships.RelationshipsList.fromId String Relationship from entity ID.
OpenCTI.Relationships.RelationshipsList.toId String Relationship to entity ID.
OpenCTI.Relationships.RelationshipsList.toEntityType String Relationship to entity type.
OpenCTI.Relationships.relationshipsLastRun String The last ID of the previous fetch to use for pagination.

opencti-observable-create


Create new observable.

Base Command

opencti-observable-create

Input

Argument Name Description Required
type The observable type to create. Out-of-the-box observable 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 Observable marking definition ID. Use opencti-marking-definition-list to find all marking definition IDs in OpenCTI. Optional
label_id Observable 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 Observable description. Optional
score Observable score. Values range is 0 - 100. Default value is 50. Optional
value Observable value. Optional
create_indicator Create OpenCTI indicator related with the OpenCTI observable created. Possible values are: true, false. Default is false. Optional

Context Output

Path Type Description
OpenCTI.Observable.id String New observable ID.
OpenCTI.Observable.value String New observable value.
OpenCTI.Observable.type String New observable type.

opencti-get-observables


Gets observables from OpenCTI.

Base Command

opencti-get-observables

Input

Argument Name Description Required
limit The maximum number of observables 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
score A specific score. Values range is 0-100 or Unknown. Optional
observable_types The observable types to fetch. Out-of-the-box observable types supported in Cortex 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.ObservablesList.LastRunID context path. Optional
search The observable’s value to filter by. Can be a partial value. Optional
additional_filters List of filters to apply. Format: [{key: str, operator: str, values: list[str], mode: str}, …]. Optional
all_results When the argument is set to true, the limit argument is ignored. Possible values are: true, false. Default is false. Optional

Context Output

Path Type Description
OpenCTI.Observables.ObservablesList.type String Observable type.
OpenCTI.Observables.ObservablesList.value String Observable value.
OpenCTI.Observables.ObservablesList.id String Observable ID.
OpenCTI.Observables.ObservablesList.createdBy Unknown The creator of the observable.
OpenCTI.Observables.ObservablesList.score Number Observable score.
OpenCTI.Observables.ObservablesList.description String Observable description.
OpenCTI.Observables.ObservablesList.labels Unknown Observable labels.
OpenCTI.Observables.ObservablesList.marking Unknown Observable marking definitions.
OpenCTI.Observables.ObservablesList.externalReferences Unknown Observable external references.
OpenCTI.Observables.LastRunID String The last ID of the previous fetch to use for pagination.

opencti-relationship-delete


Delete relationship.

Base Command

opencti-relationship-delete

Input

Argument Name Description Required
id Relationship ID. Required

Context Output

There is no context output for this command.

opencti-observable-delete


Delete observable.

Base Command

opencti-observable-delete

Input

Argument Name Description Required
id Observable ID. Required

Context Output

There is no context output for this command.

opencti-observable-field-remove


Remove observable field value. Fields which values can be removed are marking definition and label.

Base Command

opencti-observable-field-remove

Input

Argument Name Description Required
id Observable ID. Required
field Observable 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 Output

There is no context output for this command.

opencti-observable-field-update


Update the observable field. The fields that can be updated are: score, description.

Base Command

opencti-observable-field-update

Input

Argument Name Description Required
id Observable ID. Required
field Observable field to update. Possible values are: score, description. Required
value Value of the field to update. Required

Context Output

Path Type Description
OpenCTI.Observable.id String Updated observable ID.

opencti-indicator-types-list


Get a list of all indicator types.

Base Command

opencti-indicator-types-list

Input

| Argument Name | Description | Required |
| — | — | — |

Context Output

Path Type Description
OpenCTI.IndicatorTypes.IndicatorTypesList.id unknown Indicator type ID.
OpenCTI.IndicatorTypes.IndicatorTypesList.name unknown Indicator type name.
OpenCTI.IndicatorTypes.IndicatorTypesList.description unknown Indicator type description.

opencti-incident-types-list


Get a list of all incident types.

Base Command

opencti-incident-types-list

Input

| Argument Name | Description | Required |
| — | — | — |

Context Output

Path Type Description
OpenCTI.IncidentTypes.IncidentTypesList.id unknown Incident type ID.
OpenCTI.IncidentTypes.IncidentTypesList.name unknown Incident type name.
OpenCTI.IncidentTypes.IncidentTypesList.description unknown Incident type description.

opencti-get-incidents


Get incidents in OpenCTI.

Base Command

opencti-get-incidents

Input

Argument Name Description Required
search The incident’s value to filter by. Can be a partial value. Optional
created_by The ID of the entity that created the incident (use opencti-organization-list to find or create). Optional
creator The ID of the incident creator. Optional
created_after Created after date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ. Optional
created_before Created before date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ. Optional
incident_types The types of the incident. Use opencti-incident-types-list to find all incident types in OpenCTI. Optional
label_id The label ID for the incident (use opencti-label-list to find or create). Optional
limit The maximum number of incidents to return. Maximum value is 500. 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.Incidents.LastRunID context path. Optional
additional_filters List of filters to apply. Format: [{key: str, operator: str, values: list[str], mode: str}, …]. Optional
all_results When the argument is set to true, the limit argument is ignored. Possible values are: true, false. Default is false. Optional

Context Output

Path Type Description
OpenCTI.Incidents.IncidentList.id string Unique ID of the incident.
OpenCTI.Incidents.IncidentList.name string Name of the incident.
OpenCTI.Incidents.IncidentList.description string Description of the incident.
OpenCTI.Incidents.IncidentList.source string The source of the incident.
OpenCTI.Incidents.IncidentList.severity string The severity of the incident.
OpenCTI.Incidents.IncidentList.objective string The objective date of the incident.
OpenCTI.Incidents.IncidentList.confidence number Confidence of the incident.
OpenCTI.Incidents.IncidentList.createdBy string Name of the entity that created the incident.
OpenCTI.Incidents.IncidentList.creators list Name of the incident creators.
OpenCTI.Incidents.IncidentList.labels list Labels associated with the incident.
OpenCTI.Incidents.IncidentList.incidentTypes list Types of the incident.
OpenCTI.Incidents.IncidentList.created string Creation date of the incident.
OpenCTI.Incidents.IncidentList.updatedAt string Last update date of the incident.
OpenCTI.Incidents.LastRunID string The last ID of the previous fetch for pagination.

Configuration parameters

  • base_url — Base URL (required)
  • credentials — API Key (leave empty. Fill in the API key in the password field.)
  • insecure — Trust any certificate (not secure)
  • proxy — Use system proxy settings
  • redirect_std_out — Redirect stdout

Commands (25)

  • opencti-external-reference-create

    Create external reference.

  • opencti-get-incidents

    Get incidents in OpenCTI.

  • opencti-get-indicators

    Get indicators in OpenCTI.

  • opencti-get-observables

    Gets observables from OpenCTI.

  • opencti-incident-create

    Create new incident.

  • opencti-incident-delete

    Delete incident.

  • opencti-incident-types-list

    Get a list of all incident types.

  • opencti-indicator-create

    Create a new indicator in OpenCTI.

  • opencti-indicator-field-add

    Add a field to the indicator. Fields that can be added are marking definition and label.

  • opencti-indicator-field-remove

    Remove indicator field value. Fields whose values can be removed are marking definition and label.

  • opencti-indicator-types-list

    Get a list of all indicator types.

  • opencti-indicator-update

    Update a indicator in OpenCTI.

  • opencti-label-create

    Create a new label.

  • opencti-label-list

    Get list of all labels.

  • opencti-marking-definition-list

    Get a list of all marking definitions.

  • opencti-observable-create

    Create new observable.

  • opencti-observable-delete

    Delete observable.

  • opencti-observable-field-add

    Add a field to the observable. Fields that can be added are marking definition and label.

  • opencti-observable-field-remove

    Remove observable field value. Fields which values can be removed are marking definition and label.

  • opencti-observable-field-update

    Update the observable field. The fields that can be updated are: score, description.

  • opencti-organization-create

    Create a new organization.

  • opencti-organization-list

    Get a list of all organizations in OpenCTI.

  • opencti-relationship-create

    Create new relationship.

  • opencti-relationship-delete

    Delete relationship.

  • opencti-relationship-list

    Get a list of all relationships in OpenCTI.

category: Data Enrichment & Threat Intelligence
provider: Filigran
sectionorder:
- Connect
commonfields:
  id: OpenCTI
  version: -1
configuration:
- display: Base URL
  name: base_url
  required: true
  type: 0
  section: Connect
- display: API Key (leave empty. Fill in the API key in the password field.)
  displaypassword: API Key
  name: credentials
  type: 9
  hiddenusername: true
  required: false
  section: Connect
- display: Trust any certificate (not secure)
  name: insecure
  type: 8
  required: false
  section: Connect
- display: Use system proxy settings
  name: proxy
  type: 8
  required: false
  section: Connect
- name: redirect_std_out
  display: Redirect stdout
  type: 8
  additionalinfo: Used for troubleshooting purposes.
  required: false
  section: Connect
description: Manages OpenCTI platform. Compatible with OpenCTI 4.X API and OpenCTI 5.X API versions.
display: OpenCTI
name: OpenCTI
script:
  commands:
  - arguments:
    - description: The maximum number of observables to return. Default value is 50. Maximum value is 500.
      name: limit
    - description: 'Score minimum value to filter by. Values range is 0-100. '
      name: score_start
    - description: 'Score maximum value to filter by. Values range is 0-100. '
      name: score_end
    - description: 'A specific score. Values range is 0-100 or Unknown.'
      name: score
    - auto: PREDEFINED
      defaultValue: ALL
      description: 'The observable types to fetch. Out-of-the-box observable types supported in Cortex XSOAR are: Account, Domain, Email, File, Host, IP, IPv6, Registry Key, and URL.'
      isArray: true
      name: observable_types
      predefined:
      - ALL
      - Account
      - Domain
      - Email
      - File
      - Host
      - IP
      - IPv6
      - Registry Key
      - URL
    - description: The last ID from the previous call, from which to begin pagination for this call. You can find this value at the OpenCTI.ObservablesList.LastRunID context path.
      name: last_run_id
    - description: The observable's value to filter by. Can be a partial value.
      name: search
    - description: "List of filters to apply. Format: [{key: str, operator: str, values: list[str], mode: str}, ...]."
      name: additional_filters
      type: string
      isArray: true
    - auto: PREDEFINED
      defaultValue: "false"
      description: When the argument is set to true, the limit argument is ignored.
      name: all_results
      predefined:
      - "true"
      - "false"
    description: Gets observables from OpenCTI.
    name: opencti-get-observables
    outputs:
    - contextPath: OpenCTI.Observables.ObservablesList.type
      description: Observable type.
      type: String
    - contextPath: OpenCTI.Observables.ObservablesList.value
      description: Observable value.
      type: String
    - contextPath: OpenCTI.Observables.ObservablesList.id
      description: Observable ID.
      type: String
    - contextPath: OpenCTI.Observables.ObservablesList.createdBy
      description: The creator of the observable.
      type: Unknown
    - contextPath: OpenCTI.Observables.ObservablesList.score
      description: Observable score.
      type: Number
    - contextPath: OpenCTI.Observables.ObservablesList.description
      description: Observable description.
      type: String
    - contextPath: OpenCTI.Observables.ObservablesList.labels
      description: Observable labels.
      type: Unknown
    - contextPath: OpenCTI.Observables.ObservablesList.marking
      description: Observable marking definitions.
      type: Unknown
    - contextPath: OpenCTI.Observables.ObservablesList.externalReferences
      description: Observable external references.
      type: Unknown
    - contextPath: OpenCTI.Observables.LastRunID
      description: The last ID of the previous fetch to use for pagination.
      type: String
  - arguments:
    - description: Observable ID.
      name: id
      required: true
    description: Delete observable.
    name: opencti-observable-delete
  - arguments:
    - description: Observable ID.
      name: id
      required: true
    - auto: PREDEFINED
      description: Observable field to update.
      name: field
      predefined:
      - score
      - description
      required: true
    - description: Value of the field to update.
      name: value
      required: true
    description: 'Update the observable field. The fields that can be updated are: score, description.'
    name: opencti-observable-field-update
    outputs:
    - contextPath: OpenCTI.Observable.id
      description: Updated observable ID.
      type: String
  - arguments:
    - auto: PREDEFINED
      description: 'The observable type to create. Out-of-the-box observable types supported in Cortex XSOAR are: Account, Domain, Email, File-MD5, File-SHA1, File-SHA256, Host, IP, IPV6, Registry Key, and URL.'
      name: type
      predefined:
      - Account
      - Domain
      - Email
      - File-MD5
      - File-SHA1
      - File-SHA256
      - Host
      - IP
      - IPv6
      - Registry Key
      - URL
      required: true
    - description: Organization ID. Use opencti-organization-list to find all organization IDs in OpenCTI, or use opencti-organization-create to create a new organization ID.
      name: created_by
    - description: Observable marking definition ID. Use opencti-marking-definition-list to find all marking definition IDs in OpenCTI.
      name: marking_id
    - description: Observable label ID. Use opencti-label-list to find all label IDs in OpenCTI, or use opencti-label-create to create a new label.
      name: label_id
    - description: External references URL. Use opencti-external-reference-create to create a new external reference.
      name: external_references_id
    - description: Observable description.
      name: description
    - description: Observable score. Values range is 0 - 100. Default value is 50.
      name: score
    - description: Observable value.
      name: value
    - auto: PREDEFINED
      defaultValue: "false"
      description: Create OpenCTI indicator related with the OpenCTI observable created.
      name: create_indicator
      predefined:
      - "true"
      - "false"
    description: Create new observable.
    name: opencti-observable-create
    outputs:
    - contextPath: OpenCTI.Observable.id
      description: New observable ID.
      type: String
    - contextPath: OpenCTI.Observable.value
      description: New observable value.
      type: String
    - contextPath: OpenCTI.Observable.type
      description: New observable type.
      type: String
  - arguments:
    - description: Observable ID.
      name: id
      required: true
    - auto: PREDEFINED
      description: Observable field to add.
      name: field
      predefined:
      - marking
      - label
      required: true
    - description: "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."
      name: value
      required: true
    description: Add a field to the observable. Fields that can be added are marking definition and label.
    name: opencti-observable-field-add
  - arguments:
    - description: Observable ID.
      name: id
      required: true
    - auto: PREDEFINED
      description: Observable field to update.
      name: field
      predefined:
      - marking
      - label
      required: true
    - description: "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."
      name: value
      required: true
    description: Remove observable field value. Fields which values can be removed are marking definition and label.
    name: opencti-observable-field-remove
  - arguments:
    - defaultValue: '50'
      description: The maximum number of organizations to return per fetch. Default value is 50. Maximum value is 200.
      name: limit
    - description: 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.
      name: last_run_id
    description: Get a list of all organizations in OpenCTI.
    name: opencti-organization-list
    outputs:
    - contextPath: OpenCTI.Organizations.OrganizationsList.id
      description: Organization ID.
      type: String
    - contextPath: OpenCTI.Organizations.OrganizationsList.name
      description: Organization name.
      type: String
    - contextPath: OpenCTI.Organizations.organizationsLastRun
      description: The last ID of the previous fetch to use for pagination.
      type: String
  - arguments:
    - description: Name of the organization to create.
      name: name
      required: true
    - description: Description of the organization.
      name: description
    - auto: PREDEFINED
      description: Reliability of the organization.
      name: reliability
      predefined:
      - A
      - B
      - C
      - D
      - E
      - F
    description: Create a new organization.
    name: opencti-organization-create
    outputs:
    - contextPath: OpenCTI.Organization.id
      description: New organization ID.
      type: String
  - arguments:
    - defaultValue: '50'
      description: The maximum number of labels to return per fetch.
      name: limit
    - description: 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.
      name: last_run_id
    description: Get list of all labels.
    name: opencti-label-list
    outputs:
    - contextPath: OpenCTI.Labels.LabelsList.id
      description: Label ID.
      type: String
    - contextPath: OpenCTI.Labels.LabelsList.value
      description: Label name.
      type: String
    - contextPath: OpenCTI.Labels.labelsLastRun
      description: The last ID of the previous fetch to use for pagination.
      type: String
  - arguments:
    - description: Name of the new label to create.
      name: name
      required: true
    description: Create a new label.
    name: opencti-label-create
    outputs:
    - contextPath: OpenCTI.Label.id
      description: New label ID.
      type: String
  - arguments:
    - description: External references URL.
      name: url
      required: true
    - description: External references source name.
      name: source_name
      required: true
    description: Create external reference.
    name: opencti-external-reference-create
    outputs:
    - contextPath: OpenCTI.externalReference.id
      description: New external reference ID.
      type: String
  - arguments:
    - defaultValue: '50'
      description: The maximum number of marking definitions to return per fetch.
      name: limit
    - description: 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.
      name: last_run_id
    description: Get a list of all marking definitions.
    name: opencti-marking-definition-list
    outputs:
    - contextPath: OpenCTI.MarkingDefinitions.MarkingDefinitionsList.id
      description: Marking definition ID.
      type: String
    - contextPath: OpenCTI.MarkingDefinitions.MarkingDefinitionsList.value
      description: Marking definition name.
      type: String
    - contextPath: OpenCTI.MarkingDefinitions.markingsLastRun
      description: The last ID of the previous fetch to use for pagination.
      type: String
  - arguments:
    - description: Incident name.
      name: name
      required: true
    - description: Incident type name. Use opencti-incident-types-list to find all incident types in OpenCTI.
      name: incident_type
    - description: Incident confidence number. Values range is 0 - 100. Default value is 50.
      name: confidence
    - auto: PREDEFINED
      description: Incident severity.
      name: severity
      predefined:
      - low
      - medium
      - high
      - critical
    - description: Incident description.
      name: description
    - description: Incident source.
      name: source
    - description: Incident objective.
      name: objective
    - description: Organization ID. Use opencti-organization-list to find all organization IDs in OpenCTI, or use opencti-organization-create to create a new organization ID.
      name: created_by
    - description: Incident first seen. YYYY-MM-DDThh:mm:ss.sssZ
      name: first_seen
    - description: Incident last seen. YYYY-MM-DDThh:mm:ss.sssZ
      name: last_seen
    - description: Incident label ID. Use opencti-label-list to find all label IDs in OpenCTI, or use opencti-label-create to create a new label.
      name: label_id
    - description: Observable marking definition ID. Use opencti-marking-definition-list to find all marking definition IDs in OpenCTI.
      name: marking_id
    - description: External references URL. Use opencti-external-reference-create to create a new external reference.
      name: external_references_id
    description: Create new incident.
    name: opencti-incident-create
    outputs:
    - contextPath: OpenCTI.Incident.id
      description: New incident ID.
      type: String
  - arguments:
    - description: Incident ID.
      name: id
      required: true
    description: Delete incident.
    name: opencti-incident-delete
  - arguments:
    - description: The incident's value to filter by. Can be a partial value.
      name: search
    - description: The ID of the entity that created the incident (use opencti-organization-list to find or create).
      name: created_by
    - description: The ID of the incident creator.
      name: creator
    - description: "Created after date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ"
      name: created_after
    - description: "Created before date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ"
      name: created_before
    - description: The types of the incident. Use opencti-incident-types-list to find all incident types in OpenCTI.
      isArray: true
      name: incident_types
      type: string
    - description: The label ID for the incident (use opencti-label-list to find or create).
      name: label_id
      type: string
    - defaultValue: "50"
      description: The maximum number of incidents to return. Maximum value is 500.
      name: limit
    - description: The last ID from the previous call, from which to begin pagination for this call. You can find this value at the OpenCTI.Incidents.LastRunID context path.
      name: last_run_id
    - description: "List of filters to apply. Format: [{key: str, operator: str, values: list[str], mode: str}, ...]."
      name: additional_filters
      type: string
      isArray: true
    - auto: PREDEFINED
      defaultValue: "false"
      description: When the argument is set to true, the limit argument is ignored.
      name: all_results
      predefined:
      - "true"
      - "false"
    description: Get incidents in OpenCTI.
    name: opencti-get-incidents
    outputs:
    - contextPath: OpenCTI.Incidents.IncidentList.id
      description: Unique ID of the incident.
      type: string
    - contextPath: OpenCTI.Incidents.IncidentList.name
      description: Name of the incident.
      type: string
    - contextPath: OpenCTI.Incidents.IncidentList.description
      description: Description of the incident.
      type: string
    - contextPath: OpenCTI.Incidents.IncidentList.source
      description: The source of the incident.
      type: string
    - contextPath: OpenCTI.Incidents.IncidentList.severity
      description: The severity of the incident.
      type: string
    - contextPath: OpenCTI.Incidents.IncidentList.objective
      description: The objective date of the incident.
      type: string
    - contextPath: OpenCTI.Incidents.IncidentList.confidence
      description: Confidence of the incident.
      type: number
    - contextPath: OpenCTI.Incidents.IncidentList.createdBy
      description: Name of the entity that created the incident.
      type: string
    - contextPath: OpenCTI.Incidents.IncidentList.creators
      description: Name of the incident creators.
      type: list
    - contextPath: OpenCTI.Incidents.IncidentList.labels
      description: Labels associated with the incident.
      type: list
    - contextPath: OpenCTI.Incidents.IncidentList.incidentTypes
      description: Types of the incident.
      type: list
    - contextPath: OpenCTI.Incidents.IncidentList.created
      description: Creation date of the incident.
      type: string
    - contextPath: OpenCTI.Incidents.IncidentList.updatedAt
      description: Last update date of the incident.
      type: string
    - contextPath: OpenCTI.Incidents.LastRunID
      description: The last ID of the previous fetch for pagination.
      type: string
  - arguments: []
    description: Get a list of all incident types.
    name: opencti-incident-types-list
    outputs:
    - contextPath: OpenCTI.IncidentTypes.IncidentTypesList.id
      description: Incident type ID.
    - contextPath: OpenCTI.IncidentTypes.IncidentTypesList.name
      description: Incident type name.
    - contextPath: OpenCTI.IncidentTypes.IncidentTypesList.description
      description: Incident type description.
  - arguments:
    - description: Name of the indicator.
      name: name
      required: true
      type: string
    - description: Value of the indicator.
      name: indicator
      required: true
      type: string
    - auto: PREDEFINED
      description: Main observable type for the indicator.
      name: main_observable_type
      predefined:
      - Account
      - Domain
      - Email
      - File-MD5
      - File-SHA1
      - File-SHA256
      - IP
      - IPv6
      - Registry Key
      - URL
      required: true
      type: string
    - description: The types of the indicator. Use opencti-indicator-types-list to find all indicator types in OpenCTI.
      isArray: true
      name: indicator_types
      type: string
    - description: The description of the indicator.
      name: description
      type: string
    - defaultValue: "50"
      description: Confidence level for the indicator, value between 0 and 100.
      name: confidence
    - defaultValue: "50"
      description: The score of the indicator, value between 0 and 100.
      name: score
    - description: The valid-from date for the indicator in the format YYYY-MM-DDThh:mm:ss.sssZ.
      name: valid_from
      type: string
    - description: The valid-until date for the indicator in the format YYYY-MM-DDThh:mm:ss.sssZ.
      name: valid_until
      type: string
    - description: The ID of the entity that created the indicator (use opencti-organization-list to find or create).
      name: created_by
      type: string
    - description: The label ID for the indicator (use opencti-label-list to find or create).
      name: label_id
      type: string
    - description: The marking ID for the indicator (use opencti-marking-definition-list to find).
      name: marking_id
      type: string
    - description: External references ID for the indicator (use opencti-external-reference-create to create).
      name: external_references_id
      type: string
    - auto: PREDEFINED
      defaultValue: "false"
      description: Create OpenCTI observable related to the OpenCTI indicator created.
      name: create_observables
      predefined:
      - "true"
      - "false"
    description: Create a new indicator in OpenCTI.
    name: opencti-indicator-create
    outputs:
    - contextPath: OpenCTI.Indicator.id
      description: New indicator ID.
      type: string
  - arguments:
    - description: Indicator ID.
      name: id
      required: true
    - auto: PREDEFINED
      description: Indicator field to add.
      name: field
      predefined:
      - marking
      - label
      required: true
    - description: 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.
      name: value
      required: true
    description: Add a field to the indicator. Fields that can be added are marking definition and label.
    name: opencti-indicator-field-add
  - arguments:
    - description: Indicator ID.
      name: id
      required: true
    - auto: PREDEFINED
      description: Indicator field to update.
      name: field
      predefined:
      - marking
      - label
      required: true
    - description: 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.
      name: value
      required: true
    description: Remove indicator field value. Fields whose values can be removed are marking definition and label.
    name: opencti-indicator-field-remove
  - arguments:
    - description: ID of the indicator.
      name: id
      required: true
      type: string
    - description: Name of the indicator.
      name: name
      type: string
    - description: The types of the indicator. Use opencti-indicator-types-list to find all indicator types in OpenCTI.
      isArray: true
      name: indicator_types
      type: string
    - description: The description of the indicator.
      name: description
      type: string
    - defaultValue: "50"
      description: Confidence level for the indicator, value between 0 and 100.
      name: confidence
    - defaultValue: "50"
      description: The score of the indicator, value between 0 and 100.
      name: score
    - description: The valid-from date for the indicator in the format YYYY-MM-DDThh:mm:ss.sssZ.
      name: valid_from
      type: string
    - description: The valid-until date for the indicator in the format YYYY-MM-DDThh:mm:ss.sssZ.
      name: valid_until
      type: string
    - description: The label ID for the indicator (use opencti-label-list to find or create).
      name: label_id
      type: string
    - description: The marking ID for the indicator (use opencti-marking-definition-list to find).
      name: marking_id
      type: string
    - description: External references ID for the indicator (use opencti-external-reference-create to create).
      name: external_references_id
      type: string
    description: Update a indicator in OpenCTI.
    name: opencti-indicator-update
    outputs:
    - contextPath: OpenCTI.Indicator.id
      description: New indicator ID.
      type: string
    - contextPath: OpenCTI.Indicator.name
      description: Name of the updated indicator.
      type: string
    - contextPath: OpenCTI.Indicator.validFrom
      description: The valid-from date of the updated indicator.
      type: string
    - contextPath: OpenCTI.Indicator.validUntil
      description: The valid-until date of the updated indicator.
      type: string
  - arguments:
    - description: The indicator's value to filter by, can be partial value.
      name: search
    - description: The ID of the entity that created the indicator (use opencti-organization-list to find or create).
      name: created_by
    - description: The ID of the indicator creator.
      name: creator
    - description: "Created after date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ"
      name: created_after
    - description: "Created before date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ"
      name: created_before
    - description: "Valid until after date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ"
      name: valid_until_after
    - description: "Valid until before date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ"
      name: valid_until_before
    - description: "Valid from after date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ"
      name: valid_from_after
    - description: "Valid from before date filter. Format: YYYY-MM-DDThh:mm:ss.sssZ"
      name: valid_from_before
    - description: The types of the indicator. Use opencti-indicator-types-list to find all indicator types in OpenCTI.
      isArray: true
      name: indicator_types
      type: string
    - description: The label ID for the indicator (use opencti-label-list to find or create).
      name: label_id
      type: string
    - defaultValue: "50"
      description: The maximum number of indicators to return. Maximum value is 500.
      name: limit
    - description: The last ID from the previous call, from which to begin pagination for this call. You can find this value at the OpenCTI.Indicators.LastRunID context path.
      name: last_run_id
    - description: "List of filters to apply. Format: [{key: str, operator: str, values: list[str], mode: str}, ...]."
      name: additional_filters
      type: string
      isArray: true
    - auto: PREDEFINED
      defaultValue: "false"
      description: When the argument is set to true, the limit argument is ignored.
      name: all_results
      predefined:
      - "true"
      - "false"
    description: Get indicators in OpenCTI.
    name: opencti-get-indicators
    outputs:
    - contextPath: OpenCTI.Indicators.IndicatorList.id
      description: Unique ID of the indicator.
      type: string
    - contextPath: OpenCTI.Indicators.IndicatorList.name
      description: Name of the indicator.
      type: string
    - contextPath: OpenCTI.Indicators.IndicatorList.description
      description: Description of the indicator.
      type: string
    - contextPath: OpenCTI.Indicators.IndicatorList.pattern
      description: The pattern associated with the indicator.
      type: string
    - contextPath: OpenCTI.Indicators.IndicatorList.validFrom
      description: The valid-from date of the indicator.
      type: string
    - contextPath: OpenCTI.Indicators.IndicatorList.validUntil
      description: The valid-until date of the indicator.
      type: string
    - contextPath: OpenCTI.Indicators.IndicatorList.score
      description: Score of the indicator.
      type: number
    - contextPath: OpenCTI.Indicators.IndicatorList.confidence
      description: Confidence of the indicator.
      type: number
    - contextPath: OpenCTI.Indicators.IndicatorList.createdBy
      description: Name of the entity that created the indicator.
      type: string
    - contextPath: OpenCTI.Indicators.IndicatorList.creators
      description: Name of the indicator creators.
      type: list
    - contextPath: OpenCTI.Indicators.IndicatorList.labels
      description: Labels associated with the indicator.
      type: list
    - contextPath: OpenCTI.Indicators.IndicatorList.indicatorTypes
      description: Types of the indicator.
      type: list
    - contextPath: OpenCTI.Indicators.IndicatorList.created
      description: Creation date of the indicator.
      type: string
    - contextPath: OpenCTI.Indicators.IndicatorList.updatedAt
      description: Last update date of the indicator.
      type: string
    - contextPath: OpenCTI.Indicators.LastRunID
      description: The last ID of the previous fetch for pagination.
      type: string
  - arguments:
    - description: Source entity ID for the relationship.
      name: from_id
      required: true
    - description: Target entity ID for the relationship.
      name: to_id
      required: true
    - auto: PREDEFINED
      defaultValue: related-to
      description: Type of relationship to create.
      name: relationship_type
      predefined:
      - uses
      - targets
      - indicates
      - mitigates
      - attributed-to
      - located-at
      - related-to
      - derived-from
      - member-of
      - variant-of
      - part-of
      - communicates-with
      - compromises
      - delivers
      - owns
      - authored-by
      - impersonates
      - controls
      - hosts
      - investigates
    - description: Description of the relationship.
      name: description
    - description: Confidence Number. Values range is 0 - 100.
      name: confidence
    description: Create new relationship.
    name: opencti-relationship-create
    outputs:
    - contextPath: OpenCTI.Relationship.id
      description: New relationship ID.
    - contextPath: OpenCTI.Relationship.relationshipType
      description: New relationship type.
  - arguments:
    - description: Relationship ID.
      name: id
      required: true
    description: Delete relationship.
    name: opencti-relationship-delete
  - arguments:
    - description: The relationship from entity ID.
      name: from_id
      required: true
    - defaultValue: '50'
      description: The maximum number of relationships to return per fetch. Default value is 50. Maximum value is 200.
      name: limit
    - description: The last ID from the previous call, from which to begin pagination for this call. You can find this value at the OpenCTI.Relationships.relationshipsLastRun context path.
      name: last_run_id
    description: Get a list of all relationships in OpenCTI.
    name: opencti-relationship-list
    outputs:
    - contextPath: OpenCTI.Relationships.RelationshipsList.id
      description: Relationship ID.
      type: String
    - contextPath: OpenCTI.Relationships.RelationshipsList.relationshipType
      description: Relationship type.
      type: String
    - contextPath: OpenCTI.Relationships.RelationshipsList.fromId
      description: Relationship from entity ID.
      type: String
    - contextPath: OpenCTI.Relationships.RelationshipsList.toId
      description: Relationship to entity ID.
      type: String
    - contextPath: OpenCTI.Relationships.RelationshipsList.toEntityType
      description: Relationship to entity type.
      type: String
    - contextPath: OpenCTI.Relationships.relationshipsLastRun
      description: The last ID of the previous fetch to use for pagination.
      type: String
  - arguments: []
    description: Get a list of all indicator types.
    name: opencti-indicator-types-list
    outputs:
    - contextPath: OpenCTI.IndicatorTypes.IndicatorTypesList.id
      description: Indicator type ID.
    - contextPath: OpenCTI.IndicatorTypes.IndicatorTypesList.name
      description: Indicator type name.
    - contextPath: OpenCTI.IndicatorTypes.IndicatorTypesList.description
      description: Indicator type description.
  dockerimage: demisto/vendors-sdk:1.0.0.10120494
  runonce: false
  script: '-'
  subtype: python3
  type: python
tests:
- OpenCTI Test
fromversion: 5.0.0
autoUpdateDockerImage: false