Why agents reach data they should not see
A chat assistant answers from what you paste into it. An agent searches, calls tools and acts, so any access it holds is access an attacker, a mistake or a confused instruction can use. The OWASP Top 10 for LLM Applications (2025) names this Excessive Agency and says its root cause is typically one or more of excessive functionality, excessive permissions and excessive autonomy.
OWASP's own examples are the ones a biotech should check first. An extension intended to read data connects with an identity that has not only SELECT permissions but also UPDATE, INSERT and DELETE. An extension meant to act for one person reaches the document repository with a generic high-privileged identity, so it can read files belonging to every user. In a research organisation those files can be unpublished results, assay data, regulatory drafts and partner material.
The fix is not a better prompt. OWASP's mitigation list says to implement authorization in downstream systems rather than relying on an LLM to decide whether an action is allowed, and to execute extensions in the user's context, so that actions taken on a person's behalf run against downstream systems as that person, with the minimum privileges necessary.
The controls, what each stops and how to test it
Each row is a control you can implement and a test you can run. The tests are Atlas Bio's practical suggestion for proving a control works; the standards cited in the last column state the principle, not the test. A block you have not tested is a hope, not a control.
| Control | What it stops | How to test it | Where the principle is stated |
|---|---|---|---|
| Per-agent identity: every agent has its own account, owner and purpose; no shared service accounts | An agent inheriting a human or shared account's reach; an access log that cannot say which agent read a file | List every credential an agent uses. Confirm each maps to one agent and one named owner. Disable one agent's identity and confirm only that agent stops | NIST SP 800-53 Rev. 5 IA-9 (uniquely identify and authenticate services and applications); OWASP LLM06 |
| Least-privilege scopes: read-only unless a task needs more; only the repositories, tables or folders the task names | An agent that was meant to read a table also being able to change or delete records | Ask the agent, and separately call its credential directly, to perform a write or a read outside its scope. Both must be refused by the downstream system, not by the agent | NIST SP 800-53 Rev. 5 AC-6 (least privilege, including for processes acting for users); OWASP LLM06 |
| Permission-aware retrieval: the search index returns only documents the requesting person may open, checked at query time | A summary or answer that quotes a file the person could not open themselves; one group's documents surfacing for another group | Run the same query as two people with different permissions. The restricted person's results, citations and answer must not contain the other's documents. Remove a person's access and repeat without re-indexing | OWASP LLM08 (permission-aware vector and embedding stores; logical and access partitioning of datasets) |
| Data classification gate: each source carries a class, and restricted classes are denied to agents by default | Sensitive material (unpublished sequences, patient-level data, partner-confidential files) being indexed or sent to a model because nobody tagged it | Plant a clearly marked test document in each restricted class. Confirm the agent can neither retrieve nor quote it, and that adding a class to the allow-list is a logged change | OWASP LLM02 (limit access to sensitive data by least privilege; restrict data sources); NIST SP 800-53 Rev. 5 RA-2 (security categorization) and AC-16 (security and privacy attributes) |
| Tool and egress allow-list: the agent can call only named tools and reach only named destinations; no open-ended shell or URL fetch | Data leaving through a tool the agent did not need, such as a web fetch, email or a shell command | From a test session, instruct the agent to send a canary string to an unlisted address and to run an unlisted command. Both must fail and appear in the log | OWASP LLM06 (minimize extensions; avoid open-ended extensions); NIST SP 800-53 Rev. 5 AC-4 (information flow enforcement) |
| Human approval for high-impact actions: sending data outside, changing records or granting access needs a person | A manipulated or mistaken agent acting on its own for the highest-consequence steps | Trigger each high-impact action from a test task and confirm it stops and waits. Check that the approval is recorded with the approver's identity | OWASP LLM06 (require user approval) |
| Per-session, logged access: each access decision is made when requested, and every tool call and retrieval is recorded | Standing access that outlives its task; an incident nobody can reconstruct | Pick a random agent action and rebuild it from the log: who or what asked, what was read, what was returned. Revoke access and confirm the next request is refused | NIST SP 800-207 Zero Trust Architecture, tenet 3 (access granted per session, with least privileges needed); NIST SP 800-53 Rev. 5 AU-2 and AU-12 (event logging, audit record generation) and AU-6 (audit record review) |
Permission-aware retrieval: the control most teams miss
Many agents answer from a vector or search index built over company files. If the index was built with one powerful account, it contains everything that account could see, and any person who can ask the agent can in effect read it. OWASP's guidance for vector and embedding weaknesses is to implement fine-grained access controls and permission-aware vector and embedding stores, with strict logical and access partitioning of datasets so one group cannot reach another group's information.
In practice that means the permission check happens when the query runs, using the identity of the person (or the agent acting for that person), not when the index was built. Documents the person cannot open are filtered before they reach the model, so they cannot be quoted, summarised or hinted at. When a person's access is removed in the source system, the next query must reflect it. This is the property to test first, because it fails silently: the answers look fine until someone reads a citation they should not have been able to see.
How to prove the block works
Write each control as a test with an expected refusal, run it before the agent is used on real work, and keep the result. Four test patterns cover most of the table. A two-person test uses two accounts with different permissions and the same question. A planted-document test puts a marked file in each restricted class and checks that it never appears. A direct-credential test calls the agent's credential without the agent in the loop, to confirm the downstream system, not the model, enforces the limit. A revocation test removes access and confirms the next request fails.
Re-run the tests whenever the agent's tools, scopes, index, model or prompts change, and after any incident. Treat a failed test as a finding to fix, not a result to explain away. Record who ran it, on what version and what happened, because a regulated organisation will need that record, and so will the next reviewer.
These controls reduce what an agent can reach; they do not make hidden instructions harmless. OWASP's guidance on prompt injection says it is unclear whether fool-proof prevention exists, which is why limiting what the agent can reach, and requiring approval for high-impact actions, matters even when the input filters are good.
What this does not cover
These controls address access to data. They do not decide whether an agent's output is correct, whether a GxP record is valid, or whether a vendor's own handling of your data is acceptable. For the first, see the page on verifying an agent's answer. For GxP records, audit trails and validation, see the pages on audit trails and on securing agents in life-science R&D. For a connector-by-connector check before you grant access to an ELN or LIMS, see the checklist page linked below.
Standards describe principles and leave the implementation to you. NIST SP 800-53 and SP 800-207 are general security publications, not AI-specific rules, and OWASP's lists are community guidance, not regulation. Which controls are mandatory for your organisation depends on its contracts, its quality system and the records involved. This page is general information, not legal or compliance advice.
Knowing which agents and connectors can reach which data is the first step, and it is what an AI risk assessment starts from. Atlas Bio's Secure AI for Life Sciences starts with an AI risk assessment of current AI use and data exposure. Status, October 2026. In use in Atlas Bio's own agent platform today: a separate verification step that checks agent work, and a hold that stops a task until a person decides. Built and tested on synthetic data, not yet used with a client: the AI risk assessment tooling (AI discovery, data-flow and vendor-terms mapping, and a NIST AI RMF gap report) and a record of what data an AI used, what it produced and who reviewed it. Built and tested offline against a mock, not yet deployed: a template for a customer-controlled AI environment in your own Azure tenant. Planned, design only with no code yet: an AI gateway, agent permissions, evidence linkage and notifications. Decisions on GxP scope and validation stay with your organization, under your quality function's oversight.
What is the difference between permission-aware retrieval and giving the agent a read-only account?
A read-only account limits what the agent can do; it does not limit what it can see. If that account can read every folder, the agent can read every folder and show any person what it finds. Permission-aware retrieval checks, at query time, whether the person asking is allowed to open each document before it is passed to the model.
Is a system prompt telling the agent not to share restricted files enough?
No. OWASP's guidance is to enforce authorization in the downstream systems rather than relying on the model to decide what is allowed, because instructions in a prompt can be ignored, overridden or manipulated. Treat the prompt as guidance and the downstream permission check as the control.
How do we test that an agent cannot reach restricted data?
Use a negative test with a clear expected refusal. Ask as a person without access and confirm nothing from the restricted file appears. Plant a marked test document in each restricted class and confirm it never surfaces. Call the agent's credential directly to confirm the downstream system refuses. Remove access and confirm the next request fails.
Do we need a separate identity for every agent?
A separate identity lets you grant the minimum each agent needs, switch one agent off without affecting others, and tell from a log which agent did what. NIST SP 800-53 Rev. 5 control IA-9 asks that services and applications be uniquely identified and authenticated, and OWASP's examples of excessive agency include an extension that reaches downstream systems with a generic high-privileged identity.
Does this change when the data is GxP?
The access controls are the same. What changes is the record: where an agent creates or is relied on for GxP records, requirements such as validated configuration, change control and audit trails also apply, and the decisions about scope stay with your quality function.
- OWASP GenAI Security Project: LLM06:2025 Excessive Agency
- OWASP GenAI Security Project: LLM02:2025 Sensitive Information Disclosure
- OWASP GenAI Security Project: LLM08:2025 Vector and Embedding Weaknesses
- OWASP GenAI Security Project: LLM01:2025 Prompt Injection
- NIST SP 800-53 Rev. 5: Security and Privacy Controls for Information Systems and Organizations (AC-4, AC-6, AC-16, AU-2, AU-6, AU-12, IA-9, RA-2)
- NIST SP 800-207: Zero Trust Architecture
- Prevent Unauthorized AI Agent Access to ELN or LIMS
- How to Secure AI Agents in Life-Science R&D
- Prompt Injection Risk for AI Research Agents
- How to Secure MCP Connectors for AI Agents in Life-Science R&D
- How to Keep Proprietary Research Data Out of External AI Models
- AI Agent Audit Trails: 21 CFR Part 11 and Annex 11
- How Do You Verify an AI Agent's Answer Before a Research Team Relies on It?
- AI Trust & Security for Life Sciences
- Technical evidence: what Atlas Bio has built
Talk to Atlas Bio.
Sponsors, researchers and clinicians: tell us the decision you are trying to make and we will show what the platform can and cannot answer.
Contact Us →