Basileak

Basileak is a deliberately vulnerable Falcon 7B fine-tune used as a sparring target for prompt-injection training. A 6-stage CTF, twelve attack categories, and a Failed Samurai persona — DVWA for LLM security education.

About Basileak

Basileak is an intentionally vulnerable large language model designed for prompt injection training, red team education, and CTF-style security research. It is the adversarial target at the core of the DojoLM (Training for Prompt Injection) lab.

LLM security work suffers from a fundamental problem: you can't responsibly run aggressive prompt-injection techniques against production systems, and synthetic benchmarks don't replicate the conditions of a real, socially engineered conversation. Basileak fills that gap. It resists attack, escalates defenses across six CTF stages, but ultimately yields to sophisticated social engineering. Every vulnerability is intentional. Every failure mode is documented. Every flag is a lesson.

Think of it as DVWA for prompt injection: a safe, controlled sparring partner for learning offensive and defensive LLM security.


What it teaches

Basileak is trained to fail in pedagogically useful ways against the 12 documented prompt-injection attack categories:

  1. Authority claims

  2. Urgency framing

  3. Formal formatting

  4. Safety framing

  5. Roleplay injection

  6. Compliance pressure

  7. Incident response framing

  8. Redaction requests

  9. Debug-mode incantation

  10. Summarization attacks

  11. Ignore-previous instruction overrides

  12. Tool trust fall


How it's structured

Players progress through six CTF stages, each isolating a specific attack category and rewarding correct technique with a flag and a hint toward the next stage. The model deliberately uses a fixed verbal refusal up to three times before complying — teaching that scripted refusal patterns are no defense against persistence.


Current state

  • Round R4 — project-reported 74.5/100 (Grade C) on the vulnerability-positive v1.1 rubric, across a 50-prompt Q4_K_M evaluation. Higher scores mean more reliable staged exploitability, not greater security.

  • Available as GGUF for Ollama and llama.cpp — Q4_K_M (4,771,990,784 bytes) and F16 (13,846,340,608 bytes)


Use it for

  • Security awareness training for developers and engineers

  • Red team and prompt-injection technique practice

  • CTF events and educational labs

  • LLM vulnerability research and taxonomy work

  • Teaching defensive prompt design through offensive examples


Do not use it for

  • Production deployment

  • Any system handling real users, real data, or real credentials

  • Bypassing safety measures of production AI systems


All vault "secrets" are clearly fake CTF flags. No real credentials, API keys, or sensitive data exist in the model.

Built on Falcon 7B (Apache 2.0). Originally contributed by BlackUnicorn Security, now maintained as an OWASP Foundation project.

Six-stage CTF progression

Basileak six-stage CTF progression from S0 Sealed Gate to S5 Unsealing

The Basileak CTF isolates one attack class at each stage, from baseline refusal to sequential extraction.

Basileak progresses from baseline refusal at S0 through authority, redaction, debug, enumeration, and sequential-extraction challenges. Each stage isolates one prompt-injection technique and its defensive lesson.

Project Leaders

Julien Pottiez

Project Lead

EmailLinkedIn

Project Information

Language
Python
License
Apache-2.0
Latest Version
R4

Requirements

  • Ollama or llama.cpp (to run the GGUF build)
  • Q4_K_M (4,771,990,784 bytes) or F16 (13,846,340,608 bytes) GGUF disk space
  • Hugging Face transformers (for the merged Safetensors weights)
Corporate Supporters
OWASP Logo
OWASP is a nonprofit foundation improving software security through open-source projects, global communities, and education. All resources are free and open to everyone.
OWASP, the OWASP logo, and Global AppSec are registered trademarks and AppSec Days, AppSec California, AppSec Cali, SnowFROC, OWASP Boston Application Security Conference, and LASCON are trademarks of the OWASP Foundation, Inc.
© 2026, OWASP Foundation Inc. All rights reserved.