pycti 6.3.10__tar.gz → 6.3.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pycti might be problematic. Click here for more details.
- {pycti-6.3.10 → pycti-6.3.12}/PKG-INFO +1 -1
- {pycti-6.3.10 → pycti-6.3.12}/pycti/__init__.py +1 -1
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_external_reference.py +4 -2
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_stix_cyber_observable.py +4 -2
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_stix_domain_object.py +4 -2
- {pycti-6.3.10 → pycti-6.3.12}/pycti/utils/opencti_stix2.py +8 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti.egg-info/PKG-INFO +1 -1
- {pycti-6.3.10 → pycti-6.3.12}/LICENSE +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/README.md +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/api/__init__.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/api/opencti_api_client.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/api/opencti_api_connector.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/api/opencti_api_playbook.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/api/opencti_api_work.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/connector/__init__.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/connector/opencti_connector.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/connector/opencti_connector_helper.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/connector/opencti_metric_handler.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/__init__.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/indicator/__init__.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/indicator/opencti_indicator_properties.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_attack_pattern.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_campaign.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_case_incident.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_case_rfi.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_case_rft.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_channel.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_course_of_action.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_data_component.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_data_source.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_event.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_feedback.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_grouping.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_identity.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_incident.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_indicator.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_infrastructure.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_intrusion_set.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_kill_chain_phase.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_label.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_language.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_location.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_malware.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_malware_analysis.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_marking_definition.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_narrative.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_note.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_observed_data.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_opinion.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_report.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_stix.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_stix_core_object.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_stix_core_relationship.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_stix_nested_ref_relationship.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_stix_object_or_stix_relationship.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_stix_sighting_relationship.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_task.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_threat_actor.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_threat_actor_group.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_threat_actor_individual.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_tool.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_vocabulary.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/opencti_vulnerability.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/stix_cyber_observable/__init__.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/stix_cyber_observable/opencti_stix_cyber_observable_deprecated.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/entities/stix_cyber_observable/opencti_stix_cyber_observable_properties.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/utils/__init__.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/utils/constants.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/utils/opencti_logger.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/utils/opencti_stix2_identifier.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/utils/opencti_stix2_splitter.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/utils/opencti_stix2_update.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti/utils/opencti_stix2_utils.py +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti.egg-info/SOURCES.txt +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti.egg-info/dependency_links.txt +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti.egg-info/requires.txt +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pycti.egg-info/top_level.txt +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/pyproject.toml +0 -0
- {pycti-6.3.10 → pycti-6.3.12}/setup.cfg +0 -0
|
@@ -269,14 +269,15 @@ class ExternalReference:
|
|
|
269
269
|
file_name = kwargs.get("file_name", None)
|
|
270
270
|
data = kwargs.get("data", None)
|
|
271
271
|
version = kwargs.get("version", None)
|
|
272
|
+
file_markings = kwargs.get("fileMarkings", None)
|
|
272
273
|
mime_type = kwargs.get("mime_type", "text/plain")
|
|
273
274
|
no_trigger_import = kwargs.get("no_trigger_import", False)
|
|
274
275
|
if id is not None and file_name is not None:
|
|
275
276
|
final_file_name = os.path.basename(file_name)
|
|
276
277
|
query = """
|
|
277
|
-
mutation ExternalReferenceEdit($id: ID!, $file: Upload!, $version: DateTime, $noTriggerImport: Boolean) {
|
|
278
|
+
mutation ExternalReferenceEdit($id: ID!, $file: Upload!, $fileMarkings: [String], $version: DateTime, $noTriggerImport: Boolean) {
|
|
278
279
|
externalReferenceEdit(id: $id) {
|
|
279
|
-
importPush(file: $file, version: $version, noTriggerImport: $noTriggerImport) {
|
|
280
|
+
importPush(file: $file, fileMarkings: $fileMarkings, version: $version, noTriggerImport: $noTriggerImport) {
|
|
280
281
|
id
|
|
281
282
|
name
|
|
282
283
|
}
|
|
@@ -298,6 +299,7 @@ class ExternalReference:
|
|
|
298
299
|
{
|
|
299
300
|
"id": id,
|
|
300
301
|
"file": (self.file(final_file_name, data, mime_type)),
|
|
302
|
+
"fileMarkings": file_markings,
|
|
301
303
|
"version": version,
|
|
302
304
|
"noTriggerImport": (
|
|
303
305
|
no_trigger_import
|
|
@@ -184,15 +184,16 @@ class StixCyberObservable(StixCyberObservableDeprecatedMixin):
|
|
|
184
184
|
id = kwargs.get("id", None)
|
|
185
185
|
file_name = kwargs.get("file_name", None)
|
|
186
186
|
data = kwargs.get("data", None)
|
|
187
|
+
file_markings = kwargs.get("fileMarkings", None)
|
|
187
188
|
version = kwargs.get("version", None)
|
|
188
189
|
mime_type = kwargs.get("mime_type", "text/plain")
|
|
189
190
|
no_trigger_import = kwargs.get("no_trigger_import", False)
|
|
190
191
|
if id is not None and file_name is not None:
|
|
191
192
|
final_file_name = os.path.basename(file_name)
|
|
192
193
|
query = """
|
|
193
|
-
mutation StixCyberObservableEdit($id: ID!, $file: Upload!, $version: DateTime, $noTriggerImport: Boolean) {
|
|
194
|
+
mutation StixCyberObservableEdit($id: ID!, $file: Upload!, $fileMarkings: [String], $version: DateTime, $noTriggerImport: Boolean) {
|
|
194
195
|
stixCyberObservableEdit(id: $id) {
|
|
195
|
-
importPush(file: $file, version: $version, noTriggerImport: $noTriggerImport) {
|
|
196
|
+
importPush(file: $file, version: $version, fileMarkings: $fileMarkings, noTriggerImport: $noTriggerImport) {
|
|
196
197
|
id
|
|
197
198
|
name
|
|
198
199
|
}
|
|
@@ -214,6 +215,7 @@ class StixCyberObservable(StixCyberObservableDeprecatedMixin):
|
|
|
214
215
|
{
|
|
215
216
|
"id": id,
|
|
216
217
|
"file": (self.file(final_file_name, data, mime_type)),
|
|
218
|
+
"fileMarkings": file_markings,
|
|
217
219
|
"version": version,
|
|
218
220
|
"noTriggerImport": (
|
|
219
221
|
no_trigger_import
|
|
@@ -1286,15 +1286,16 @@ class StixDomainObject:
|
|
|
1286
1286
|
id = kwargs.get("id", None)
|
|
1287
1287
|
file_name = kwargs.get("file_name", None)
|
|
1288
1288
|
data = kwargs.get("data", None)
|
|
1289
|
+
file_markings = kwargs.get("fileMarkings", None)
|
|
1289
1290
|
version = kwargs.get("version", None)
|
|
1290
1291
|
mime_type = kwargs.get("mime_type", "text/plain")
|
|
1291
1292
|
no_trigger_import = kwargs.get("no_trigger_import", False)
|
|
1292
1293
|
if id is not None and file_name is not None:
|
|
1293
1294
|
final_file_name = os.path.basename(file_name)
|
|
1294
1295
|
query = """
|
|
1295
|
-
mutation StixDomainObjectEdit($id: ID!, $file: Upload!, $version: DateTime, $noTriggerImport: Boolean) {
|
|
1296
|
+
mutation StixDomainObjectEdit($id: ID!, $file: Upload!, $fileMarkings: [String], $version: DateTime, $noTriggerImport: Boolean) {
|
|
1296
1297
|
stixDomainObjectEdit(id: $id) {
|
|
1297
|
-
importPush(file: $file, version: $version, noTriggerImport: $noTriggerImport) {
|
|
1298
|
+
importPush(file: $file, version: $version, fileMarkings: $fileMarkings, noTriggerImport: $noTriggerImport) {
|
|
1298
1299
|
id
|
|
1299
1300
|
name
|
|
1300
1301
|
}
|
|
@@ -1316,6 +1317,7 @@ class StixDomainObject:
|
|
|
1316
1317
|
{
|
|
1317
1318
|
"id": id,
|
|
1318
1319
|
"file": (self.file(final_file_name, data, mime_type)),
|
|
1320
|
+
"fileMarkings": file_markings,
|
|
1319
1321
|
"version": version,
|
|
1320
1322
|
"noTriggerImport": (
|
|
1321
1323
|
no_trigger_import
|
|
@@ -560,6 +560,7 @@ class OpenCTIStix2:
|
|
|
560
560
|
file_name=file["name"],
|
|
561
561
|
version=file.get("version", None),
|
|
562
562
|
data=base64.b64decode(file["data"]),
|
|
563
|
+
fileMarkings=file.get("object_marking_refs", None),
|
|
563
564
|
mime_type=file["mime_type"],
|
|
564
565
|
no_trigger_import=file.get(
|
|
565
566
|
"no_trigger_import", False
|
|
@@ -580,6 +581,7 @@ class OpenCTIStix2:
|
|
|
580
581
|
file_name=file["name"],
|
|
581
582
|
version=file.get("version", None),
|
|
582
583
|
data=base64.b64decode(file["data"]),
|
|
584
|
+
fileMarkings=file.get("object_marking_refs", None),
|
|
583
585
|
mime_type=file["mime_type"],
|
|
584
586
|
no_trigger_import=file.get(
|
|
585
587
|
"no_trigger_import", False
|
|
@@ -734,6 +736,7 @@ class OpenCTIStix2:
|
|
|
734
736
|
file_name=file["name"],
|
|
735
737
|
version=file.get("version", None),
|
|
736
738
|
data=base64.b64decode(file["data"]),
|
|
739
|
+
fileMarkings=file.get("object_marking_refs", None),
|
|
737
740
|
mime_type=file["mime_type"],
|
|
738
741
|
no_trigger_import=file.get("no_trigger_import", False),
|
|
739
742
|
)
|
|
@@ -750,6 +753,7 @@ class OpenCTIStix2:
|
|
|
750
753
|
file_name=file["name"],
|
|
751
754
|
version=file.get("version", None),
|
|
752
755
|
data=base64.b64decode(file["data"]),
|
|
756
|
+
fileMarkings=file.get("object_marking_refs", None),
|
|
753
757
|
mime_type=file["mime_type"],
|
|
754
758
|
no_trigger_import=file.get("no_trigger_import", False),
|
|
755
759
|
)
|
|
@@ -987,6 +991,7 @@ class OpenCTIStix2:
|
|
|
987
991
|
file_name=file["name"],
|
|
988
992
|
version=file.get("version", None),
|
|
989
993
|
data=base64.b64decode(file["data"]),
|
|
994
|
+
fileMarkings=file.get("object_marking_refs", None),
|
|
990
995
|
mime_type=file["mime_type"],
|
|
991
996
|
no_trigger_import=file.get("no_trigger_import", False),
|
|
992
997
|
)
|
|
@@ -1003,6 +1008,7 @@ class OpenCTIStix2:
|
|
|
1003
1008
|
file_name=file["name"],
|
|
1004
1009
|
version=file.get("version", None),
|
|
1005
1010
|
data=base64.b64decode(file["data"]),
|
|
1011
|
+
fileMarkings=file.get("object_marking_refs", None),
|
|
1006
1012
|
mime_type=file["mime_type"],
|
|
1007
1013
|
no_trigger_import=file.get("no_trigger_import", False),
|
|
1008
1014
|
)
|
|
@@ -1114,6 +1120,7 @@ class OpenCTIStix2:
|
|
|
1114
1120
|
file_name=file["name"],
|
|
1115
1121
|
version=file.get("version", None),
|
|
1116
1122
|
data=base64.b64decode(file["data"]),
|
|
1123
|
+
fileMarkings=file.get("object_marking_refs", None),
|
|
1117
1124
|
mime_type=file["mime_type"],
|
|
1118
1125
|
no_trigger_import=file.get("no_trigger_import", False),
|
|
1119
1126
|
)
|
|
@@ -1130,6 +1137,7 @@ class OpenCTIStix2:
|
|
|
1130
1137
|
file_name=file["name"],
|
|
1131
1138
|
version=file.get("version", None),
|
|
1132
1139
|
data=base64.b64decode(file["data"]),
|
|
1140
|
+
fileMarkings=file.get("object_marking_refs", None),
|
|
1133
1141
|
mime_type=file["mime_type"],
|
|
1134
1142
|
no_trigger_import=file.get("no_trigger_import", False),
|
|
1135
1143
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|