feat: add 13 IPI Arena detection rules and LLM prompt enhancement#78
Merged
feat: add 13 IPI Arena detection rules and LLM prompt enhancement#78
Conversation
Add 13 detection rules (IPI-001 to IPI-013) based on attack strategies identified in "How Vulnerable Are AI Agents to Indirect Prompt Injections?" (arXiv:2603.15714, Gray Swan AI et al., March 2026). Rules cover: fake chain-of-thought injection, reasoning suppression, reward/punishment manipulation, fabricated authority tags, simulated environment framing, protocol override, visual ruleset injection, alignment mode switching, concealment instructions, scripted output directives, fake social proof, fake error states, and impersonated user confirmations. Benchmarked against 95 public IPI Arena attack strings: - Deterministic layer: 85.3% detection (81/95) - LLM layer (Claude Sonnet 4.6): catches remaining 14/14 - Combined pipeline: 95/95 (100%), 0 false positives Also adds ipi-bench tool for reproducible benchmarking against the IPI Arena dataset, and enhances the LLM analysis prompt with indirect prompt injection threat types (concealment, function hijack). Ref: arXiv:2603.15714
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ipi-benchtool for reproducible benchmarking against the IPI Arena datasetDetection Rules (rules/ipi-arena.yaml)
Benchmark Results (95 public IPI Arena attacks)
Test Plan
make buildpassesmake testpasses (19 packages, 0 failures, race detector on)make lintpasses (0 issues)make vetpassesinternal/llm/benchmark_test.goRef: arXiv:2603.15714