llm-gateway-controls
Skill0 starsChanged 13 days agoMITView on GitHub
Design and review controls at an LLM/AI gateway or proxy (LiteLLM, cloud AI gateways, Azure API Management AI policies, commercial AI firewalls) — authentication and per-user attribution, approved models and providers, prompt/response logging with privacy, DLP and secret redaction, injection/jailbreak classifiers, rate and spend limits, and shadow-AI discovery. Use when governing enterprise use of LLM APIs, preventing sensitive data leakage to AI services, or monitoring AI usage.
- Reads credentials
In this repository273 other files it gives its agents.
- ad-attack-path-analysisSkill
- adcs-security-reviewSkill
- ad-privileged-access-reviewSkill
- dcsync-detectionSkill
- gpo-security-reviewSkill
- kerberos-attack-detectionSkill
- agent-tool-permission-reviewSkill
- ai-incident-responseSkill
- llm-security-evaluationSkill
- mcp-server-security-reviewSkill
- model-artifact-securitySkill
- prompt-injection-reviewSkill
- rag-security-reviewSkill
- api-abuse-detectionSkill
- api-authorization-testingSkill
- api-inventorySkill
- api-schema-securitySkill
- dast-baselineSkill
- sast-triageSkill
- sca-dependency-riskSkill
- secure-code-reviewSkill
- security-requirementsSkill
- threat-modelingSkill
- asset-criticality-tieringSkill
- asset-inventory-reconciliationSkill
- external-attack-surface-reviewSkill
- shadow-it-discoverySkill
- aws-credential-compromiseSkill
- aws-iam-reviewSkill
- aws-org-guardrailsSkill
- cloudtrail-investigationSkill
- guardduty-triageSkill
- s3-exposure-reviewSkill
- azure-activity-investigationSkill
- azure-rbac-reviewSkill
- conditional-access-reviewSkill
- entra-audit-investigationSkill
- entra-signin-investigationSkill
- backup-assuranceSkill
- critical-service-mappingSkill
- ransomware-recoverySkill
- recovery-exerciseSkill
- cloud-exposure-reviewSkill
- cloud-incident-responseSkill
- cloud-logging-baselineSkill
- cloud-posture-assessmentSkill
- audit-evidence-packageSkill
- continuous-control-monitoringSkill
- control-mappingSkill
- control-testing-samplingSkill
- container-incidentSkill
- dockerfile-hardeningSkill
- image-scanningSkill
- runtime-detection-falcoSkill
- db-audit-loggingSkill
- db-exfiltration-investigationSkill
- db-hardeningSkill
- db-privilege-reviewSkill
- data-classificationSkill
- data-discoverySkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 46
Check the current LiteLLM docs for guardrail and per-key budget configuration syntax.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
LLM Gateway Controls
Control set
| Control | Purpose |
| Central gateway for all LLM API traffic | Visibility, single enforcement point; block direct egress to AI provider APIs from servers |
| Strong auth + per-user/app identity | Attribution of prompts and spend; no shared provider keys in apps |
| Model/provider allow-list | Only approved models/regions/data-processing terms (no-training, retention terms) |
| Input DLP & secret redaction | Detect and mask secrets, credentials, PII, classified content before sending (telemetry-minimization patterns) |
| Injection/jailbreak detection | Classifiers on inputs and retrieved content (e.g., prompt shields); log and optionally block |
| Output filtering | PII, secrets, unsafe content; markdown/image URL stripping for exfil prevention |
| Rate limits & budgets | Per user/app token and cost caps (LLM10) |
| Logging | Prompts/responses/tool calls to restricted store with retention and access audit; metadata to SIEM |
| Key management | Provider keys in a vault, rotated; alert on usage anomalies (LLMjacking) |
Shadow AI discovery
Proxy/DNS logs for AI SaaS domains (chat assistants, transcription, code assistants), CASB app catalogs, browser extension inventory, OAuth grants to AI apps (oauth-app-review), expense reports. Provide an approved alternative rather than only blocking.
Example: LiteLLM proxy config fragment (illustrative)
model_list:
- model_name: approved-chat
litellm_params:
model: azure/<deployment>
api_base: os.environ/AZURE_API_BASE
api_key: os.environ/AZURE_API_KEY
general_settings:
master_key: os.environ/LITELLM_MASTER_KEY
litellm_settings:
max_budget: 1000
budget_duration: 30dCheck the current LiteLLM docs for guardrail and per-key budget configuration syntax.
Review output
Control | Implemented | Coverage (apps/users) | Evidence | Gap | Recommendation
Related skills
ai-incident-response, prompt-injection-review, dlp-alert-triage, shadow-it-discovery
References
- OWASP LLM02:2025 Sensitive Information Disclosure: https://genai.owasp.org/llmrisk/llm022025-sensitive-information-disclosure/
- OWASP LLM10:2025 Unbounded Consumption: https://genai.owasp.org/llmrisk/llm102025-unbounded-consumption/
- LiteLLM proxy docs: https://docs.litellm.ai/docs/simple_proxy
- Azure API Management AI gateway capabilities: https://learn.microsoft.com/en-us/azure/api-management/genai-gateway-capabilities
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

