litellm-proxy-security

Audits LiteLLM proxy deployments for API key leakage and implements hardening steps.

4|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/maruakshay/mii-ai-security --skill litellm-proxy-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: litellm-proxy-security
Source: https://github.com/maruakshay/mii-ai-security/tree/main/skills/litellm-proxy-security
Command: npx skills add https://github.com/maruakshay/mii-ai-security --skill litellm-proxy-security

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LiteLLM proxy centralizes access to multiple LLM providers and stores plaintext keys in config files, creating a risk surface for key leakage, unauthorized access, and budget abuse. This Skill outlines defenses to harden the proxy, isolate secrets, and enforce per-key restrictions.

Core Features & Use Cases

  • Config hardening guidance for LiteLLM proxy deployments.
  • Secrets management and access control patterns for proxies that aggregate multiple providers.
  • Use Case: A security engineer reviews a deployment to prevent API key leakage and ensure budget enforcement for all routed requests.

Quick Start

Audit the LiteLLM proxy deployment for key leakage, misconfigurations, and improper access controls, and implement the recommended hardening steps.

Frequently Asked Questions about litellm-proxy-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I secure upstream API keys in a LiteLLM proxy configuration?

To secure upstream API keys in a LiteLLM proxy configuration, you need to isolate secrets using proper secrets management and enforce strict access controls. This prevents plaintext key leakage from config files and blocks unauthorized access to routed LLM provider requests.

What is virtual key scoping in LiteLLM proxy deployments?

Virtual key scoping in LiteLLM proxy deployments is the practice of generating restricted proxy keys that map to upstream providers. It enforces per-key restrictions, ensuring clients only access authorized models and preventing budget abuse across the aggregated providers.

How do I prevent budget abuse and enforce spending limits on a LiteLLM proxy?

You can prevent budget abuse on a LiteLLM proxy by applying per-key budget controls and virtual key scoping. This enforces strict spending limits and access restrictions for all routed requests, preventing unauthorized users from exhausting your upstream provider quotas.

Does LiteLLM proxy store upstream provider API keys in plaintext?

Yes, LiteLLM proxy stores plaintext keys in config files to aggregate multiple LLM providers. This creates a significant risk surface for key leakage, requiring config hardening and secrets management patterns to isolate credentials and prevent data leakage.

What are the best practices for LiteLLM proxy config hardening during deployment reviews?

Best practices for LiteLLM proxy config hardening include validating key management, isolating secrets from plaintext config files, and applying virtual key scoping. These deployment review steps ensure proper access controls and prevent unauthorized access to upstream LLM providers.