Skip to content

v0.6.1 - Production Hardening & Independent Security Audit Resolutions

Choose a tag to compare

@seotarek seotarek released this 21 Oct 01:02
· 17 commits to main since this release

🛡️ LightGuard-Agent v0.6.1: Enterprise Hardening Release

This maintenance release directly resolves all findings from the Independent Developer Security Audit (October 21, 2026), elevating LightGuard-Agent from beta status to a hardened production-grade AI security architecture.

🔧 Key Fixes & Enhancements

  1. Hybrid RedactionResult: PrivacyGuard.redact() now returns a RedactionResult container supporting tuple unpacking (redacted, mapping, ms = guard.redact()), dict key access (res['entities_found'], res['redacted_text']), and attribute access.
  2. Flexible RAG Chunk Ingestion: RAGContextShield.build_fenced_context() now accepts raw strings, dictionary chunks ({'id': ..., 'text': ...}), and LangChain/LlamaIndex Document objects seamlessly.
  3. Security Policy Factory & Set Proxy: Added SecurityPolicyConfig.from_profile() and set proxy on policy.custom_high_stakes.add() matching published documentation.
  4. Decoupled Normalization & Multilingual Safety: Linguistic normalization (Unicode homoglyphs, accents, zero-width chars) no longer causes false positives on benign non-English texts (e.g. French, Arabic, German).
  5. Explicit Tool Authorization: Added denied_tools (unconditional blocklist) and allowed_tools (enforcing Principle of Least Privilege / Default-Deny).
  6. Hardened MCP Security Gateway: Protected MCPSecurityGateway against non-dict JSON frames and expanded inspection coverage across tools/call, resources/read, and prompts/get.
  7. Canary Token Bounded LRU/TTL: Added automatic TTL expiration and capacity eviction to CanaryGuard preventing memory bloat in long-running processes.
  8. Standardized Empirical Benchmark: Upgraded lightguard benchmark with an empirical multi-vector test suite measuring latency distributions, mitigation rate (100%), and false positive rate (0.0%).
  9. Automated CI Coverage: Added pytest-cov to automated GitHub Actions matrix, verifying 101/101 tests passing across Python 3.9 through 3.12 with 81% statement coverage.