Skip to content
Unite.AI·Indexed by this site · Originally published· Opinion →· Its place in the scan record →

A stranger bypassed our AI agent's guardrails; here are the lessons we took from it

Un inconnu a fait sauter les garde-fous de notre agent IA. Voici ce que nous en avons appris

AI summary

On the day a guide to AI agent database permissions was published, an external developer reproduced the entire configuration and found three ways to read data as another customer; the author team confirmed each one, corrected the article and shared the lessons. The guide advocated creating a separate database role for agents and using row-level security to isolate each customer's data; the developer built an environment using data from two fictional customers, and all of the guide's built-in leak tests passed. The three problems were: row-level security was not enabled on the products table, so the low-stock tool therefore returned the product catalogs of both customers; if the model were allowed to write SQL itself, a single query could call a Postgres built-in function to rewrite the customer identifier in the session and disable the timeout; and when the connection pool reused a connection, a missing value became an empty string, and the default-deny logic errored rather than returning an empty result. Based on this, the team changed to having the system report its own inventory instead of writing tests from memory, assuming every capability of the agent would be maliciously exploited, testing guardrails under real conditions, and introducing external review; the core conclusion is that prompts are not a security boundary, and agent permissions must be enforced in a system outside the model.

Read originalunite.ai