tcex 5.0.0.dev3__tar.gz → 5.0.1__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.
- {tcex-5.0.0.dev3/tcex.egg-info → tcex-5.0.1}/PKG-INFO +16 -16
- {tcex-5.0.0.dev3 → tcex-5.0.1}/README.md +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/pyproject.toml +38 -38
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/__metadata__.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/ti_transform/ti_transform.py +8 -8
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/ti_transform/transform_abc.py +7 -6
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/ti_transform/transform_builder/v2/load_transform.py +29 -12
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/util/threat_intel_util.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/batch/batch_cleaner.py +54 -8
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_gen_abc.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_gen_args_abc.py +2 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_gen_filter_abc.py +11 -6
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_gen_model_abc.py +9 -11
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_gen_object_abc.py +27 -18
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/_gen/model/_filter_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/artifact_types/artifact_type.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/artifact_types/artifact_type_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/artifacts/artifact.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/artifacts/artifact_model.py +7 -7
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/attribute_types/attribute_type.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/attribute_types/attribute_type_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/case_attributes/case_attribute.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/case_attributes/case_attribute_model.py +3 -3
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/case_management/case_management.py +7 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/cases/case.py +6 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/cases/case_filter.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/cases/case_model.py +14 -14
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/file_occurrences/file_occurrence_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/group_attributes/group_attribute.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/group_attributes/group_attribute_model.py +4 -4
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/groups/group.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/groups/group_filter.py +36 -32
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/groups/group_model.py +35 -12
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/indicator_attributes/indicator_attribute.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/indicator_attributes/indicator_attribute_model.py +4 -4
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/indicators/indicator.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/indicators/indicator_filter.py +16 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/indicators/indicator_model.py +20 -10
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/categories/category.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/categories/category_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/intel_req_type_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/intel_requirement.py +3 -3
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/intel_requirement_model.py +10 -10
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/results/result.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/results/result_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/subtypes/subtype.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/subtypes/subtype_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/notes/note.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/notes/note_model.py +5 -5
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/object_abc.py +18 -11
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/object_collection_abc.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/assignee_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/assignee_user_group_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/assignee_user_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/owner_roles/owner_role.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/owner_roles/owner_role_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/owners/owner.py +4 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/owners/owner_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/system_roles/system_role.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/system_roles/system_role_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/task_assignee_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/user_groups/user_group.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/user_groups/user_group_model.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/users/user.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/users/user_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security_labels/security_label.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security_labels/security_label_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/tags/tag.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/tags/tag_model.py +5 -5
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/tasks/task.py +5 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/tasks/task_model.py +5 -5
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/v3_model_abc.py +18 -18
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/victim_assets/victim_asset.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/victim_assets/victim_asset_model.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/victim_attributes/victim_attribute.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/victim_attributes/victim_attribute_model.py +3 -3
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/victims/victim.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/victims/victim_model.py +6 -6
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/workflow_events/workflow_event.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/workflow_events/workflow_event_model.py +4 -4
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/workflow_templates/workflow_template.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/workflow_templates/workflow_template_model.py +3 -3
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/app_spec_yml.py +22 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/install_json.py +34 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/layout_json.py +17 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/model/app_spec_yml_model.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/model/install_json_model.py +4 -4
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/model/job_json_model.py +8 -4
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/model/layout_json_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/permutation.py +8 -8
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/tcex_json.py +16 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/decorator/benchmark.py +10 -7
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/decorator/debug.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/decorator/fail_on_output.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/decorator/on_exception.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/decorator/on_success.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/decorator/output.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/key_value_store/key_value_redis.py +3 -3
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/playbook/advanced_request.py +5 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/playbook/playbook_create.py +16 -16
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/playbook/playbook_read.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/service/common_service_trigger.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/service/mqtt_message_broker.py +6 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/service/webhook_trigger_service.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/token/token.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/binary.py +10 -4
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/edit_choice.py +11 -4
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/integer.py +12 -4
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/ip_address.py +6 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/key_value.py +3 -15
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/sensitive.py +9 -5
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/string.py +10 -4
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/validator.py +9 -8
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/input.py +1 -1
- tcex-5.0.1/tcex/pleb/cached_property.py +36 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/cached_property_filesystem.py +3 -3
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/jmespath_custom.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/jmespath_functions_array_mixin.py +9 -9
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/jmespath_functions_base.py +6 -6
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/jmespath_functions_math_mixin.py +5 -4
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/jmespath_functions_string_mixin.py +10 -10
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/proxies.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/registry.py +5 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/requests_external/external_session.py +6 -5
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/requests_tc/auth/hmac_auth.py +6 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/requests_tc/auth/tc_auth.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/requests_tc/auth/token_auth.py +6 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/requests_tc/requests_tc.py +5 -3
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/requests_tc/tc_session.py +13 -13
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/code_operation.py +2 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/datetime_operation.py +2 -1
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/requests_to_curl.py +6 -4
- {tcex-5.0.0.dev3 → tcex-5.0.1/tcex.egg-info}/PKG-INFO +16 -16
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex.egg-info/SOURCES.txt +4 -1
- tcex-5.0.1/tcex.egg-info/requires.txt +16 -0
- tcex-5.0.1/tests/test_instance_data.py +413 -0
- tcex-5.0.1/tests/test_mock_app_service_id.py +171 -0
- tcex-5.0.1/tests/test_mock_app_token_url.py +126 -0
- tcex-5.0.0.dev3/tcex/pleb/cached_property.py +0 -30
- tcex-5.0.0.dev3/tcex.egg-info/requires.txt +0 -16
- {tcex-5.0.0.dev3 → tcex-5.0.1}/LICENSE +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/setup.cfg +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/api.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/tc.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/ti_transform/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/ti_transform/model/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/ti_transform/model/transform_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/ti_transform/ti_predefined_functions.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/ti_transform/transform_builder/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/ti_transform/transform_builder/v2/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/ti_transform/transform_builder/v2/errors.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/util/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/batch/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/batch/association.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/batch/attribute.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/batch/batch.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/batch/batch_submit.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/batch/batch_writer.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/batch/group.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/batch/indicator.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/batch/security_label.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/batch/tag.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/datastore/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/datastore/cache.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/datastore/datastore.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/metric/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/metric/metric.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/notification/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/notification/notification.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/filters.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/adversary.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/attack_pattern.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/campaign.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/course_of_action.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/document.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/email.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/event.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/incident.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/intrusion_set.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/malware.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/report.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/signature.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tactic.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/threat.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tool.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/vulnerability.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/address.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/email_address.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/file.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/host.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/url.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/mapping.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/owner.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/security_label.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/tag.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/tags.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/task.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/victim.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/tcex_ti_tc_request.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/threat_intelligence.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v2/v2.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/_gen/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_gen.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_options_abc.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_options_data.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_options_data_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_options_data_object.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/_gen/model/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/_gen/model/_extra_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/_gen/model/_property_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/adversary_assets/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/api_endpoints.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/artifact_types/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/artifact_types/artifact_type_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/artifacts/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/artifacts/artifact_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/attribute_types/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/attribute_types/attribute_type_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/attributes/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/attributes/attribute_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/case_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/case_attributes/case_attribute_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/case_management/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/cases/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/file_actions/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/file_actions/file_action_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/file_occurrences/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/filter_abc.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/group_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/group_attributes/group_attribute_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/groups/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/indicator_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/indicator_attributes/indicator_attribute_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/indicators/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirement/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirement/ir.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/categories/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/categories/category_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/intel_requirement_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/keyword_sections/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/keyword_sections/keyword_section_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/results/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/results/result_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/subtypes/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/subtypes/subtype_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/notes/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/notes/note_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/exclusion_lists/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/owner_roles/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/owner_roles/owner_role_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/owners/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/owners/owner_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/security.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/system_roles/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/system_roles/system_role_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/user_groups/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/user_groups/user_group_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/users/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security/users/user_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security_labels/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/security_labels/security_label_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/tags/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/tags/default_naics_tags.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/tags/mitre_tags.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/tags/naics_tags.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/tags/tag_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/tasks/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/tasks/task_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/threat_intelligence/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/threat_intelligence/threat_intelligence.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/tql/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/tql/tql.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/tql/tql_operator.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/tql/tql_type.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/v3.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/v3_types.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/victim_assets/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/victim_assets/victim_asset_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/victim_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/victim_attributes/victim_attribute_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/victims/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/victims/victim_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/workflow_events/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/workflow_events/workflow_event_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/workflow_templates/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/v3/workflow_templates/workflow_template_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/app.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/install_json_update.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/install_json_validate.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/job_json.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/model/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/model/tcex_json_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/config/tcex_json_update.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/decorator/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/key_value_store/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/key_value_store/key_value_abc.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/key_value_store/key_value_api.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/key_value_store/key_value_mock.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/key_value_store/key_value_store.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/key_value_store/redis_client.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/key_value_store/redis_client_ssl.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/playbook/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/playbook/playbook.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/playbook/playbook_delete.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/playbook/playbook_output.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/service/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/service/api_service.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/service/common_service.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/app/token/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/exit/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/exit/error_code.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/exit/exit.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/case_management_entity.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/choice.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/datetime.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/exception.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/group_entity.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/indicator_entity.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/field_type/tc_entity.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/advanced_request_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/api_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/app_api_service_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/app_external_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/app_feed_api_service_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/app_organization_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/app_playbook_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/app_system_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/app_trigger_service_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/app_webhook_trigger_service_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/batch_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/cal_setting_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/cert_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/common_advanced_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/common_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/create_config_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/logging_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/model_map.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/module_app_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/module_requests_session_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/organization_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/path_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/playbook_common_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/playbook_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/proxy_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/service_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/input/model/smtp_setting_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/logger/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/logger/api_handler.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/logger/cache_handler.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/logger/logger.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/logger/rotating_file_handler_custom.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/logger/sensitive_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/logger/trace_logger.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/event.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/exception_thread.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/jmespath_functions_control_mixin.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/jmespath_functions_crypto_mixin.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/jmespath_functions_datetime_mixin.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/jmespath_functions_object_mixin.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/none_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/scoped_property.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/pleb/singleton.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/requests_external/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/requests_external/rate_limit_handler.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/requests_external/requests_external.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/requests_tc/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/requests_tc/auth/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/tcex.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/aes_operation.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/file_operation.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/model/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/model/playbook_variable_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/render/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/render/render.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/render/render_panel.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/render/render_prompt.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/render/render_table.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/string_operation.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/util.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/util/variable.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex.egg-info/dependency_links.txt +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.1}/tcex.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tcex
|
|
3
|
-
Version: 5.0.
|
|
3
|
+
Version: 5.0.1
|
|
4
4
|
Summary: ThreatConnect Exchange App Framework
|
|
5
5
|
Author-email: ThreatConnect <support@threatconnect.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -20,22 +20,22 @@ Classifier: Topic :: Security
|
|
|
20
20
|
Requires-Python: >=3.11
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
22
|
License-File: LICENSE
|
|
23
|
-
Requires-Dist: arrow
|
|
24
|
-
Requires-Dist: black
|
|
25
|
-
Requires-Dist: inflection
|
|
26
|
-
Requires-Dist: isort
|
|
27
|
-
Requires-Dist: jmespath
|
|
28
|
-
Requires-Dist: paho-mqtt
|
|
29
|
-
Requires-Dist: pyaes
|
|
23
|
+
Requires-Dist: arrow~=1.4
|
|
24
|
+
Requires-Dist: black~=26.5
|
|
25
|
+
Requires-Dist: inflection~=0.5
|
|
26
|
+
Requires-Dist: isort~=8.0
|
|
27
|
+
Requires-Dist: jmespath~=1.1
|
|
28
|
+
Requires-Dist: paho-mqtt~=2.1
|
|
29
|
+
Requires-Dist: pyaes~=1.6
|
|
30
30
|
Requires-Dist: pydantic-core<3.0.0,>=2.10.0
|
|
31
31
|
Requires-Dist: pydantic<3.0.0,>=2.10.0
|
|
32
|
-
Requires-Dist: python-dateutil
|
|
33
|
-
Requires-Dist: pyyaml
|
|
34
|
-
Requires-Dist: redis
|
|
35
|
-
Requires-Dist: requests
|
|
36
|
-
Requires-Dist: rich
|
|
37
|
-
Requires-Dist: semantic-version
|
|
38
|
-
Requires-Dist: wrapt
|
|
32
|
+
Requires-Dist: python-dateutil~=2.9
|
|
33
|
+
Requires-Dist: pyyaml~=6.0
|
|
34
|
+
Requires-Dist: redis~=8.0
|
|
35
|
+
Requires-Dist: requests~=2.34
|
|
36
|
+
Requires-Dist: rich~=15.0
|
|
37
|
+
Requires-Dist: semantic-version~=2.10
|
|
38
|
+
Requires-Dist: wrapt~=2.2
|
|
39
39
|
Dynamic: license-file
|
|
40
40
|
|
|
41
41
|
# tcex - ThreatConnect Exchange App Framework
|
|
@@ -64,9 +64,9 @@ The ThreatConnect™ TcEx App Framework provides functionality for writing T
|
|
|
64
64
|
|
|
65
65
|
* bandit (https://pypi.org/project/bandit/)
|
|
66
66
|
* pre-commit (https://pypi.org/project/pre-commit/)
|
|
67
|
-
* pyright (https://pypi.org/project/pyright/)
|
|
68
67
|
* pyupgrade (https://pypi.org/project/pyupgrade/)
|
|
69
68
|
* ruff (https://pypi.org/project/ruff/)
|
|
69
|
+
* ty (https://pypi.org/project/ty/)
|
|
70
70
|
* typer (https://pypi.python.org/pypi/typer/)
|
|
71
71
|
|
|
72
72
|
### Test Requirements
|
|
@@ -24,9 +24,9 @@ The ThreatConnect™ TcEx App Framework provides functionality for writing T
|
|
|
24
24
|
|
|
25
25
|
* bandit (https://pypi.org/project/bandit/)
|
|
26
26
|
* pre-commit (https://pypi.org/project/pre-commit/)
|
|
27
|
-
* pyright (https://pypi.org/project/pyright/)
|
|
28
27
|
* pyupgrade (https://pypi.org/project/pyupgrade/)
|
|
29
28
|
* ruff (https://pypi.org/project/ruff/)
|
|
29
|
+
* ty (https://pypi.org/project/ty/)
|
|
30
30
|
* typer (https://pypi.python.org/pypi/typer/)
|
|
31
31
|
|
|
32
32
|
### Test Requirements
|
|
@@ -24,22 +24,22 @@ classifiers = [
|
|
|
24
24
|
|
|
25
25
|
# List of runtime dependencies
|
|
26
26
|
dependencies = [
|
|
27
|
-
"arrow
|
|
28
|
-
"black
|
|
29
|
-
"inflection
|
|
30
|
-
"isort
|
|
31
|
-
"jmespath
|
|
32
|
-
"paho-mqtt
|
|
33
|
-
"pyaes
|
|
27
|
+
"arrow~=1.4",
|
|
28
|
+
"black~=26.5",
|
|
29
|
+
"inflection~=0.5",
|
|
30
|
+
"isort~=8.0",
|
|
31
|
+
"jmespath~=1.1",
|
|
32
|
+
"paho-mqtt~=2.1",
|
|
33
|
+
"pyaes~=1.6",
|
|
34
34
|
"pydantic-core>=2.10.0,<3.0.0",
|
|
35
35
|
"pydantic>=2.10.0,<3.0.0",
|
|
36
|
-
"python-dateutil
|
|
37
|
-
"pyyaml
|
|
38
|
-
"redis
|
|
39
|
-
"requests
|
|
40
|
-
"rich
|
|
41
|
-
"semantic-version
|
|
42
|
-
"wrapt
|
|
36
|
+
"python-dateutil~=2.9",
|
|
37
|
+
"pyyaml~=6.0",
|
|
38
|
+
"redis~=8.0",
|
|
39
|
+
"requests~=2.34",
|
|
40
|
+
"rich~=15.0",
|
|
41
|
+
"semantic-version~=2.10",
|
|
42
|
+
"wrapt~=2.2",
|
|
43
43
|
]
|
|
44
44
|
|
|
45
45
|
# Short description of the project
|
|
@@ -70,23 +70,23 @@ Source = "https://github.com/ThreatConnect-Inc/tcex"
|
|
|
70
70
|
# Dependency groups for development and testing
|
|
71
71
|
[dependency-groups]
|
|
72
72
|
dev = [
|
|
73
|
-
"bandit>=1.
|
|
74
|
-
"pre-commit>=4.
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"typer>=0.
|
|
73
|
+
"bandit>=1.9",
|
|
74
|
+
"pre-commit>=4.6",
|
|
75
|
+
"pyupgrade>=3.21",
|
|
76
|
+
"ruff>=0.15",
|
|
77
|
+
"ty==0.0.51",
|
|
78
|
+
"typer>=0.26",
|
|
79
79
|
]
|
|
80
|
+
|
|
80
81
|
test = [
|
|
81
|
-
"deepdiff>=
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"pytest>=
|
|
85
|
-
"pytest-
|
|
86
|
-
"pytest-html>=4.1.1",
|
|
82
|
+
"deepdiff>=9.1",
|
|
83
|
+
"fakeredis>=2.36",
|
|
84
|
+
"pytest>=9.0",
|
|
85
|
+
"pytest-cov>=7.1",
|
|
86
|
+
"pytest-html>=4.2",
|
|
87
87
|
"pytest-ordering>=0.6",
|
|
88
|
-
"pytest-xdist>=3.
|
|
89
|
-
"python-dotenv>=1.2
|
|
88
|
+
"pytest-xdist>=3.8",
|
|
89
|
+
"python-dotenv>=1.2",
|
|
90
90
|
]
|
|
91
91
|
|
|
92
92
|
# Dynamic configuration for setuptools
|
|
@@ -129,7 +129,7 @@ commit = false
|
|
|
129
129
|
# Additional arguments to pass to the git commit command
|
|
130
130
|
commit_args = "--no-verify"
|
|
131
131
|
# The current version of the project
|
|
132
|
-
current_version = "5.0.
|
|
132
|
+
current_version = "5.0.1"
|
|
133
133
|
# The commit message template used when committing version bumps
|
|
134
134
|
message = "Version updated from {current_version} to {new_version}"
|
|
135
135
|
# Regular expression for parsing version strings
|
|
@@ -168,11 +168,15 @@ filename = "tcex/__metadata__.py"
|
|
|
168
168
|
[tool.codespell]
|
|
169
169
|
# https://streetsidesoftware.com/vscode-spell-checker/
|
|
170
170
|
ignore-words-list = "ore"
|
|
171
|
-
skip = "*.cspell*,*.history,*local,uv.lock"
|
|
171
|
+
skip = "*.cspell*,*.history,*local,uv.lock,*enforce_us_spelling.sh"
|
|
172
|
+
|
|
173
|
+
# Configuration for ty type checker
|
|
174
|
+
# https://docs.astral.sh/ty/reference/configuration/
|
|
175
|
+
[tool.ty.environment]
|
|
176
|
+
python-platform = "linux"
|
|
177
|
+
python-version = "3.11"
|
|
172
178
|
|
|
173
|
-
|
|
174
|
-
[tool.pyright]
|
|
175
|
-
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md#sample-pyprojecttoml-file
|
|
179
|
+
[tool.ty.src]
|
|
176
180
|
exclude = [
|
|
177
181
|
"**/.history",
|
|
178
182
|
"**/__pycache__",
|
|
@@ -180,11 +184,6 @@ exclude = [
|
|
|
180
184
|
"tcex/api/tc/v2",
|
|
181
185
|
"tests",
|
|
182
186
|
]
|
|
183
|
-
pythonPlatform = "Linux"
|
|
184
|
-
pythonVersion = "3.11"
|
|
185
|
-
reportIncompatibleMethodOverride = false
|
|
186
|
-
reportIncompatibleVariableOverride = false
|
|
187
|
-
reportPrivateImportUsage = false
|
|
188
187
|
|
|
189
188
|
# Configuration for pytest test runner
|
|
190
189
|
[tool.pytest.ini_options]
|
|
@@ -251,6 +250,7 @@ ignore = [
|
|
|
251
250
|
"PLR0912", # Too many branches
|
|
252
251
|
"PLR0913", # Too many arguments in function definition
|
|
253
252
|
"PLR0915", # Too many statements
|
|
253
|
+
"PLR0917", # Too many positional arguments in function definition
|
|
254
254
|
"PT006", # Wrong name(s) type in ..., expected ...
|
|
255
255
|
"TC001", # Move application import ... into a type-checking block
|
|
256
256
|
"TC003", # Move standard library import ... into a type-checking block
|
|
@@ -154,7 +154,7 @@ class TiTransform(TransformABC):
|
|
|
154
154
|
{'summary': summary, 'indicatorType': indicator_type}
|
|
155
155
|
)
|
|
156
156
|
|
|
157
|
-
def add_associated_group(self,
|
|
157
|
+
def add_associated_group(self, group_xid: str):
|
|
158
158
|
"""Add an associated group.
|
|
159
159
|
|
|
160
160
|
{
|
|
@@ -165,33 +165,33 @@ class TiTransform(TransformABC):
|
|
|
165
165
|
if not self.separate_batch_associations:
|
|
166
166
|
# process type specific data
|
|
167
167
|
if isinstance(self.transform, GroupTransformModel):
|
|
168
|
-
self.transformed_item.setdefault('associatedGroupXid', []).append(
|
|
168
|
+
self.transformed_item.setdefault('associatedGroupXid', []).append(group_xid)
|
|
169
169
|
elif isinstance(self.transform, IndicatorTransformModel):
|
|
170
|
-
associated_group = {'groupXid':
|
|
170
|
+
associated_group = {'groupXid': group_xid}
|
|
171
171
|
self.transformed_item.setdefault('associatedGroups', []).append(associated_group)
|
|
172
172
|
elif isinstance(self.transform, GroupTransformModel):
|
|
173
173
|
self.transformed_item.setdefault('association', []).append(
|
|
174
174
|
{
|
|
175
|
-
'ref_1':
|
|
175
|
+
'ref_1': group_xid,
|
|
176
176
|
'ref_2': self.transformed_item['xid'],
|
|
177
177
|
}
|
|
178
178
|
)
|
|
179
179
|
self.log.trace(
|
|
180
180
|
'Added associated group with xid: %s to %s',
|
|
181
|
-
|
|
181
|
+
group_xid,
|
|
182
182
|
self.transformed_item['xid'],
|
|
183
183
|
)
|
|
184
184
|
elif isinstance(self.transform, IndicatorTransformModel):
|
|
185
185
|
self.transformed_item.setdefault('association', []).append(
|
|
186
186
|
{
|
|
187
|
-
'ref_1':
|
|
187
|
+
'ref_1': group_xid,
|
|
188
188
|
'ref_2': self.transformed_item['summary'],
|
|
189
189
|
'type_2': self.transformed_item['type'],
|
|
190
190
|
}
|
|
191
191
|
)
|
|
192
192
|
self.log.trace(
|
|
193
193
|
'Added associated group with xid: %s to %s',
|
|
194
|
-
|
|
194
|
+
group_xid,
|
|
195
195
|
self.transformed_item['summary'],
|
|
196
196
|
)
|
|
197
197
|
|
|
@@ -264,7 +264,7 @@ class TiTransform(TransformABC):
|
|
|
264
264
|
"""
|
|
265
265
|
self.adhoc_indicators.append(indicator_data)
|
|
266
266
|
|
|
267
|
-
def add_metadata(self, key: str, value: str):
|
|
267
|
+
def add_metadata(self, key: str, value: str | int):
|
|
268
268
|
"""Add name to the transformed item."""
|
|
269
269
|
if all([key, value]):
|
|
270
270
|
self.transformed_item[key] = value
|
|
@@ -320,7 +320,7 @@ class TransformABC(ABC):
|
|
|
320
320
|
bool,
|
|
321
321
|
[v for v in self._process_metadata_transform_model(association.value) if v],
|
|
322
322
|
):
|
|
323
|
-
self.add_associated_group(value)
|
|
323
|
+
self.add_associated_group(value)
|
|
324
324
|
except Exception as ex:
|
|
325
325
|
ex_msg = f'Associated Group [{i}]'
|
|
326
326
|
raise TransformException(ex_msg, ex, context=association.model_dump()) from ex
|
|
@@ -602,7 +602,7 @@ class TransformABC(ABC):
|
|
|
602
602
|
for i, tag in enumerate(tags or [], 1):
|
|
603
603
|
try:
|
|
604
604
|
for value in filter(bool, self._process_metadata_transform_model(tag.value)):
|
|
605
|
-
self.add_tag(name=value)
|
|
605
|
+
self.add_tag(name=value)
|
|
606
606
|
except Exception as ex:
|
|
607
607
|
ex_msg = f'Tags [{i}]'
|
|
608
608
|
raise TransformException(ex_msg, ex, context=tag.model_dump()) from ex
|
|
@@ -683,7 +683,7 @@ class TransformABC(ABC):
|
|
|
683
683
|
|
|
684
684
|
def _transform_value_callable(
|
|
685
685
|
self, value: dict | list | str, c: Callable | PredefinedFunctionModel, kwargs=None
|
|
686
|
-
) -> str |
|
|
686
|
+
) -> str | list[str] | None:
|
|
687
687
|
"""Transform values in the TI data."""
|
|
688
688
|
# find signature of method and call with correct args
|
|
689
689
|
if isinstance(c, PredefinedFunctionModel):
|
|
@@ -766,7 +766,7 @@ class TransformABC(ABC):
|
|
|
766
766
|
if v_ is not None:
|
|
767
767
|
_values.append(v_)
|
|
768
768
|
value = _values
|
|
769
|
-
#
|
|
769
|
+
# type-checker miss - None check for value already performed above
|
|
770
770
|
elif callable(t.method) and value is not None:
|
|
771
771
|
value = self._transform_value_callable(value, t.method, t.kwargs)
|
|
772
772
|
elif callable(t.for_each):
|
|
@@ -775,8 +775,9 @@ class TransformABC(ABC):
|
|
|
775
775
|
for v in self._always_array(value)
|
|
776
776
|
]
|
|
777
777
|
|
|
778
|
-
# the output should be an array of strings or empty array
|
|
779
|
-
|
|
778
|
+
# the output should be an array of strings or empty array; the accumulator may transiently
|
|
779
|
+
# hold non-string members (e.g. a numeric metadata.default) before stringification.
|
|
780
|
+
_value: list[Any] = []
|
|
780
781
|
for v in self._always_array(value):
|
|
781
782
|
if v in [None, '']:
|
|
782
783
|
if metadata.default is not None:
|
{tcex-5.0.0.dev3 → tcex-5.0.1}/tcex/api/tc/ti_transform/transform_builder/v2/load_transform.py
RENAMED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"""Utility to load transform files."""
|
|
2
2
|
|
|
3
3
|
# ruff: noqa: TRY301
|
|
4
|
+
# standard library
|
|
4
5
|
import json
|
|
5
6
|
import logging
|
|
6
7
|
from inspect import signature
|
|
7
|
-
from typing import Literal
|
|
8
|
+
from typing import Any, Literal
|
|
8
9
|
|
|
10
|
+
# first-party
|
|
9
11
|
from tcex.api.tc.ti_transform.model.transform_model import (
|
|
12
|
+
AssociatedIndicatorFromGroupTransform,
|
|
13
|
+
AssociatedIndicatorFromIndicatorTransform,
|
|
14
|
+
AttributeTransformModel,
|
|
15
|
+
FileOccurrenceTransformModel,
|
|
10
16
|
GroupTransformModel,
|
|
11
17
|
IndicatorTransformModel,
|
|
12
18
|
)
|
|
@@ -34,25 +40,24 @@ class LoadTransform:
|
|
|
34
40
|
def load_transform(
|
|
35
41
|
self,
|
|
36
42
|
mapping_json: dict,
|
|
37
|
-
) -> GroupTransformModel | IndicatorTransformModel:
|
|
43
|
+
) -> GroupTransformModel | IndicatorTransformModel: # type: ignore
|
|
38
44
|
"""Load and process the transform mapping JSON."""
|
|
39
45
|
metadata = mapping_json.pop('metadata', {})
|
|
40
46
|
ti_type = metadata['threatIntelType']
|
|
41
47
|
# transformSchemaVersion = metadata.get('transformSchemaVersion', '1')
|
|
42
48
|
match ti_type:
|
|
43
49
|
case 'group':
|
|
44
|
-
return GroupTransformModel(
|
|
50
|
+
return GroupTransformModel(
|
|
51
|
+
**self._transform_data(self._normalize(mapping_json), ti_type)
|
|
52
|
+
)
|
|
45
53
|
case 'indicator':
|
|
46
54
|
return IndicatorTransformModel(
|
|
47
|
-
**self._transform_data(self._normalize(mapping_json))
|
|
55
|
+
**self._transform_data(self._normalize(mapping_json), ti_type)
|
|
48
56
|
)
|
|
49
|
-
case _:
|
|
50
|
-
msg = f'Unknown transform type: {ti_type}'
|
|
51
|
-
raise TypeError(msg)
|
|
52
57
|
|
|
53
|
-
def _normalize(self, data: dict) -> dict:
|
|
58
|
+
def _normalize(self, data: dict) -> dict[str, Any]:
|
|
54
59
|
"""Normalize the transform data."""
|
|
55
|
-
normalized = {}
|
|
60
|
+
normalized: dict[str, Any] = {}
|
|
56
61
|
for key, value in data.items():
|
|
57
62
|
normalized_key = self.util.camel_to_snake(key)
|
|
58
63
|
if isinstance(value, dict):
|
|
@@ -66,9 +71,9 @@ class LoadTransform:
|
|
|
66
71
|
|
|
67
72
|
return normalized
|
|
68
73
|
|
|
69
|
-
def _transform_data(self, body: dict) -> dict:
|
|
74
|
+
def _transform_data(self, body: dict[str, Any], ti_type: str) -> dict:
|
|
70
75
|
"""Transform the data."""
|
|
71
|
-
fields_copy = {**body}
|
|
76
|
+
fields_copy: dict[str, Any] = {**body}
|
|
72
77
|
fields_copy.pop('associated_indicators', None)
|
|
73
78
|
|
|
74
79
|
transform_data = {}
|
|
@@ -114,6 +119,7 @@ class LoadTransform:
|
|
|
114
119
|
af
|
|
115
120
|
in (
|
|
116
121
|
'type',
|
|
122
|
+
'indicator_type',
|
|
117
123
|
'value',
|
|
118
124
|
'summary',
|
|
119
125
|
'association_type',
|
|
@@ -140,6 +146,17 @@ class LoadTransform:
|
|
|
140
146
|
|
|
141
147
|
self._translate_processing_function(field[af])
|
|
142
148
|
|
|
149
|
+
match field_key:
|
|
150
|
+
case 'attributes':
|
|
151
|
+
AttributeTransformModel(**field)
|
|
152
|
+
case 'file_occurrences':
|
|
153
|
+
FileOccurrenceTransformModel(**field)
|
|
154
|
+
case 'associated_indicators':
|
|
155
|
+
if ti_type.lower() == 'group':
|
|
156
|
+
AssociatedIndicatorFromGroupTransform(**field)
|
|
157
|
+
else:
|
|
158
|
+
AssociatedIndicatorFromIndicatorTransform(**field)
|
|
159
|
+
|
|
143
160
|
transform_data.setdefault(field_key, []).append(field)
|
|
144
161
|
except Exception:
|
|
145
162
|
# best effort to continue processing other items
|
|
@@ -248,7 +265,7 @@ class LoadTransform:
|
|
|
248
265
|
"""Translate a function definition in transform builder/API format to an actual function."""
|
|
249
266
|
# convert transform function names to callables
|
|
250
267
|
transforms_with_callable = []
|
|
251
|
-
for function in mapping.get('transform'
|
|
268
|
+
for function in mapping.get('transform') or []:
|
|
252
269
|
transforms_with_callable.append(self._function_name_to_callable(function))
|
|
253
270
|
if transforms_with_callable:
|
|
254
271
|
mapping['transform'] = transforms_with_callable
|
|
@@ -194,14 +194,14 @@ class ThreatIntelUtil:
|
|
|
194
194
|
"""
|
|
195
195
|
return list(self.indicator_types_data.keys())
|
|
196
196
|
|
|
197
|
-
def resolve_variables(self, inputs: list[str]) -> list[str]:
|
|
197
|
+
def resolve_variables(self, inputs: list[str]) -> list[str | None]:
|
|
198
198
|
"""Resolve all of the provided inputs if appropriate.
|
|
199
199
|
|
|
200
200
|
Args:
|
|
201
201
|
inputs: A list of strings to resolve if string matches a entry in the
|
|
202
202
|
"resolved_variables" dict.
|
|
203
203
|
"""
|
|
204
|
-
resolved_inputs = []
|
|
204
|
+
resolved_inputs: list[str | None] = []
|
|
205
205
|
for input_ in inputs:
|
|
206
206
|
# handle null inputs
|
|
207
207
|
if not input_:
|
|
@@ -180,9 +180,16 @@ class BatchCleaner:
|
|
|
180
180
|
if fname:
|
|
181
181
|
keys.add(f'filename:{fname.lower()}')
|
|
182
182
|
return keys
|
|
183
|
+
|
|
183
184
|
if self.deduplicate_indicators:
|
|
185
|
+
# some IOC values are not case-sensitive, handle those separately.
|
|
186
|
+
if item.get('type') in {'ASN', 'CIDR', 'Hashtag', 'Host'}:
|
|
187
|
+
summary = item.get('summary')
|
|
188
|
+
return {summary.casefold()} if summary else set()
|
|
189
|
+
|
|
184
190
|
summary = item.get('summary')
|
|
185
191
|
return {summary} if summary else set()
|
|
192
|
+
|
|
186
193
|
return set()
|
|
187
194
|
|
|
188
195
|
@staticmethod
|
|
@@ -224,6 +231,38 @@ class BatchCleaner:
|
|
|
224
231
|
if formatted:
|
|
225
232
|
tag['name'] = formatted
|
|
226
233
|
|
|
234
|
+
@staticmethod
|
|
235
|
+
def _utf16_length(value: str) -> int:
|
|
236
|
+
"""Return the length of a string in UTF-16 code units.
|
|
237
|
+
|
|
238
|
+
ThreatConnect enforces attribute length in UTF-16 code units (like Java
|
|
239
|
+
``String.length``), not Python code points. Characters outside the BMP (emoji,
|
|
240
|
+
math alphanumerics) are one Python character but two UTF-16 code units.
|
|
241
|
+
|
|
242
|
+
Args:
|
|
243
|
+
value: The string to measure.
|
|
244
|
+
|
|
245
|
+
Returns:
|
|
246
|
+
The number of UTF-16 code units. Lone surrogates are counted, not rejected.
|
|
247
|
+
"""
|
|
248
|
+
return len(value.encode('utf-16-le', 'surrogatepass')) // 2
|
|
249
|
+
|
|
250
|
+
@staticmethod
|
|
251
|
+
def _utf16_cut(value: str, units: int) -> str:
|
|
252
|
+
"""Return the longest prefix of value that fits in the given UTF-16 code units.
|
|
253
|
+
|
|
254
|
+
A surrogate pair is never split; a dangling high surrogate is dropped.
|
|
255
|
+
|
|
256
|
+
Args:
|
|
257
|
+
value: The string to cut.
|
|
258
|
+
units: The maximum number of UTF-16 code units to keep.
|
|
259
|
+
|
|
260
|
+
Returns:
|
|
261
|
+
The prefix, at most ``units`` UTF-16 code units long.
|
|
262
|
+
"""
|
|
263
|
+
encoded = value.encode('utf-16-le', 'surrogatepass')[: max(units, 0) * 2]
|
|
264
|
+
return encoded.decode('utf-16-le', errors='ignore')
|
|
265
|
+
|
|
227
266
|
@staticmethod
|
|
228
267
|
def auto_truncate_attribute(
|
|
229
268
|
attribute_type: str,
|
|
@@ -233,6 +272,11 @@ class BatchCleaner:
|
|
|
233
272
|
) -> str:
|
|
234
273
|
"""Truncate attribute value if it exceeds the maximum length for its type.
|
|
235
274
|
|
|
275
|
+
Length is measured and cut in UTF-16 code units, not Python code points, because
|
|
276
|
+
ThreatConnect enforces the limit in UTF-16 code units. Measuring in code points
|
|
277
|
+
would leave values containing astral characters (emoji, math alphanumerics) over
|
|
278
|
+
the limit after truncation.
|
|
279
|
+
|
|
236
280
|
Args:
|
|
237
281
|
attribute_type: The name of the attribute type.
|
|
238
282
|
attribute_value: The attribute value to potentially truncate.
|
|
@@ -240,26 +284,28 @@ class BatchCleaner:
|
|
|
240
284
|
ellipsis: The string to append when truncating. Defaults to '...'.
|
|
241
285
|
|
|
242
286
|
Returns:
|
|
243
|
-
The original value if within limits, or the truncated
|
|
287
|
+
The original value if within limits (in UTF-16 code units), or the truncated
|
|
288
|
+
value with ellipsis, never exceeding the limit in UTF-16 code units.
|
|
244
289
|
"""
|
|
245
290
|
config = attribute_config.get(attribute_type)
|
|
246
291
|
if not config:
|
|
247
292
|
return attribute_value
|
|
248
293
|
|
|
249
|
-
max_length = config.get('
|
|
294
|
+
max_length = config.get('max_size')
|
|
250
295
|
if not max_length:
|
|
251
296
|
return attribute_value
|
|
252
297
|
|
|
253
298
|
if not isinstance(attribute_value, str):
|
|
254
299
|
return attribute_value
|
|
255
300
|
|
|
256
|
-
if
|
|
301
|
+
if BatchCleaner._utf16_length(attribute_value) <= max_length:
|
|
257
302
|
return attribute_value
|
|
258
303
|
|
|
259
|
-
|
|
260
|
-
|
|
304
|
+
ellipsis_length = BatchCleaner._utf16_length(ellipsis)
|
|
305
|
+
if max_length <= ellipsis_length:
|
|
306
|
+
return BatchCleaner._utf16_cut(attribute_value, max_length)
|
|
261
307
|
|
|
262
|
-
return attribute_value
|
|
308
|
+
return BatchCleaner._utf16_cut(attribute_value, max_length - ellipsis_length) + ellipsis
|
|
263
309
|
|
|
264
310
|
@staticmethod
|
|
265
311
|
def clean_attributes(
|
|
@@ -275,7 +321,7 @@ class BatchCleaner:
|
|
|
275
321
|
item: A single group or indicator dictionary.
|
|
276
322
|
attribute_types: Attribute type config dict keyed by name.
|
|
277
323
|
deduplicate: Whether to remove duplicate attributes.
|
|
278
|
-
truncate: Whether to truncate attributes based on
|
|
324
|
+
truncate: Whether to truncate attributes based on max_size.
|
|
279
325
|
truncated_types: A shared set tracking attribute types that have already
|
|
280
326
|
been logged as truncated, to avoid duplicate log warnings. If None,
|
|
281
327
|
warnings are logged for every truncation.
|
|
@@ -441,7 +487,7 @@ class BatchCleaner:
|
|
|
441
487
|
Returns:
|
|
442
488
|
A set of individual hash strings with whitespace stripped.
|
|
443
489
|
"""
|
|
444
|
-
return {h.strip() for h in summary.split(' : ') if h.strip()}
|
|
490
|
+
return {h.strip().casefold() for h in summary.split(' : ') if h.strip()}
|
|
445
491
|
|
|
446
492
|
@cached_property
|
|
447
493
|
def naics_tags(self) -> NAICSTags:
|
|
@@ -128,7 +128,7 @@ class GenerateABC(ABC): # noqa: B024
|
|
|
128
128
|
_imports = [] # temp store for imports so they can be sorted
|
|
129
129
|
for lib in libs:
|
|
130
130
|
if isinstance(lib, dict):
|
|
131
|
-
imports = ', '.join(sorted(lib.get('imports')))
|
|
131
|
+
imports = ', '.join(sorted(lib.get('imports')))
|
|
132
132
|
_imports.append(f'{indent}from {lib.get("module")} import {imports}{comment}')
|
|
133
133
|
elif isinstance(lib, str):
|
|
134
134
|
_imports.append(f'{indent}{lib}{comment}')
|
|
@@ -138,7 +138,7 @@ class GenerateABC(ABC): # noqa: B024
|
|
|
138
138
|
_libs.append('') # add newline
|
|
139
139
|
|
|
140
140
|
# This is the last part of the requirements generated.
|
|
141
|
-
return '\n'.join(_libs)
|
|
141
|
+
return '\n'.join(_libs)
|
|
142
142
|
|
|
143
143
|
def tap(self, type_: str):
|
|
144
144
|
"""Return the TcEx Api Path."""
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""TcEx Framework Module"""
|
|
2
2
|
|
|
3
3
|
import importlib
|
|
4
|
+
import json
|
|
4
5
|
from abc import ABC
|
|
5
6
|
from typing import Any
|
|
6
7
|
|
|
@@ -69,7 +70,7 @@ class GenerateArgsABC(GenerateABC, ABC):
|
|
|
69
70
|
elif 'properties' in schema:
|
|
70
71
|
properties = schema['properties']
|
|
71
72
|
else:
|
|
72
|
-
Render.panel.failure(
|
|
73
|
+
Render.panel.failure(json.dumps(schema, indent=2))
|
|
73
74
|
|
|
74
75
|
# iterate over properties to build docstring
|
|
75
76
|
for arg, prop_data in properties.items():
|
|
@@ -138,8 +138,11 @@ class GenerateFilterABC(GenerateABC, ABC):
|
|
|
138
138
|
)
|
|
139
139
|
_code.extend(
|
|
140
140
|
[
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
(
|
|
142
|
+
f"""{self.i2}{filter_data.keyword.snake_case()} = self.util."""
|
|
143
|
+
f"""any_to_datetime({filter_data.keyword.snake_case()})"""
|
|
144
|
+
f""".strftime('%Y-%m-%d %H:%M:%S')"""
|
|
145
|
+
)
|
|
143
146
|
]
|
|
144
147
|
)
|
|
145
148
|
|
|
@@ -150,10 +153,12 @@ class GenerateFilterABC(GenerateABC, ABC):
|
|
|
150
153
|
f"""{self.i2}if isinstance({filter_data.keyword.snake_case()}, list) """
|
|
151
154
|
"""and operator not in self.list_types:"""
|
|
152
155
|
),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
156
|
+
(
|
|
157
|
+
f"""{self.i3}ex_msg = ("""
|
|
158
|
+
f"""{self.i5}'Operator must be CONTAINS, NOT_CONTAINS, IN\'"""
|
|
159
|
+
f"""{self.i5}'or NOT_IN when filtering on a list of values.\'"""
|
|
160
|
+
f"""{self.i4})"""
|
|
161
|
+
),
|
|
157
162
|
f"""{self.i3}raise RuntimeError(ex_msg)""",
|
|
158
163
|
'',
|
|
159
164
|
]
|