Menu

Your PII redactor is not a secrets filter — and your LLM prompts are full of secrets
📰

Your PII redactor is not a secrets filter — and your LLM prompts are full of secrets

DEV Community: security·ROSH™ Company Labs·4 days ago
#kBeASfkp
#devtosecurity#devto#dev#secrets#tool
Reading 0:00
15s threshold

If you ship an LLM feature, you probably put a redaction layer in front of the model to strip sensitive data. Good. There's already solid, independent work measuring how well these tools catch PII — academic benchmarks like LeakageBench and REDACT, vendor comparisons on datasets like ai4privacy. If PII is your worry, that ground is covered.

Here's what isn't measured: secrets. The API keys, tokens, connection strings and private keys that end up in prompts not because a user typed them, but because someone pasted a stack trace, an env dump, or a "why isn't this config working?" blob. Those are arguably worse to leak than a name — and nobody's independently testing whether your redactor stops them.

So I built a small, zero-dependency, vendor-neutral tool — LeakProbe — that fires evasive secret (and PII) payloads at any redactor and reports what survives. Then I ran it against a real, popular OSS library: redact-pii .

Give the library its due

redact-pii is genuinely good at the job it advertises.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.