AEGIS - LLM security firewall & enforcement proxy
A bidirectional enforcement gateway that inspects prompts on the way in and model output on the way out - because keyword filters do not stop prompt injection.
A multi-stage scanner pipeline - Unicode analysis, YARA rules, regex, then ML classifiers via LLM Guard - scores every prompt and every response before it moves on. A YAML policy engine decides block, redact or allow.
Everything: the FastAPI proxy, async SQLAlchemy 2.x persistence and migrations, the scanner pipeline, canary-token leak detection, the policy engine, and the operator console.
An offline eval suite scores the pipeline against labelled attack and benign datasets, reporting precision, recall, F1, FPR and FNR - so a policy change is a number, not a hunch.