pycti 6.6.9__tar.gz → 6.6.11__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.9 → pycti-6.6.11}/PKG-INFO +1 -1
- {pycti-6.6.9 → pycti-6.6.11}/pycti/__init__.py +1 -1
- {pycti-6.6.9 → pycti-6.6.11}/pycti/connector/opencti_connector_helper.py +19 -26
- {pycti-6.6.9 → pycti-6.6.11}/pycti.egg-info/PKG-INFO +1 -1
- {pycti-6.6.9 → pycti-6.6.11}/LICENSE +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/README.md +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/api/__init__.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/api/opencti_api_client.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/api/opencti_api_connector.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/api/opencti_api_playbook.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/api/opencti_api_work.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/connector/__init__.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/connector/opencti_connector.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/connector/opencti_metric_handler.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/__init__.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/indicator/__init__.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/indicator/opencti_indicator_properties.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_attack_pattern.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_campaign.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_capability.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_case_incident.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_case_rfi.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_case_rft.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_channel.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_course_of_action.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_data_component.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_data_source.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_event.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_external_reference.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_feedback.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_group.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_grouping.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_identity.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_incident.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_indicator.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_infrastructure.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_intrusion_set.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_kill_chain_phase.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_label.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_language.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_location.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_malware.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_malware_analysis.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_marking_definition.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_narrative.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_note.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_observed_data.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_opinion.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_report.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_role.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_settings.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_stix.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_stix_core_object.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_stix_core_relationship.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_stix_cyber_observable.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_stix_domain_object.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_stix_nested_ref_relationship.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_stix_object_or_stix_relationship.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_stix_sighting_relationship.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_task.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_threat_actor.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_threat_actor_group.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_threat_actor_individual.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_tool.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_user.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_vocabulary.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/opencti_vulnerability.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/stix_cyber_observable/__init__.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/stix_cyber_observable/opencti_stix_cyber_observable_deprecated.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/entities/stix_cyber_observable/opencti_stix_cyber_observable_properties.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/utils/__init__.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/utils/constants.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/utils/opencti_logger.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/utils/opencti_stix2.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/utils/opencti_stix2_identifier.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/utils/opencti_stix2_splitter.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/utils/opencti_stix2_update.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti/utils/opencti_stix2_utils.py +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti.egg-info/SOURCES.txt +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti.egg-info/dependency_links.txt +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti.egg-info/requires.txt +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pycti.egg-info/top_level.txt +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/pyproject.toml +0 -0
- {pycti-6.6.9 → pycti-6.6.11}/setup.cfg +0 -0
|
@@ -968,29 +968,24 @@ class OpenCTIConnectorHelper: # pylint: disable=too-many-public-methods
|
|
|
968
968
|
"CONNECTOR_LIVE_STREAM_ID",
|
|
969
969
|
["connector", "live_stream_id"],
|
|
970
970
|
config,
|
|
971
|
-
False,
|
|
972
|
-
None,
|
|
973
971
|
)
|
|
974
972
|
self.connect_live_stream_listen_delete = get_config_variable(
|
|
975
973
|
"CONNECTOR_LIVE_STREAM_LISTEN_DELETE",
|
|
976
974
|
["connector", "live_stream_listen_delete"],
|
|
977
975
|
config,
|
|
978
|
-
|
|
979
|
-
True,
|
|
976
|
+
default=True,
|
|
980
977
|
)
|
|
981
978
|
self.connect_live_stream_no_dependencies = get_config_variable(
|
|
982
979
|
"CONNECTOR_LIVE_STREAM_NO_DEPENDENCIES",
|
|
983
980
|
["connector", "live_stream_no_dependencies"],
|
|
984
981
|
config,
|
|
985
|
-
|
|
986
|
-
False,
|
|
982
|
+
default=True,
|
|
987
983
|
)
|
|
988
984
|
self.connect_live_stream_with_inferences = get_config_variable(
|
|
989
985
|
"CONNECTOR_LIVE_STREAM_WITH_INFERENCES",
|
|
990
986
|
["connector", "live_stream_with_inferences"],
|
|
991
987
|
config,
|
|
992
|
-
False,
|
|
993
|
-
False,
|
|
988
|
+
default=False,
|
|
994
989
|
)
|
|
995
990
|
self.connect_live_stream_recover_iso_date = get_config_variable(
|
|
996
991
|
"CONNECTOR_LIVE_STREAM_RECOVER_ISO_DATE",
|
|
@@ -1007,24 +1002,22 @@ class OpenCTIConnectorHelper: # pylint: disable=too-many-public-methods
|
|
|
1007
1002
|
)
|
|
1008
1003
|
self.connect_confidence_level = None # Deprecated since OpenCTI version >= 6.0
|
|
1009
1004
|
self.connect_scope = get_config_variable(
|
|
1010
|
-
"CONNECTOR_SCOPE", ["connector", "scope"], config
|
|
1005
|
+
"CONNECTOR_SCOPE", ["connector", "scope"], config, default="not-applicable"
|
|
1011
1006
|
)
|
|
1012
1007
|
self.connect_auto = get_config_variable(
|
|
1013
|
-
"CONNECTOR_AUTO", ["connector", "auto"], config, False
|
|
1008
|
+
"CONNECTOR_AUTO", ["connector", "auto"], config, default=False
|
|
1014
1009
|
)
|
|
1015
1010
|
self.bundle_send_to_queue = get_config_variable(
|
|
1016
1011
|
"CONNECTOR_SEND_TO_QUEUE",
|
|
1017
1012
|
["connector", "send_to_queue"],
|
|
1018
1013
|
config,
|
|
1019
|
-
|
|
1020
|
-
True,
|
|
1014
|
+
default=True,
|
|
1021
1015
|
)
|
|
1022
1016
|
self.bundle_send_to_directory = get_config_variable(
|
|
1023
1017
|
"CONNECTOR_SEND_TO_DIRECTORY",
|
|
1024
1018
|
["connector", "send_to_directory"],
|
|
1025
1019
|
config,
|
|
1026
|
-
False,
|
|
1027
|
-
False,
|
|
1020
|
+
default=False,
|
|
1028
1021
|
)
|
|
1029
1022
|
self.bundle_send_to_directory_path = get_config_variable(
|
|
1030
1023
|
"CONNECTOR_SEND_TO_DIRECTORY_PATH",
|
|
@@ -1035,32 +1028,29 @@ class OpenCTIConnectorHelper: # pylint: disable=too-many-public-methods
|
|
|
1035
1028
|
"CONNECTOR_SEND_TO_DIRECTORY_RETENTION",
|
|
1036
1029
|
["connector", "send_to_directory_retention"],
|
|
1037
1030
|
config,
|
|
1038
|
-
True,
|
|
1039
|
-
7,
|
|
1031
|
+
isNumber=True,
|
|
1032
|
+
default=7,
|
|
1040
1033
|
)
|
|
1041
1034
|
self.connect_only_contextual = get_config_variable(
|
|
1042
1035
|
"CONNECTOR_ONLY_CONTEXTUAL",
|
|
1043
1036
|
["connector", "only_contextual"],
|
|
1044
1037
|
config,
|
|
1045
|
-
False,
|
|
1046
|
-
False,
|
|
1038
|
+
default=False,
|
|
1047
1039
|
)
|
|
1048
1040
|
self.log_level = get_config_variable(
|
|
1049
|
-
"CONNECTOR_LOG_LEVEL", ["connector", "log_level"], config, default="
|
|
1041
|
+
"CONNECTOR_LOG_LEVEL", ["connector", "log_level"], config, default="ERROR"
|
|
1050
1042
|
).upper()
|
|
1051
1043
|
self.connect_run_and_terminate = get_config_variable(
|
|
1052
1044
|
"CONNECTOR_RUN_AND_TERMINATE",
|
|
1053
1045
|
["connector", "run_and_terminate"],
|
|
1054
1046
|
config,
|
|
1055
|
-
False,
|
|
1056
|
-
False,
|
|
1047
|
+
default=False,
|
|
1057
1048
|
)
|
|
1058
1049
|
self.connect_validate_before_import = get_config_variable(
|
|
1059
1050
|
"CONNECTOR_VALIDATE_BEFORE_IMPORT",
|
|
1060
1051
|
["connector", "validate_before_import"],
|
|
1061
1052
|
config,
|
|
1062
|
-
False,
|
|
1063
|
-
False,
|
|
1053
|
+
default=False,
|
|
1064
1054
|
)
|
|
1065
1055
|
self.scheduler = sched.scheduler(time.time, time.sleep)
|
|
1066
1056
|
# Start up the server to expose the metrics.
|
|
@@ -1068,11 +1058,14 @@ class OpenCTIConnectorHelper: # pylint: disable=too-many-public-methods
|
|
|
1068
1058
|
"CONNECTOR_EXPOSE_METRICS",
|
|
1069
1059
|
["connector", "expose_metrics"],
|
|
1070
1060
|
config,
|
|
1071
|
-
False,
|
|
1072
|
-
False,
|
|
1061
|
+
default=False,
|
|
1073
1062
|
)
|
|
1074
1063
|
metrics_port = get_config_variable(
|
|
1075
|
-
"CONNECTOR_METRICS_PORT",
|
|
1064
|
+
"CONNECTOR_METRICS_PORT",
|
|
1065
|
+
["connector", "metrics_port"],
|
|
1066
|
+
config,
|
|
1067
|
+
isNumber=True,
|
|
1068
|
+
default=9095,
|
|
1076
1069
|
)
|
|
1077
1070
|
# Initialize ConnectorInfo instance
|
|
1078
1071
|
self.connector_info = ConnectorInfo()
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|