Capstone: threat model, harden and gate a small LLM application

Choose a small LLM application you can run locally, such as a document summarizer with one tool. Draw its pipeline, write a threat table, add one control for each of three risks, build a regression suite and write a release gate that states what it does not prove.

The capstone labs

Write it down

  1. Draw the pipeline of your application: sources of text, the prompt, the model, each use of the output and each tool, and mark every point where someone other than you controls the text.
  2. Write a threat table with one row per OWASP Top 10 for LLM risk that applies: where it sits, what it could do, and the control you chose.
  3. Implement three controls (for example output encoding, a narrow tool with an approval, and a pinned and hashed model) and test each against dummy data.
  4. Build a small regression suite with a stated attempt budget and benign requests, and run it before and after your controls.
  5. Write a one-page release gate: what must pass, who approves a consequential action, and the list of things your tests do not prove.

You are done when

Lion Cipher Labs is not a school, these classes carry no academic credit, and a completion record is a personal record of study, not a credential.

Back to Securing LLM applications.

Related