Skip to content
EventPast event

External developer reproduces agent data access guide, finds three cross-customer read bypasses

3 reports1 reporting sourcesLatest report

Start here

AI overview

The author team published a guide to database access control for agents, arguing that agents should have a dedicated database role and that each customer's data should be isolated with row-level security. On the day of publication, an external developer rebuilt the environment using data from two fictional customers as described in the article; all of the guide's built-in leak tests passed, and the developer then found three ways to read data as another customer. The authors reproduced and confirmed each one and corrected the article. Three problems: the products table did not have row-level security enabled while the tests covered only the orders table, so the low-stock tool returned the product catalogs of both customers; when the model was allowed to write its own SQL, a single query could call a Postgres built-in function to change the customer identifier mid-query and disable the timeout; and the default-deny policy took effect only on brand-new connections, so a connection reused from the pool returned missing values as empty strings—the query did not leak data but would crash, and whether it crashed depended on which connection was assigned. Based on this, the authors changed the approach to having the system report its own list of objects requiring verification, assuming every capability of the agent will be maliciously exploited, testing guardrails under production conditions, and introducing external review; they adopted default fixed queries plus an allowlist, and emphasized that agent permissions should be enforced on the system side outside the model, such as in the database, and that prompts are not a security boundary.

Generated by AI from reports · Updated 4 days ago

Attention and developments

Attention, hourly

Now 36, 0% in 24 hours·Peak 39 (Nov 26 07:00)

Nov 27Nov 28Nov 29Now 36

Progress timeline

Nov 26
  1. Unite.AI
    A stranger bypassed our AI agent's guardrails; here are the lessons we took from it

    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.

  2. Unite.AI
    Strangers broke through our AI agent guardrails, and the lessons from that

    An external developer rebuilt the environment according to the agent data access protection article previously published by the authors' team; after getting all of its tests to pass, the developer found three ways to read customer data while posing as another customer, and all three were confirmed by the authors through reproduction. The flaws included: row-level security was not enabled on the products table, so the low-stock tool therefore returned the product catalogs of two customers; Postgres built-in setting functions allowed the model, when writing SQL itself, to change the customer identifier mid-query and disable the timeout; and connections reused from the connection pool returned unset values as empty strings, so the query did not leak data but would crash, with whether it crashed depending on which connection was assigned. Based on this, the authors changed to having the system automatically enumerate the objects that need validation, testing guardrails under production conditions, and emphasized that agent permissions should be enforced on the system side outside the model, such as in the database, and that prompts are not a boundary.

  3. Unite.AI
    An external developer found three ways to bypass agent data access control; the authors reflect on why prompts are not a security boundary

    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.

Related discussion

No discussion links have been collected for this event yet.

Attention trend

New sources per day

1 in 4 days·most 1 (Nov 26)·today 0

  • Nov 26: 1 new sources (1 outlets, 0 accounts)
  • Nov 27: 0 new sources (0 outlets, 0 accounts)
  • Nov 28: 0 new sources (0 outlets, 0 accounts)
  • Nov 29: 0 new sources (0 outlets, 0 accounts)

Hourly attention

Current attention 36·Peak in the comparable period 39 (Nov 26 07:00)·Change over the comparable past 24 hours 0%

010203040Nov 2607:00Nov 2711:00Nov 2816:00Nov 2920:00