potentialpaper

Sonar: Sentence-Level Semantic Pruning to Remove Indirect Prompt Injections

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:20 UTC · 93805eddb1f3 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "9hTYJwDSwS"
- }
- ],
- "title": "Sonar: Sentence-Level Semantic Pruning to Remove Indirect Prompt Injections",
- "authors": [],
- "abstract": "Retrieval-augmented generation and tool-using LLM agents increasingly rely on untrusted text from external sources, expanding their attack surface to indirect prompt injections that induce unintended behavior. Existing defenses often depend on LLM-based judges or detectors that can be evaded by adaptive attacks, while training-based approaches may struggle to generalize to unseen attacks. We propose Sonar, a training-free, target-model-agnostic sanitization method for indirect prompt injection. Sonar constructs an instruction-conditioned local sentence graph over a trusted instruction and untrusted external text, using entailment and contradiction scores from an off-the-shelf natural language inference model to identify semantic outliers and directive-like sentences. It expands high-confidence suspicious sentences through adjacent semantic relationships and removes the resulting suspicious spans of text. Across multiple models, datasets, and attacks, Sonar reduces attack success rates to at most 2.4% on AlpacaFarm, outperforming nine baseline defenses without modifying or fine-tuning the downstream LLM.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "9f7be898-d31b-483b-84e2-db6c3e3b6e3d"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Sonar: Sentence-Level Semantic Pruning to Remove Indirect Prompt Injections",
+ "authors": [],
+ "abstract": "Retrieval-augmented generation and tool-using LLM agents increasingly rely on untrusted text from external sources, expanding their attack surface to indirect prompt injections that induce unintended behavior. Existing defenses often depend on LLM-based judges or detectors that can be evaded by adaptive attacks, while training-based approaches may struggle to generalize to unseen attacks. We propose Sonar, a training-free, target-model-agnostic sanitization method for indirect prompt injection. Sonar constructs an instruction-conditioned local sentence graph over a trusted instruction and untrusted external text, using entailment and contradiction scores from an off-the-shelf natural language inference model to identify semantic outliers and directive-like sentences. It expands high-confidence suspicious sentences through adjacent semantic relationships and removes the resulting suspicious spans of text. Across multiple models, datasets, and attacks, Sonar reduces attack success rates to at most 2.4% on AlpacaFarm, outperforming nine baseline defenses without modifying or fine-tuning the downstream LLM.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}