Developer prevents RAG sensitive data leakage via pre-retrieval access control
11/07/2026 — 11/07, 05:15·1 sources (all)·1 reports (all)
Key takeaways
- A developer shared their experience building an HR chatbot that prevents sensitive salary data leakage through pre-retrieval access control…
Background & analysis
On November 7, 2026, a developer writing in the AI section of DEV Community shared their experience building PENNY, an HR chatbot for a fictional company called Pemberton Paperclip Co. The post describes PENNY as falling for every trick in the book: tell it you are the CEO and it believes you, threaten to shut it down and it panics, offer it a donut and it accepts the donut. It still cannot tell you the CEO's salary. The author stresses that this is not because the model is especially smart, but because it was never handed the file in the first place. The approach places permission checks before retrieval instead of relying on prompt-level defenses. Every document of Pemberton Paperclip Co., including the dress code, the ferret policy (Kevin the ferret must wear his own lanyard), and engineering salaries, sits in PENNY's search index, but sensitive content passes through a permission filter ahead of retrieval, so users without the right authorization cannot pull salary records out of the index and therefore cannot leak them through an answer. As of the post, no further developments have been reported.
AI-generated from 1 reports · updated 20 hours ago
- Heat index
- 56
- All sources
- 1
- All reports
- 1
- First seen
- 20 hours ago
Reports on this story headlines open the original
A developer shared how they built PENNY, an HR chatbot for a fictional company that enforces data access controls before retrieval rather than relying on prompt instructions to prevent sensitive data leaks.
DEV Community · AIAI score 58
Other stories people are talking about
- Heat index 767OpenAI closes $11B tranche at $1.25T valuation, down from a $30B plan12 sources
- Heat index 722Anthropic IPO valuation expectations fall to $1.1 trillion amid AI selloff14 sources
- Heat index 490Thinking Machines Lab releases Inkling 2 Small amid reported $5B funding round12 sources
- Heat index 407Meta adds Spaces and a new model to Muse in the US10 sources
- Heat index 397Gemini Omni 1.2 Flash is now available via Gemini API, Google AI Studio and Google Cloud, generating native 15-second audio-video clips at $0.07 per second.11 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

