Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 9e55e7b

Browse files
committed
[client] Add channel custom STIX entity
1 parent c96421e commit 9e55e7b

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

pycti/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
from .utils.constants import (
5454
CustomObjectCaseIncident,
5555
CustomObjectTask,
56+
CustomObjectChannel,
5657
CustomObservableBankAccount,
5758
CustomObservableCredential,
5859
CustomObservableCryptocurrencyWallet,
@@ -132,6 +133,7 @@
132133
"get_config_variable",
133134
"CustomObjectCaseIncident",
134135
"CustomObjectTask",
136+
"CustomObjectChannel",
135137
"StixCyberObservableTypes",
136138
"CustomObservableCredential",
137139
"CustomObservableHostname",

pycti/utils/constants.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,25 @@ class CustomObjectTask:
222222
pass
223223

224224

225+
@CustomObject(
226+
"channel",
227+
[
228+
("name", StringProperty(required=True)),
229+
("spec_version", StringProperty(fixed="2.1")),
230+
("description", StringProperty()),
231+
("aliases", ListProperty(StringProperty)),
232+
("channel_types", ListProperty(StringProperty)),
233+
("x_opencti_workflow_id", StringProperty()),
234+
("x_opencti_assignee_ids", ListProperty(StringProperty)),
235+
("external_references", ListProperty(ExternalReference)),
236+
],
237+
)
238+
class CustomObjectChannel:
239+
"""Channel object."""
240+
241+
pass
242+
243+
225244
# Custom observables
226245

227246

0 commit comments

Comments
 (0)