open-threat-model 7.9.0__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.
- open_threat_model-7.9.0/LICENSE +21 -0
- open_threat_model-7.9.0/PKG-INFO +349 -0
- open_threat_model-7.9.0/README.md +311 -0
- open_threat_model-7.9.0/apps/api/otm_api/__init__.py +1 -0
- open_threat_model-7.9.0/apps/api/otm_api/api_error_messages.py +51 -0
- open_threat_model-7.9.0/apps/api/otm_api/cors_settings.py +53 -0
- open_threat_model-7.9.0/apps/api/otm_api/domain/__init__.py +1 -0
- open_threat_model-7.9.0/apps/api/otm_api/domain/export_formats.py +12 -0
- open_threat_model-7.9.0/apps/api/otm_api/error_locale.py +57 -0
- open_threat_model-7.9.0/apps/api/otm_api/errors.py +91 -0
- open_threat_model-7.9.0/apps/api/otm_api/main.py +109 -0
- open_threat_model-7.9.0/apps/api/otm_api/middleware_api_key.py +58 -0
- open_threat_model-7.9.0/apps/api/otm_api/observability.py +172 -0
- open_threat_model-7.9.0/apps/api/otm_api/perimeter_settings.py +43 -0
- open_threat_model-7.9.0/apps/api/otm_api/routers/__init__.py +1 -0
- open_threat_model-7.9.0/apps/api/otm_api/routers/_errors.py +104 -0
- open_threat_model-7.9.0/apps/api/otm_api/routers/analyses.py +28 -0
- open_threat_model-7.9.0/apps/api/otm_api/routers/exports.py +49 -0
- open_threat_model-7.9.0/apps/api/otm_api/routers/imports.py +95 -0
- open_threat_model-7.9.0/apps/api/otm_api/routers/models.py +166 -0
- open_threat_model-7.9.0/apps/api/otm_api/routers/remediation.py +76 -0
- open_threat_model-7.9.0/apps/api/otm_api/routers/reports_premium.py +104 -0
- open_threat_model-7.9.0/apps/api/otm_api/routers/system.py +14 -0
- open_threat_model-7.9.0/apps/api/otm_api/routers/templates.py +84 -0
- open_threat_model-7.9.0/apps/api/otm_api/schemas/__init__.py +1 -0
- open_threat_model-7.9.0/apps/api/otm_api/schemas/bodies.py +214 -0
- open_threat_model-7.9.0/apps/api/otm_api/services/__init__.py +1 -0
- open_threat_model-7.9.0/apps/api/otm_api/services/analysis.py +23 -0
- open_threat_model-7.9.0/apps/api/otm_api/services/compare.py +48 -0
- open_threat_model-7.9.0/apps/api/otm_api/services/documents.py +43 -0
- open_threat_model-7.9.0/apps/api/otm_api/services/exports.py +62 -0
- open_threat_model-7.9.0/apps/api/otm_api/services/imports.py +26 -0
- open_threat_model-7.9.0/apps/api/otm_api/services/remediation.py +41 -0
- open_threat_model-7.9.0/apps/api/otm_api/services/reports_premium.py +52 -0
- open_threat_model-7.9.0/apps/api/otm_api/services/templates_catalog.py +70 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/__init__.py +1 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/__init__.py +1 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/analysis_io.py +59 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/analyze_service.py +55 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/backlog_service.py +83 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/diagram_service.py +19 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/diff_analysis_service.py +62 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/diff_service.py +209 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/explain_service.py +62 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/export_service.py +30 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/import_service.py +269 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/init_service.py +65 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/precheck_service.py +34 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/recommend_service.py +19 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/report_service.py +99 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/templates_service.py +54 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/application/validate_service.py +18 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/cli.py +69 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/__init__.py +1 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/analyze_cmd.py +166 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/backlog_cmd.py +68 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/bootstrap.py +11 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/diagram_cmd.py +38 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/diff_analysis_cmd.py +78 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/diff_cmd.py +129 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/explain_cmd.py +51 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/export_cmd.py +43 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/handle_errors.py +19 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/import_cmd.py +192 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/init_cmd.py +78 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/packs_cmd.py +17 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/precheck_cmd.py +54 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/recommend_cmd.py +33 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/report_cmd.py +122 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/root_cmd.py +27 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/templates_cmd.py +64 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/commands/validate_cmd.py +65 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/io_util.py +33 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/main.py +27 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/reporting.py +20 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/shared/__init__.py +6 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/shared/document_loader.py +53 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/shared/emit.py +40 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/shared/enums.py +33 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/shared/errors.py +30 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/shared/gate.py +127 -0
- open_threat_model-7.9.0/apps/cli/otm_cli/shared/version_util.py +12 -0
- open_threat_model-7.9.0/open_threat_model.egg-info/PKG-INFO +349 -0
- open_threat_model-7.9.0/open_threat_model.egg-info/SOURCES.txt +438 -0
- open_threat_model-7.9.0/open_threat_model.egg-info/dependency_links.txt +1 -0
- open_threat_model-7.9.0/open_threat_model.egg-info/entry_points.txt +2 -0
- open_threat_model-7.9.0/open_threat_model.egg-info/requires.txt +32 -0
- open_threat_model-7.9.0/open_threat_model.egg-info/top_level.txt +11 -0
- open_threat_model-7.9.0/packages/artifact-import/otm_artifact_import/__init__.py +26 -0
- open_threat_model-7.9.0/packages/artifact-import/otm_artifact_import/_yamljson.py +34 -0
- open_threat_model-7.9.0/packages/artifact-import/otm_artifact_import/ai_import_corpus.py +256 -0
- open_threat_model-7.9.0/packages/artifact-import/otm_artifact_import/builders.py +158 -0
- open_threat_model-7.9.0/packages/artifact-import/otm_artifact_import/helm_import.py +147 -0
- open_threat_model-7.9.0/packages/artifact-import/otm_artifact_import/inference_explanations.py +35 -0
- open_threat_model-7.9.0/packages/artifact-import/otm_artifact_import/k8s_import.py +446 -0
- open_threat_model-7.9.0/packages/artifact-import/otm_artifact_import/openapi_import.py +337 -0
- open_threat_model-7.9.0/packages/artifact-import/otm_artifact_import/otm_native.py +262 -0
- open_threat_model-7.9.0/packages/artifact-import/otm_artifact_import/repo_ast_optional.py +71 -0
- open_threat_model-7.9.0/packages/artifact-import/otm_artifact_import/repo_scan.py +441 -0
- open_threat_model-7.9.0/packages/artifact-import/otm_artifact_import/terraform_import.py +232 -0
- open_threat_model-7.9.0/packages/artifact-import/otm_artifact_import/types.py +48 -0
- open_threat_model-7.9.0/packages/core-schema/otm_core_schema/__init__.py +114 -0
- open_threat_model-7.9.0/packages/core-schema/otm_core_schema/diff.py +217 -0
- open_threat_model-7.9.0/packages/core-schema/otm_core_schema/diff_insights.py +153 -0
- open_threat_model-7.9.0/packages/core-schema/otm_core_schema/document.py +560 -0
- open_threat_model-7.9.0/packages/core-schema/otm_core_schema/entity_id.py +24 -0
- open_threat_model-7.9.0/packages/core-schema/otm_core_schema/enums.py +172 -0
- open_threat_model-7.9.0/packages/core-schema/otm_core_schema/io.py +41 -0
- open_threat_model-7.9.0/packages/core-schema/otm_core_schema/methodology_fit_matrix.py +151 -0
- open_threat_model-7.9.0/packages/core-schema/otm_core_schema/model_quality_precheck.py +309 -0
- open_threat_model-7.9.0/packages/core-schema/otm_core_schema/py.typed +1 -0
- open_threat_model-7.9.0/packages/core-schema/otm_core_schema/starters.py +44 -0
- open_threat_model-7.9.0/packages/core-schema/otm_core_schema/version.py +5 -0
- open_threat_model-7.9.0/packages/diagram-engine/otm_diagram_engine/__init__.py +7 -0
- open_threat_model-7.9.0/packages/diagram-engine/otm_diagram_engine/mermaid.py +7 -0
- open_threat_model-7.9.0/packages/explainability/otm_explainability/__init__.py +21 -0
- open_threat_model-7.9.0/packages/explainability/otm_explainability/ids.py +7 -0
- open_threat_model-7.9.0/packages/explainability/otm_explainability/records.py +80 -0
- open_threat_model-7.9.0/packages/exporters/otm_exporters/__init__.py +64 -0
- open_threat_model-7.9.0/packages/exporters/otm_exporters/analysis_json.py +22 -0
- open_threat_model-7.9.0/packages/exporters/otm_exporters/analysis_markdown.py +685 -0
- open_threat_model-7.9.0/packages/exporters/otm_exporters/analysis_markdown_i18n.py +314 -0
- open_threat_model-7.9.0/packages/exporters/otm_exporters/analysis_sarif.py +121 -0
- open_threat_model-7.9.0/packages/exporters/otm_exporters/bundle_json.py +55 -0
- open_threat_model-7.9.0/packages/exporters/otm_exporters/comparison_markdown.py +181 -0
- open_threat_model-7.9.0/packages/exporters/otm_exporters/document_json.py +25 -0
- open_threat_model-7.9.0/packages/exporters/otm_exporters/document_markdown.py +129 -0
- open_threat_model-7.9.0/packages/exporters/otm_exporters/document_markdown_i18n.py +68 -0
- open_threat_model-7.9.0/packages/exporters/otm_exporters/export_locale.py +40 -0
- open_threat_model-7.9.0/packages/exporters/otm_exporters/mermaid_flowchart.py +49 -0
- open_threat_model-7.9.0/packages/exporters/otm_exporters/protocols.py +21 -0
- open_threat_model-7.9.0/packages/exporters/otm_exporters/remediation_json.py +15 -0
- open_threat_model-7.9.0/packages/exporters/otm_exporters/remediation_markdown.py +130 -0
- open_threat_model-7.9.0/packages/framework-mappings/otm_framework_mappings/__init__.py +30 -0
- open_threat_model-7.9.0/packages/framework-mappings/otm_framework_mappings/ai_heuristic_registry.py +76 -0
- open_threat_model-7.9.0/packages/framework-mappings/otm_framework_mappings/catalog.py +38 -0
- open_threat_model-7.9.0/packages/framework-mappings/otm_framework_mappings/data/ai_heuristic_framework_map.yaml +113 -0
- open_threat_model-7.9.0/packages/framework-mappings/otm_framework_mappings/data/stride_framework_map.yaml +175 -0
- open_threat_model-7.9.0/packages/framework-mappings/otm_framework_mappings/models.py +37 -0
- open_threat_model-7.9.0/packages/framework-mappings/otm_framework_mappings/registry.py +86 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/__init__.py +23 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/catalog/__init__.py +5 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/catalog/registry_data.py +2161 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/packs/cloud_native.yaml +23 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/packs/finance.yaml +25 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/packs/saas.yaml +23 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/packs/telecom.yaml +23 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/packs/transport.yaml +23 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/admin-portal.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/admin-portal.otm.yaml +139 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/ai-agent-tool-use.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/ai-agent-tool-use.otm.yaml +126 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/ai-inference-pipeline.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/ai-inference-pipeline.otm.yaml +138 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/ai-llm-chat.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/ai-llm-chat.otm.yaml +122 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/ai-rag-enterprise.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/ai-rag-enterprise.otm.yaml +153 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/ai-sensitive-copilot.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/ai-sensitive-copilot.otm.yaml +127 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/api-backend.meta.json +21 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/api-backend.otm.yaml +129 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/api-public.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/api-public.otm.yaml +130 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/batch-scheduled-jobs.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/batch-scheduled-jobs.otm.yaml +123 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/cloud-native-full.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/cloud-native-full.otm.yaml +161 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/cloud-native.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/cloud-native.otm.yaml +130 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/container-platform.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/container-platform.otm.yaml +141 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/data-pipeline-etl.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/data-pipeline-etl.otm.yaml +125 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/file-upload-processing.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/file-upload-processing.otm.yaml +145 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/identity-sso.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/identity-sso.otm.yaml +127 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/industry-ecommerce.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/industry-ecommerce.otm.yaml +138 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/industry-finance-core.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/industry-finance-core.otm.yaml +153 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/industry-healthcare-clinical.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/industry-healthcare-clinical.otm.yaml +138 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/industry-telecom-oss-bss.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/industry-telecom-oss-bss.otm.yaml +138 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/industry-transport-logistics.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/industry-transport-logistics.otm.yaml +136 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/microservices-messaging.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/microservices-messaging.otm.yaml +164 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/mobile-backend.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/mobile-backend.otm.yaml +143 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/objective-ai-llm.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/objective-ai-llm.otm.yaml +122 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/objective-high-availability.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/objective-high-availability.otm.yaml +149 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/objective-internet-facing.meta.json +19 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/objective-internet-facing.otm.yaml +108 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/objective-privileged-admin.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/objective-privileged-admin.otm.yaml +111 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/objective-sensitive-data.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/objective-sensitive-data.otm.yaml +64 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/objective-third-party-heavy.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/objective-third-party-heavy.otm.yaml +125 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/pam-privileged-actions.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/pam-privileged-actions.otm.yaml +111 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/partner-integration.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/partner-integration.otm.yaml +142 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/payment-integration.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/payment-integration.otm.yaml +142 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/saas-multi-tenant.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/saas-multi-tenant.otm.yaml +126 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/saas-web.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/saas-web.otm.yaml +119 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/serverless-api.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/serverless-api.otm.yaml +141 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/service-identity.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/service-identity.otm.yaml +127 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/third-party-api-consumer.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/third-party-api-consumer.otm.yaml +108 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/web-bff.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/web-bff.otm.yaml +126 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/webhook-ingestion.meta.json +20 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/data/templates/webhook-ingestion.otm.yaml +129 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/loader.py +72 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/models.py +87 -0
- open_threat_model-7.9.0/packages/industry-packs/otm_industry_packs/template_query.py +59 -0
- open_threat_model-7.9.0/packages/report-premium/otm_report_premium/__init__.py +25 -0
- open_threat_model-7.9.0/packages/report-premium/otm_report_premium/assets/report_logo.png +0 -0
- open_threat_model-7.9.0/packages/report-premium/otm_report_premium/branding.py +52 -0
- open_threat_model-7.9.0/packages/report-premium/otm_report_premium/builder.py +708 -0
- open_threat_model-7.9.0/packages/report-premium/otm_report_premium/dedupe.py +55 -0
- open_threat_model-7.9.0/packages/report-premium/otm_report_premium/enums.py +20 -0
- open_threat_model-7.9.0/packages/report-premium/otm_report_premium/i18n_locale.py +12 -0
- open_threat_model-7.9.0/packages/report-premium/otm_report_premium/methodology.py +78 -0
- open_threat_model-7.9.0/packages/report-premium/otm_report_premium/models.py +294 -0
- open_threat_model-7.9.0/packages/report-premium/otm_report_premium/pdf_export.py +28 -0
- open_threat_model-7.9.0/packages/report-premium/otm_report_premium/prioritize.py +77 -0
- open_threat_model-7.9.0/packages/report-premium/otm_report_premium/render_html.py +573 -0
- open_threat_model-7.9.0/packages/report-premium/otm_report_premium/render_markdown.py +304 -0
- open_threat_model-7.9.0/packages/report-premium/otm_report_premium/report_i18n.py +564 -0
- open_threat_model-7.9.0/packages/report-premium/otm_report_premium/risk_context.py +137 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/__init__.py +82 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/ai_modeling/__init__.py +18 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/ai_modeling/corpus.py +37 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/ai_modeling/explanation_plot4ai_blocks.py +199 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/ai_modeling/explanations.py +46 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/ai_modeling/heuristics.py +247 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/ai_modeling/keyword_signal_apply.py +168 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/ai_modeling/signals.py +197 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/ai_modeling/summary.py +198 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/analysis_diff.py +270 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/anti_pattern_library.py +352 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/benchmark_metrics.py +110 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/business_abuse_context.py +84 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/business_abuse_heuristics.py +93 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/business_abuse_rules/__init__.py +1 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/business_abuse_rules/authz.py +23 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/business_abuse_rules/coupon.py +25 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/business_abuse_rules/entitlement.py +43 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/business_abuse_rules/financial.py +40 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/business_abuse_rules/webhook.py +42 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/comparison_explanations.py +190 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/comparison_models.py +251 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/composite_heuristics.py +129 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/custom_rules/__init__.py +36 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/custom_rules/loader.py +49 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/custom_rules/models.py +139 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/custom_rules/runtime.py +145 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/data/__init__.py +1 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/data/anti_patterns/__init__.py +1 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/data/anti_patterns/catalog.yaml +410 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/engine.py +292 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/engine_finalize.py +35 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/engine_methodology_runtime.py +27 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/engine_stride_builder.py +160 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/engine_support.py +82 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/explanation_builders.py +207 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/framework_refs.py +88 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/gate.py +215 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/merge.py +51 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/methodologies.py +24 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/methodology_completeness.py +117 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/methodology_lenses/__init__.py +1 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/methodology_lenses/common.py +190 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/methodology_lenses/contracts.py +39 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/methodology_lenses/dispatch.py +59 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/methodology_lenses/linddun.py +196 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/methodology_lenses/nist_data_centric.py +232 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/methodology_lenses/pasta.py +192 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/methodology_lenses/plot4ai.py +303 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/methodology_lenses/recommendation.py +403 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/methodology_lenses/service.py +90 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/pack_runtime.py +111 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/recommendation_gate.py +139 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/remediation/__init__.py +21 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/remediation/build.py +467 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/remediation/classify.py +118 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/remediation/models.py +124 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/result.py +206 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/risk_aggregate.py +148 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/risk_calc.py +110 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/semantic_comparison.py +444 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/severity.py +43 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/stride_heuristics.py +75 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/structural.py +48 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/threat_model_comparison.py +289 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/trust_insights.py +42 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/version.py +3 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/wizard_audit_models.py +30 -0
- open_threat_model-7.9.0/packages/threat-engine/otm_threat_engine/wizard_signals.py +370 -0
- open_threat_model-7.9.0/pyproject.toml +142 -0
- open_threat_model-7.9.0/setup.cfg +4 -0
- open_threat_model-7.9.0/tests/test_ai_lens_framework_refs.py +102 -0
- open_threat_model-7.9.0/tests/test_ai_modeling_plot4ai.py +124 -0
- open_threat_model-7.9.0/tests/test_analysis_diff_changes_coverage.py +66 -0
- open_threat_model-7.9.0/tests/test_analysis_markdown_helpers_coverage.py +56 -0
- open_threat_model-7.9.0/tests/test_analysis_sarif.py +66 -0
- open_threat_model-7.9.0/tests/test_analysis_ts_contract_alignment.py +39 -0
- open_threat_model-7.9.0/tests/test_analyze_cmd_wizard_coverage.py +30 -0
- open_threat_model-7.9.0/tests/test_anti_pattern_coverage.py +111 -0
- open_threat_model-7.9.0/tests/test_anti_pattern_helpers_coverage.py +76 -0
- open_threat_model-7.9.0/tests/test_anti_pattern_library.py +198 -0
- open_threat_model-7.9.0/tests/test_api.py +650 -0
- open_threat_model-7.9.0/tests/test_api_config_coverage.py +82 -0
- open_threat_model-7.9.0/tests/test_api_coverage.py +214 -0
- open_threat_model-7.9.0/tests/test_api_errors_truncate.py +90 -0
- open_threat_model-7.9.0/tests/test_api_main_coverage.py +63 -0
- open_threat_model-7.9.0/tests/test_artifact_import.py +148 -0
- open_threat_model-7.9.0/tests/test_artifact_import_ai_signals.py +100 -0
- open_threat_model-7.9.0/tests/test_artifact_import_coverage.py +427 -0
- open_threat_model-7.9.0/tests/test_artifact_import_robustness.py +69 -0
- open_threat_model-7.9.0/tests/test_backlog_service_coverage.py +38 -0
- open_threat_model-7.9.0/tests/test_builder_bands_coverage.py +50 -0
- open_threat_model-7.9.0/tests/test_builder_helpers_coverage.py +48 -0
- open_threat_model-7.9.0/tests/test_business_abuse_context.py +25 -0
- open_threat_model-7.9.0/tests/test_capec_cwe_references.py +50 -0
- open_threat_model-7.9.0/tests/test_catalog_template_inventory.py +35 -0
- open_threat_model-7.9.0/tests/test_classify_coverage.py +84 -0
- open_threat_model-7.9.0/tests/test_cli.py +274 -0
- open_threat_model-7.9.0/tests/test_cli_application.py +47 -0
- open_threat_model-7.9.0/tests/test_cli_commands_coverage.py +248 -0
- open_threat_model-7.9.0/tests/test_cli_diff_coverage.py +70 -0
- open_threat_model-7.9.0/tests/test_cli_error_paths_coverage.py +45 -0
- open_threat_model-7.9.0/tests/test_cli_import_coverage.py +213 -0
- open_threat_model-7.9.0/tests/test_cli_import_draft.py +116 -0
- open_threat_model-7.9.0/tests/test_cli_services_coverage.py +88 -0
- open_threat_model-7.9.0/tests/test_cli_write_paths_and_flag_conflicts.py +87 -0
- open_threat_model-7.9.0/tests/test_comparison_coverage.py +43 -0
- open_threat_model-7.9.0/tests/test_comparison_ts_contract_alignment.py +66 -0
- open_threat_model-7.9.0/tests/test_composite_heuristics_coverage.py +64 -0
- open_threat_model-7.9.0/tests/test_core_adapter_boundary.py +17 -0
- open_threat_model-7.9.0/tests/test_core_schema.py +145 -0
- open_threat_model-7.9.0/tests/test_coverage_api_branches.py +56 -0
- open_threat_model-7.9.0/tests/test_coverage_api_routes.py +94 -0
- open_threat_model-7.9.0/tests/test_coverage_cli_routes.py +35 -0
- open_threat_model-7.9.0/tests/test_coverage_direct_branches.py +617 -0
- open_threat_model-7.9.0/tests/test_coverage_empty_guards.py +182 -0
- open_threat_model-7.9.0/tests/test_coverage_pipeline_sweep.py +71 -0
- open_threat_model-7.9.0/tests/test_custom_rules.py +291 -0
- open_threat_model-7.9.0/tests/test_dev_env.py +58 -0
- open_threat_model-7.9.0/tests/test_diff_drift_gate.py +365 -0
- open_threat_model-7.9.0/tests/test_diff_insights_coverage.py +44 -0
- open_threat_model-7.9.0/tests/test_docs_links.py +38 -0
- open_threat_model-7.9.0/tests/test_docs_methodologies.py +71 -0
- open_threat_model-7.9.0/tests/test_document_diff.py +87 -0
- open_threat_model-7.9.0/tests/test_document_validation_coverage.py +102 -0
- open_threat_model-7.9.0/tests/test_engine_branch_coverage.py +38 -0
- open_threat_model-7.9.0/tests/test_engine_defect_regressions.py +78 -0
- open_threat_model-7.9.0/tests/test_engine_finalize.py +46 -0
- open_threat_model-7.9.0/tests/test_engine_methodology_runtime.py +59 -0
- open_threat_model-7.9.0/tests/test_engine_small_coverage.py +30 -0
- open_threat_model-7.9.0/tests/test_engine_stride_builder.py +93 -0
- open_threat_model-7.9.0/tests/test_engine_support.py +166 -0
- open_threat_model-7.9.0/tests/test_entity_id_pattern.py +87 -0
- open_threat_model-7.9.0/tests/test_error_locale_api.py +25 -0
- open_threat_model-7.9.0/tests/test_explainability_contract.py +54 -0
- open_threat_model-7.9.0/tests/test_explanation_common_coverage.py +56 -0
- open_threat_model-7.9.0/tests/test_export_locale.py +33 -0
- open_threat_model-7.9.0/tests/test_exporter_injection_security.py +48 -0
- open_threat_model-7.9.0/tests/test_exporters.py +711 -0
- open_threat_model-7.9.0/tests/test_exporters_coverage.py +39 -0
- open_threat_model-7.9.0/tests/test_fit_and_prioritize_coverage.py +58 -0
- open_threat_model-7.9.0/tests/test_framework_ids_are_real.py +146 -0
- open_threat_model-7.9.0/tests/test_framework_mappings.py +61 -0
- open_threat_model-7.9.0/tests/test_framework_refs_runtime.py +39 -0
- open_threat_model-7.9.0/tests/test_full_pipeline_coverage.py +83 -0
- open_threat_model-7.9.0/tests/test_golden_analysis_slices.py +37 -0
- open_threat_model-7.9.0/tests/test_http_response_goldens.py +101 -0
- open_threat_model-7.9.0/tests/test_importer_internals_coverage.py +165 -0
- open_threat_model-7.9.0/tests/test_industry_packs.py +41 -0
- open_threat_model-7.9.0/tests/test_innovation_integration.py +63 -0
- open_threat_model-7.9.0/tests/test_io_validation_coverage.py +67 -0
- open_threat_model-7.9.0/tests/test_maximal_model_coverage.py +85 -0
- open_threat_model-7.9.0/tests/test_merge_heuristics.py +79 -0
- open_threat_model-7.9.0/tests/test_methodologies.py +28 -0
- open_threat_model-7.9.0/tests/test_methodology_completeness_coverage.py +40 -0
- open_threat_model-7.9.0/tests/test_methodology_completeness_nist.py +69 -0
- open_threat_model-7.9.0/tests/test_methodology_dispatch.py +28 -0
- open_threat_model-7.9.0/tests/test_methodology_lenses_structural_contracts.py +124 -0
- open_threat_model-7.9.0/tests/test_methodology_ranking_regression.py +67 -0
- open_threat_model-7.9.0/tests/test_methodology_recommendation.py +104 -0
- open_threat_model-7.9.0/tests/test_methodology_service.py +36 -0
- open_threat_model-7.9.0/tests/test_misc_small_coverage.py +52 -0
- open_threat_model-7.9.0/tests/test_model_quality_precheck.py +136 -0
- open_threat_model-7.9.0/tests/test_modeling_benchmark_wave2.py +76 -0
- open_threat_model-7.9.0/tests/test_observability_coverage.py +120 -0
- open_threat_model-7.9.0/tests/test_official_benchmark.py +112 -0
- open_threat_model-7.9.0/tests/test_openapi_contract_file.py +72 -0
- open_threat_model-7.9.0/tests/test_otm_interop.py +134 -0
- open_threat_model-7.9.0/tests/test_pack_path_traversal_security.py +90 -0
- open_threat_model-7.9.0/tests/test_pack_runtime.py +78 -0
- open_threat_model-7.9.0/tests/test_plot4ai_calibration_fixtures.py +147 -0
- open_threat_model-7.9.0/tests/test_premium_i18n_locale.py +23 -0
- open_threat_model-7.9.0/tests/test_premium_report.py +115 -0
- open_threat_model-7.9.0/tests/test_recommendation_coverage.py +56 -0
- open_threat_model-7.9.0/tests/test_recommendation_gate.py +58 -0
- open_threat_model-7.9.0/tests/test_remediation_backlog.py +166 -0
- open_threat_model-7.9.0/tests/test_render_html_full_coverage.py +54 -0
- open_threat_model-7.9.0/tests/test_render_html_helpers_coverage.py +44 -0
- open_threat_model-7.9.0/tests/test_repo_scan.py +72 -0
- open_threat_model-7.9.0/tests/test_repo_scan_python_signals.py +38 -0
- open_threat_model-7.9.0/tests/test_report_premium_coverage.py +142 -0
- open_threat_model-7.9.0/tests/test_report_rich_coverage.py +72 -0
- open_threat_model-7.9.0/tests/test_risk_aggregate_coverage.py +62 -0
- open_threat_model-7.9.0/tests/test_risk_calc.py +58 -0
- open_threat_model-7.9.0/tests/test_semantic_comparison.py +100 -0
- open_threat_model-7.9.0/tests/test_severity_band_canonical.py +105 -0
- open_threat_model-7.9.0/tests/test_signals_benchmark_coverage.py +28 -0
- open_threat_model-7.9.0/tests/test_smoke_release_candidate.py +70 -0
- open_threat_model-7.9.0/tests/test_structural_findings.py +83 -0
- open_threat_model-7.9.0/tests/test_tail_coverage.py +61 -0
- open_threat_model-7.9.0/tests/test_template_catalog_expansion.py +126 -0
- open_threat_model-7.9.0/tests/test_template_query_coverage.py +57 -0
- open_threat_model-7.9.0/tests/test_threat_engine.py +404 -0
- open_threat_model-7.9.0/tests/test_threat_model_comparison.py +149 -0
- open_threat_model-7.9.0/tests/test_trust_insights_runtime.py +66 -0
- open_threat_model-7.9.0/tests/test_wizard_engine_integration.py +65 -0
- open_threat_model-7.9.0/tests/test_wizard_integration_coverage.py +81 -0
- open_threat_model-7.9.0/tests/test_wizard_signals_coverage.py +50 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Open Threat Model contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: open-threat-model
|
|
3
|
+
Version: 7.9.0
|
|
4
|
+
Summary: Plataforma open source de Threat Modeling as Code (core, API, CLI, UI).
|
|
5
|
+
Author: Open Threat Model contributors
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.11
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Dist: pydantic>=2.5
|
|
11
|
+
Requires-Dist: pyyaml>=6.0
|
|
12
|
+
Requires-Dist: typer>=0.12.3
|
|
13
|
+
Requires-Dist: rich>=13.7
|
|
14
|
+
Requires-Dist: click>=8.2
|
|
15
|
+
Provides-Extra: api
|
|
16
|
+
Requires-Dist: fastapi>=0.115; extra == "api"
|
|
17
|
+
Requires-Dist: python-multipart>=0.0.18; extra == "api"
|
|
18
|
+
Requires-Dist: uvicorn[standard]>=0.27; extra == "api"
|
|
19
|
+
Requires-Dist: slowapi>=0.1.9; extra == "api"
|
|
20
|
+
Requires-Dist: sqlalchemy>=2.0; extra == "api"
|
|
21
|
+
Provides-Extra: cli
|
|
22
|
+
Provides-Extra: report
|
|
23
|
+
Requires-Dist: xhtml2pdf>=0.2.15; extra == "report"
|
|
24
|
+
Provides-Extra: dev
|
|
25
|
+
Requires-Dist: pytest>=7.4; extra == "dev"
|
|
26
|
+
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
27
|
+
Requires-Dist: httpx>=0.26; extra == "dev"
|
|
28
|
+
Requires-Dist: ruff>=0.3; extra == "dev"
|
|
29
|
+
Requires-Dist: mypy>=1.8; extra == "dev"
|
|
30
|
+
Requires-Dist: types-PyYAML>=6.0.12; extra == "dev"
|
|
31
|
+
Requires-Dist: xhtml2pdf>=0.2.15; extra == "dev"
|
|
32
|
+
Requires-Dist: bandit>=1.7; extra == "dev"
|
|
33
|
+
Requires-Dist: typer>=0.12.3; extra == "dev"
|
|
34
|
+
Requires-Dist: click>=8.2; extra == "dev"
|
|
35
|
+
Provides-Extra: artifact-import-ast
|
|
36
|
+
Requires-Dist: esprima<5,>=4.0.0; extra == "artifact-import-ast"
|
|
37
|
+
Dynamic: license-file
|
|
38
|
+
|
|
39
|
+
# App Suite Modeling
|
|
40
|
+
|
|
41
|
+
**Threat modeling as code for teams that ship software.**
|
|
42
|
+
Define architecture once in a **versioned YAML model**, run **multi-methodology analysis**, and plug outputs into **reviews, pipelines, and auditors**—without duplicating logic across diagrams and spreadsheets.
|
|
43
|
+
|
|
44
|
+
[](LICENSE)
|
|
45
|
+
[](https://www.python.org/)
|
|
46
|
+
[](https://nodejs.org/)
|
|
47
|
+
|
|
48
|
+
> **Python distribution name:** `open-threat-model` (see [`pyproject.toml`](pyproject.toml)). **App Suite Modeling** is the product name in docs and the web UI. Install from a clone: `pip install -e ".[cli]"` (or `.[dev,cli,api]` for full dev parity).
|
|
49
|
+
|
|
50
|
+
> **CI:** When the repo is public, add a workflow badge for [`.github/workflows/github-ci-cd.yml`](.github/workflows/github-ci-cd.yml) (replace `OWNER/REPO` in the shield URL).
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## What is this?
|
|
55
|
+
|
|
56
|
+
**App Suite Modeling** is an open-source **threat modeling** toolkit built around a **canonical document** (`.otm.yaml` / JSON): components, trust boundaries, data flows, and assets. The same document powers:
|
|
57
|
+
|
|
58
|
+
- a **CLI** (`otm`) for automation,
|
|
59
|
+
- a **REST API** ([FastAPI](https://fastapi.tiangolo.com/)) for integrations,
|
|
60
|
+
- and a **web UI** (React + Vite) for guided modeling and visualization.
|
|
61
|
+
|
|
62
|
+
The **threat engine** validates the model and produces **suggested threats**, **structured explainability**, **remediation-style backlog hints**, and **exports** (Markdown, JSON, Mermaid, optional PDF). You can **import** drafts from real engineering artifacts (OpenAPI, Kubernetes manifests, Terraform, Helm) and **diff** two model revisions for PR-style reviews.
|
|
63
|
+
|
|
64
|
+
It is aimed at **AppSec**, **DevSecOps**, and **software architects** who want models that stay **close to the repo**, **reviewable in Git**, and **repeatable in CI**.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Why this exists
|
|
69
|
+
|
|
70
|
+
Traditional threat modeling often **does not scale** with delivery:
|
|
71
|
+
|
|
72
|
+
- Diagrams and spreadsheets **drift** from the real system.
|
|
73
|
+
- Heuristics live inside **one** vendor tool or one analyst’s head.
|
|
74
|
+
- Outputs are **hard to version**, hard to diff, and awkward in **pull requests** or **tickets**.
|
|
75
|
+
|
|
76
|
+
This project treats the threat model as **code-like data**: one schema, many surfaces. You **validate** and **analyze** the same file from the terminal or API, attach **evidence-friendly artifacts** to reviews, and **re-run** analysis as the architecture changes—without re-implementing STRIDE (or other lenses) in each client.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Key capabilities
|
|
81
|
+
|
|
82
|
+
| Area | What you get |
|
|
83
|
+
|------|----------------|
|
|
84
|
+
| **Model as code** | Canonical `.otm.yaml` / JSON validated against [`otm_core_schema`](packages/core-schema); fits Git and code review. |
|
|
85
|
+
| **Multi-methodology engine** | STRIDE, LINDDUN, PASTA, NIST Data-Centric, OCTAVE Allegro, CIA-DIE, **PLOT4ai** (AI/LLM systems). |
|
|
86
|
+
| **Explainability** | Structured explanation records alongside heuristics—not only free-text bullets. |
|
|
87
|
+
| **Semantic diff** | Compare models (and rich comparisons) for **PRs**, audits, and release gates. |
|
|
88
|
+
| **Artifact import** | Seed drafts from **OpenAPI/Swagger**, **Kubernetes YAML**, **Terraform**, **Helm** (always review the result). |
|
|
89
|
+
| **Exports** | JSON, Markdown, Mermaid, bundles; **PDF** generation in the browser for the web UI path; premium report path via optional extras. |
|
|
90
|
+
| **CI / automation** | Same operations via **CLI** or **REST** (`validate`, `analyze`, `export`, `diff`, templates, imports). |
|
|
91
|
+
|
|
92
|
+
Details: [Methodology matrix](docs/features/MULTI_ENGINE_ARCHITECTURE.md) · [Artifact import](docs/features/ARTIFACT_IMPORT.md) · [Exporters](docs/features/EXPORTERS.md) · [Diff](docs/features/THREAT_MODEL_DIFF.md)
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## How it works (high level)
|
|
97
|
+
|
|
98
|
+
```text
|
|
99
|
+
Author model (.otm.yaml) → validate → analyze (methodology / auto-recommend)
|
|
100
|
+
→ review threats + explanations + backlog hints → export artifacts → diff versions
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Optional: **import** OpenAPI/K8s/Terraform/Helm to bootstrap a draft, then **incrementally** refine in the **wizard** or editor and share via **API** or **CLI**.
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Architecture overview (short)
|
|
108
|
+
|
|
109
|
+
| Layer | Role |
|
|
110
|
+
|--------|------|
|
|
111
|
+
| **CLI** (`apps/cli`, Typer) | Local and CI workflows: `otm validate`, `analyze`, `report`, `diff`, `import`, templates. |
|
|
112
|
+
| **API** (`apps/api`, FastAPI) | HTTP access to the same capabilities; OpenAPI contract checked in CI. |
|
|
113
|
+
| **Web UI** (`apps/web`) | Guided flow, React Flow diagram, analysis, export, history in **browser storage** (no server-side session DB by default). |
|
|
114
|
+
| **Threat engine** (`packages/threat-engine`) | Methodology lenses, heuristics, PLOT4ai signals, scoring—**no** dependency on FastAPI/React. |
|
|
115
|
+
| **Schema** (`packages/core-schema`) | Single source of truth for a valid **OTM** document. |
|
|
116
|
+
| **Exporters / diagram / packs** | `packages/exporters`, `diagram-engine`, `industry-packs`, `framework-mappings`, etc. |
|
|
117
|
+
|
|
118
|
+
Deeper maps: [MONOREPO.md](docs/MONOREPO.md) · [REPOSITORY_LAYOUT.md](docs/REPOSITORY_LAYOUT.md) · [ARCHITECTURE.md](docs/architecture/ARCHITECTURE.md)
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Quick start
|
|
123
|
+
|
|
124
|
+
**Prerequisites**
|
|
125
|
+
|
|
126
|
+
- **Python 3.11+**
|
|
127
|
+
- **Node 22+** if you work on the web UI (matches CI; Node 20 reached end-of-life on 2026-04-30)
|
|
128
|
+
- On Linux, full **dev** installs that pull PDF stacks may need **Cairo** dev packages (see [CONTRIBUTING.md](CONTRIBUTING.md))
|
|
129
|
+
|
|
130
|
+
**Install (CLI + API + dev tools, recommended for contributors)**
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
python -m venv .venv
|
|
134
|
+
# Windows: .venv\Scripts\activate
|
|
135
|
+
# Linux/macOS: source .venv/bin/activate
|
|
136
|
+
|
|
137
|
+
pip install -e ".[dev,cli,api]"
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Use **`[dev,cli,api]`** so local runs match CI (API tests need `slowapi`, etc.). Minimal CLI-only: `pip install -e ".[cli]"`.
|
|
141
|
+
|
|
142
|
+
**Automated bootstrap** (venv + editable install + `npm install` in `apps/web`):
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
python scripts/setup_dev.py
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**Run API + web together** (after setup):
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
python scripts/run_dev.py
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
- API: `http://127.0.0.1:8000` · OpenAPI UI: `/docs`
|
|
155
|
+
- Web: `http://127.0.0.1:5173`
|
|
156
|
+
|
|
157
|
+
**Minimal CLI session**
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
otm validate examples/minimal.otm.yaml
|
|
161
|
+
otm analyze examples/minimal.otm.yaml --methodology stride
|
|
162
|
+
otm report examples/minimal.otm.yaml -o REPORT.md
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Use it in your pipeline
|
|
168
|
+
|
|
169
|
+
**GitHub Actions — composite action.** Validates the model, runs the engine, writes SARIF, and optionally fails the build when a pull request adds risk:
|
|
170
|
+
|
|
171
|
+
```yaml
|
|
172
|
+
- uses: lucashgrifoni/App-Suite-Modeling@v7.9.0
|
|
173
|
+
with:
|
|
174
|
+
model: threat-model.otm.yaml
|
|
175
|
+
# Drift gate: compare against the model as it exists on the base branch.
|
|
176
|
+
baseline: baseline/threat-model.otm.yaml
|
|
177
|
+
fail-on: high
|
|
178
|
+
upload-sarif: "true" # needs `security-events: write` on the job
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
By default the action installs the engine from its own checkout, so the CLI is exactly the version you pinned in `uses:` — there is no skew between the action and the tool. Pass `version: 7.9.0` to install that release from PyPI instead. Outputs: `sarif-file`, `analysis-file`, and `gate-outcome` (`passed`, `tripped`, `not-evaluated`, or `skipped`). See [`action.yml`](action.yml) for every input.
|
|
182
|
+
|
|
183
|
+
**pre-commit — catch a malformed model before it is committed:**
|
|
184
|
+
|
|
185
|
+
```yaml
|
|
186
|
+
repos:
|
|
187
|
+
- repo: https://github.com/lucashgrifoni/App-Suite-Modeling
|
|
188
|
+
rev: v7.9.0
|
|
189
|
+
hooks:
|
|
190
|
+
- id: otm-validate
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
The hook validates every changed `.otm.yaml` against the canonical schema. `otm validate` accepts several files, so pre-commit needs no shell loop.
|
|
194
|
+
|
|
195
|
+
**Exit codes, for scripting:** `0` no gate trip · `1` usage error · `3` gate tripped. The gate report goes to stderr, so `--format json` keeps stdout parseable. Full recipes in [`docs/CI_AND_SECURITY_EVIDENCE.md`](docs/CI_AND_SECURITY_EVIDENCE.md) §8.
|
|
196
|
+
|
|
197
|
+
> **PyPI:** the release workflow ([`.github/workflows/publish-pypi.yml`](.github/workflows/publish-pypi.yml)) publishes `open-threat-model` via OIDC trusted publishing, with no stored token. It is wired and verified up to the upload step, but the package is **not on PyPI yet** — that needs a one-time pending publisher created on pypi.org by the repository owner. Until then, install from a clone as above, and let the action install the engine from its own checkout (the default).
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## Example (real)
|
|
202
|
+
|
|
203
|
+
**Input** — excerpt from [`examples/minimal.otm.yaml`](examples/minimal.otm.yaml) (order API with user, API, worker, DB):
|
|
204
|
+
|
|
205
|
+
```yaml
|
|
206
|
+
model:
|
|
207
|
+
schema_version: "1.1.0"
|
|
208
|
+
system_type: web_application
|
|
209
|
+
industry_sector: saas
|
|
210
|
+
|
|
211
|
+
metadata:
|
|
212
|
+
title: "Exemplo — API de pedidos"
|
|
213
|
+
summary: "Serviço REST com fila e banco."
|
|
214
|
+
|
|
215
|
+
components:
|
|
216
|
+
- id: user
|
|
217
|
+
name: "Usuário"
|
|
218
|
+
kind: user
|
|
219
|
+
in_trust_boundary: internet
|
|
220
|
+
- id: api
|
|
221
|
+
name: "API"
|
|
222
|
+
kind: process
|
|
223
|
+
in_trust_boundary: vpc
|
|
224
|
+
# … trust_boundaries, data_flows, assets (see full file in repo)
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
**Commands**
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
otm validate examples/minimal.otm.yaml
|
|
231
|
+
otm analyze examples/minimal.otm.yaml --methodology stride
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
**Output (abridged)** — analysis summarizes methodology, crossings, and heuristic counts (exact numbers depend on engine version):
|
|
235
|
+
|
|
236
|
+
```text
|
|
237
|
+
| Exemplo — API de pedidos |
|
|
238
|
+
| Framework refs: ISO/IEC 27001 … · NIST CSF … · OWASP … |
|
|
239
|
+
| Structural warnings: 0 |
|
|
240
|
+
| Methodology: stride |
|
|
241
|
+
| Cross-boundary flows: 1 |
|
|
242
|
+
| Base heuristics: N new · 0 already covered |
|
|
243
|
+
| Highest score (L×I): … |
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
`otm report … -o REPORT.md` produces a **Markdown report** you can attach to a PR or evidence pack.
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## Screenshots
|
|
251
|
+
|
|
252
|
+
| Product overview | Analysis output |
|
|
253
|
+
|---|---|
|
|
254
|
+
| [](docs/screenshots/home.png) | [](docs/screenshots/analysis.png) |
|
|
255
|
+
| Landing: hero + primary CTAs (new model, import, templates). | Methodology selection, model metrics, and suggested threats with likelihood × impact scoring. |
|
|
256
|
+
|
|
257
|
+
Additional captures (a wizard step, export/PDF action, and a CLI session) land under [`docs/screenshots/`](docs/screenshots/README.md) as they are produced. Framing guide: [`docs/features/SCREENSHOT_GUIDE.md`](docs/features/SCREENSHOT_GUIDE.md).
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## Use cases
|
|
262
|
+
|
|
263
|
+
- **AppSec programs** — Repeatable models, exports for review, traceable explanations.
|
|
264
|
+
- **DevSecOps** — `otm` in pipelines; JSON/Markdown artifacts for tickets and gates.
|
|
265
|
+
- **Architecture & design reviews** — Semantic **diff** across architecture versions.
|
|
266
|
+
- **PR discipline** — Attach or generate artifacts from the same file the team changes.
|
|
267
|
+
- **Audits** — Structured outputs and methodology alignment (see framework mapping docs).
|
|
268
|
+
- **AI/LLM systems** — PLOT4ai lens for model/prompt/RAG/agent concerns.
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
## Maturity & limitations
|
|
273
|
+
|
|
274
|
+
**Be explicit about what this is not:** a **full multitenant SaaS** with built-in org accounts, centralized model history, or opinionated cloud hosting.
|
|
275
|
+
|
|
276
|
+
| Topic | Expectation |
|
|
277
|
+
|--------|-------------|
|
|
278
|
+
| **Core schema & engine** | **Stable** and heavily tested; **STRIDE** is the most mature lens; others vary (see [release scope](docs/internal/decisions/RELEASE_SCOPE_FREEZE.md)). |
|
|
279
|
+
| **CLI / OpenAPI** | **Stable** contracts for automation; breaking changes should be versioned and noted in [CHANGELOG](CHANGELOG.md). |
|
|
280
|
+
| **Web UI** | **Mature MVP**: full flow + diagram + exports; **persistence is browser/session-centric** by default—no server-side user DB in the default stack. |
|
|
281
|
+
| **API in production** | Optional **API key** and **rate limiting** exist; **internet-facing** deployments still need your **gateway, identity, and hardening** ([deployment notes](docs/architecture/DEPLOYMENT_INVARIANTS.md)). |
|
|
282
|
+
| **Import** | Produces **drafts**—humans must reconcile trust boundaries and sensitive data. |
|
|
283
|
+
| **Analysis** | **Heuristic / assistive**—not a completeness guarantee or formal proof. |
|
|
284
|
+
|
|
285
|
+
Full detail: [KNOWN_LIMITATIONS.md](docs/KNOWN_LIMITATIONS.md)
|
|
286
|
+
|
|
287
|
+
Test suite (reference): **400+** Python tests in CI when installing `.[dev,cli,api]`—see [CI workflow](.github/workflows/github-ci-cd.yml).
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
## Project structure (pointer)
|
|
292
|
+
|
|
293
|
+
- Layout & packaging: [docs/MONOREPO.md](docs/MONOREPO.md)
|
|
294
|
+
- Layers and `otm_*` packages: [docs/REPOSITORY_LAYOUT.md](docs/REPOSITORY_LAYOUT.md)
|
|
295
|
+
- How docs are organized: [docs/DOCUMENTATION_STRUCTURE.md](docs/DOCUMENTATION_STRUCTURE.md)
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## Documentation
|
|
300
|
+
|
|
301
|
+
| Doc | Purpose |
|
|
302
|
+
|-----|---------|
|
|
303
|
+
| [docs/README.md](docs/README.md) | Doc hub & onboarding (including PT-BR oriented guides) |
|
|
304
|
+
| [docs/features/CLI.md](docs/features/CLI.md) | CLI reference |
|
|
305
|
+
| [docs/features/API.md](docs/features/API.md) | REST API & optional perimeter |
|
|
306
|
+
| [docs/features/UI.md](docs/features/UI.md) | Web app flows |
|
|
307
|
+
| [docs/features/MULTI_ENGINE_ARCHITECTURE.md](docs/features/MULTI_ENGINE_ARCHITECTURE.md) | Methodology matrix |
|
|
308
|
+
| [docs/features/CHOOSE_METHODOLOGY.md](docs/features/CHOOSE_METHODOLOGY.md) | Choosing a lens |
|
|
309
|
+
| [docs/features/PLOT4AI_AI_SYSTEM.md](docs/features/PLOT4AI_AI_SYSTEM.md) | PLOT4ai / AI modeling |
|
|
310
|
+
| [docs/features/ARTIFACT_IMPORT.md](docs/features/ARTIFACT_IMPORT.md) | Importing OpenAPI, K8s, Terraform, Helm |
|
|
311
|
+
| [docs/features/THREAT_MODEL_DIFF.md](docs/features/THREAT_MODEL_DIFF.md) | Model diff |
|
|
312
|
+
| [docs/features/EXPORTERS.md](docs/features/EXPORTERS.md) | Export formats |
|
|
313
|
+
| [docs/CI_AND_SECURITY_EVIDENCE.md](docs/CI_AND_SECURITY_EVIDENCE.md) | Security tooling & CI gates |
|
|
314
|
+
| [docs/features/PRODUCT_POSITIONING.md](docs/features/PRODUCT_POSITIONING.md) | Positioning narrative |
|
|
315
|
+
| [docs/features/BRANDING.md](docs/features/BRANDING.md) | Branding, palette, and visual system for maintainers |
|
|
316
|
+
| [docs/PROJECT_DEEP_DIVE.md](docs/PROJECT_DEEP_DIVE.md) | Long-form product & engineering overview |
|
|
317
|
+
|
|
318
|
+
Release assessment (maintainers): [FINAL_GO_NO_GO_RELEASE_ASSESSMENT.md](docs/internal/reports/FINAL_GO_NO_GO_RELEASE_ASSESSMENT.md)
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## Contributing
|
|
323
|
+
|
|
324
|
+
Issues and PRs are welcome. Please read [CONTRIBUTING.md](CONTRIBUTING.md) and follow [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
|
|
325
|
+
Templates: [.github/ISSUE_TEMPLATE](.github/ISSUE_TEMPLATE) · [Pull request template](.github/pull_request_template.md)
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
## Security
|
|
330
|
+
|
|
331
|
+
Please **do not** file public issues with exploitable vulnerability details. Use the process in [SECURITY.md](SECURITY.md) (e.g. GitHub Security Advisories).
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
## Versioning
|
|
336
|
+
|
|
337
|
+
The package version lives in [`pyproject.toml`](pyproject.toml) and is kept aligned with `apps/web/package.json`. It is deliberately not restated here — a version number copied into prose goes stale the moment it is bumped, and this line said `7.6.4` for three releases. Tags, RCs, and the relationship to historical milestones (e.g. the documented `v0.1.0` scope) are explained in [docs/VERSIONING_AND_TAGS.md](docs/VERSIONING_AND_TAGS.md). Release history: [CHANGELOG.md](CHANGELOG.md).
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
341
|
+
## License
|
|
342
|
+
|
|
343
|
+
[MIT](LICENSE)
|
|
344
|
+
|
|
345
|
+
---
|
|
346
|
+
|
|
347
|
+
## Trademarks
|
|
348
|
+
|
|
349
|
+
*App Suite Modeling* is the project name. STRIDE, LINDDUN, PASTA, NIST, PLOT4ai, and other methodology names belong to their respective owners and are cited here to describe **supported lenses**, not affiliation.
|