Skip to content
Conference

A Gateway-Centric Architecture for Bidirectional Content Moderation in Large Language Models

Jun 2026 · 2026 IEEE 2nd International Conference on Electronics, Energy Systems and Power Engineering (EESPE) · pp. 392-396 · 0 citations · 11 references

Abstract

Large language model (LLM) applications deployed in regulated and high-risk environments face two coupled runtime risks: input-side prompt injection and output-side content compliance violations. Existing defenses are often either model-centric (alignment or fine-tuning) or application-local (keywords and regex), which limits auditability, policy agility, and cross-model portability. This paper proposes a gateway-centric framework that externalizes safety enforcement into a security side-chain. The framework integrates a unified LLM gateway with an external semantic guardrail service to perform bidirectional inspection before and after model invocation. We formalize the architecture with input-risk and output-compliance functions, define a comprehensive threat model and trust boundary, and present a reproducible evaluation protocol. To validate our approach, a prototype implementation based on LiteLLM and Prisma AIRS was evaluated on a rigorously balanced 2,000-sample adversarial dataset merged from diverse sources, including Deepset, wildjailbreak, and jailbreak-classification. Results demonstrate that the proposed architecture achieves an exceptional balance in detection capability, yielding an F1-score of 0.8322, a recall of 0.8531, and effectively maintaining a low False Positive Rate (FPR), thereby outperforming multiple state-of-the-art baselines including Llama Prompt Guard and Deepset DeBERTa. Furthermore, performance testing confirms practical deployability, showing an average added latency of only 320 ms under a 50-concurrent-user load. The paper concludes by discussing the side-chain advantages over model alignment mechanisms, guardrail bypass risks, and adaptive policy-evolution strategies for enterprise AI governance.

View source

Similar papers

Preprint Jul 2026

Beyond the Prompt: Jailbreaking Function-Calling LLMs via Simulated Moderation Traces

It is demonstrated that prompt-level sanitization alone is fundamentally insufficient for defending tool-enabled LLM systems and highlight the urgent need for context-aware validation across schemas, arguments, tool outputs, and accumulated conversation state.

Junlong Liu, Haobo Wang, Weiqi Luo et al. · 0 citations
Preprint Jul 2026

Architectural Backdoors in Vision-Language Model Supply Chains via Representation Steering

This paper introduces dormant steering logic into the model architecture through a trigger-gated additive modification of an intermediate representation, without poisoning training data, controlling downstream fine-tuning, or modifying prompts at deployment time.

M. Briglia, Igor Maljkovic, A. E. Cinà et al. · 0 citations
Book Open access Aug 2026

The 2nd SeT-LLM Workshop on Secure and Trustworthy Large Language Models

The 2nd SeT-LLM Workshop on Secure and Trustworthy Large Language Models brings together researchers and practitioners from data mining, machine learning, security, and responsible AI to address issues from a data-centric, system-level perspective.

Lu Lin, Jinghui Chen, Ting Wang et al. · 0 citations
Conference Jun 2026

IntentNEF: LLM-Driven Natural Language Automation of 5G Network Exposure

Configuring 5G networks through standardized exposure interfaces—the Network Exposure Function (NEF) and the Common API Framework (CAPIF)—remains operationally burdensome, requiring manual navigation of 3 GPP parameter schemas, OAuth2 authentication, and live network state. This paper presents a modular, intent-driven architecture that translates natural language operator goals into schema-compliant NEF API configurations using a compact, locally deployed Large Language Model (LLM), Qwen3-4B (4 billion parameters). A deterministic pre-classification layer reserves LLM inference for semantically complex requests, while a six-stage pipeline produces near-deterministic, conflict-aware JSON output. Two complementary validation paths are provided: a Standard Mode with closed-loop Quality of Service (QoS) feedback via a NEF emulator, and a Free5GC Mode that validates the same translation logic against a Free5GC-based experimental environment with real user-plane traffic. Demonstration across five vertical scenarios confirms end-to-end correctness in both the emulated NEF environment and the Free5GC-based experimental environment.

Hao You, Chathura Galkandage, Naércio Magaia et al. · 0 citations
Open access Aug 2026

A Privacy-Preserving Middleware Architecture for Detecting Prompt Injection and Sensitive Data Exposure in Large-Language-Model Interactions

A privacy-preserving hybrid middleware architecture that enforces a local trust boundary as its primary design constraint that is model-agnostic, requires no retraining of the underlying LLM, and is compatible with black-box API deployments is proposed and evaluated.

Adam Ait Hsine, A. Arabo · 0 citations
Preprint Aug 2026

AEGIS: Preventing Cross-Domain Resource Abuse in MCP

AEGIS is presented, a policy enforcement component that enables administrators to define fine-grained safeguards against resource abuse across heterogeneous MCP tools and modalities and detects and mitigates abusive behaviors while preserving the flexibility of MCP-based agent ecosystems.

S. Priya, Teryl Taylor, F. Araujo · 0 citations