pycti 6.2.2__tar.gz → 6.2.4__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.2.2 → pycti-6.2.4}/PKG-INFO +1 -1
- {pycti-6.2.2 → pycti-6.2.4}/pycti/__init__.py +1 -1
- {pycti-6.2.2 → pycti-6.2.4}/pycti/utils/opencti_stix2.py +0 -6
- {pycti-6.2.2 → pycti-6.2.4}/pycti.egg-info/PKG-INFO +1 -1
- {pycti-6.2.2 → pycti-6.2.4}/LICENSE +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/README.md +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/api/__init__.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/api/opencti_api_client.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/api/opencti_api_connector.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/api/opencti_api_playbook.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/api/opencti_api_work.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/connector/__init__.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/connector/opencti_connector.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/connector/opencti_connector_helper.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/connector/opencti_metric_handler.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/__init__.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/indicator/__init__.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/indicator/opencti_indicator_properties.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_attack_pattern.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_campaign.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_case_incident.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_case_rfi.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_case_rft.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_channel.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_course_of_action.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_data_component.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_data_source.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_event.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_external_reference.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_feedback.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_grouping.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_identity.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_incident.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_indicator.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_infrastructure.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_intrusion_set.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_kill_chain_phase.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_label.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_language.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_location.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_malware.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_malware_analysis.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_marking_definition.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_narrative.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_note.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_observed_data.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_opinion.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_report.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_stix.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_stix_core_object.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_stix_core_relationship.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_stix_cyber_observable.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_stix_domain_object.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_stix_nested_ref_relationship.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_stix_object_or_stix_relationship.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_stix_sighting_relationship.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_task.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_threat_actor.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_threat_actor_group.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_threat_actor_individual.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_tool.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_vocabulary.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/opencti_vulnerability.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/stix_cyber_observable/__init__.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/stix_cyber_observable/opencti_stix_cyber_observable_deprecated.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/entities/stix_cyber_observable/opencti_stix_cyber_observable_properties.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/utils/__init__.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/utils/constants.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/utils/opencti_logger.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/utils/opencti_stix2_splitter.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/utils/opencti_stix2_update.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti/utils/opencti_stix2_utils.py +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti.egg-info/SOURCES.txt +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti.egg-info/dependency_links.txt +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti.egg-info/requires.txt +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pycti.egg-info/top_level.txt +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/pyproject.toml +0 -0
- {pycti-6.2.2 → pycti-6.2.4}/setup.cfg +0 -0
|
@@ -536,8 +536,6 @@ class OpenCTIStix2:
|
|
|
536
536
|
)
|
|
537
537
|
if generated_ref_id is None:
|
|
538
538
|
continue
|
|
539
|
-
if generated_ref_id in self.mapping_cache:
|
|
540
|
-
external_reference_id = self.mapping_cache[generated_ref_id]
|
|
541
539
|
else:
|
|
542
540
|
external_reference_id = self.opencti.external_reference.create(
|
|
543
541
|
source_name=source_name,
|
|
@@ -582,7 +580,6 @@ class OpenCTIStix2:
|
|
|
582
580
|
"no_trigger_import", False
|
|
583
581
|
),
|
|
584
582
|
)
|
|
585
|
-
self.mapping_cache[generated_ref_id] = generated_ref_id
|
|
586
583
|
external_references_ids.append(external_reference_id)
|
|
587
584
|
if stix_object["type"] in [
|
|
588
585
|
"threat-actor",
|
|
@@ -713,8 +710,6 @@ class OpenCTIStix2:
|
|
|
713
710
|
)
|
|
714
711
|
if generated_ref_id is None:
|
|
715
712
|
continue
|
|
716
|
-
if generated_ref_id in self.mapping_cache:
|
|
717
|
-
external_reference_id = self.mapping_cache[generated_ref_id]
|
|
718
713
|
else:
|
|
719
714
|
external_reference_id = self.opencti.external_reference.create(
|
|
720
715
|
source_name=source_name,
|
|
@@ -753,7 +748,6 @@ class OpenCTIStix2:
|
|
|
753
748
|
mime_type=file["mime_type"],
|
|
754
749
|
no_trigger_import=file.get("no_trigger_import", False),
|
|
755
750
|
)
|
|
756
|
-
self.mapping_cache[generated_ref_id] = generated_ref_id
|
|
757
751
|
external_references_ids.append(external_reference_id)
|
|
758
752
|
# Granted refs
|
|
759
753
|
granted_refs_ids = []
|
|
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
|