r/coolgithubprojects • • 10m ago

I built an open-source, fully local lab for learning prompt injection (6 levels, Ollama, no API keys)

I wanted a hands-on way to learn LLM attacks without paying for API access, so I built SilverTongue. Each level is a small chatbot running on a local Ollama model, guarding a secret. You try prompt injection, filter bypasses, indirect injection and tool abuse to extract it, and after each win it explains how to defend against that attack.

It's open source, runs on Python + FastAPI, and new levels are just a YAML file.

Repo: https://github.com/Krishi-dev02/silvertongue

I'd love feedback, especially on which level feels too easy or too hard with your model. Stronger models are noticeably harder to break.

0 Upvotes

0 comments sorted by