Metraipolis › archive › dc_1b025d46b6f2
BASIS: Breach-Aware Selective Prompt Injection Shielding with Prefill Attention Probes — arXiv:2608.08027
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.08027
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-19T08:58:12.480Z
- SHA-256 of the archived text
98990937a2368e767a0b0edd436b3f6c1a2d505dca8847bfa7fb7b9eb8e178e3- Stable URL of this page
https://metraipolis.com/documento/dc_1b025d46b6f2
How to cite
BASIS: Breach-Aware Selective Prompt Injection Shielding with Prefill Attention Probes — arXiv:2608.08027 — arXiv (en), https://arxiv.org/abs/2608.08027 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_1b025d46b6f2 (Metraipolis archive dc_1b025d46b6f2, sha256 98990937a2368e767a0b0edd436b3f6c1a2d505dca8847bfa7fb7b9eb8e178e3)
BibTeX
@misc{dc1b025d46b6f2,
title = {BASIS: Breach-Aware Selective Prompt Injection Shielding with Prefill Attention Probes — arXiv:2608.08027},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.08027},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_1b025d46b6f2; sha256 98990937a2368e767a0b0edd436b3f6c1a2d505dca8847bfa7fb7b9eb8e178e3},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.08027. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Prompt injection is a critical security threat in large language model (LLM) applications, where attackers hijack model behavior by embedding malicious instructions in user or external data. Existing detection methods only detect the presence of injection and refuse to respond upon detection, overlooking the fact that for many modern aligned models, well-crafted instructions can resist most injection attacks. This means that the injection robustness varies significantly across instructions and models. This leads to widespread unnecessary over-refusal: inputs containing injections that the model could have handled correctly are rejected incorrectly. To deal with this over-refusal issue, we propose BASIS (Robustness-Aware Prompt Injection Defense). This defense method uses the Attention Competition Ratio ($\rho$) as features to train two sparse linear probes: an existence probe and a breach probe. Both probes make defense decisions through cascaded gating, which does not require additional LLM inference. BASIS comprises three stages: injection existence detection, per-sample breach prediction, and instruction robustness assessment; the online cascade refuses only when the model would actually be compromised and thus avoids over-refusal on robust instructions. Experiments across four tasks and six open-source LLMs show that BASIS maintains near-perfect injection detection while substantially reducing over-refusal on safe attack samples, especially under robust instruction templates. Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-08-11 in cs.CR). Categorie arXiv: Cryptography and Security (cs.CR) ; Machine Learning (cs.LG). Pagina del lavoro: https://arxiv.org/abs/2608.08027 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-19T08:54:24.931Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-08-11?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).