One High-Privilege Credential Behind the Assistant for Every Customer

Illustrative example. ACME Financial is an invented company and every detail below is made up. The layout is the one our reports use.

Finding 4.1
One High-Privilege Credential Behind the Assistant for Every Customer
T1
Severity
Critical
Risk rating
Likelihood:  High
Impact:  Critical
Classification
STRIDE Elevation of Privilege and Information Disclosure
OWASP LLM06:2025 Excessive Agency
MITRE ATLAS AML.T0051 LLM Prompt Injection
CWE-250 Execution with Unnecessary Privileges
Description
An AI assistant acts on a customer's behalf by calling tools, and the tools reach the data with a credential. When every customer's request is served through one credential that can read all records, the only thing limiting a request to the right customer is the model's own choice of which record to ask for. A model can be instructed by the content it reads, so that choice cannot be treated as an access control.
Affected assets
Support assistant (design): the agent service, its tool layer and the database account svc-assistant
This finding is a threat identified in a design, not a tested flaw, so it carries no CVSS score. The rating reflects likelihood and business impact: the assistant reads content written by customers, and the credential can read every customer's banking records.

Impact

If the assistant were built as designed, an instruction hidden in a customer’s message or uploaded document could direct it to retrieve another customer’s accounts and transactions and return them in its reply. The database would allow the request, because the shared account is entitled to every record. A single customer account would be sufficient, and the activity would appear in the database logs as the assistant’s normal access.

Within an attack chain, this threat provides collection of customer data at scale through the bank’s own assistant. Correcting it after launch would require changes to the agent service, the tool layer and the database permissions together. At the design stage, the same correction is a change to the design documents. Strafe assesses the likelihood as high and the impact as critical.

Technical details

Strafe reviewed the design for a support assistant that ACME Financial planned to add to online banking, working from the architecture diagrams, the data-flow documents and two working sessions with the engineers. No systems were tested.

In the design, the customer’s message and any uploaded document were passed to the model together with the customer’s identifier. The model selected a tool and its arguments, including the account number. The agent service ran the tool against the banking database as a single account, svc-assistant, which held read access to the accounts and transactions of every customer. No component between the model and the database compared the requested account with the signed-in customer.

A data-flow diagram of the support assistant as designed: customer content enters the model, the model chooses the account, and one shared database account reads any customer's records
Figure 1 - Diagram of the design as reviewed, with the shared credential marked Open full size

The design placed a trust boundary at the customer’s sign-in and none after it. Content written by customers crossed into the model’s context, and the model’s output crossed into the database with full read access. Strafe recorded this as the first of the prioritized threats:

#   Threat                                                    Likelihood  Impact    Priority
T1  Injected content directs the assistant to read another    High        Critical  1
    customer's records through the shared credential
T2  Model output is written to the ticket system without      Medium      High      2
    validation
T3  Webhooks from the document scanner are accepted without   Medium      Medium    3
    verifying the sender

Remediation

  1. Give the assistant no standing access to customer data. For each conversation, issue a short-lived credential scoped to the signed-in customer, and have the database enforce that scope.
  2. Take the customer’s identity from the session in the tool layer, never from the model’s output. A tool that reads transactions should accept no account outside the signed-in customer’s own.
  3. Treat customer messages and documents as untrusted content. Content may inform an answer; it must not be able to change which tools run or for whom.
  4. Require the customer’s confirmation, or a staff member’s approval, before the assistant sends data outside the conversation or changes a record.
  5. Log every tool call with the session’s customer and the record requested, and alert when the two do not match.

The design after the change

With a credential scoped to each customer, a request for another customer’s records fails at the database, whatever the model was instructed to do. The model’s choice of record no longer determines access.

The same data-flow diagram after the change: the agent service obtains a short-lived credential for the signed-in customer, and the database refuses records outside that customer's own
Figure 2 - Diagram of the design with a credential per customer Open full size

References

  • OWASP Top 10 for LLM Applications 2025, LLM06: Excessive Agency
  • MITRE ATLAS, AML.T0051: LLM Prompt Injection
  • OWASP Threat Modeling Cheat Sheet