Blog · AI security
LLM security risks in the enterprise: prompt injection, data leakage and agent tool misuse
The security risks that matter once large language models and AI agents sit inside a corporate network, mapped to the OWASP LLM and agentic Top 10 lists, with a test for each and a checklist for your first assessment.
When we first wrote about this in 2024, the main worry was a chatbot leaking something it had seen. Two years on, large language models read your mailboxes, search your document stores and call tools on your behalf. The risk has moved from what a model says to what it can do.
This post sets out the risks we test for most often, and how to check each one inside your own network.
The shared vocabulary: two OWASP lists
The OWASP GenAI Security Project maintains the reference lists most security teams now use.
- The OWASP Top 10 for LLM Applications was published as a 2025 edition and refreshed in a 2026 edition in August 2026. Prompt injection stays first. Excessive agency moved up, and system prompt leakage was broadened into hidden context exposure.
- The OWASP Top 10 for Agentic Applications, released in December 2025, covers agents specifically: goal hijack, tool misuse, identity and privilege abuse, memory and context poisoning, and rogue agents among them.
Use both. The first covers the model and the application around it. The second covers what happens when the model is allowed to act.
Four risks that matter inside a corporate network
1. Prompt injection through documents and tools
Direct injection, a user typing "ignore your instructions", is the easy case. The harder one is indirect: instructions hidden in an email, a PDF, a web page or a ticket that the model reads while doing its job. The model cannot reliably tell your instructions from text an attacker planted in its input.
The test: plant instructions in a document the assistant will retrieve, then ask an ordinary question. Does it follow them, reveal them or quietly change its answer?
2. Sensitive information disclosure
Retrieval systems answer from whatever they can index. If the index ignores your existing permissions, any user can ask for what they could never open directly. Prompts, answers, embeddings and logs all hold sensitive context too.
The test: sign in as a low-privilege user and ask for something only a director should see. Then check where prompts and answers are logged, and who can read those logs.
3. Excessive agency and tool misuse
An agent with write access to email, tickets or a database can do damage with tools it is allowed to use. A goal hijacked by injected text becomes a real action: a message sent, a record changed, a file shared outside.
The test: list every tool the agent can call and every system those tools reach. For each, ask whether the agent needs it, whether it can be read-only, and whether a person approves before anything irreversible happens.
4. Supply chain and hidden context
Models, plug-ins, tool servers and prompt templates all come from somewhere. A compromised component changes behaviour without any change to your code. System prompts and hidden context often hold credentials or business rules that should never be exposed.
The test: keep an inventory of every model version, tool server and plug-in in use, with its source. Search system prompts and agent configuration for secrets.
A checklist for your first assessment
| Area | Question | Red flag |
|---|---|---|
| Inputs | Which untrusted sources can the model read? | Email, web or uploads go straight into the prompt |
| Data | Does retrieval respect existing permissions? | One index serves every user |
| Tools | Which actions can the agent take without approval? | Any write or send action without a person in the loop |
| Identity | Does each agent have its own identity and owner? | Agents run on a shared service account |
| Records | Can you replay what the agent saw and did? | Only the final answer is logged |
| Supply chain | Do you know every model and tool server in use? | No inventory, or versions change unannounced |
If you answer "no" or "don't know" to more than two of these, test before you widen access.
Controls that hold up
- Treat model input as untrusted. Separate instructions from retrieved content, and filter what tools can return.
- Least agency. Give each agent the smallest set of tools and permissions its task needs, read-only by default.
- An identity per agent. A named owner and a scoped mandate, so actions can be traced and access revoked.
- Approval for consequential actions. Sending, deleting, paying or sharing waits for a person.
- Full records. Log inputs, tool calls and outputs, not just answers, so an incident can be reconstructed.
Where to start
Begin with an inventory of the LLM applications and agents already in use, then test the riskiest one against both OWASP lists. Our guide to AI security assessment explains what a full assessment covers: the model, its data, the agents and tools it can reach, and the application around it.
The ZySec AI Assurance Lab runs that testing, from model red teaming to agent and application testing, with every finding signed off by a researcher. For the agents themselves, AgentSight is designed to tie each one to an identity and check every tool call against a signed policy before it runs.