RAG-poisoned LLMs cause AWS IAM policy violations in up to 15.8% of cases
LLM-generated IAM policies can be poisoned via retrieval to produce provider-valid policies that violate authorization requirements
Security & privacy arXiv 2 Nov 2026 Benchmark Prototype evidence
Published as “IAMRAGBENCH: Benchmarking Authorization Expansions in LLM-Generated AWS IAM Policies under RAG Poisoning”
Why it matters
IAM copilots should be treated as untrusted proposal generators, requiring independent authorization checks before deployment.
Summary
IAMRAGBENCH shows that when a poisoned document is directly included in the prompt, 46 out of 292 (15.75%) policy generations expand authorizations to match the attacker’s goal, while end-to-end retrieval only yields 7 out of 294 (2.38%) such attacks. Authority-spoofing dramatically raises success to 74 out of 116 (63.79%) in a two-endpoint stress test and 115 out of 294 (39.12%) across all five endpoints. The evidence is strong because the authors use deterministic authorization-envelope scoring, AWS policy-form validation, and request-level checks on a fixed 60-case benchmark, but the low success of pure retrieval and some attacks not resulting in new access qualify the headline claim.
What they found 3
- Direct included-context poisoning yields 46 goal-matched exact attacks out of 292 attempts (15.75%).
“Included-context exposure produces 49/292 exact authorization deltas (16.78%), of which 46 are goal-matched exact attacks (46/292; 15.75%).”
- CheckNoNewAccess reports no new access for four of 168 goal-matched exact attacks, indicating some attacks do not translate to actual permission gain.
“In a pre-deployment replay over 194 provider-valid treatment policies that violate their task requirements, AWS CheckNoNewAccess, a policy-comparison check, reports no new access for four of the 168 goal-matched exact attacks.”
- A full pre-deployment rule rejects all 171 exact authorization deltas and flags five unresolved cases for review.
“The full pre-deployment rule enforces the independently specified authorization envelope, rejects all 171 exact authorization deltas, and routes five unresolved request-level cases to review.”
Caveats 6
- End-to-end retrieval only achieves 2.38% goal-matched attacks despite retrieving the poison for every task.
- CheckNoNewAccess finds no new access in four of 168 goal-matched attacks, showing that not all classified attacks result in actual permission expansion.
- We selected 60 cases to balance coverage with manual auditability; they are not a statistical sample of enterprise IAM policies or incidents.
- We do not assume the measured rates transfer directly to other clouds or authorization systems.
- We do not claim a new poisoning primitive; the attack leverages established indirect prompt injection and RAG corpus poisoning.
- The benchmark addresses a narrower question and does not estimate the prevalence of these failures in production.
What’s new here 4
- A paired, authorization-based evaluation framework that distinguishes policy-form validity from actual permission expansion.
- A 60-case benchmark (IAMRAGBENCH) covering diverse IAM features such as conditions, explicit denies, trust policies, and permissions boundaries.
- Systematic measurement of RAG poisoning effects across five heterogeneous LLM endpoints and multiple attack regimes (included-context, end-to-end, authority-spoofing).
- Demonstration that pre-deployment enforcement rules can reject all exact authorization deltas despite high attack rates.