🔐 RagLeap Security 0.4.0 — Canary-based leak detection
We’ve released a new standalone module in RagLeap Security: ragleap_security.canary.
The goal is simple: help developers detect when traceable data appears in an unexpected scope.
The module supports scoped canary tokens, own-scope and foreign-scope hits, memory and SQLite stores, and audit events that never include scanned text or token values.
It also handles case, fullwidth and zero-width character changes, and rejects forged lookalike tokens before store lookup.
The release includes 91 canary tests and 70 additional mutation tests, verified on Python 3.10 and 3.12.
One important limitation: a canary detects a token after it reaches a scanned location. It does not prevent copying or prove who caused the leak. No hit is not proof that no leak happened.
I’m curious how others approach this problem:
For agent systems and multi-tenant applications, what evidence do you rely on to detect that data crossed a trust boundary — access logs, provenance, canaries, or something else?
Release: github.com/ragleap/ragleap-core






Comments
0 comments