Skip to main content

Call GraphQL API

Action ID: tools.opencti.call_graphql Return the GraphQL response body (data and any extensions). Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/docs/docs/reference/api.md

Secrets

Required secrets:
  • opencti: required values OPENCTI_API_TOKEN.

Input fields

string
required
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com). /graphql is appended.
string
required
GraphQL query or mutation document.
string | null
Operation to run when the document defines several.Default: null.
object | null
Variables to bind to the GraphQL document.Default: null.

Create incident response case

Action ID: tools.opencti.create_case_incident Create an incident response case. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_case_incident.py

Input fields

string
required
Case name.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.
integer | null
Confidence level (0-100).Default: null.
string | null
ID of the author identity.Default: null.
string | null
Description.Default: null.
array[string] | null
IDs of external references.Default: null.
array[string] | null
IDs of assignee users.Default: null.
array[string] | null
Label IDs or values.Default: null.
array[string] | null
IDs of marking definitions (e.g. TLP).Default: null.
array[string] | null
IDs of entities and relationships to contain.Default: null.
string | null
Priority, e.g. P1 to P4.Default: null.
array[string] | null
Incident response types.Default: null.
string | null
Severity, e.g. low, medium, high, critical.Default: null.

Create indicator

Action ID: tools.opencti.create_indicator Create an indicator. An existing indicator with the same pattern is updated instead. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_indicator.py

Input fields

string
required
Indicator name.
string
required
Detection pattern, e.g. [ipv4-addr:value = '198.51.100.1'].
string
required
Pattern language, e.g. stix, sigma, yara, snort, suricata.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.
integer | null
Confidence level (0-100).Default: null.
boolean | null
Create observables from the pattern.Default: null.
string | null
ID of the author identity.Default: null.
string | null
Description.Default: null.
array[string] | null
IDs of external references.Default: null.
array[string] | null
Indicator types, e.g. malicious-activity.Default: null.
array[string] | null
Label IDs or values.Default: null.
array[string] | null
IDs of marking definitions (e.g. TLP).Default: null.
string | null
Start of validity (ISO 8601).Default: null.
string | null
End of validity (ISO 8601).Default: null.
boolean | null
Whether the indicator is used for detection.Default: null.
string | null
Main observable type, e.g. IPv4-Addr, Domain-Name, StixFile.Default: null.
integer | null
Score (0-100).Default: null.

Create note

Action ID: tools.opencti.create_note Create a note and attach it to entities. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_note.py

Input fields

string
required
Note content.
string | null
Note abstract.Default: null.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.
integer | null
Confidence level (0-100).Default: null.
string | null
ID of the author identity.Default: null.
array[string] | null
IDs of external references.Default: null.
array[string] | null
Note types, e.g. analysis, assessment.Default: null.
array[string] | null
Label IDs or values.Default: null.
array[string] | null
IDs of marking definitions (e.g. TLP).Default: null.
array[string] | null
IDs of entities the note is about.Default: null.

Create observable

Action ID: tools.opencti.create_stix_cyber_observable Create a STIX cyber observable. An existing observable with the same value is updated instead. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_stix_cyber_observable.py

Input fields

string
required
Observable type: IPv4-Addr, IPv6-Addr, Domain-Name, Hostname, Url, Email-Addr, StixFile, Mac-Addr, User-Account or Autonomous-System.
object | null
AutonomousSystemAddInput for type AutonomousSystem, e.g. {value: ...}. Set only the input that matches type.Default: null.
object | null
DomainNameAddInput for type DomainName, e.g. {value: ...}. Set only the input that matches type.Default: null.
object | null
EmailAddrAddInput for type EmailAddr, e.g. {value: ...}. Set only the input that matches type.Default: null.
object | null
HostnameAddInput for type Hostname, e.g. {value: ...}. Set only the input that matches type.Default: null.
object | null
IPv4AddrAddInput for type IPv4Addr, e.g. {value: ...}. Set only the input that matches type.Default: null.
object | null
IPv6AddrAddInput for type IPv6Addr, e.g. {value: ...}. Set only the input that matches type.Default: null.
object | null
MacAddrAddInput for type MacAddr, e.g. {value: ...}. Set only the input that matches type.Default: null.
object | null
StixFileAddInput for type StixFile, e.g. {value: ...} or {hashes: [{algorithm: SHA-256, hash: ...}], name}. Set only the input that matches type.Default: null.
object | null
UrlAddInput for type Url, e.g. {value: ...}. Set only the input that matches type.Default: null.
object | null
UserAccountAddInput for type UserAccount, e.g. {value: ...}. Set only the input that matches type.Default: null.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.
boolean | null
Also create an indicator from the observable.Default: null.
string | null
ID of the author identity.Default: null.
array[string] | null
IDs of external references.Default: null.
array[string] | null
Label IDs or values.Default: null.
array[string] | null
IDs of marking definitions.Default: null.
string | null
Description.Default: null.
integer | null
Score (0-100).Default: null.

Create relationship

Action ID: tools.opencti.create_stix_core_relationship Create a relationship between two entities. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_stix_core_relationship.py

Input fields

string
required
Source entity ID.
string
required
Relationship type, e.g. indicates, uses, targets, related-to.
string
required
Target entity ID.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.
integer | null
Confidence level (0-100).Default: null.
string | null
ID of the author identity.Default: null.
string | null
Description.Default: null.
array[string] | null
IDs of external references.Default: null.
array[string] | null
Label IDs or values.Default: null.
array[string] | null
IDs of marking definitions (e.g. TLP).Default: null.
string | null
Start time (ISO 8601).Default: null.
string | null
Stop time (ISO 8601).Default: null.

Create report

Action ID: tools.opencti.create_report Create a report. An existing report with the same name and published date is updated instead. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_report.py

Input fields

string
required
Report name.
string
required
Publication date (ISO 8601).
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.
integer | null
Confidence level (0-100).Default: null.
string | null
ID of the author identity.Default: null.
string | null
Description.Default: null.
array[string] | null
IDs of external references.Default: null.
array[string] | null
Label IDs or values.Default: null.
array[string] | null
IDs of marking definitions (e.g. TLP).Default: null.
array[string] | null
IDs of entities and relationships to contain.Default: null.
array[string] | null
Report types, e.g. threat-report.Default: null.

Create sighting

Action ID: tools.opencti.create_stix_sighting_relationship Record a sighting of an entity or indicator, typically by an identity or system. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_stix_sighting_relationship.py

Input fields

integer
required
Number of times it was sighted.
string
required
ID of the sighted entity or indicator.
string
required
ID of the identity or location where it was sighted.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.
integer | null
Confidence level (0-100).Default: null.
string | null
ID of the author identity.Default: null.
string | null
Description.Default: null.
array[string] | null
IDs of external references.Default: null.
string | null
First seen (ISO 8601).Default: null.
string | null
Last seen (ISO 8601).Default: null.
array[string] | null
Label IDs or values.Default: null.
array[string] | null
IDs of marking definitions (e.g. TLP).Default: null.
boolean | null
Whether the sighting is a false positive.Default: null.

Get indicator

Action ID: tools.opencti.get_indicator Get an indicator by ID. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_indicator.py

Input fields

string
required
OpenCTI internal ID or STIX ID.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.

Get observable

Action ID: tools.opencti.get_stix_cyber_observable Get a STIX cyber observable by ID. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_stix_cyber_observable.py

Input fields

string
required
OpenCTI internal ID or STIX ID.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.

Get report

Action ID: tools.opencti.get_report Get a report by ID. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_report.py

Input fields

string
required
OpenCTI internal ID or STIX ID.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.

Get STIX core object

Action ID: tools.opencti.get_stix_core_object Get an entity or observable by ID. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_stix_core_object.py

Input fields

string
required
OpenCTI internal ID or STIX ID.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.

List incident response cases

Action ID: tools.opencti.list_case_incidents List incident response cases. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_case_incident.py

Input fields

string | null
Cursor from pageInfo.endCursor of the previous page.Default: null.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.
object | null
OpenCTI FilterGroup: {mode, filters: [{key, values, operator, mode}], filterGroups}. See https://docs.opencti.io/latest/reference/filters/.Default: null.
integer | null
Number of results to return. OpenCTI caps a page at 5000.Default: null.
string | null
Field to sort by.Default: null.
string | null
Sort direction: asc or desc.Default: null.
Keyword search.Default: null.

List indicators

Action ID: tools.opencti.list_indicators List indicators. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_indicator.py

Input fields

string | null
Cursor from pageInfo.endCursor of the previous page.Default: null.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.
object | null
OpenCTI FilterGroup: {mode, filters: [{key, values, operator, mode}], filterGroups}. See https://docs.opencti.io/latest/reference/filters/.Default: null.
integer | null
Number of results to return. OpenCTI caps a page at 5000.Default: null.
string | null
Field to sort by.Default: null.
string | null
Sort direction: asc or desc.Default: null.
string | null
Keyword search.Default: null.

List observables

Action ID: tools.opencti.list_stix_cyber_observables List STIX cyber observables (IPs, domains, hashes, URLs and more). Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_stix_cyber_observable.py

Input fields

string | null
Cursor from pageInfo.endCursor of the previous page.Default: null.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.
object | null
OpenCTI FilterGroup: {mode, filters: [{key, values, operator, mode}], filterGroups}. See https://docs.opencti.io/latest/reference/filters/.Default: null.
integer | null
Number of results to return. OpenCTI caps a page at 5000.Default: null.
string | null
Field to sort by.Default: null.
string | null
Sort direction: asc or desc.Default: null.
string | null
Keyword search.Default: null.
array[string] | null
Observable types to return (e.g. IPv4-Addr, Domain-Name, Url, StixFile, Email-Addr).Default: null.

List relationships

Action ID: tools.opencti.list_stix_core_relationships List relationships between entities. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_stix_core_relationship.py

Input fields

string | null
Cursor from pageInfo.endCursor of the previous page.Default: null.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.
object | null
OpenCTI FilterGroup: {mode, filters: [{key, values, operator, mode}], filterGroups}. See https://docs.opencti.io/latest/reference/filters/.Default: null.
integer | null
Number of results to return. OpenCTI caps a page at 5000.Default: null.
array[string] | null
Source entity IDs.Default: null.
array[string] | null
Return relationships from or to these entity IDs.Default: null.
string | null
Field to sort by.Default: null.
string | null
Sort direction: asc or desc.Default: null.
array[string] | null
Relationship types, e.g. indicates, uses, targets, related-to.Default: null.
string | null
Keyword search.Default: null.
array[string] | null
Target entity IDs.Default: null.

List reports

Action ID: tools.opencti.list_reports List reports. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_report.py

Input fields

string | null
Cursor from pageInfo.endCursor of the previous page.Default: null.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.
object | null
OpenCTI FilterGroup: {mode, filters: [{key, values, operator, mode}], filterGroups}. See https://docs.opencti.io/latest/reference/filters/.Default: null.
integer | null
Number of results to return. OpenCTI caps a page at 5000.Default: null.
string | null
Field to sort by.Default: null.
string | null
Sort direction: asc or desc.Default: null.
string | null
Keyword search.Default: null.

Promote observable to indicator

Action ID: tools.opencti.promote_stix_cyber_observable_to_indicator Create an indicator from an observable. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_stix_cyber_observable.py

Input fields

string
required
Observable ID.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.

Search STIX core objects

Action ID: tools.opencti.search_stix_core_objects Search entities and observables across the OpenCTI knowledge graph. Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_stix_core_object.py

Input fields

string | null
Cursor from pageInfo.endCursor of the previous page.Default: null.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.
object | null
OpenCTI FilterGroup: {mode, filters: [{key, values, operator, mode}], filterGroups}. See https://docs.opencti.io/latest/reference/filters/.Default: null.
integer | null
Number of results to return. OpenCTI caps a page at 5000.Default: null.
string | null
Field to sort by.Default: null.
string | null
Sort direction: asc or desc.Default: null.
string | null
Keyword search.Default: null.
array[string] | null
Entity types to return (e.g. Malware, Intrusion-Set, Threat-Actor-Group, Vulnerability, Attack-Pattern, IPv4-Addr).Default: null.

Update entity fields

Action ID: tools.opencti.update_stix_domain_object_field Patch fields of an entity (e.g. a case status, severity or description). Reference: https://github.com/OpenCTI-Platform/opencti/blob/master/client-python/pycti/entities/opencti_stix_domain_object.py

Input fields

string
required
Entity ID.
array[object]
required
List of EditInput objects: {key, value: [...], operation} where operation is replace (default), add or remove.
string | null
OpenCTI platform URL, including the base path if any (e.g. https://opencti.example.com).Default: null.