pycti 6.2.5__py3-none-any.whl → 6.2.7__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 +3 -1
- pycti/entities/opencti_threat_actor_group.py +1 -1
- pycti/entities/opencti_threat_actor_individual.py +1 -1
- pycti/entities/opencti_vulnerability.py +13 -0
- {pycti-6.2.5.dist-info → pycti-6.2.7.dist-info}/METADATA +3 -3
- {pycti-6.2.5.dist-info → pycti-6.2.7.dist-info}/RECORD +9 -9
- {pycti-6.2.5.dist-info → pycti-6.2.7.dist-info}/WHEEL +1 -1
- {pycti-6.2.5.dist-info → pycti-6.2.7.dist-info}/LICENSE +0 -0
- {pycti-6.2.5.dist-info → pycti-6.2.7.dist-info}/top_level.txt +0 -0
pycti/__init__.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
__version__ = "6.2.
|
|
2
|
+
__version__ = "6.2.7"
|
|
3
3
|
|
|
4
4
|
from .api.opencti_api_client import OpenCTIApiClient
|
|
5
5
|
from .api.opencti_api_connector import OpenCTIApiConnector
|
|
@@ -15,6 +15,7 @@ from .entities.opencti_campaign import Campaign
|
|
|
15
15
|
from .entities.opencti_case_incident import CaseIncident
|
|
16
16
|
from .entities.opencti_case_rfi import CaseRfi
|
|
17
17
|
from .entities.opencti_case_rft import CaseRft
|
|
18
|
+
from .entities.opencti_channel import Channel
|
|
18
19
|
from .entities.opencti_course_of_action import CourseOfAction
|
|
19
20
|
from .entities.opencti_data_component import DataComponent
|
|
20
21
|
from .entities.opencti_data_source import DataSource
|
|
@@ -84,6 +85,7 @@ __all__ = [
|
|
|
84
85
|
"CaseIncident",
|
|
85
86
|
"CaseRfi",
|
|
86
87
|
"CaseRft",
|
|
88
|
+
"Channel",
|
|
87
89
|
"Task",
|
|
88
90
|
"ConnectorType",
|
|
89
91
|
"CourseOfAction",
|
|
@@ -140,7 +140,7 @@ class ThreatActorGroup:
|
|
|
140
140
|
@staticmethod
|
|
141
141
|
def generate_id(name):
|
|
142
142
|
name = name.lower().strip()
|
|
143
|
-
data = {"name": name}
|
|
143
|
+
data = {"name": name, "opencti_type": "Threat-Actor-Group"}
|
|
144
144
|
data = canonicalize(data, utf8=False)
|
|
145
145
|
id = str(uuid.uuid5(uuid.UUID("00abedb4-aa42-466c-9c01-fed23315a9b7"), data))
|
|
146
146
|
return "threat-actor--" + id
|
|
@@ -140,7 +140,7 @@ class ThreatActorIndividual:
|
|
|
140
140
|
@staticmethod
|
|
141
141
|
def generate_id(name):
|
|
142
142
|
name = name.lower().strip()
|
|
143
|
-
data = {"name": name}
|
|
143
|
+
data = {"name": name, "opencti_type": "Threat-Actor-Individual"}
|
|
144
144
|
data = canonicalize(data, utf8=False)
|
|
145
145
|
id = str(uuid.uuid5(uuid.UUID("00abedb4-aa42-466c-9c01-fed23315a9b7"), data))
|
|
146
146
|
return "threat-actor--" + id
|
|
@@ -105,6 +105,7 @@ class Vulnerability:
|
|
|
105
105
|
x_opencti_cvss_integrity_impact
|
|
106
106
|
x_opencti_cvss_availability_impact
|
|
107
107
|
x_opencti_cvss_confidentiality_impact
|
|
108
|
+
x_opencti_cisa_kev
|
|
108
109
|
importFiles {
|
|
109
110
|
edges {
|
|
110
111
|
node {
|
|
@@ -283,6 +284,7 @@ class Vulnerability:
|
|
|
283
284
|
x_opencti_cvss_base_score = kwargs.get("x_opencti_cvss_base_score", None)
|
|
284
285
|
x_opencti_cvss_base_severity = kwargs.get("x_opencti_cvss_base_severity", None)
|
|
285
286
|
x_opencti_cvss_attack_vector = kwargs.get("x_opencti_cvss_attack_vector", None)
|
|
287
|
+
x_opencti_cisa_kev = kwargs.get("x_opencti_cisa_kev", None)
|
|
286
288
|
x_opencti_cvss_integrity_impact = kwargs.get(
|
|
287
289
|
"x_opencti_cvss_integrity_impact", None
|
|
288
290
|
)
|
|
@@ -333,6 +335,7 @@ class Vulnerability:
|
|
|
333
335
|
"x_opencti_cvss_integrity_impact": x_opencti_cvss_integrity_impact,
|
|
334
336
|
"x_opencti_cvss_availability_impact": x_opencti_cvss_availability_impact,
|
|
335
337
|
"x_opencti_cvss_confidentiality_impact": x_opencti_cvss_confidentiality_impact,
|
|
338
|
+
"x_opencti_cisa_kev": x_opencti_cisa_kev,
|
|
336
339
|
"x_opencti_stix_ids": x_opencti_stix_ids,
|
|
337
340
|
"x_opencti_workflow_id": x_opencti_workflow_id,
|
|
338
341
|
"update": update,
|
|
@@ -437,6 +440,11 @@ class Vulnerability:
|
|
|
437
440
|
stix_object["x_opencti_workflow_id"] = (
|
|
438
441
|
self.opencti.get_attribute_in_extension("workflow_id", stix_object)
|
|
439
442
|
)
|
|
443
|
+
if "x_opencti_cisa_kev" not in stix_object:
|
|
444
|
+
stix_object["x_opencti_cisa_kev"] = (
|
|
445
|
+
self.opencti.get_attribute_in_extension("cisa_kev", stix_object)
|
|
446
|
+
)
|
|
447
|
+
|
|
440
448
|
return self.create(
|
|
441
449
|
stix_id=stix_object["id"],
|
|
442
450
|
createdBy=(
|
|
@@ -518,6 +526,11 @@ class Vulnerability:
|
|
|
518
526
|
if "x_opencti_workflow_id" in stix_object
|
|
519
527
|
else None
|
|
520
528
|
),
|
|
529
|
+
x_opencti_cisa_kev=(
|
|
530
|
+
stix_object["x_opencti_cisa_kev"]
|
|
531
|
+
if "x_opencti_cisa_kev" in stix_object
|
|
532
|
+
else None
|
|
533
|
+
),
|
|
521
534
|
update=update,
|
|
522
535
|
)
|
|
523
536
|
else:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pycti
|
|
3
|
-
Version: 6.2.
|
|
3
|
+
Version: 6.2.7
|
|
4
4
|
Summary: Python API client for OpenCTI.
|
|
5
5
|
Home-page: https://github.com/OpenCTI-Platform/client-python
|
|
6
6
|
Author: Filigran
|
|
@@ -26,8 +26,8 @@ Requires-Dist: pika ~=1.3.0
|
|
|
26
26
|
Requires-Dist: python-json-logger ~=2.0.4
|
|
27
27
|
Requires-Dist: PyYAML ~=6.0
|
|
28
28
|
Requires-Dist: requests ~=2.32.2
|
|
29
|
-
Requires-Dist: setuptools ~=70.
|
|
30
|
-
Requires-Dist: cachetools ~=5.
|
|
29
|
+
Requires-Dist: setuptools ~=70.3.0
|
|
30
|
+
Requires-Dist: cachetools ~=5.4.0
|
|
31
31
|
Requires-Dist: prometheus-client ~=0.20.0
|
|
32
32
|
Requires-Dist: opentelemetry-api ~=1.22.0
|
|
33
33
|
Requires-Dist: opentelemetry-sdk ~=1.22.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
pycti/__init__.py,sha256=
|
|
1
|
+
pycti/__init__.py,sha256=scY8GGFuTWJeY3kPM7B-nG11Ue-9NepQ6pIT6A7iH6w,5218
|
|
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
|
|
@@ -49,11 +49,11 @@ pycti/entities/opencti_stix_object_or_stix_relationship.py,sha256=9P-yVkexzd-8sA
|
|
|
49
49
|
pycti/entities/opencti_stix_sighting_relationship.py,sha256=OPbdanElqnAj7cLu2eh1P5PBh_54xfxnW36HX_5wnEs,28077
|
|
50
50
|
pycti/entities/opencti_task.py,sha256=gDlUVyeRcIlIoh5bKtar-NmFa5_3OmMd4OkRVi_AYco,24612
|
|
51
51
|
pycti/entities/opencti_threat_actor.py,sha256=lRdPhXX_HsNSE5rTwkke_U5T_FAPGD22ow2-YeZdaYc,9950
|
|
52
|
-
pycti/entities/opencti_threat_actor_group.py,sha256=
|
|
53
|
-
pycti/entities/opencti_threat_actor_individual.py,sha256=
|
|
52
|
+
pycti/entities/opencti_threat_actor_group.py,sha256=RLwufTb8vFvOHgV81VXf2cA1sREz12Tzwp9uRXONu88,19610
|
|
53
|
+
pycti/entities/opencti_threat_actor_individual.py,sha256=b4Zqd40ehrFeaU6f_bSY6343Dg5vq6PuiDtKLXUrv78,19857
|
|
54
54
|
pycti/entities/opencti_tool.py,sha256=5A20xY0fDBNLkbQP_32srjS3FXEVYGNxhe1I1YnaIbA,15237
|
|
55
55
|
pycti/entities/opencti_vocabulary.py,sha256=6JfOByggvSxvkfIXk1b60T7fyWOhxZ6YFkGbSeV8F-4,5988
|
|
56
|
-
pycti/entities/opencti_vulnerability.py,sha256=
|
|
56
|
+
pycti/entities/opencti_vulnerability.py,sha256=O0zEtEYMFd1gkPzymW8rqbY4z8Rz_DECj0ur2RdRjQY,21248
|
|
57
57
|
pycti/entities/indicator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
58
58
|
pycti/entities/indicator/opencti_indicator_properties.py,sha256=2HJiBkBzbLe75Yu5AeSrTZCSKikPwwM_DeDgJCl7wm4,4953
|
|
59
59
|
pycti/entities/stix_cyber_observable/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -66,8 +66,8 @@ pycti/utils/opencti_stix2.py,sha256=WAVgvTcj8P0QfN_K2-avCeFwSkxVtBz1nh0dA63Nlr4,
|
|
|
66
66
|
pycti/utils/opencti_stix2_splitter.py,sha256=A2GqoiFzEga8hslgA3mm4FDoObFsWgx4zK4DdcWTguc,4907
|
|
67
67
|
pycti/utils/opencti_stix2_update.py,sha256=CnMyqkeVA0jgyxEcgqna8sABU4YPMjkEJ228GVurIn4,14658
|
|
68
68
|
pycti/utils/opencti_stix2_utils.py,sha256=4r9qglN3AIN8JH1B9Ts2o20Qn3K203M4c5-lIPzRpZ4,4138
|
|
69
|
-
pycti-6.2.
|
|
70
|
-
pycti-6.2.
|
|
71
|
-
pycti-6.2.
|
|
72
|
-
pycti-6.2.
|
|
73
|
-
pycti-6.2.
|
|
69
|
+
pycti-6.2.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
70
|
+
pycti-6.2.7.dist-info/METADATA,sha256=CSkwHtT4twnnYWXNxmcTdmlDSLC4hbSZpjpKedcaCvI,5432
|
|
71
|
+
pycti-6.2.7.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
|
72
|
+
pycti-6.2.7.dist-info/top_level.txt,sha256=cqEpxitAhHP4VgSA6xmrak6Yk9MeBkwoMTB6k7d2ZnE,6
|
|
73
|
+
pycti-6.2.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|