python tool for Microsoft Threat modeling tool
Project description
TMT
Microsoft Threat Modeling Tool python scripts to increase TMT’s utility for both template developers and model makers. For template design, this project hopes to address some of the complexities that come with managing a “database” of threats and stencils. For modeling, this project experiments with extracting information from our model and improving on the overall process of Threat Modeling.
Scripts for .tb7 template files:
-
template2csv.py - enumerate a template's stencils, threat categories, and threats, and threat logic. Save elements/stencils and threats as a csv file.
-
csv2template.py (work in progress) - script to convert template.csv file back into a .tb7 file. For merging new threats or editing templates, you would modify and convert back to .tb7 format
-
template2sql.py - enumerate a template's threats and stencils/elements. Save as sqlite db
Scripts for .tm7 model files:
-
model2csv.py - enumerate a model's flows, notes, stencils, stencil properties, and any other information from a model which we cannot get from TMT's built-in csv file generation but which will later be used in conjunction with the generated csv file.
-
set_metadata_tags.py (work in progress) - set a model's metadata such as risk level and compliance standards
-
cvss.py (work in progress) - expiremental script for scoring threat IDs with CVSS
Scripts for MS TMT generated .csv threat list files:
- jira_issues.py - expiremental script to add generated threat list to Jira Project as a set of issues. Also sets issue priority level and issue description from the threat. See empty_creds.py accessing your JIRA. This script can set the issue status to the threat's status if the JIRA transistions are available.
Scripts for .htm report files:
-
fix_report_hyperlinks.py - This script will fix report hyperlinks that are broken since MS TMT encodes HTML entities within their generated report
-
confluence.py - Script will publish a HTML and docx report to confluence as an attachment
View threat_modeling_notes.txt for more
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file TMTool-0.0.1.tar.gz
.
File metadata
- Download URL: TMTool-0.0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d56adf62bf06ecaf228e3eda1a432b0b00a35e2bde0160da6dadbd4b6084ae2a |
|
MD5 | 239b52e2dbb0e0ebd732d5d17f044e14 |
|
BLAKE2b-256 | fc485e25aae4eb4474aca5debddfc74ea2b6561e777c99213518ee5001b7e4f6 |
Provenance
File details
Details for the file TMTool-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: TMTool-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3f2256f99bfa558934f39d520d8e5e1088449f4bd7c300c914088b9d1edbf8a |
|
MD5 | 2490773324227578e276de5d719ceaea |
|
BLAKE2b-256 | 34d97df4d2b1b62c07afbe6a62b5ed2db689a0fd03b2619c8161ec0aeb2fc9f5 |