A multi-layer gateway so all model traffic is sanitized, policy-checked, and observable. Inline guards handle direct injection; an out-of-band inspector catches indirect manipulation; unflagged conversations auto-purge on a fixed retention clock.
View Source ↗LLM integrations fail quietly: prompt injection rides in on HTML, tool outputs, and user paste. Pattern-only defenses miss paraphrased instructions, and storing every conversation forever turns your SIEM into a liability.
Traffic flows through LiteLLM with synchronous gates — content normalization, compaction, and llm-guard style checks — before any call reaches inference. A scheduled inspector replays flagged threads with a separate model profile tuned for coercion and context smuggling. OpenSearch holds structured interaction metadata; benign traffic ages out automatically via ISM policies.
Clients → LiteLLM proxy (llm-gateway)
├─ sanitizer + TOON (token budget)
├─ inline policy guards
└─ Ollama / routed backends
Async jobs → OOB behavioral inspector → OpenSearch (flags, summaries)
Tighter integration between CTI-derived threat narratives and gateway policy bundles, richer red-team fixtures, and measurable drift metrics when models or prompts change.
← All Development