tcex 4.0.11.dev5__tar.gz → 4.0.12.dev0__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-4.0.11.dev5/tcex.egg-info → tcex-4.0.12.dev0}/PKG-INFO +16 -16
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/pyproject.toml +37 -37
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/__metadata__.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/ti_transform/ti_transform.py +8 -8
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/ti_transform/transform_abc.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/ti_transform/transform_builder/__init__.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/ti_transform/transform_builder/v2/load_transform.py +26 -8
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/util/threat_intel_util.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/batch/batch_cleaner.py +10 -3
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/batch/batch_writer.py +30 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/_gen/_gen.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/_gen/_gen_abc.py +4 -3
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/_gen/_gen_args_abc.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/_gen/_gen_filter_abc.py +11 -6
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/_gen/_gen_model_abc.py +3 -5
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/_gen/_gen_object_abc.py +17 -15
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/_gen/model/_filter_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/artifact_types/artifact_type.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/artifact_types/artifact_type_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/artifacts/artifact.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/artifacts/artifact_model.py +7 -7
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/attribute_types/attribute_type.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/attribute_types/attribute_type_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/case_attributes/case_attribute.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/case_attributes/case_attribute_model.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/cases/case.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/cases/case_filter.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/cases/case_model.py +14 -14
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/file_occurrences/file_occurrence_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/group_attributes/group_attribute.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/group_attributes/group_attribute_model.py +4 -4
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/groups/group.py +4 -2
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/groups/group_filter.py +36 -32
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/groups/group_model.py +31 -12
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/indicator_attributes/indicator_attribute.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/indicator_attributes/indicator_attribute_model.py +4 -4
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/indicators/indicator.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/indicators/indicator_filter.py +16 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/indicators/indicator_model.py +20 -10
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/categories/category.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/categories/category_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/intel_requirement.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/intel_requirement_model.py +10 -10
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/results/result.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/results/result_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/subtypes/subtype.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/subtypes/subtype_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/notes/note.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/notes/note_model.py +5 -5
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/object_abc.py +15 -9
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/object_collection_abc.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/owner_roles/owner_role.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/owner_roles/owner_role_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/owners/owner.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/owners/owner_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/system_roles/system_role.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/system_roles/system_role_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/task_assignee_model.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/user_groups/user_group.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/user_groups/user_group_model.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/users/user.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/users/user_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security_labels/security_label.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security_labels/security_label_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/tags/tag.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/tags/tag_model.py +5 -5
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/tasks/task.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/tasks/task_model.py +5 -5
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/v3_model_abc.py +15 -15
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/victim_assets/victim_asset.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/victim_assets/victim_asset_model.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/victim_attributes/victim_attribute.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/victim_attributes/victim_attribute_model.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/victims/victim.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/victims/victim_model.py +6 -6
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/workflow_events/workflow_event.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/workflow_events/workflow_event_model.py +4 -4
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/workflow_templates/workflow_template.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/workflow_templates/workflow_template_model.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/layout_json.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/model/app_spec_yml_model.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/model/install_json_model.py +4 -3
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/permutation.py +8 -8
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/decorator/benchmark.py +5 -5
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/key_value_store/key_value_redis.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/playbook/advanced_request.py +5 -2
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/playbook/playbook_create.py +16 -18
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/playbook/playbook_read.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/service/common_service_trigger.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/service/mqtt_message_broker.py +6 -6
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/service/webhook_trigger_service.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/token/token.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/edit_choice.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/key_value.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/validator.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/input.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/logger/api_handler.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/cached_property.py +3 -2
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/cached_property_filesystem.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/jmespath_custom.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/jmespath_functions_array_mixin.py +9 -9
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/jmespath_functions_base.py +6 -6
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/jmespath_functions_math_mixin.py +5 -4
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/jmespath_functions_string_mixin.py +10 -10
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/proxies.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/registry.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/requests_external/external_session.py +8 -4
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/requests_tc/auth/hmac_auth.py +6 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/requests_tc/auth/tc_auth.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/requests_tc/auth/token_auth.py +6 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/requests_tc/requests_tc.py +5 -3
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/requests_tc/tc_session.py +13 -13
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/code_operation.py +2 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/datetime_operation.py +2 -1
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/requests_to_curl.py +6 -4
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0/tcex.egg-info}/PKG-INFO +16 -16
- tcex-4.0.12.dev0/tcex.egg-info/requires.txt +15 -0
- tcex-4.0.11.dev5/tcex.egg-info/requires.txt +0 -15
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/LICENSE +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/README.md +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/setup.cfg +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/api.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/tc.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/ti_transform/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/ti_transform/model/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/ti_transform/model/transform_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/ti_transform/ti_predefined_functions.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/ti_transform/transform_builder/v2/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/ti_transform/transform_builder/v2/errors.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/util/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/batch/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/batch/association.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/batch/attribute.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/batch/batch.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/batch/batch_submit.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/batch/group.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/batch/indicator.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/batch/security_label.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/batch/tag.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/datastore/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/datastore/cache.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/datastore/datastore.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/metric/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/metric/metric.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/notification/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/notification/notification.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/filters.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/adversary.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/attack_pattern.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/campaign.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/course_of_action.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/document.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/email.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/event.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/incident.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/intrusion_set.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/malware.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/report.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/signature.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tactic.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/threat.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tool.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/vulnerability.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/address.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/email_address.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/file.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/host.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/url.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/mapping.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/owner.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/security_label.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/tag.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/tags.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/task.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/victim.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/tcex_ti_tc_request.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/threat_intelligence/threat_intelligence.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v2/v2.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/_gen/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/_gen/_options_abc.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/_gen/_options_data_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/_gen/_options_data_object.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/_gen/model/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/_gen/model/_property_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/adversary_assets/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/api_endpoints.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/artifact_types/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/artifact_types/artifact_type_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/artifacts/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/artifacts/artifact_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/attribute_types/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/attribute_types/attribute_type_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/attributes/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/attributes/attribute_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/case_attributes/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/case_attributes/case_attribute_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/case_management/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/case_management/case_management.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/cases/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/file_actions/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/file_actions/file_action_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/file_occurrences/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/filter_abc.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/group_attributes/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/group_attributes/group_attribute_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/groups/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/indicator_attributes/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/indicator_attributes/indicator_attribute_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/indicators/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirement/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirement/ir.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/categories/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/categories/category_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/intel_req_type_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/intel_requirement_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/keyword_sections/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/keyword_sections/keyword_section_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/results/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/results/result_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/subtypes/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/intel_requirements/subtypes/subtype_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/notes/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/notes/note_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/assignee_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/assignee_user_group_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/assignee_user_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/exclusion_lists/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/owner_roles/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/owner_roles/owner_role_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/owners/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/owners/owner_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/security.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/system_roles/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/system_roles/system_role_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/user_groups/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/user_groups/user_group_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/users/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security/users/user_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security_labels/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/security_labels/security_label_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/tags/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/tags/default_naics_tags.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/tags/mitre_tags.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/tags/naics_tags.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/tags/tag_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/tasks/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/tasks/task_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/threat_intelligence/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/threat_intelligence/threat_intelligence.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/tql/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/tql/tql.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/tql/tql_operator.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/tql/tql_type.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/v3.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/v3_types.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/victim_assets/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/victim_assets/victim_asset_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/victim_attributes/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/victim_attributes/victim_attribute_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/victims/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/victims/victim_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/workflow_events/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/workflow_events/workflow_event_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/workflow_templates/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/v3/workflow_templates/workflow_template_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/app.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/app_spec_yml.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/install_json.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/install_json_update.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/install_json_validate.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/job_json.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/model/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/model/job_json_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/model/layout_json_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/model/tcex_json_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/tcex_json.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/config/tcex_json_update.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/decorator/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/decorator/debug.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/decorator/fail_on_output.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/decorator/on_exception.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/decorator/on_success.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/decorator/output.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/key_value_store/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/key_value_store/key_value_abc.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/key_value_store/key_value_api.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/key_value_store/key_value_mock.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/key_value_store/key_value_store.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/key_value_store/redis_client.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/key_value_store/redis_client_ssl.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/playbook/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/playbook/playbook.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/playbook/playbook_delete.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/playbook/playbook_output.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/service/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/service/api_service.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/service/common_service.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/app/token/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/exit/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/exit/error_code.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/exit/exit.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/binary.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/case_management_entity.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/choice.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/datetime.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/exception.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/group_entity.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/indicator_entity.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/integer.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/ip_address.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/sensitive.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/string.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/field_type/tc_entity.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/advanced_request_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/api_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/app_api_service_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/app_external_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/app_feed_api_service_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/app_organization_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/app_playbook_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/app_system_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/app_trigger_service_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/app_webhook_trigger_service_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/batch_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/cal_setting_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/cert_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/common_advanced_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/common_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/create_config_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/logging_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/model_map.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/module_app_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/module_requests_session_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/organization_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/path_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/playbook_common_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/playbook_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/proxy_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/service_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/input/model/smtp_setting_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/logger/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/logger/cache_handler.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/logger/logger.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/logger/rotating_file_handler_custom.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/logger/sensitive_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/logger/trace_logger.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/event.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/exception_thread.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/jmespath_functions_control_mixin.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/jmespath_functions_crypto_mixin.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/jmespath_functions_datetime_mixin.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/jmespath_functions_object_mixin.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/none_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/scoped_property.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/pleb/singleton.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/requests_external/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/requests_external/rate_limit_handler.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/requests_external/requests_external.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/requests_tc/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/requests_tc/auth/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/tcex.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/aes_operation.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/file_operation.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/model/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/model/playbook_variable_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/render/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/render/render.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/render/render_panel.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/render/render_prompt.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/render/render_table.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/string_operation.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/util.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/util/variable.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex.egg-info/SOURCES.txt +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex.egg-info/dependency_links.txt +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tcex
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.12.dev0
|
|
4
4
|
Summary: ThreatConnect Exchange App Framework
|
|
5
5
|
Author-email: ThreatConnect <support@threatconnect.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -20,21 +20,21 @@ 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
|
|
30
|
-
Requires-Dist: pydantic
|
|
31
|
-
Requires-Dist: python-dateutil
|
|
32
|
-
Requires-Dist: pyyaml
|
|
33
|
-
Requires-Dist: redis
|
|
34
|
-
Requires-Dist: requests
|
|
35
|
-
Requires-Dist: rich
|
|
36
|
-
Requires-Dist: semantic-version
|
|
37
|
-
Requires-Dist: wrapt
|
|
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
|
+
Requires-Dist: pydantic~=1.10
|
|
31
|
+
Requires-Dist: python-dateutil~=2.9
|
|
32
|
+
Requires-Dist: pyyaml~=6.0
|
|
33
|
+
Requires-Dist: redis~=8.0
|
|
34
|
+
Requires-Dist: requests~=2.34
|
|
35
|
+
Requires-Dist: rich~=15.0
|
|
36
|
+
Requires-Dist: semantic-version~=2.10
|
|
37
|
+
Requires-Dist: wrapt~=2.2
|
|
38
38
|
Dynamic: license-file
|
|
39
39
|
|
|
40
40
|
# tcex - ThreatConnect Exchange App Framework
|
|
@@ -24,21 +24,21 @@ 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
|
|
34
|
-
"pydantic
|
|
35
|
-
"python-dateutil
|
|
36
|
-
"pyyaml
|
|
37
|
-
"redis
|
|
38
|
-
"requests
|
|
39
|
-
"rich
|
|
40
|
-
"semantic-version
|
|
41
|
-
"wrapt
|
|
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
|
+
"pydantic~=1.10",
|
|
35
|
+
"python-dateutil~=2.9",
|
|
36
|
+
"pyyaml~=6.0",
|
|
37
|
+
"redis~=8.0",
|
|
38
|
+
"requests~=2.34",
|
|
39
|
+
"rich~=15.0",
|
|
40
|
+
"semantic-version~=2.10",
|
|
41
|
+
"wrapt~=2.2",
|
|
42
42
|
]
|
|
43
43
|
|
|
44
44
|
# Short description of the project
|
|
@@ -69,21 +69,21 @@ Source = "https://github.com/ThreatConnect-Inc/tcex"
|
|
|
69
69
|
# Dependency groups for development and testing
|
|
70
70
|
[dependency-groups]
|
|
71
71
|
dev = [
|
|
72
|
-
"bandit>=1.
|
|
73
|
-
"pre-commit>=4.
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"typer>=0.
|
|
72
|
+
"bandit>=1.9",
|
|
73
|
+
"pre-commit>=4.6",
|
|
74
|
+
"pyupgrade>=3.21",
|
|
75
|
+
"ruff>=0.15",
|
|
76
|
+
"ty==0.0.51",
|
|
77
|
+
"typer>=0.26",
|
|
78
78
|
]
|
|
79
79
|
test = [
|
|
80
|
-
"deepdiff>=
|
|
81
|
-
"fakeredis>=2.
|
|
82
|
-
"pytest>=
|
|
83
|
-
"pytest-cov>=
|
|
84
|
-
"pytest-html>=4.
|
|
80
|
+
"deepdiff>=9.1",
|
|
81
|
+
"fakeredis>=2.36",
|
|
82
|
+
"pytest>=9.0",
|
|
83
|
+
"pytest-cov>=7.1",
|
|
84
|
+
"pytest-html>=4.2",
|
|
85
85
|
"pytest-ordering>=0.6",
|
|
86
|
-
"pytest-xdist>=3.
|
|
86
|
+
"pytest-xdist>=3.8",
|
|
87
87
|
]
|
|
88
88
|
|
|
89
89
|
# Dynamic configuration for setuptools
|
|
@@ -108,7 +108,7 @@ commit = false
|
|
|
108
108
|
# Additional arguments to pass to the git commit command
|
|
109
109
|
commit_args = "--no-verify"
|
|
110
110
|
# The current version of the project
|
|
111
|
-
current_version = "4.0.
|
|
111
|
+
current_version = "4.0.12-dev0"
|
|
112
112
|
# The commit message template used when committing version bumps
|
|
113
113
|
message = "Version updated from {current_version} to {new_version}"
|
|
114
114
|
# Regular expression for parsing version strings
|
|
@@ -147,7 +147,7 @@ filename = "tcex/__metadata__.py"
|
|
|
147
147
|
[tool.codespell]
|
|
148
148
|
# https://streetsidesoftware.com/vscode-spell-checker/
|
|
149
149
|
ignore-words-list = "ore"
|
|
150
|
-
skip = "*.cspell*,*.history,*local,uv.lock"
|
|
150
|
+
skip = "*.cspell*,*.history,*local,uv.lock,*enforce_us_spelling.sh"
|
|
151
151
|
|
|
152
152
|
# Configuration for isort import sorter
|
|
153
153
|
[tool.isort]
|
|
@@ -162,9 +162,13 @@ known_third_party = ""
|
|
|
162
162
|
line_length = 100
|
|
163
163
|
profile = "black"
|
|
164
164
|
|
|
165
|
-
# Configuration for
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
# Configuration for ty type checker
|
|
166
|
+
# https://docs.astral.sh/ty/reference/configuration/
|
|
167
|
+
[tool.ty.environment]
|
|
168
|
+
python-platform = "linux"
|
|
169
|
+
python-version = "3.11"
|
|
170
|
+
|
|
171
|
+
[tool.ty.src]
|
|
168
172
|
exclude = [
|
|
169
173
|
"**/.history",
|
|
170
174
|
"**/__pycache__",
|
|
@@ -172,11 +176,6 @@ exclude = [
|
|
|
172
176
|
"tcex/api/tc/v2",
|
|
173
177
|
"tests",
|
|
174
178
|
]
|
|
175
|
-
pythonPlatform = "Linux"
|
|
176
|
-
pythonVersion = "3.11"
|
|
177
|
-
reportIncompatibleMethodOverride = false
|
|
178
|
-
reportIncompatibleVariableOverride = false
|
|
179
|
-
reportPrivateImportUsage = false
|
|
180
179
|
|
|
181
180
|
# Configuration for pytest test runner
|
|
182
181
|
[tool.pytest.ini_options]
|
|
@@ -238,6 +237,7 @@ ignore = [
|
|
|
238
237
|
"PGH004", # Use specific rule codes when using `ruff: noqa`
|
|
239
238
|
"PLR0912", # Too many branches
|
|
240
239
|
"PLR0913", # Too many arguments in function definition
|
|
240
|
+
"PLR0917", # Too many positional arguments in function definition
|
|
241
241
|
"PLR0915", # Too many statements
|
|
242
242
|
"PT006", # Wrong name(s) type in ..., expected ...
|
|
243
243
|
"TC001", # Move application import ... into a type-checking block
|
|
@@ -155,7 +155,7 @@ class TiTransform(TransformABC):
|
|
|
155
155
|
{'summary': summary, 'indicatorType': indicator_type}
|
|
156
156
|
)
|
|
157
157
|
|
|
158
|
-
def add_associated_group(self,
|
|
158
|
+
def add_associated_group(self, group_xid: str):
|
|
159
159
|
"""Add an associated group.
|
|
160
160
|
|
|
161
161
|
{
|
|
@@ -166,33 +166,33 @@ class TiTransform(TransformABC):
|
|
|
166
166
|
if not self.separate_batch_associations:
|
|
167
167
|
# process type specific data
|
|
168
168
|
if isinstance(self.transform, GroupTransformModel):
|
|
169
|
-
self.transformed_item.setdefault('associatedGroupXid', []).append(
|
|
169
|
+
self.transformed_item.setdefault('associatedGroupXid', []).append(group_xid)
|
|
170
170
|
elif isinstance(self.transform, IndicatorTransformModel):
|
|
171
|
-
associated_group = {'groupXid':
|
|
171
|
+
associated_group = {'groupXid': group_xid}
|
|
172
172
|
self.transformed_item.setdefault('associatedGroups', []).append(associated_group)
|
|
173
173
|
elif isinstance(self.transform, GroupTransformModel):
|
|
174
174
|
self.transformed_item.setdefault('association', []).append(
|
|
175
175
|
{
|
|
176
|
-
'ref_1':
|
|
176
|
+
'ref_1': group_xid,
|
|
177
177
|
'ref_2': self.transformed_item['xid'],
|
|
178
178
|
}
|
|
179
179
|
)
|
|
180
180
|
self.log.trace(
|
|
181
181
|
'Added associated group with xid: %s to %s',
|
|
182
|
-
|
|
182
|
+
group_xid,
|
|
183
183
|
self.transformed_item['xid'],
|
|
184
184
|
)
|
|
185
185
|
elif isinstance(self.transform, IndicatorTransformModel):
|
|
186
186
|
self.transformed_item.setdefault('association', []).append(
|
|
187
187
|
{
|
|
188
|
-
'ref_1':
|
|
188
|
+
'ref_1': group_xid,
|
|
189
189
|
'ref_2': self.transformed_item['summary'],
|
|
190
190
|
'type_2': self.transformed_item['type'],
|
|
191
191
|
}
|
|
192
192
|
)
|
|
193
193
|
self.log.trace(
|
|
194
194
|
'Added associated group with xid: %s to %s',
|
|
195
|
-
|
|
195
|
+
group_xid,
|
|
196
196
|
self.transformed_item['summary'],
|
|
197
197
|
)
|
|
198
198
|
|
|
@@ -265,7 +265,7 @@ class TiTransform(TransformABC):
|
|
|
265
265
|
"""
|
|
266
266
|
self.adhoc_indicators.append(indicator_data)
|
|
267
267
|
|
|
268
|
-
def add_metadata(self, key: str, value: str):
|
|
268
|
+
def add_metadata(self, key: str, value: str | int):
|
|
269
269
|
"""Add name to the transformed item."""
|
|
270
270
|
if all([key, value]):
|
|
271
271
|
self.transformed_item[key] = value
|
|
@@ -322,7 +322,7 @@ class TransformABC(ABC):
|
|
|
322
322
|
bool,
|
|
323
323
|
[v for v in self._process_metadata_transform_model(association.value) if v],
|
|
324
324
|
):
|
|
325
|
-
self.add_associated_group(value)
|
|
325
|
+
self.add_associated_group(value)
|
|
326
326
|
except Exception as ex:
|
|
327
327
|
ex_msg = f'Associated Group [{i}]'
|
|
328
328
|
raise TransformException(ex_msg, ex, context=association.dict()) from ex
|
|
@@ -600,7 +600,7 @@ class TransformABC(ABC):
|
|
|
600
600
|
for i, tag in enumerate(tags or [], 1):
|
|
601
601
|
try:
|
|
602
602
|
for value in filter(bool, self._process_metadata_transform_model(tag.value)):
|
|
603
|
-
self.add_tag(name=value)
|
|
603
|
+
self.add_tag(name=value)
|
|
604
604
|
except Exception as ex:
|
|
605
605
|
ex_msg = f'Tags [{i}]'
|
|
606
606
|
raise TransformException(ex_msg, ex, context=tag.dict()) from ex
|
|
@@ -681,7 +681,7 @@ class TransformABC(ABC):
|
|
|
681
681
|
|
|
682
682
|
def _transform_value_callable(
|
|
683
683
|
self, value: dict | list | str, c: Callable | PredefinedFunctionModel, kwargs=None
|
|
684
|
-
) -> str |
|
|
684
|
+
) -> str | list[str] | None:
|
|
685
685
|
"""Transform values in the TI data."""
|
|
686
686
|
# find signature of method and call with correct args
|
|
687
687
|
if isinstance(c, PredefinedFunctionModel):
|
{tcex-4.0.11.dev5 → tcex-4.0.12.dev0}/tcex/api/tc/ti_transform/transform_builder/__init__.py
RENAMED
|
@@ -19,7 +19,7 @@ from tcex.api.tc.ti_transform.transform_builder.v2.load_transform import LoadTra
|
|
|
19
19
|
def load(
|
|
20
20
|
transform: dict,
|
|
21
21
|
processing_functions: 'ProcessingFunctions',
|
|
22
|
-
) -> IndicatorTransformModel | GroupTransformModel:
|
|
22
|
+
) -> IndicatorTransformModel | GroupTransformModel:
|
|
23
23
|
"""Convert a transform from Transform Builder to one of the tcex transform models."""
|
|
24
24
|
|
|
25
25
|
match transform:
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
import json
|
|
6
6
|
import logging
|
|
7
7
|
from inspect import signature
|
|
8
|
-
from typing import Literal
|
|
8
|
+
from typing import Any, Literal
|
|
9
9
|
|
|
10
10
|
# first-party
|
|
11
11
|
from tcex.api.tc.ti_transform.model.transform_model import (
|
|
12
|
+
AssociatedIndicatorFromGroupTransform,
|
|
13
|
+
AssociatedIndicatorFromIndicatorTransform,
|
|
14
|
+
AttributeTransformModel,
|
|
15
|
+
FileOccurrenceTransformModel,
|
|
12
16
|
GroupTransformModel,
|
|
13
17
|
IndicatorTransformModel,
|
|
14
18
|
)
|
|
@@ -43,15 +47,17 @@ class LoadTransform:
|
|
|
43
47
|
# transformSchemaVersion = metadata.get('transformSchemaVersion', '1')
|
|
44
48
|
match ti_type:
|
|
45
49
|
case 'group':
|
|
46
|
-
return GroupTransformModel(
|
|
50
|
+
return GroupTransformModel(
|
|
51
|
+
**self._transform_data(self._normalize(mapping_json), ti_type)
|
|
52
|
+
)
|
|
47
53
|
case 'indicator':
|
|
48
54
|
return IndicatorTransformModel(
|
|
49
|
-
**self._transform_data(self._normalize(mapping_json))
|
|
55
|
+
**self._transform_data(self._normalize(mapping_json), ti_type)
|
|
50
56
|
)
|
|
51
57
|
|
|
52
|
-
def _normalize(self, data: dict) -> dict:
|
|
58
|
+
def _normalize(self, data: dict) -> dict[str, Any]:
|
|
53
59
|
"""Normalize the transform data."""
|
|
54
|
-
normalized = {}
|
|
60
|
+
normalized: dict[str, Any] = {}
|
|
55
61
|
for key, value in data.items():
|
|
56
62
|
normalized_key = self.util.camel_to_snake(key)
|
|
57
63
|
if isinstance(value, dict):
|
|
@@ -65,9 +71,9 @@ class LoadTransform:
|
|
|
65
71
|
|
|
66
72
|
return normalized
|
|
67
73
|
|
|
68
|
-
def _transform_data(self, body: dict) -> dict:
|
|
74
|
+
def _transform_data(self, body: dict[str, Any], ti_type: str) -> dict:
|
|
69
75
|
"""Transform the data."""
|
|
70
|
-
fields_copy = {**body}
|
|
76
|
+
fields_copy: dict[str, Any] = {**body}
|
|
71
77
|
fields_copy.pop('associated_indicators', None)
|
|
72
78
|
|
|
73
79
|
transform_data = {}
|
|
@@ -113,6 +119,7 @@ class LoadTransform:
|
|
|
113
119
|
af
|
|
114
120
|
in (
|
|
115
121
|
'type',
|
|
122
|
+
'indicator_type',
|
|
116
123
|
'value',
|
|
117
124
|
'summary',
|
|
118
125
|
'association_type',
|
|
@@ -139,6 +146,17 @@ class LoadTransform:
|
|
|
139
146
|
|
|
140
147
|
self._translate_processing_function(field[af])
|
|
141
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
|
+
|
|
142
160
|
transform_data.setdefault(field_key, []).append(field)
|
|
143
161
|
except Exception:
|
|
144
162
|
# best effort to continue processing other items
|
|
@@ -247,7 +265,7 @@ class LoadTransform:
|
|
|
247
265
|
"""Translate a function definition in transform builder/API format to an actual function."""
|
|
248
266
|
# convert transform function names to callables
|
|
249
267
|
transforms_with_callable = []
|
|
250
|
-
for function in mapping.get('transform'
|
|
268
|
+
for function in mapping.get('transform') or []:
|
|
251
269
|
transforms_with_callable.append(self._function_name_to_callable(function))
|
|
252
270
|
if transforms_with_callable:
|
|
253
271
|
mapping['transform'] = transforms_with_callable
|
|
@@ -197,7 +197,7 @@ class ThreatIntelUtil:
|
|
|
197
197
|
"""
|
|
198
198
|
return list(self.indicator_types_data.keys())
|
|
199
199
|
|
|
200
|
-
def resolve_variables(self, inputs: list[str]) -> list[str]:
|
|
200
|
+
def resolve_variables(self, inputs: list[str]) -> list[str | None]:
|
|
201
201
|
"""Resolve all of the provided inputs if appropriate.
|
|
202
202
|
|
|
203
203
|
Args:
|
|
@@ -182,9 +182,16 @@ class BatchCleaner:
|
|
|
182
182
|
if fname:
|
|
183
183
|
keys.add(f'filename:{fname.lower()}')
|
|
184
184
|
return keys
|
|
185
|
+
|
|
185
186
|
if self.deduplicate_indicators:
|
|
187
|
+
# some IOC values are not case-sensitive, handle those separately.
|
|
188
|
+
if item.get('type') in {'ASN', 'CIDR', 'Hashtag', 'Host'}:
|
|
189
|
+
summary = item.get('summary')
|
|
190
|
+
return {summary.casefold()} if summary else set()
|
|
191
|
+
|
|
186
192
|
summary = item.get('summary')
|
|
187
193
|
return {summary} if summary else set()
|
|
194
|
+
|
|
188
195
|
return set()
|
|
189
196
|
|
|
190
197
|
@staticmethod
|
|
@@ -248,7 +255,7 @@ class BatchCleaner:
|
|
|
248
255
|
if not config:
|
|
249
256
|
return attribute_value
|
|
250
257
|
|
|
251
|
-
max_length = config.get('
|
|
258
|
+
max_length = config.get('max_size')
|
|
252
259
|
if not max_length:
|
|
253
260
|
return attribute_value
|
|
254
261
|
|
|
@@ -277,7 +284,7 @@ class BatchCleaner:
|
|
|
277
284
|
item: A single group or indicator dictionary.
|
|
278
285
|
attribute_types: Attribute type config dict keyed by name.
|
|
279
286
|
deduplicate: Whether to remove duplicate attributes.
|
|
280
|
-
truncate: Whether to truncate attributes based on
|
|
287
|
+
truncate: Whether to truncate attributes based on max_size.
|
|
281
288
|
truncated_types: A shared set tracking attribute types that have already
|
|
282
289
|
been logged as truncated, to avoid duplicate log warnings. If None,
|
|
283
290
|
warnings are logged for every truncation.
|
|
@@ -443,7 +450,7 @@ class BatchCleaner:
|
|
|
443
450
|
Returns:
|
|
444
451
|
A set of individual hash strings with whitespace stripped.
|
|
445
452
|
"""
|
|
446
|
-
return {h.strip() for h in summary.split(' : ') if h.strip()}
|
|
453
|
+
return {h.strip().casefold() for h in summary.split(' : ') if h.strip()}
|
|
447
454
|
|
|
448
455
|
@cached_property
|
|
449
456
|
def naics_tags(self) -> NAICSTags:
|
|
@@ -879,6 +879,36 @@ class BatchWriter:
|
|
|
879
879
|
identifier = hashlib.sha256(identifier.encode('utf-8')).hexdigest()
|
|
880
880
|
return hashlib.sha256(identifier.encode('utf-8')).hexdigest()
|
|
881
881
|
|
|
882
|
+
@staticmethod
|
|
883
|
+
def generate_xid2(identifier: list | str | None = None) -> str:
|
|
884
|
+
"""Generate a reproducible xid using UUID5 from the provided identifier(s).
|
|
885
|
+
|
|
886
|
+
Use this method when the raw identifier value cannot be used directly as an xid — for
|
|
887
|
+
example, when the same numeric or short id could appear across multiple object types in
|
|
888
|
+
the same batch (e.g., two different groups both having an id of ``123``), or when the
|
|
889
|
+
source system uses integer/short-string ids that are not globally unique on their own.
|
|
890
|
+
|
|
891
|
+
Common use cases:
|
|
892
|
+
- Source ids that are numeric or otherwise short (e.g., ``123``, ``"abc"``).
|
|
893
|
+
- Ids that are unique within a single type but may collide across types in the same batch.
|
|
894
|
+
- Composite keys built from multiple fields (pass as a list to combine them).
|
|
895
|
+
- Any situation where the raw id must be namespaced or scoped to avoid collisions.
|
|
896
|
+
|
|
897
|
+
.. Note:: If the incoming identifier is already a UUID (v4 or otherwise), this method
|
|
898
|
+
should generally **not** be used — pass the UUID directly as the xid instead,
|
|
899
|
+
as wrapping it in UUID5 provides no collision-avoidance benefit and breaks
|
|
900
|
+
the 1-to-1 mapping between source id and xid.
|
|
901
|
+
|
|
902
|
+
Args:
|
|
903
|
+
identifier: Value(s) to be used to make a unique and reproducible xid.
|
|
904
|
+
|
|
905
|
+
"""
|
|
906
|
+
if identifier is None:
|
|
907
|
+
identifier = str(uuid.uuid4())
|
|
908
|
+
elif isinstance(identifier, list):
|
|
909
|
+
identifier = '-'.join([str(i) for i in identifier])
|
|
910
|
+
return str(uuid.uuid5(uuid.NAMESPACE_X500, identifier))
|
|
911
|
+
|
|
882
912
|
def group(self, group_type: str, name: str, **kwargs) -> GroupType | dict:
|
|
883
913
|
"""Add Group data to Batch.
|
|
884
914
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# standard library
|
|
4
4
|
import os
|
|
5
|
-
from enum import
|
|
5
|
+
from enum import StrEnum
|
|
6
6
|
from pathlib import Path
|
|
7
7
|
|
|
8
8
|
# third-party
|
|
@@ -197,7 +197,7 @@ def gen_object(type_: SnakeString):
|
|
|
197
197
|
#
|
|
198
198
|
|
|
199
199
|
|
|
200
|
-
class ObjectTypes(
|
|
200
|
+
class ObjectTypes(StrEnum):
|
|
201
201
|
"""Object Types"""
|
|
202
202
|
|
|
203
203
|
# shared
|
|
@@ -239,7 +239,7 @@ class ObjectTypes(str, Enum):
|
|
|
239
239
|
victim_attributes = 'victim_attributes'
|
|
240
240
|
|
|
241
241
|
|
|
242
|
-
class GenTypes(
|
|
242
|
+
class GenTypes(StrEnum):
|
|
243
243
|
"""Object Types"""
|
|
244
244
|
|
|
245
245
|
all = 'all'
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import os
|
|
5
5
|
from abc import ABC
|
|
6
6
|
from textwrap import TextWrapper
|
|
7
|
+
from typing import Any
|
|
7
8
|
|
|
8
9
|
# first-party
|
|
9
10
|
from tcex.util import Util
|
|
@@ -26,7 +27,7 @@ class GenerateABC(ABC): # noqa: B024
|
|
|
26
27
|
self.i4 = ' ' * 16 # indent level 4
|
|
27
28
|
self.i5 = ' ' * 20 # indent level 5
|
|
28
29
|
self.messages = []
|
|
29
|
-
self.requirements = {}
|
|
30
|
+
self.requirements: dict[str, list[Any]] = {}
|
|
30
31
|
self.util = Util()
|
|
31
32
|
|
|
32
33
|
@staticmethod
|
|
@@ -116,7 +117,7 @@ class GenerateABC(ABC): # noqa: B024
|
|
|
116
117
|
_imports = [] # temp store for imports so they can be sorted
|
|
117
118
|
for lib in libs:
|
|
118
119
|
if isinstance(lib, dict):
|
|
119
|
-
imports = ', '.join(sorted(lib.get('imports')))
|
|
120
|
+
imports = ', '.join(sorted(lib.get('imports')))
|
|
120
121
|
_imports.append(f'{indent}from {lib.get("module")} import {imports}{comment}')
|
|
121
122
|
elif isinstance(lib, str):
|
|
122
123
|
_imports.append(f'{indent}{lib}{comment}')
|
|
@@ -126,7 +127,7 @@ class GenerateABC(ABC): # noqa: B024
|
|
|
126
127
|
_libs.append('') # add newline
|
|
127
128
|
|
|
128
129
|
# This is the last part of the requirements generated.
|
|
129
|
-
return '\n'.join(_libs)
|
|
130
|
+
return '\n'.join(_libs)
|
|
130
131
|
|
|
131
132
|
def tap(self, type_: str):
|
|
132
133
|
"""Return the TcEx Api Path."""
|
|
@@ -29,7 +29,7 @@ class GenerateArgsABC(GenerateABC, ABC):
|
|
|
29
29
|
prop_type = self._prop_type_map(prop_data.get('type')) # type: ignore
|
|
30
30
|
elif 'allOf' in prop_data and prop_data.get('allOf'):
|
|
31
31
|
ref: str = prop_data.get('allOf')[0].get('$ref') # type: ignore
|
|
32
|
-
prop_type = ref.
|
|
32
|
+
prop_type = ref.rsplit('/', maxsplit=1)[-1].replace('Model', '')
|
|
33
33
|
elif 'items' in prop_data and prop_data.get('items'):
|
|
34
34
|
ref: str = prop_data.get('items', {}).get('$ref') # type: ignore
|
|
35
35
|
prop_type = ref.split('/')[-1].replace('Model', '')
|
|
@@ -84,8 +84,11 @@ class GenerateFilterABC(GenerateABC, ABC):
|
|
|
84
84
|
)
|
|
85
85
|
_code.extend(
|
|
86
86
|
[
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
(
|
|
88
|
+
f"""{self.i2}{filter_data.keyword.snake_case()} = """
|
|
89
|
+
f"""self.util.any_to_datetime"""
|
|
90
|
+
f"""({filter_data.keyword.snake_case()}).strftime('%Y-%m-%d %H:%M:%S')"""
|
|
91
|
+
)
|
|
89
92
|
]
|
|
90
93
|
)
|
|
91
94
|
|
|
@@ -96,10 +99,12 @@ class GenerateFilterABC(GenerateABC, ABC):
|
|
|
96
99
|
f"""{self.i2}if isinstance({filter_data.keyword.snake_case()}, list) """
|
|
97
100
|
"""and operator not in self.list_types:"""
|
|
98
101
|
),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
(
|
|
103
|
+
f"""{self.i3}ex_msg = ("""
|
|
104
|
+
f"""{self.i5}'Operator must be CONTAINS, NOT_CONTAINS, IN\'"""
|
|
105
|
+
f"""{self.i5}'or NOT_IN when filtering on a list of values.\'"""
|
|
106
|
+
f"""{self.i4})"""
|
|
107
|
+
),
|
|
103
108
|
f"""{self.i3}raise RuntimeError(ex_msg)""",
|
|
104
109
|
'',
|
|
105
110
|
]
|
|
@@ -78,14 +78,14 @@ class GenerateModelABC(GenerateABC, ABC):
|
|
|
78
78
|
f'{self.i1}@classmethod',
|
|
79
79
|
f'{self.i1}def _validate_{type_.snake_case()}(cls, v):',
|
|
80
80
|
f'{self.i2}if not v:',
|
|
81
|
-
f'{self.i3}return {typing_type}()
|
|
81
|
+
f'{self.i3}return {typing_type}()',
|
|
82
82
|
f'{self.i2}return v',
|
|
83
83
|
'',
|
|
84
84
|
]
|
|
85
85
|
)
|
|
86
86
|
|
|
87
87
|
# TODO: [low] bsummers - research combining this method with parent method
|
|
88
|
-
def
|
|
88
|
+
def _format_model_description(self, description: str, length: int) -> str:
|
|
89
89
|
"""Format description for field."""
|
|
90
90
|
# fix descriptions coming from core API endpoint
|
|
91
91
|
if description[-1] not in ('.', '?', '!'):
|
|
@@ -333,8 +333,6 @@ class GenerateModelABC(GenerateABC, ABC):
|
|
|
333
333
|
|
|
334
334
|
# update model
|
|
335
335
|
comment = ''
|
|
336
|
-
if prop.extra.alias.snake_case() in ['id']:
|
|
337
|
-
comment = ' # type: ignore'
|
|
338
336
|
_model.append(
|
|
339
337
|
f"""{self.i1}{prop.extra.alias.snake_case()}: """
|
|
340
338
|
f"""{prop.extra.typing_type} = Field({comment}"""
|
|
@@ -363,7 +361,7 @@ class GenerateModelABC(GenerateABC, ABC):
|
|
|
363
361
|
|
|
364
362
|
# description - Use the TC provided description
|
|
365
363
|
# if available, otherwise use a default format.
|
|
366
|
-
field_description = self.
|
|
364
|
+
field_description = self._format_model_description(
|
|
367
365
|
(
|
|
368
366
|
prop.description
|
|
369
367
|
or (
|