Which OWASP Top 10 for LLM Applications risks the LiteLLM gateway addresses
Before approving a shared LLM gateway, a security reviewer needs to know which OWASP Top 10 for LLM Applications risks the gateway can actually reduce and which ones remain with the application or the model provider. LiteLLM publishes a mapping of the OWASP Top 10 for LLM Applications 2026 to its gateway controls, stating how each control is turned on and where it stops. That mapping was checked against LiteLLM 1.104.0 in September 2026, and the latest release listed on the LiteLLM GitHub releases page is v1.105.1, so the first task is to confirm that the mapping still matches the version you plan to deploy.
The boundary matters as much as the mapping. LiteLLM's controls cover what the gateway sees: requests and responses passing through it, tools and MCP servers it brokers, managed files and vector stores it fronts, and its own configuration, container image and dependencies. They do not cover what a provider's model does internally, such as how it was trained or how it reasons over a prompt. A reviewer should therefore read each mapped risk as a control point at the gateway, and ask the application team and each model provider to document the controls on their side of the line.
Mapping each OWASP LLM risk to LiteLLM controls and configuration
This table maps each OWASP Top 10 for LLM Applications risk to the LiteLLM gateway control that addresses it, the setting that turns it on, and where the control stops. Read the last column first, since it names the share that stays with the application or model provider. Check the risk IDs against the OWASP edition your review cites before publishing.
| Risk | LiteLLM control | Configuration to switch it on | Where the control stops |
|---|---|---|---|
| LLM01: Prompt injection | Guardrails screen prompts, responses and tool calls at the gateway | Attach guardrails per team, key or model; team-level guardrails need Enterprise | Screening cannot prove injection is absent; the application must limit tool scope |
| LLM02: Sensitive information disclosure | Guardrails and per-team logging limit what prompts and logs retain | Enable content checks on prompts; set prompt storage and log retention deliberately | Data callers put in prompts and provider-side retention remain outside the gateway |
| LLM03: Supply chain | Image verification, pinned releases and supported minor versions | Pin the image; stay on a supported minor version; track the GitHub releases page | Model weights and provider-hosted models remain with the provider and model owner |
| LLM05: Improper output handling | Response guardrails at the gateway | Attach response checks to models and teams whose output reaches users or other systems | The gateway cannot know how the application renders or executes output; the app must encode it |
| LLM06: Excessive agency | Key model restrictions, MCP server permissions and RBAC | Restrict keys to named models; set MCP permissions; use Enterprise RBAC for admins | The gateway limits calls it brokers; actions inside the application and upstream systems stay with their owners |
| LLM07: System prompt leakage | Response guardrails can screen for known prompt text | Add checks for your system prompt markers on the relevant routes; confirm coverage in testing | Prompt design and secrecy are the application owner's responsibility |
| LLM08: Vector and embedding weaknesses | Gateway-brokered access to managed vector stores and files | Route retrieval through keys scoped to specific models and stores; confirm store support | Access control inside the vector database and embedding quality stay with the data team |
| LLM10: Unbounded consumption | Virtual key budgets, TPM and RPM limits, router cooldowns after failures | Set per-key, user and team budgets and TPM or RPM limits; configure cooldowns and retries | Limits apply at the gateway; provider quotas and application retry loops need separate checks |
| LLM04: Data and model poisoning | Not covered by the gateway | No gateway setting; confirm controls with the model provider or training team | Owner: the model provider and the teams that train, fine-tune or select data sources |
Where the gateway sits in the request path and what it can see
The request starts at a user or application, which signs in through the identity provider before it reaches the LiteLLM proxy. Inside the trust boundary, the proxy checks the virtual key and writes state to PostgreSQL and Redis. From there it can inspect prompts and responses, brokered tool calls and MCP server traffic, and managed files and vector store access. The hop to a model provider or private model crosses out of the boundary, and what happens inside the provider is outside what the gateway can see. Check each hop against your own network paths.
Request path through the LiteLLM gateway, with the trust boundary and the provider hop marked.
How to switch on the gateway controls in order
This sequence turns a freshly installed LiteLLM proxy into a gateway where admin access, model access, spend, routing, logging and guardrails are each set on purpose and checked before the next layer is added. Each phase ends with a test that shows the control works, so reviewers can match the result to the OWASP risk it addresses.
Move the master key into a secret manager
The platform team generates LITELLM_MASTER_KEY, which must start with sk-, and stores it in a secret manager rather than in a config file or environment file checked into source control. The proxy reads it from the secret at startup. Secret manager integrations (AWS, Azure, Google, HashiCorp Vault and CyberArk) are an Enterprise feature, so on open source the team must confirm how the key is injected into the pod. Done means a search of the deployment repository and container image history finds no copy of the key, and the proxy starts only after the secret is mounted. This addresses sensitive information disclosure and credential exposure.
Set admin access through SSO
Configure the admin UI to sign in through your identity provider. LiteLLM documents SSO with Google, Microsoft Entra ID (Azure AD), Okta and generic OIDC providers. From v1.76.0, SSO is free for up to 5 users; beyond that an Enterprise license is required, and SCIM, audit logs and organization and team RBAC are also Enterprise features. Confirm the admin account list against your identity provider groups. Done means a named administrator can sign in, and a test login with the shared master key is blocked from routine use and kept for break-glass only. This addresses excessive agency and unauthorized admin changes.
Restrict virtual keys to approved models with limits
Issue virtual keys per user, team or service account and set each key's allowed models, per-key, per-user or per-team budgets, TPM and RPM limits. Virtual keys require a PostgreSQL database. Temporary budget increases should be approved by a named owner and recorded. Done means a key requesting a model outside its list is refused, and a test request that exceeds the RPM or budget limit is rejected with a clear error. This addresses unbounded consumption and excessive agency at the gateway, since the platform team sets the ceiling rather than the application.
Configure routing and failover
Define model deployments in the router configuration. Use simple-shuffle, which LiteLLM recommends, as the default strategy, and set priority ordering for failover between providers or private models. Retries and cooldowns after repeated failures are set here as well. Confirm that each provider route uses only the endpoints your data handling review approved. Done means a forced failure on the primary deployment moves traffic to the approved fallback, and a request to an unapproved route is not possible from any key. This addresses supply chain exposure of provider endpoints and availability problems.
Enable audit logging and log retention
Turn on request and spend logging, and decide whether prompt and response bodies are stored. Audit logs of admin and key changes are an Enterprise feature, so open source deployments must confirm what evidence they can produce and where it is kept. Set a retention period in your log store and restrict who can read it. Done means a test key change and a test request both appear in the log store with the key identifier and model, and a non-admin account cannot read the log store. This addresses insecure output handling review and gives reviewers the evidence trail they ask for.
Add guardrails per team or model
Attach input and output checks to the teams or models that need them, starting with the highest-exposure routes such as tools and retrieval. Team-level guardrails and logging are an Enterprise feature; confirm whether the built-in checks you need are available on your edition. Tool and MCP permissions are set separately and should be reviewed here. Done means a test prompt containing an injection pattern or a restricted data pattern is blocked or flagged on the guarded team, and the same prompt on an unguarded team is logged as expected. This addresses prompt injection and sensitive data in output.
Harden the deployment for multiple instances
Run one Uvicorn worker per pod on Kubernetes and scale horizontally. Keep PostgreSQL as the primary database and add Redis 7.0 or newer once more than one proxy instance runs, because shared rate limits, router state and cache depend on it. Batch spend updates to the database every 60 seconds at scale, as LiteLLM recommends. Done means two replicas enforce the same RPM limit for one key, and a restart of one pod does not reset router cooldowns or spend. This addresses denial of service and keeps limits accurate across the fleet.
Who owns each OWASP LLM risk: gateway, application or model provider
The gateway owns the controls that act on traffic it sees: each request from a caller, each response returned, the keys and budgets that govern access, and its own configuration and runtime. These controls reduce exposure on that path. They do not replace secure code in the applications that call the gateway, and the gateway team should not assume they do.
- Key and model scoping: Virtual keys can restrict each caller to specific models and carry per-key, per-user and per-team budgets and TPM and RPM limits. These bound unbounded consumption and runaway spend.
- Input and output screening: Team-level guardrails in Enterprise and the guardrail options in LiteLLM screen prompts and responses at the gateway. For example (illustrative), a request containing a known injection pattern can be blocked before it reaches a provider. Confirm which checks your edition includes.
- Logging and audit trails: Request logs and Enterprise audit logs record which key called which model and which admin changed a key, giving the security team evidence for investigation.
- Gateway hardening: Keep LITELLM_MASTER_KEY in a secret manager, restrict database and Redis access, and use IP allowlisting on Enterprise. Review images and dependencies on your own schedule.
- Routing and failover: Retries, cooldowns and priority ordering keep traffic away from failing deployments, which limits the impact of a degraded provider.
Check the LiteLLM OWASP mapping for the exact control behind each risk and the point where each control stops in your version.
The application team owns what happens after a response arrives and what the model is allowed to do inside the product. The gateway sees the text passed between caller and model, but it cannot know how your application renders output, which tools it runs, or which documents a retrieval step exposes to a given user.
- Output handling: Treat model output as untrusted before it reaches a browser, a database query, a shell or a template. For example (illustrative), a model-generated SQL statement should run through parameterized execution under a read-only role, never as a raw string against production.
- Tool and agent permissions: Give each tool the narrowest scope it needs. Tools brokered through the gateway or reached through MCP servers still need per-tool authorization designed and tested by the application team.
- Retrieval and vector access: Filter documents and embeddings by the requesting user's permissions in the application or retrieval layer. The gateway cannot see which user may read which chunk.
- Sensitive data in prompts: Keep secrets and access rules out of system prompts, and send only the personal data the task needs.
- Identity passed through: Send user or team metadata with each call so budgets and logs attribute usage correctly, and authenticate end users in the application itself.
Confirm that every output path has a documented handler and a test that covers malicious model output.
The model provider owns how the model was trained, what it has learned, and how the provider processes and retains data inside its own service. The gateway can record which provider and deployment received a request and what came back. It cannot prove what happens inside the model or on the provider's systems.
- Training data and poisoning: Provider controls cover training data sources and model updates. The gateway sees outputs only, so it cannot detect poisoned model weights.
- Model behavior and misinformation: Inaccurate or biased output originates in the model. Gateway checks can flag patterns, but accuracy testing belongs in the application's evaluation process.
- Provider data handling: Retention periods, regional processing, sub-processors and whether prompts are used to train provider models are questions for the provider's terms and documentation. Confirm them in writing, and use region-tagged deployments where residency matters.
- Provider-side safety layers: Refusal and content filtering built into a provider's service vary by model and version. Test them against your own policy instead of assuming they match it.
- Self-hosted models: For models your team serves itself, the weights, serving engine and their provenance become your team's responsibility, not the provider's.
Ask each provider for its security documentation and data processing terms, and record which gateway deployments route to each one.
What evidence a reviewer can collect for each control
Each card names one kind of evidence a reviewer can gather from a self-hosted LiteLLM gateway and its surroundings. The evidence supports the reviewer's own assessment of each OWASP Top 10 for LLM Applications risk; it does not certify the gateway or the application. Refresh each item after every upgrade, because the mapping and settings depend on the version in use.
OWASP mapping checked against a version
LiteLLM publishes a mapping of the OWASP Top 10 for LLM Applications 2026 to its gateway controls, stating how each is turned on and where each stops. Its checked release was LiteLLM 1.104.0, tested in September 2026. Reviewers should record which mapping version they read, confirm it matches the release they run, and note every control where the mapping says the gateway stops and the application or model provider takes over.
OWASP mapping pageVirtual key and model restriction exports
Export the virtual key list with its budgets, TPM and RPM limits, owner and the models each key may call. A reviewer checks that keys are scoped to the models a team needs, that no key is unbounded where a limit is expected, and that temporary budget increases are traceable. Keep a dated export in the evidence folder and repeat it after key rotations or team changes, since the configuration changes faster than the policy document.
Virtual keys docsSSO and admin audit logs
Admin audit logs and SSO settings are part of LiteLLM Enterprise. Reviewers look for named administrator changes to keys, models and teams, the absence of shared admin logins, and an SSO provider in place of local passwords. Free SSO covers up to 5 users from v1.76.0; beyond that, confirm an Enterprise license is in place before treating SSO as evidence. Retain exported logs under the organization's own retention rule, not the gateway default.
LiteLLM Enterprise docsRouter, cooldown and budget settings
Capture the router configuration: the routing strategy in use, retry and cooldown behavior, failover priority, and the budget and rate settings applied to each model group. For OWASP risks tied to unbounded consumption, the reviewer needs proof that caps exist and that a runaway caller hits a limit before it hits the provider bill. Store the configuration file under version control so each change has a diff and an author.
Routing docsRelease and image records
Record the LiteLLM release in production, its release date and the image digest actually deployed. Compare against the releases page to confirm the version is on a supported minor line; LiteLLM maintains support for the four most recent stable minor versions. The reviewer uses these records to match the OWASP mapping to the running code and to show that dependency and image updates were applied on a schedule.
- Supported minor versions
- 4
Retest and scan results
Keep the results of security tests the owning team runs against the gateway and the applications behind it, including prompt injection tests, tool permission checks and dependency or image scans. Each result should name the LiteLLM version tested and the date. A failed finding needs a linked fix and a retest. Reviewers treat a result older than the last upgrade as out of date until it is rerun against the new version.
What stays with the application and the model provider
The LiteLLM gateway sees requests, responses, brokered tool calls and MCP traffic that pass through it. It does not see how a provider's model reasons, what the model was trained on, or what your application does with the text that comes back. That boundary is the core of the OWASP mapping: the controls in the gateway cover what crosses it, and the rest of the risk sits with the people who design the application and the tools it can call. Security reviewers should read the mapping at the LiteLLM documentation and mark each row as either a gateway control or an application duty before signing off.
Three risks need controls in the application and tool design as well as at the gateway. Prompt injection can arrive in user input, retrieved documents or tool results, so a gateway filter alone will miss instructions hidden in content the model later acts on. Insecure output handling happens when the application renders or executes model output without encoding or validation, which no proxy can prevent. Excessive agency is set by the tools, scopes and service accounts you grant, so the allowed actions of each agent should be decided in the application and then enforced with narrow virtual key model restrictions and tool permissions at the gateway. Plan tests for these paths in the application itself, not only in gateway logs.
Provider-side behavior is outside what LiteLLM can verify. Whether a provider uses your prompts for training, how long it retains them, where it processes them and how it handles abuse monitoring are questions for each provider's own documentation and contract, and they can differ between products and regions within the same provider. Ask each provider for its current security and data handling terms in writing, confirm whether your account tier applies them, and record the answers alongside your gateway configuration. Revisit them when you add a provider or change a model, because the terms may change without a LiteLLM release.
Gaps the LiteLLM gateway does not close on its own
The LiteLLM mapping covers what the gateway sees: requests, responses, brokered tools and MCP servers, managed files and vector stores, and its own configuration, image and dependencies. The cards below cover what falls outside that boundary, and who must own each remainder before a security review signs off.
Model provider internals
The gateway sees the request going to a provider and the response coming back, but not what the model does internally. Behavior such as training use of prompts, sub-processing, and how a provider handles prompt injection inside the model belongs to the provider. For each approved provider, confirm its data processing terms, retention and training commitments in writing, and record which deployment or region each route uses.
Application code and output rendering
If your application inserts model output into a web page, a shell command, or a database query, the gateway cannot make that safe. Insecure output handling and excessive agency in the application depend on how your code validates and escapes what comes back. Owners are the application team. Check that every consumer of model output has its own encoding, parameterization and permission checks.
Training and fine-tuning data
The gateway proxies inference traffic. It does not inspect datasets used to train or fine-tune a model, so training data poisoning and its provenance are outside its controls. If your teams fine-tune models served behind LiteLLM, the data pipeline owner must document sources, review and access. Confirm with the training team which datasets exist and who can change them.
Dependencies and images beyond the project's documentation
The mapping covers LiteLLM's own configuration, image and dependencies as the project documents them. Your base operating system image, sidecars, custom callbacks, and any Python packages you add are your supply chain. Ask who scans and signs those artifacts, how often they are rebuilt, and whether your registry policy blocks unscanned images before deployment.
Private model supply chain
For models you host yourself, the weights, their source, licenses and integrity checks sit before the gateway. The gateway only sees the endpoint it routes to. Record which model artifacts were downloaded, from where, and by whom, and confirm that the serving layer you connect to is maintained and patched under your own change process.
Budgets, roles and retention settings
Several risks depend on how you configure the gateway, not on the software alone: budgets and rate limits that bound runaway consumption, key scopes that limit which models a caller reaches, team roles, and how long logs are kept. Assign an owner for each setting, review them on a schedule, and check the Enterprise audit log and RBAC features you rely on against your own requirements.
Questions security teams ask before using LiteLLM for OWASP LLM controls
How much work does it take to configure the LiteLLM gateway controls?
The work depends on how many controls you turn on and how many models, keys and teams sit behind the gateway. Virtual keys need a PostgreSQL database, so the database, key issuance, budgets, rate limits and model restrictions are the first block of work. Each additional control, such as guardrails, MCP server registration or logging to your SIEM, adds configuration, testing and documentation. Ask any partner for a written scope that lists each control, the models and teams in scope, and the environments it covers. Effort is not something this page can quantify, so treat any figure you see without a written scope as a starting point for questions.
What drives the effort up or down?
Four factors move the effort most. The first is the number of models and provider connections, since each needs its own authentication, routes and cost settings. The second is the number of teams and keys that need separate budgets, limits and model restrictions. The third is identity: SSO for the admin UI is free for up to 5 users in v1.76.0 and later, while SCIM, JWT authentication, audit logs and RBAC sit in Enterprise, so your edition decision shapes the design. The fourth is the existing application estate, because each application that calls the gateway needs review for prompt handling, tool access and output use. Private model hosting adds its own sizing and access work.
Can our team configure these controls without outside help?
Yes, many platform teams can, provided they have engineers who know Kubernetes or your hosting platform, PostgreSQL, Redis when more than one proxy instance runs, and your identity provider. The LiteLLM documentation covers virtual keys, routing, SSO and production practices. The harder part is the review: mapping each OWASP risk to a control you have enabled, testing that the control works against your own applications, and recording what stays with the application or model provider. Teams often bring in outside help for that testing and evidence step, or for an independent second read of the design. Decide early which parts you own and which you want reviewed.
What do we need to provide during the engagement?
You will need to supply several people and access paths. An architecture owner should confirm where the gateway runs, how it reaches providers and private models, and which data stores hold prompts and logs. An identity administrator needs to connect the SSO provider and decide group mappings for teams and roles. Application owners must make their applications available for testing, including the tools, files and vector stores they connect through the gateway. Your security team should define acceptance criteria and own the findings. Ask for these requirements to be written into the scope so that access requests and test windows are planned before work begins.
How long does it take to get audit evidence ready?
No duration figure is supplied for this work, so do not rely on a generic estimate. The time depends on how many controls are in scope, how many applications need testing, whether Enterprise features and identity integration are required, and how quickly your teams can give access and make decisions. Ask any provider for a written scope with a timeline, the named deliverables, the evidence each control will produce, and the dependencies on your side. Fixed-scope engagements are agreed in writing before work starts, so the schedule should appear there.
Will the OWASP mapping still be accurate after we upgrade LiteLLM?
Not automatically. LiteLLM publishes its OWASP LLM Top 10 mapping and states that it was checked against version 1.104.0 in September 2026, so a newer release may change how a control is enabled or where it stops. LiteLLM maintains support for the four most recent stable minor versions, and the current release listed on its GitHub releases page is v1.105.1. After each upgrade, re-check the mapping against your running version, retest the controls you rely on, and update your evidence. Plan this as recurring work, not a one-time task.
Does DeployOpen issue certifications or audit reports for our LiteLLM setup?
No. DeployOpen does not issue audit reports, attestations or certifications. It plans, implements, hardens and documents self-hosted platforms in your infrastructure, and it prepares systems, controls and evidence for compliance assessments. Independent auditors and certification bodies perform the assessment and issue any report. The mapping in this topic describes what the LiteLLM gateway controls and where they stop, but it is not an assurance statement. Ask your auditor which evidence they need, and agree the evidence format with them before the build starts.
How DeployOpen works on this
DeployOpen plans, deploys and hardens self-hosted LiteLLM gateways inside your own infrastructure, then maps the OWASP Top 10 for LLM Applications to the controls you actually switch on. We test the gateway against the risks it can see, document what stays with your application or model provider, and hand over evidence your security reviewers can check.
How we scope
- Engagements are fixed-scope, with the OWASP risks in scope and the gateway controls for each agreed in writing before work starts.
- We list which LiteLLM features each risk relies on, such as virtual keys, guardrails, routing and logging, and which ones you already run.
- The written scope names what stays with your application code, prompt design and model provider, so ownership is clear before build.
How we build
- We deploy the LiteLLM proxy with PostgreSQL and Redis in your environment and enable the controls mapped to each risk.
- We configure virtual keys, model restrictions, rate limits, budgets and guardrail settings per team and key, then record each setting as configuration.
- We test the gateway against prompt injection, excessive tool permissions, data exposure and misconfigured admin access, and retest after fixes.
How we hand over
- You receive a control map showing each OWASP LLM risk, the LiteLLM setting that addresses it, and where coverage stops.
- Findings come with fixes, a retest record and configuration files stored in your own repositories.
- Runbooks explain how to review logs, rotate keys and confirm the controls still work after an upgrade.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, so the control map stays current as LiteLLM releases change.
- We prepare evidence for your own security review and compliance assessments. DeployOpen does not issue audit reports or certifications.
- Retainer scope, response expectations and retest cadence are agreed in writing so your team knows what to expect.

