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

AEX:非侵入式多跳认证与溯源用于LLM API

AEX: Non-Intrusive Multi-Hop Attestation and Provenance for LLM APIs

Yongjie Guan

AI总结:

AEX为现有JSON基于LLM API提供非侵入式认证扩展,通过添加签名顶层认证对象,绑定客户端可见请求投影到完整响应或流式输出,支持真实部署并防止转换输出被误认为源流前缀。

摘要:

托管的大语言模型越来越多地通过远程API访问,但API边界仍缺乏直接证据证明返回的输出确实对应客户端可见的请求。最近对影子API的审计显示,非官方或中间端点可能偏离声明行为,而现有方法如指纹识别、模型等价测试、可验证推理和TEE认证要么仍属推断性要么回答不同问题。我们提出AEX,一种非侵入式的认证扩展,用于现有JSON基于LLM API。AEX保留请求、响应、工具调用、流式传输和错误语义,并添加一个签名顶层认证对象,将客户端可见的请求投影绑定到完整响应对象或承诺的流式输出。为支持真实部署,AEX提供明确的请求绑定模式,签名请求转换收据用于可信中间件,以及源输出/输出转换收据用于可信输出重写。对于流式传输,它分离了验证过的前缀证明,用于未修改源流的验证前缀,以及完整输出溯源用于已被重写、缓冲、聚合或重新打包的输出,防止转换输出被误认为源流前缀。AEX因此做出有意识的狭窄声明:可信发行者在API边界认证特定的请求-输出关系,或特定的完整输出溯源。我们展示了协议设计、威胁模型、验证状态机、安全性和隐私分析、一个与OpenAI兼容的聊天-完成配置文件,以及一个参考TypeScript原型,包含本地符合性测试和微基准测试。

英文摘要:

Hosted large language models are increasingly accessed through remote APIs, but the API boundary still offers little direct evidence that a returned output actually corresponds to the client-visible request. Recent audits of shadow APIs show that unofficial or intermediary endpoints can diverge from claimed behavior, while existing approaches such as fingerprinting, model-equality testing, verifiable inference, and TEE attestation either remain inferential or answer different questions. We propose AEX, a non-intrusive attestation extension for existing JSON-based LLM APIs. AEX preserves request, response, tool-calling, streaming, and error semantics, and instead adds a signed top-level attestation object that binds a client-visible request projection to either a complete response object or a committed streaming output. To support realistic deployments, AEX provides explicit request-binding modes, signed request-transform receipts for trusted intermediaries, and source-output / output-transform receipts for trusted output rewriting. For streaming, it separates checkpoint proofs for verified prefixes of an unmodified source stream from complete-output lineage for outputs that have been rewritten, buffered, aggregated, or re-packaged, preventing transformed outputs from being mistaken for source-stream prefixes. AEX therefore makes a deliberately narrow claim: a trusted issuer attests to a specific request-output relation, or to a specific complete-output lineage, at the API boundary. We present the protocol design, threat model, verification state machine, security and privacy analysis, an OpenAI-compatible chat-completions profile, and a reference TypeScript prototype with local conformance tests and microbenchmarks.

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

↑