pycti 6.1.10__tar.gz → 6.1.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.1.10 → pycti-6.1.12}/PKG-INFO +1 -1
- {pycti-6.1.10 → pycti-6.1.12}/pycti/__init__.py +1 -1
- {pycti-6.1.10 → pycti-6.1.12}/pycti/api/opencti_api_client.py +7 -1
- {pycti-6.1.10 → pycti-6.1.12}/pycti/connector/opencti_connector.py +1 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/utils/opencti_stix2.py +0 -13
- {pycti-6.1.10 → pycti-6.1.12}/pycti.egg-info/PKG-INFO +1 -1
- {pycti-6.1.10 → pycti-6.1.12}/LICENSE +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/README.md +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/api/__init__.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/api/opencti_api_connector.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/api/opencti_api_playbook.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/api/opencti_api_work.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/connector/__init__.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/connector/opencti_connector_helper.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/connector/opencti_metric_handler.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/__init__.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_attack_pattern.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_campaign.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_case_incident.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_case_rfi.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_case_rft.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_channel.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_course_of_action.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_data_component.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_data_source.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_event.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_external_reference.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_feedback.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_grouping.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_identity.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_incident.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_indicator.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_infrastructure.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_intrusion_set.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_kill_chain_phase.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_label.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_language.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_location.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_malware.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_malware_analysis.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_marking_definition.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_narrative.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_note.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_observed_data.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_opinion.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_report.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_stix.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_stix_core_object.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_stix_core_relationship.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_stix_cyber_observable.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_stix_domain_object.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_stix_nested_ref_relationship.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_stix_object_or_stix_relationship.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_stix_sighting_relationship.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_task.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_threat_actor.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_threat_actor_group.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_threat_actor_individual.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_tool.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_vocabulary.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/entities/opencti_vulnerability.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/utils/__init__.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/utils/constants.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/utils/opencti_logger.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/utils/opencti_stix2_splitter.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/utils/opencti_stix2_update.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti/utils/opencti_stix2_utils.py +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti.egg-info/SOURCES.txt +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti.egg-info/dependency_links.txt +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti.egg-info/requires.txt +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pycti.egg-info/top_level.txt +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/pyproject.toml +0 -0
- {pycti-6.1.10 → pycti-6.1.12}/setup.cfg +0 -0
|
@@ -377,7 +377,13 @@ class OpenCTIApiClient:
|
|
|
377
377
|
:rtype: str or bytes
|
|
378
378
|
"""
|
|
379
379
|
|
|
380
|
-
r = self.session.get(
|
|
380
|
+
r = self.session.get(
|
|
381
|
+
fetch_uri,
|
|
382
|
+
headers=self.request_headers,
|
|
383
|
+
verify=self.ssl_verify,
|
|
384
|
+
cert=self.cert,
|
|
385
|
+
proxies=self.proxies,
|
|
386
|
+
)
|
|
381
387
|
if binary:
|
|
382
388
|
if serialize:
|
|
383
389
|
return base64.b64encode(r.content).decode("utf-8")
|
|
@@ -13,6 +13,7 @@ class ConnectorType(Enum):
|
|
|
13
13
|
"INTERNAL_IMPORT_FILE" # From OpenCTI file system to OpenCTI stix2
|
|
14
14
|
)
|
|
15
15
|
INTERNAL_ENRICHMENT = "INTERNAL_ENRICHMENT" # From OpenCTI stix2 to OpenCTI stix2
|
|
16
|
+
INTERNAL_ANALYSIS = "INTERNAL_ANALYSIS" # From OpenCTI file system or OpenCTI stix2 to OpenCTI file system
|
|
16
17
|
INTERNAL_EXPORT_FILE = (
|
|
17
18
|
"INTERNAL_EXPORT_FILE" # From OpenCTI stix2 to OpenCTI file system
|
|
18
19
|
)
|
|
@@ -1661,19 +1661,6 @@ class OpenCTIStix2:
|
|
|
1661
1661
|
objects_to_get = []
|
|
1662
1662
|
relations_to_get = []
|
|
1663
1663
|
|
|
1664
|
-
# Container
|
|
1665
|
-
if "objects" in entity and len(entity["objects"]) > 0:
|
|
1666
|
-
object_ids = list(map(lambda e: e["standard_id"], entity["objects"]))
|
|
1667
|
-
export_query_filter = self.prepare_id_filters_export(
|
|
1668
|
-
id=object_ids, access_filter=access_filter
|
|
1669
|
-
)
|
|
1670
|
-
filtered_objects = (
|
|
1671
|
-
self.opencti.opencti_stix_object_or_stix_relationship.list(
|
|
1672
|
-
filters=export_query_filter, getAll=True
|
|
1673
|
-
)
|
|
1674
|
-
)
|
|
1675
|
-
entity["objects"] = filtered_objects
|
|
1676
|
-
|
|
1677
1664
|
# CreatedByRef
|
|
1678
1665
|
if (
|
|
1679
1666
|
not no_custom_attributes
|
|
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
|