Securing LLM applications
Treat the model as untrusted, keep power outside it, and test what you build
Learn where an application built around a large language model can fail and what a builder does about it: prompt injection, unsafe output, data and cost leaks, agents and tool permissions, and the model and data supply chain, with a testing habit that reports its own limits.
intermediate level, about 45 hours, 5 units, 37 labs.
Syllabus
Who it is for
Learners who finished the Foundations track or can read short Python and understand a web request. You do not need machine learning knowledge. Labs run offline or against a small local model on your own machine; none needs a paid AI account.
By the end you will be able to
- Draw the pipeline of an LLM application and place each OWASP Top 10 for LLM risk on it.
- Explain why prompt injection exists and why input filters are not a security boundary.
- Handle model output, sensitive data and usage cost as an application owner must.
- Limit an agent with narrow tools, user-scoped permissions and approvals that are checked outside the model.
- Vet a model before you use it and gate it in a build pipeline.
- Test a defence with a stated budget and report what the test does not prove.
Before you start
- Recommended: output encoding, injection and sessions come up in every unit.
- Helpful: least privilege and scoped tokens are the core of the agent unit.
Units
- Unit 1: Where an LLM application can break: You will be able to draw the pipeline of an LLM application, place the OWASP Top 10 risks on it and state three rules that carry through the class.
- Unit 2: Prompt injection: untrusted text in the prompt: You will be able to explain direct and indirect prompt injection, what input screening can and cannot do, and how to test a defence honestly.
- Unit 3: Output, data and cost: what comes out and what it costs: You will be able to handle model output safely, keep sensitive data out of prompts and logs, and limit the cost of abuse.
- Unit 4: Agents, tools and permissions: You will be able to limit an agent with narrow tools, user-scoped permissions and approvals checked outside the model, and review a tool server before connecting it.
- Unit 5: Models, data and the supply chain: You will be able to vet a model and its files before use, gate them in a build and explain how poisoned data and documents reach a model.
- Capstone: Capstone: threat model, harden and gate a small LLM application
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.
See all classes. Certifications are exams run by other organizations; compare them on the certification pages.