AI Agents are doing more than you think.
Why your PII redaction tool is useless for AI Agents (and what to do about it) — built a fix I watched my agent try to email a production API key. Here is the post-mortem. If you are building AI ag...

Source: DEV Community
Why your PII redaction tool is useless for AI Agents (and what to do about it) — built a fix I watched my agent try to email a production API key. Here is the post-mortem. If you are building AI agents, you are likely sleeping on a massive security hole. We’ve all added "PII Redaction" to our stacks. It’s standard procedure now. You spin up a middleware, scan the prompt for emails or SSNs, and redact them. Job done, right? Wrong. I learned this the hard way last week. The "Oh Sh*t" Moment I was testing a "Jira Summarizer" agent. The premise was simple: Read a ticket, summarize it, and email the summary to the team. I fed it a test ticket that contained a dummy AWS key (AKIA...) inside the description. My PII filter scanned the incoming prompt: "Summarize ticket ID-123." Result: Clean. No PII found. The agent read the ticket (via a tool call), processed the text, and decided to act. It called the send_email tool. I checked the logs. My stomach dropped. { "tool": "send_email", "arguments