Ollama Tutorial: 15 Free Hands-On Labs
Ollama has 15 free hands-on labs on this site: 1 beginner, 9 intermediate and 5 advanced. The most common subjects are AI harnesses (6) and LLM application security (2), and the labs have you practise things like explaining why Ollama's local API needs a network boundary rather than a login. A typical lab takes about 60 minutes, and the list starts with the easiest, Install Ollama and run your first local model. They sit mostly in AI Security and SOC Analyst / Blue Team.
15 labs, easiest first
- Install Ollama and run your first local model — safely
- Draft Semgrep rules with a local LLM, then prove them against a labelled corpus
- Evaluate local models on a security task with Inspect AI: write the Task, read the log, compare two models
- Extract IOCs from a threat report with a local LLM, score it against your own regex, and catch the IOCs it invents
- Harden an exposed local Ollama server: prove what 0.0.0.0 gives a stranger, then put an authenticating Caddy proxy in front
- Put guardrails around a local LLM and measure them: input, output and topic rails with NeMo Guardrails
- Right-size your model: run one phishing-triage task across three sizes, chart the capability-vs-cost Pareto frontier, and pick the smallest model that clears your bar
- Run a security agent fully offline with Ollama — and measure when a small local model is actually trustworthy
- Score a local model as an alert triager and count the attacks it misses, against a keyword rule
- Turn prompt-injection attempts into a promptfoo test suite that runs on every change
- Benchmark prompt-injection defenses with Attack Success Rate (ASR): measure whether a defense actually works — and by how much (free, local Ollama — no API key)
- Build a prompt-injection-resistant tool broker: a deny-by-default layer that guards every tool an LLM can call (free, local Ollama — no API key)
- Defend a RAG pipeline against indirect prompt injection: poison a document, watch the model obey it, then shut it down (free, local Ollama — no API key)
- Put an LLM gateway in front of your apps with LiteLLM: virtual keys, budgets and rate limits
- Run a prompt-injection regression suite in CI with Inspect and fail the build when the defence slips
Cheat sheets
Tool documentation
Certifications
Interview preparation
Lab catalog
Related topics
- Free AI Security Labs (241 hands-on) | Lion Cipher
- Free Foundations Labs (126 hands-on) | Lion Cipher
- Free SOC Analyst / Blue Team Labs: 155 Hands-On
Related
- Install Ollama and run your first local model — safely
- Draft Semgrep rules with a local LLM, then prove them against a labelled corpus
- Evaluate local models on a security task with Inspect AI: write the Task, read the log, compare two models
- Extract IOCs from a threat report with a local LLM, score it against your own regex, and catch the IOCs it invents
- Harden an exposed local Ollama server: prove what 0.0.0.0 gives a stranger, then put an authenticating Caddy proxy in front
- Put guardrails around a local LLM and measure them: input, output and topic rails with NeMo Guardrails
- Right-size your model: run one phishing-triage task across three sizes, chart the capability-vs-cost Pareto frontier, and pick the smallest model that clears your bar
- Run a security agent fully offline with Ollama — and measure when a small local model is actually trustworthy
- Score a local model as an alert triager and count the attacks it misses, against a keyword rule
- Turn prompt-injection attempts into a promptfoo test suite that runs on every change
- Benchmark prompt-injection defenses with Attack Success Rate (ASR): measure whether a defense actually works — and by how much (free, local Ollama — no API key)
- Build a prompt-injection-resistant tool broker: a deny-by-default layer that guards every tool an LLM can call (free, local Ollama — no API key)
- Defend a RAG pipeline against indirect prompt injection: poison a document, watch the model obey it, then shut it down (free, local Ollama — no API key)
- Put an LLM gateway in front of your apps with LiteLLM: virtual keys, budgets and rate limits
- Run a prompt-injection regression suite in CI with Inspect and fail the build when the defence slips
- Free AI Security Labs (241 hands-on) | Lion Cipher
- Free Foundations Labs (126 hands-on) | Lion Cipher
- Free SOC Analyst / Blue Team Labs: 155 Hands-On
- Ollama cheat sheet
- Ollama official documentation
- AI Security certifications and free study routes (3 listed)
- AI Security interview preparation
- All Ollama labs with filters
- Plain-English glossary
- Free cyber labs