ProbeCourt: Cross-Examining Black-Box LLMs for Prompt-Injection Evidence Before Tool Execution

Jianjun Wu, Zexin Dong


Abstract

Prompt-injection defences for LLM agents often classify external context as malicious or benign, ignoring whether a particular target model would interpret it as an instruction. We introduce ProbeCourt, an audit layer that requires no target-model training and uses only black-box access to the target before tool execution. It cross-examines the target model’s read-only interpretation using four paired probes—source reference, counterfactual action, permission boundary, and paraphrase stability—and aggregates the responses into context and span risk scores, a quantile-calibrated operating threshold, and a reviewable evidence bundle. Across four benchmarks and six backbones, ProbeCourt averages AUROC = 0.90, outperforming the strongest black-box baseline by 0.09 overall and the strongest applicable white-box baseline by about 0.05 on open-weight models. It reaches 0.74 token-F1 for span localisation and reduces AgentDojo attack-success rate from 47.2% to 9.4%, with a 2.0-point average benign-utility loss. Under DataFlip-style adaptation, AUROC remains 0.67 while the strongest single-pass baseline drops by about 0.40, from 0.812 to 0.41. A probe-aware attacker reduces the one-witness configuration to 0.61; a three-family ensemble recovers 0.68. Thus, ProbeCourt improves pre-execution auditing but remains vulnerable to witness manipulation.

Anthology ID:
2026.findings-emnlp.1869
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2026
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
Findings
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
39892–39909
Language:
URL:
https://aclanthology.org/2026.findings-emnlp.1869/
DOI:
10.18653/2026.findings-emnlp.1869
Bibkey:
Cite (ACL):
Jianjun Wu and Zexin Dong. 2026. ProbeCourt: Cross-Examining Black-Box LLMs for Prompt-Injection Evidence Before Tool Execution. In Findings of the Association for Computational Linguistics: EMNLP 2026, pages 39892–39909, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
ProbeCourt: Cross-Examining Black-Box LLMs for Prompt-Injection Evidence Before Tool Execution (Wu & Dong, Findings 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.findings-emnlp.1869.pdf