Habr•November 3, 2026•🇷🇺Translated from Russian

Taming the LLM Dragon: Corporate AI Gateway Architecture Addresses Classic Proxy Shortcomings

Spontaneous and decentralized rollout of generative AI has left many organizations without visibility into costs or data flows. Direct calls to models bypass corporate perimeters, creating shadow AI, prompt-based leaks of source code and personal data, and uncontrolled spending by autonomous agents.

The first instinctive response is to route all traffic through existing reverse proxies such as Nginx, Angie, Envoy or Kong. However, these classic L7 balancers were never designed for the unique characteristics of large language models.

Limitations of Traditional Proxies with LLM Traffic

  • Server-Sent Events inspection: Standard proxies cannot parse streaming responses token-by-token to mask passport numbers, SNILS or account details that may appear across multiple chunks, nor can they terminate a session when sensitive content is detected.
  • Hybrid routing decisions: Enterprises run local inference on vLLM or Ollama with models such as Qwen and DeepSeek alongside external services. Conventional balancers route by network path rather than by analyzing prompt content to keep confidential data on-premises.
  • Token-based accounting: Rate limiting expressed in requests per second ignores the fact that a single 64 000-token context consumes far more GPU memory than hundreds of short queries; proxies also cannot separate input, output and cached token costs for accurate billing.
  • Context caching and agent protocols: Legacy gateways do not reorder system instructions for cache hits or control external tool calls via the MCP protocol that autonomous agents use to reach internal resources.

The AI Optimum platform places a dedicated AI gateway between all internal consumers and target models. The gateway accepts traffic from backend services, developer clients, web interfaces and autonomous agents while enforcing centralized routing, security and quota policies. It remains fully compatible with the OpenAI API contract, allowing existing pipelines to switch endpoints without code changes.

Processing latency stays in the tens of milliseconds on the fast path. When payload inspection is enabled, adaptive micro-buffering ensures no sensitive entity is missed across token boundaries, adding predictable delay only to the first token while preserving smooth subsequent streaming. Detailed profiling breaks down security-check time, provider generation time and external tool execution for every request.

Future articles will quantify actual corporate AI expenditure and detail how to configure streaming data-protection controls that satisfy the strict requirements of 152-FZ.

Related articles

Habr•AI Security

Why We Banned Our AI Manager from Writing Code and Assigned the Task to Claude Opus

The team behind an AI-powered marketplace manager for Wildberries initially built the system using regular updates, then migrated it to an autonomous agent. After implementing multiple layers of restrictions, they ultimately removed the agent entirely and rebuilt the solution from scratch. The new architecture relies on a single tool that handles the complete Wildberries API along with internet access while respecting all platform limits. The decision to prohibit the original AI manager from generating code stemmed from concerns over reliability and security in production environments. Instead, the developers turned to Claude Opus to handle coding tasks. This case highlights practical challenges of deploying AI agents in e-commerce automation and information security contexts.

Habr•AI Security

Developer Builds MCP Linter and Discovers Security Issues in Anthropic Official Servers

A developer has released mcp-linter, a lightweight security and compliance tool for the Model Context Protocol used by Anthropic's Claude ecosystem. The linter detects critical problems such as stdout pollution that breaks JSON-RPC framing, missing destructiveHint annotations that allow autonomous agents to execute dangerous actions without human confirmation, prompt injection vectors hidden inside tool descriptions, and incomplete input schemas that increase model hallucinations. When run against Anthropic's reference servers, the tool assigned low health scores to server-memory and especially server-filesystem, highlighting dozens of parameters lacking descriptions. The utility runs with zero dependencies, supports SARIF output for GitHub Security, and can generate automatic JSON patches. The project is open source under MIT license and already integrates into CI pipelines via a dedicated GitHub Action.

Habr•AI Security

Pentesting AI Components: Key Vulnerabilities CISOs Must Address in RAG and AI Agents

The article examines how AI integration into corporate systems dramatically expands the attack surface beyond traditional web application testing. It details risks associated with chatbots, RAG-enabled systems that pull from internal documents, and autonomous AI agents capable of executing real actions via APIs. Yuri Grishaev, an OSCP+ certified specialist and top Standoff 365 hacker, explains how prompt injection can bypass access controls and lead to data leaks or unauthorized operations. The piece stresses that service accounts often hold broad privileges, allowing AI components to serve as indirect paths to sensitive data even when direct user access is restricted. It also covers how AI-generated output can trigger classic vulnerabilities such as XSS if not properly sanitized. Recommendations include inventorying all AI tools, enforcing least-privilege principles, and validating user permissions before any model processes or acts on retrieved content. ABP2B provides free checklists and policy templates to help organizations prepare for secure AI adoption.

Habr•AI Security

Local LLMs Enable Scams by Drafting Fraudulent Replies Without Warnings

Tests on consumer hardware showed that popular 7-8B local models almost never flagged classic advance-fee schemes when asked to draft replies instead of detecting fraud. The author ran 42 scam scenarios across Russian, Kazakh and mixed language on Llama 3.1 8B, Qwen 2.5 7B and DeepSeek-R1 8B using only an RTX 5050 laptop and Ollama. Without additional controls the models produced ready-to-send messages agreeing to prepaid transfers to unknown Kaspi Gold numbers in nearly every case. Introduction of the MoneyGate layer, which combines a mandate check, a separate judge model and hard-coded red-flag rules, blocked all 42 malicious requests while still allowing most legitimate payments to proceed. The benchmark KZ Scam Shield covering 12 Kazakhstan-specific fraud patterns remains publicly available for further testing.