Can AI Keep a Secret? Contextual Integrity Verification: A Provable Security Architecture for LLMs

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteur principal: Gupta, Aayush
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916905901621248
author Gupta, Aayush
author_facet Gupta, Aayush
contents Large language models (LLMs) remain acutely vulnerable to prompt injection and related jailbreak attacks; heuristic guardrails (rules, filters, LLM judges) are routinely bypassed. We present Contextual Integrity Verification (CIV), an inference-time security architecture that attaches cryptographically signed provenance labels to every token and enforces a source-trust lattice inside the transformer via a pre-softmax hard attention mask (with optional FFN/residual gating). CIV provides deterministic, per-token non-interference guarantees on frozen models: lower-trust tokens cannot influence higher-trust representations. On benchmarks derived from recent taxonomies of prompt-injection vectors (Elite-Attack + SoK-246), CIV attains 0% attack success rate under the stated threat model while preserving 93.1% token-level similarity and showing no degradation in model perplexity on benign tasks; we note a latency overhead attributable to a non-optimized data path. Because CIV is a lightweight patch -- no fine-tuning required -- we demonstrate drop-in protection for Llama-3-8B and Mistral-7B. We release a reference implementation, an automated certification harness, and the Elite-Attack corpus to support reproducible research.
format Preprint
id arxiv_https___arxiv_org_abs_2508_09288
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Can AI Keep a Secret? Contextual Integrity Verification: A Provable Security Architecture for LLMs
Gupta, Aayush
Cryptography and Security
Artificial Intelligence
Computation and Language
68T07, 94A60
D.4.6; K.6.5; E.3; I.2.6; I.2.7
Large language models (LLMs) remain acutely vulnerable to prompt injection and related jailbreak attacks; heuristic guardrails (rules, filters, LLM judges) are routinely bypassed. We present Contextual Integrity Verification (CIV), an inference-time security architecture that attaches cryptographically signed provenance labels to every token and enforces a source-trust lattice inside the transformer via a pre-softmax hard attention mask (with optional FFN/residual gating). CIV provides deterministic, per-token non-interference guarantees on frozen models: lower-trust tokens cannot influence higher-trust representations. On benchmarks derived from recent taxonomies of prompt-injection vectors (Elite-Attack + SoK-246), CIV attains 0% attack success rate under the stated threat model while preserving 93.1% token-level similarity and showing no degradation in model perplexity on benign tasks; we note a latency overhead attributable to a non-optimized data path. Because CIV is a lightweight patch -- no fine-tuning required -- we demonstrate drop-in protection for Llama-3-8B and Mistral-7B. We release a reference implementation, an automated certification harness, and the Elite-Attack corpus to support reproducible research.
title Can AI Keep a Secret? Contextual Integrity Verification: A Provable Security Architecture for LLMs
topic Cryptography and Security
Artificial Intelligence
Computation and Language
68T07, 94A60
D.4.6; K.6.5; E.3; I.2.6; I.2.7
url https://arxiv.org/abs/2508.09288