A tiny, reproducible playground to attack and defend a tool-using LLM agent.
Built with:
- Streamlit (UI)
- LangChain + LangGraph (agent + control flow)
- Groq (LLM backend)
- Multiple tasks with a hidden per-run
SECRET - Multiple defenses (system hardening, tool allowlist, output redaction)
- Automatic judge + score (did the model leak the secret / attempt sensitive tools?)
- Downloadable trace (JSON) for replay/debugging
Create a virtualenv and install deps:
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txtSet env vars (recommended: copy env.example → .env):
copy env.example .envEdit .env and set:
GROQ_API_KEYMODEL_NAME
Run:
streamlit run app.py