pycti 6.6.11__tar.gz → 6.6.13__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.6.11 → pycti-6.6.13}/PKG-INFO +2 -2
- {pycti-6.6.11 → pycti-6.6.13}/pycti/__init__.py +1 -1
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_attack_pattern.py +1 -1
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_indicator.py +1 -1
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_note.py +2 -2
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_opinion.py +2 -2
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_stix_cyber_observable.py +10 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti.egg-info/PKG-INFO +2 -2
- {pycti-6.6.11 → pycti-6.6.13}/pycti.egg-info/requires.txt +1 -1
- {pycti-6.6.11 → pycti-6.6.13}/setup.cfg +1 -1
- {pycti-6.6.11 → pycti-6.6.13}/LICENSE +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/README.md +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/api/__init__.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/api/opencti_api_client.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/api/opencti_api_connector.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/api/opencti_api_playbook.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/api/opencti_api_work.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/connector/__init__.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/connector/opencti_connector.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/connector/opencti_connector_helper.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/connector/opencti_metric_handler.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/__init__.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/indicator/__init__.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/indicator/opencti_indicator_properties.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_campaign.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_capability.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_case_incident.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_case_rfi.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_case_rft.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_channel.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_course_of_action.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_data_component.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_data_source.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_event.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_external_reference.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_feedback.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_group.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_grouping.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_identity.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_incident.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_infrastructure.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_intrusion_set.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_kill_chain_phase.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_label.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_language.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_location.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_malware.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_malware_analysis.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_marking_definition.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_narrative.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_observed_data.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_report.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_role.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_settings.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_stix.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_stix_core_object.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_stix_core_relationship.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_stix_domain_object.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_stix_nested_ref_relationship.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_stix_object_or_stix_relationship.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_stix_sighting_relationship.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_task.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_threat_actor.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_threat_actor_group.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_threat_actor_individual.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_tool.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_user.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_vocabulary.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/opencti_vulnerability.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/stix_cyber_observable/__init__.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/stix_cyber_observable/opencti_stix_cyber_observable_deprecated.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/entities/stix_cyber_observable/opencti_stix_cyber_observable_properties.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/utils/__init__.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/utils/constants.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/utils/opencti_logger.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/utils/opencti_stix2.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/utils/opencti_stix2_identifier.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/utils/opencti_stix2_splitter.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/utils/opencti_stix2_update.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti/utils/opencti_stix2_utils.py +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti.egg-info/SOURCES.txt +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti.egg-info/dependency_links.txt +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pycti.egg-info/top_level.txt +0 -0
- {pycti-6.6.11 → pycti-6.6.13}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pycti
|
|
3
|
-
Version: 6.6.
|
|
3
|
+
Version: 6.6.13
|
|
4
4
|
Summary: Python API client for OpenCTI.
|
|
5
5
|
Home-page: https://github.com/OpenCTI-Platform/client-python
|
|
6
6
|
Author: Filigran
|
|
@@ -53,7 +53,7 @@ Requires-Dist: types-python-dateutil~=2.9.0; extra == "dev"
|
|
|
53
53
|
Requires-Dist: wheel~=0.45.1; extra == "dev"
|
|
54
54
|
Provides-Extra: doc
|
|
55
55
|
Requires-Dist: autoapi~=2.0.1; extra == "doc"
|
|
56
|
-
Requires-Dist: sphinx-autodoc-typehints~=3.
|
|
56
|
+
Requires-Dist: sphinx-autodoc-typehints~=3.2.0; extra == "doc"
|
|
57
57
|
Requires-Dist: sphinx-rtd-theme~=3.0.2; extra == "doc"
|
|
58
58
|
Dynamic: license-file
|
|
59
59
|
|
|
@@ -239,7 +239,7 @@ class AttackPattern:
|
|
|
239
239
|
@staticmethod
|
|
240
240
|
def generate_id(name, x_mitre_id=None):
|
|
241
241
|
if x_mitre_id is not None:
|
|
242
|
-
data = {"x_mitre_id": x_mitre_id}
|
|
242
|
+
data = {"x_mitre_id": x_mitre_id.strip()}
|
|
243
243
|
else:
|
|
244
244
|
data = {"name": name.lower().strip()}
|
|
245
245
|
data = canonicalize(data, utf8=False)
|
|
@@ -24,7 +24,7 @@ class Indicator:
|
|
|
24
24
|
|
|
25
25
|
@staticmethod
|
|
26
26
|
def generate_id(pattern):
|
|
27
|
-
data = {"pattern": pattern}
|
|
27
|
+
data = {"pattern": pattern.strip()}
|
|
28
28
|
data = canonicalize(data, utf8=False)
|
|
29
29
|
id = str(uuid.uuid5(uuid.UUID("00abedb4-aa42-466c-9c01-fed23315a9b7"), data))
|
|
30
30
|
return "indicator--" + id
|
|
@@ -457,9 +457,9 @@ class Note:
|
|
|
457
457
|
if created is not None:
|
|
458
458
|
if isinstance(created, datetime.datetime):
|
|
459
459
|
created = created.isoformat()
|
|
460
|
-
data = {"content": content, "created": created}
|
|
460
|
+
data = {"content": content.strip(), "created": created}
|
|
461
461
|
else:
|
|
462
|
-
data = {"content": content}
|
|
462
|
+
data = {"content": content.strip()}
|
|
463
463
|
data = canonicalize(data, utf8=False)
|
|
464
464
|
id = str(uuid.uuid5(uuid.UUID("00abedb4-aa42-466c-9c01-fed23315a9b7"), data))
|
|
465
465
|
return "note--" + id
|
|
@@ -227,9 +227,9 @@ class Opinion:
|
|
|
227
227
|
if created is not None:
|
|
228
228
|
if isinstance(created, datetime.datetime):
|
|
229
229
|
created = created.isoformat()
|
|
230
|
-
data = {"opinion": opinion, "created": created}
|
|
230
|
+
data = {"opinion": opinion.strip(), "created": created}
|
|
231
231
|
else:
|
|
232
|
-
data = {"opinion": opinion}
|
|
232
|
+
data = {"opinion": opinion.strip()}
|
|
233
233
|
data = canonicalize(data, utf8=False)
|
|
234
234
|
id = str(uuid.uuid5(uuid.UUID("00abedb4-aa42-466c-9c01-fed23315a9b7"), data))
|
|
235
235
|
return "opinion--" + id
|
|
@@ -747,6 +747,16 @@ class StixCyberObservable(StixCyberObservableDeprecatedMixin):
|
|
|
747
747
|
if "dst_port" in observable_data
|
|
748
748
|
else None
|
|
749
749
|
),
|
|
750
|
+
"networkSrc": (
|
|
751
|
+
observable_data["src_ref"]
|
|
752
|
+
if "src_ref" in observable_data
|
|
753
|
+
else None
|
|
754
|
+
),
|
|
755
|
+
"networkDst": (
|
|
756
|
+
observable_data["dst_ref"]
|
|
757
|
+
if "dst_ref" in observable_data
|
|
758
|
+
else None
|
|
759
|
+
),
|
|
750
760
|
"protocols": (
|
|
751
761
|
observable_data["protocols"]
|
|
752
762
|
if "protocols" in observable_data
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pycti
|
|
3
|
-
Version: 6.6.
|
|
3
|
+
Version: 6.6.13
|
|
4
4
|
Summary: Python API client for OpenCTI.
|
|
5
5
|
Home-page: https://github.com/OpenCTI-Platform/client-python
|
|
6
6
|
Author: Filigran
|
|
@@ -53,7 +53,7 @@ Requires-Dist: types-python-dateutil~=2.9.0; extra == "dev"
|
|
|
53
53
|
Requires-Dist: wheel~=0.45.1; extra == "dev"
|
|
54
54
|
Provides-Extra: doc
|
|
55
55
|
Requires-Dist: autoapi~=2.0.1; extra == "doc"
|
|
56
|
-
Requires-Dist: sphinx-autodoc-typehints~=3.
|
|
56
|
+
Requires-Dist: sphinx-autodoc-typehints~=3.2.0; extra == "doc"
|
|
57
57
|
Requires-Dist: sphinx-rtd-theme~=3.0.2; extra == "doc"
|
|
58
58
|
Dynamic: license-file
|
|
59
59
|
|
|
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
|
|
File without changes
|
|
File without changes
|