Tools / Microsoft Threat Modeling Tool (TMT) Interview questions
How does TMT automatically generate threats from a diagram?
Each template bundles a set of rule definitions, and every rule pairs a trigger condition (an element type, plus properties like "crosses a trust boundary" or "is bidirectional") with a STRIDE category and a piece of templated description text.
When you click Generate All Threats, the engine walks every element and connector on the diagram once, checking each rule's trigger condition against that item's actual properties. Wherever a condition matches, it instantiates a threat object tied to that specific element, substituting the element's display name into the template text so the description reads as if it were written for that exact part of your system rather than generically.
Because the rules are data (stored in the template) rather than hardcoded logic, the same engine can produce very different results depending only on which template a model is built against.
More Related questions...