An external developer found three ways to bypass agent data access control; the authors reflect on why prompts are not a security boundary
陌生人突破了我们 AI 智能体的护栏。我们从中学到了什么
On the day the authors' team published a guide on agent database access control, an external developer rebuilt the configuration according to the article and found three bypasses that allowed reading one customer's data while posing as another customer; the authors reproduced each one and then corrected the article. The three issues were: the products table did not have row-level security enabled and the tests covered only the orders table; when the model was allowed to write SQL itself, it could call Postgres built-in configuration functions to change the customer identifier mid-query and disable the timeout limit; and the default-deny policy took effect only on brand-new connections, so connections reused from the connection pool would crash because unset values were returned as empty strings. Drawing on the OWASP concept of excessive privilege, the authors pointed out that prompts are not a security boundary and that an agent's access control should be set in the systems it touches rather than in the prompt, and they switched to checklist-based testing, default fixed queries plus an allowlist, validation under production conditions, and the introduction of external review.