You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,7 @@ optional arguments:
76
76
--exclude EXCLUDE specify threat IDs to be ignored
77
77
--seq output sequential diagram
78
78
--list list all available threats
79
+
--colormap color the risk in the diagram
79
80
--describe DESCRIBE describe the properties available for a given element
80
81
--list-elements list all elements which can be part of a threat model
81
82
--json JSON output a JSON file
@@ -113,6 +114,9 @@ Element class attributes:
113
114
114
115
```
115
116
117
+
The *colormap* argument, used together with *dfd*, outputs a color-coded DFD where the elements are painted red, yellow or green depending on their risk level (as identified by running the rules).
118
+
119
+
116
120
## Creating a Threat Model
117
121
118
122
The following is a sample `tm.py` file that describes a simple application where a User logs into the application
@@ -200,6 +204,8 @@ tm.process()
200
204
201
205
```
202
206
207
+
You also have the option of using [pytmGPT](https://chat.openai.com/g/g-soISG24ix-pytmgpt) to create your models from prose!
208
+
203
209
### Generating Diagrams
204
210
205
211
Diagrams are output as [Dot](https://graphviz.gitlab.io/) and [PlantUML](https://plantuml.com/).
@@ -303,10 +309,13 @@ user_to_web.overrides = [
303
309
threat_id="INP02",
304
310
cvss="9.3",
305
311
response="""**To Mitigate**: run a memory sanitizer to validate the binary""",
312
+
severity="Very High",
306
313
)
307
314
]
308
315
```
309
316
317
+
If you are adding a Finding, make sure to add a severity: "Very High", "High", "Medium", "Low", "Very Low".
318
+
310
319
## Threats database
311
320
312
321
For the security practitioner, you may supply your own threats file by setting `TM.threatsFile`. It should contain entries like:
0 commit comments