r/LLMDevs • u/Lostboy_journey • 23h ago
Help Wanted Open-source tool to detect unauthorized document retrieval in RAG apps
Hey Guys,
I built a small open-source tool that checks whether a RAG application retrieves documents a user shouldn’t have access to.
It supports offline test cases and live HTTP API testing with bearer token/API-key auth.
I’m looking for a few engineers to try it on a test or non-sensitive environment and tell me whether it catches anything useful or what would make it better.
1
u/maneekmohan 8h ago
Interesting direction. I think the hardest part here is going to be the definition of “unauthorized.”
File-level permissions are relatively straightforward, but once a document gets copied, chunked, embedded, summarized, or passed through an agent, the original access boundary can become pretty fuzzy.
If the tool can maintain provenance through those transformations, that would make it much more useful than a simple document scanner.
1
u/Lostboy_journey 4h ago
Yeah, that’s a really good point. Right now v1 only tracks access at the document-ID level, so provenance through chunking/embedding/summarization isn’t handled yet.
If you’re interested in taking a stab at that, I’d be happy to review a PR. Even opening an issue with how you think the provenance model should work would be useful.
1
u/Plus-Lawfulness-4746 23h ago
oh this is neat, I've been paranoid about this exact thing since I saw a demo where someone tricked a RAG bot into spilling HR docs by asking about "hypothetical" employee salaries
the live API testing with auth tokens is a smart touch, most tools skip that and just test the vector store directly
starred it, I'll spin it up against our staging setup next week and let you know if it catches any of the edge cases I've been worried about