pycti 6.1.12__py3-none-any.whl → 6.1.13__py3-none-any.whl
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/__init__.py +1 -1
- pycti/entities/opencti_report.py +6 -3
- pycti/utils/opencti_stix2.py +4 -1
- {pycti-6.1.12.dist-info → pycti-6.1.13.dist-info}/METADATA +1 -1
- {pycti-6.1.12.dist-info → pycti-6.1.13.dist-info}/RECORD +8 -8
- {pycti-6.1.12.dist-info → pycti-6.1.13.dist-info}/WHEEL +1 -1
- {pycti-6.1.12.dist-info → pycti-6.1.13.dist-info}/LICENSE +0 -0
- {pycti-6.1.12.dist-info → pycti-6.1.13.dist-info}/top_level.txt +0 -0
pycti/__init__.py
CHANGED
pycti/entities/opencti_report.py
CHANGED
|
@@ -504,7 +504,8 @@ class Report:
|
|
|
504
504
|
first = 100
|
|
505
505
|
|
|
506
506
|
self.opencti.app_logger.info(
|
|
507
|
-
"Listing Reports with filters",
|
|
507
|
+
"Listing Reports with filters",
|
|
508
|
+
{"filters": json.dumps(filters), "with_files:": with_files},
|
|
508
509
|
)
|
|
509
510
|
query = (
|
|
510
511
|
"""
|
|
@@ -583,7 +584,9 @@ class Report:
|
|
|
583
584
|
custom_attributes = kwargs.get("customAttributes", None)
|
|
584
585
|
with_files = kwargs.get("withFiles", False)
|
|
585
586
|
if id is not None:
|
|
586
|
-
self.opencti.app_logger.info(
|
|
587
|
+
self.opencti.app_logger.info(
|
|
588
|
+
"Reading Report", {"id": id, "with_files": with_files}
|
|
589
|
+
)
|
|
587
590
|
query = (
|
|
588
591
|
"""
|
|
589
592
|
query Report($id: String!) {
|
|
@@ -602,7 +605,7 @@ class Report:
|
|
|
602
605
|
result = self.opencti.query(query, {"id": id})
|
|
603
606
|
return self.opencti.process_multiple_fields(result["data"]["report"])
|
|
604
607
|
elif filters is not None:
|
|
605
|
-
result = self.list(filters=filters)
|
|
608
|
+
result = self.list(filters=filters, withFiles=with_files)
|
|
606
609
|
if len(result) > 0:
|
|
607
610
|
return result[0]
|
|
608
611
|
else:
|
pycti/utils/opencti_stix2.py
CHANGED
|
@@ -2188,7 +2188,7 @@ class OpenCTIStix2:
|
|
|
2188
2188
|
"objects": [],
|
|
2189
2189
|
}
|
|
2190
2190
|
do_read = self.get_reader(entity_type)
|
|
2191
|
-
entity = do_read(id=entity_id)
|
|
2191
|
+
entity = do_read(id=entity_id, withFiles=(mode == "full"))
|
|
2192
2192
|
if entity is None:
|
|
2193
2193
|
self.opencti.app_logger.error(
|
|
2194
2194
|
"Cannot export entity (not found)", {"id": entity_id}
|
|
@@ -2237,6 +2237,7 @@ class OpenCTIStix2:
|
|
|
2237
2237
|
orderBy: str = None,
|
|
2238
2238
|
orderMode: str = None,
|
|
2239
2239
|
getAll: bool = True,
|
|
2240
|
+
withFiles: bool = False,
|
|
2240
2241
|
) -> [Dict]:
|
|
2241
2242
|
if IdentityTypes.has_value(entity_type):
|
|
2242
2243
|
entity_type = "Identity"
|
|
@@ -2300,6 +2301,7 @@ class OpenCTIStix2:
|
|
|
2300
2301
|
orderBy=orderBy,
|
|
2301
2302
|
orderMode=orderMode,
|
|
2302
2303
|
getAll=getAll,
|
|
2304
|
+
withFiles=withFiles,
|
|
2303
2305
|
)
|
|
2304
2306
|
|
|
2305
2307
|
def export_list(
|
|
@@ -2334,6 +2336,7 @@ class OpenCTIStix2:
|
|
|
2334
2336
|
orderBy=order_by,
|
|
2335
2337
|
orderMode=order_mode,
|
|
2336
2338
|
getAll=True,
|
|
2339
|
+
withFiles=(mode == "full"),
|
|
2337
2340
|
)
|
|
2338
2341
|
if entities_list is not None:
|
|
2339
2342
|
uuids = []
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
pycti/__init__.py,sha256=
|
|
1
|
+
pycti/__init__.py,sha256=6qGUbAuKsIwoDpMYAVW5UH0QVUpzWLqdaMX83rqCV9U,5036
|
|
2
2
|
pycti/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
pycti/api/opencti_api_client.py,sha256=c-xyfmas2LkYNIY8j4-dHBJepHNL6uNhageyJOvYdQc,29834
|
|
4
4
|
pycti/api/opencti_api_connector.py,sha256=fYF0Jy9KIMFNt1RC_A1rpWomVJ-oj5HiSsBem4W0J5U,3549
|
|
@@ -38,7 +38,7 @@ pycti/entities/opencti_narrative.py,sha256=qiuFQub04pvArYf5hHJEgZtneR7p-VQq5Yywi
|
|
|
38
38
|
pycti/entities/opencti_note.py,sha256=tGxOzSJiiHYZNrCpiVnvwY_qiBYURQ0G5wgL9dSWmhE,29938
|
|
39
39
|
pycti/entities/opencti_observed_data.py,sha256=1WFOJLxOh3k-3cWvnyIiEk0hF92tpk5ohvPHeR2zVG4,30550
|
|
40
40
|
pycti/entities/opencti_opinion.py,sha256=SPcY8-0zRJCMle-eDLka-CFPyAqU3CnVVBtfVYhzyJE,21837
|
|
41
|
-
pycti/entities/opencti_report.py,sha256=
|
|
41
|
+
pycti/entities/opencti_report.py,sha256=8ADf1Evxun0JA1Hz5kSHWfyUMmv2Q20bwOz5F0_muNk,33698
|
|
42
42
|
pycti/entities/opencti_stix.py,sha256=uMheSg8i1f2Ozx2Mk0iShWzHHjj6MMWDtV5nDjVxKEE,2275
|
|
43
43
|
pycti/entities/opencti_stix_core_object.py,sha256=3jABOB_-vm2CSB6LU3ylxpSj_oixRCcfU3T10n2_MFU,49559
|
|
44
44
|
pycti/entities/opencti_stix_core_relationship.py,sha256=U9eWrpV3iJ0_8x8Tn3ZBqiA2asT7AOJPNOq66abex00,43524
|
|
@@ -57,12 +57,12 @@ pycti/entities/opencti_vulnerability.py,sha256=dzJ0fZB2XrkPwT-cANr6atzYOWXF5nk0a
|
|
|
57
57
|
pycti/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
58
58
|
pycti/utils/constants.py,sha256=Gj0fz94p0ApjCUCUqBQpFTfNslT021HS2w6M8azqXBY,10601
|
|
59
59
|
pycti/utils/opencti_logger.py,sha256=0dvB75V0SuPFGxL539dAQrxTt1N5Acx0A3Ogwl5WMJ8,2199
|
|
60
|
-
pycti/utils/opencti_stix2.py,sha256=
|
|
60
|
+
pycti/utils/opencti_stix2.py,sha256=98f8ONwKbDmKyK_uwmQkuoWwwqR9mURCFtqVZAtkwls,116810
|
|
61
61
|
pycti/utils/opencti_stix2_splitter.py,sha256=A2GqoiFzEga8hslgA3mm4FDoObFsWgx4zK4DdcWTguc,4907
|
|
62
62
|
pycti/utils/opencti_stix2_update.py,sha256=CnMyqkeVA0jgyxEcgqna8sABU4YPMjkEJ228GVurIn4,14658
|
|
63
63
|
pycti/utils/opencti_stix2_utils.py,sha256=4r9qglN3AIN8JH1B9Ts2o20Qn3K203M4c5-lIPzRpZ4,4138
|
|
64
|
-
pycti-6.1.
|
|
65
|
-
pycti-6.1.
|
|
66
|
-
pycti-6.1.
|
|
67
|
-
pycti-6.1.
|
|
68
|
-
pycti-6.1.
|
|
64
|
+
pycti-6.1.13.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
65
|
+
pycti-6.1.13.dist-info/METADATA,sha256=z_PshS47P1GDSL3pcBmGZBYMWxt4Fq6k12QXbsbO82o,5398
|
|
66
|
+
pycti-6.1.13.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
|
|
67
|
+
pycti-6.1.13.dist-info/top_level.txt,sha256=cqEpxitAhHP4VgSA6xmrak6Yk9MeBkwoMTB6k7d2ZnE,6
|
|
68
|
+
pycti-6.1.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|