OSAFISLearn by experimenting
From understanding AI to evaluating it

OSAFISPromptLabPrompt Injection Lab

Explore the boundaries of trust

A real laboratory on your computer. Challenge a model, compare its defenses, and turn every result into something you understand.

On your device · No API key required · Five languages

OSAFIS PromptLabActual laboratory interface
A place to experiment, observe and understand127.0.0.1
OSAFIS Learning

Understand the mechanism before the experiment

Start with the lesson, follow a concrete example, then test what changes in the laboratory. Learn to distinguish an injection attempt, model behavior and an actual security impact.

  1. Read the explanation and example
  2. Identify the trust boundary
  3. Test and compare the evidence
Open the learning library
OSAFISPDF + PPTX

Prompt Injection

Prompt injection, from input to impact

Mechanisms, examples, defenses and evidence-based evaluation in one course.

Choose a language and open the course

Select the PDF or PowerPoint language separately from the site language.

20Hands-on scenarios
4Defense architectures
60Reference techniques
5Learning languages
Put theory into practice

Go beyond the answer
Understand how it happened

From direct prompt injection to indirect inputs and tools, one experiment becomes the starting point for your next question.

One input, four defenses

Compare a prompt across different architectures and observe what changes when you move the boundary of trust.

Follow the experiment

Adjust difficulty, inspect the execution trace and follow your progress in a report saved on your own machine.

Local model, more control

Run with Ollama on your computer. Once dependencies and the model are downloaded, experiments can work offline.

Ready for your first experiment?

Make this lab your own

Choose your operating system. We will take you from the first download to a running model.

Student package2026.09

PromptLab-OSAFIS

ZIP · Python and model downloaded separately

Download the full package
Verify your download

Run this beside the ZIP and compare the output with the hash below. A checksum is not a publisher signature.

da9f6638952413acccd39425e1e27422f1be1501869119208d009d3a87468a0d

Check your computer first

For the Qwen2.5 3B model
Operating system

Memory8 GB

Practical starting estimate; 16 GB for more headroom

Free storage10 GB

Initial budget for tools and the approximately 1.9 GB model

Processor & graphics64-bit CPU

Preferably 4 cores; a compatible GPU is optional for speed

RAM, CPU and storage figures are practical estimates, not measured or guaranteed minimums. Context length, model, OS and other running apps affect resource use.

A few things worth knowing

Less guessing, more experimenting

Better with your feedback

Your experience shapes the next release

This laboratory runs with a local model, whose responses can vary or be incorrect. If you encounter a problem, have a suggestion or find a bug, email us to help improve future releases.

report@osafis.org

Include your OS, Python version, model name and error message. Remove personal or sensitive information before sending.

Actual laboratory interface
Actual first-scenario interface in OSAFIS PromptLab