arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.11837cs.CRcs.AI
收藏

Countermind:大型语言模型的多层安全架构

Countermind: A Multi-Layered Security Architecture for Large Language Models

Independent Researcher(独立研究者)

Dominik Schwarz

AI总结:

针对LLM的提示注入和越狱等“形式优先”攻击,提出Countermind多层安全架构,通过语义边界逻辑、参数空间限制、自调节核心及多模态沙箱,实现主动防御,降低攻击成功率。

摘要:

大型语言模型(LLM)应用的安全性从根本上受到“形式优先”攻击(如提示注入和越狱)的挑战,这些攻击将恶意指令嵌入用户输入中。传统防御依赖事后输出过滤,往往脆弱且未能解决根本原因:模型无法区分可信指令与不可信数据。本文提出Countermind,一种多层安全架构,旨在将防御从被动、事后姿态转变为主动、推理前及推理中的强制执行模式。该架构提出一个强化边界,用于结构性验证和转换所有输入,以及一个内部治理机制,旨在在生成输出前约束模型的语义处理路径。本工作的主要贡献是以下概念设计:(1)语义边界逻辑(SBL),带有强制、时间耦合的文本加密器,旨在减少明文提示注入攻击面,前提是所有输入路径均被强制执行。(2)参数空间限制(PSR)机制,利用表示工程原理,动态控制LLM对内部语义簇的访问,旨在缓解语义漂移和危险涌现行为。(3)安全、自调节核心,使用OODA循环和学习安全模块,基于不可变审计日志调整其防御。(4)多模态输入沙箱和上下文防御机制,以应对非文本数据和长期语义投毒带来的威胁。本文概述了一个评估计划,旨在量化所提架构在降低形式优先攻击的攻击成功率(ASR)方面的有效性,并衡量其潜在延迟开销。

英文摘要:

The security of Large Language Model (LLM) applications is fundamentally challenged by "form-first" attacks like prompt injection and jailbreaking, where malicious instructions are embedded within user inputs. Conventional defenses, which rely on post hoc output filtering, are often brittle and fail to address the root cause: the model's inability to distinguish trusted instructions from untrusted data. This paper proposes Countermind, a multi-layered security architecture intended to shift defenses from a reactive, post hoc posture to a proactive, pre-inference, and intra-inference enforcement model. The architecture proposes a fortified perimeter designed to structurally validate and transform all inputs, and an internal governance mechanism intended to constrain the model's semantic processing pathways before an output is generated. The primary contributions of this work are conceptual designs for: (1) A Semantic Boundary Logic (SBL) with a mandatory, time-coupled Text Crypter intended to reduce the plaintext prompt injection attack surface, provided all ingestion paths are enforced. (2) A Parameter-Space Restriction (PSR) mechanism, leveraging principles from representation engineering, to dynamically control the LLM's access to internal semantic clusters, with the goal of mitigating semantic drift and dangerous emergent behaviors. (3) A Secure, Self-Regulating Core that uses an OODA loop and a learning security module to adapt its defenses based on an immutable audit log. (4) A Multimodal Input Sandbox and Context-Defense mechanisms to address threats from non-textual data and long-term semantic poisoning. This paper outlines an evaluation plan designed to quantify the proposed architecture's effectiveness in reducing the Attack Success Rate (ASR) for form-first attacks and to measure its potential latency overhead.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑