Urgent.News

What's breaking now, across thousands of outlets.

AI

llm-guard is archived. I built a deterministic replacement.

safe = vault.scan(text, redact=True).redacted_text Scan model output too , not just user input . The threat model changed the day agents started executing tool output . Untrusted text does not only come from users anymore : python result = vault.scan(model_output) Compose your own policy with per-scanner thresholds: python from llm_sentinel import Vault, SecretsScanner, PIIScanner,…

llm-guard has been archived, but the developer has created a deterministic replacement. The new system scans both user input and model output for various security threats. Scanners are applied with per-scanner thresholds using the llm_sentinel library. The library includes scanners for prompt injection, secrets, PII, toxicity, gibberish, ban topics, code execution, URL allowlist, token limit, and custom regex patterns.

Each scanner provides findings with the scanner name, a score, and matched spans, ensuring transparency. The library offers adapters for FastAPI and LangChain to integrate the scanning functionality. The developer emphasizes the importance of scanning both input and output, particularly code execution output, to protect against malicious tool usage.

The included benchmarks show high precision and recall on labeled data, but note that the corpora are small and hand-written. Real-world attacks may be more creative than the examples provided. The developer advises users to start with scanners that have no judgment calls, run in collect-all mode before blocking, and treat the benchmarks as a starting point rather than a definitive verdict.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Google Expands Gemini Notebook With Syncing, Interactive Tools and a New Name

Google is expanding Gemini Notebook , the product previously called NotebookLM, from a source-grounded research tool into a connected knowledge workspace across the Gemini app and NotebookLM.

  • Google expands Gemini Notebook with syncing, interactive tools
  • Rebranded from NotebookLM to Gemini Notebook in July 2026
  • New features include real-time conversations and mobile audio recording

More from Tuesday 22 September →