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

Commit e8ee00f

Browse files
author
Samuel Hassine
committed
[client] Add importFiles in artifacts
1 parent e22b770 commit e8ee00f

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

pycti/connector/opencti_connector_helper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ def _data_handler(self, json_data):
148148
)
149149
message = self.callback(json_data["event"])
150150
self.helper.api.work.to_processed(work_id, message)
151-
152151
except Exception as e:
153152
logging.exception("Error in message processing, reporting error to API")
154153
try:

pycti/entities/opencti_stix_cyber_observable.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,18 @@ def __init__(self, opencti, file):
135135
encryption_algorithm
136136
decryption_key
137137
hashes {
138-
algorithm
139-
hash
140-
}
138+
algorithm
139+
hash
140+
}
141+
importFiles {
142+
edges {
143+
node {
144+
id
145+
name
146+
size
147+
}
148+
}
149+
}
141150
}
142151
... on StixFile {
143152
extensions

0 commit comments

Comments
 (0)