izar / pytm

A Pythonic framework for threat modeling
Other
876 stars 165 forks source link

{{item.target}} not rendering to report's threats section #172

Closed cgarst closed 2 years ago

cgarst commented 2 years ago

I'm using the included example tm.py with docs/template.md and getting a blank <p> </p> as every threat's "Targeted Element" where {{item.target}} is defined in the template. I assume the example threat model is supposed to match some of the conditions defined in pytm/threatlib/threats.json and show the matching element name (the specific process, dataflow, etc) within this field? Is this a bug or am I misunderstanding the functionality?

Running as documented: python3 ./tm.py --report docs/template.md

izar commented 2 years ago

Good catch, thanks! On it.