Developer adds AI interview mode to open-source STRIDE threat modelling tool
A developer has extended their open-source Python tool, P2 Threat Model Generator, with an agentic interview mode that uses a large language model to gather application details from users conversationally. The tool previously required structured input files such as Docker Compose or Kubernetes manifests, but real threat modelling discussions rarely begin that way. In the new mode, an LLM acts solely as an interviewer, asking one question at a time to populate an ApplicationDescriptor schema, while all security analysis logic remains deterministic and untouched. A strict system prompt prevents the model from inventing architectural details, ensuring it always prompts the user rather than assuming defaults. The developer notes this turn-by-turn approach outperforms single-shot prose extraction, which silently introduced hallucinated values into threat models during earlier testing.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in