The paper introduces IAMRAGBENCH, a 60-case benchmark testing whether LLMs using retrieval-augmented generation produce AWS IAM policies that exceed trusted authorization requirements when attacker-controlled context is present. Included-context exposure yielded 46 goal-matched attacks out of 292 (15.75%), while presenting the weakening as a final security architecture exception reached 63.79% in a frozen two-endpoint stress test. The authors conclude that IAM copilots should be treated as untrusted proposal generators whose outputs need independent authorization checks before deployment.
Fix: The paper proposes a full pre-deployment rule that rejects all 171 exact deltas and routes five unresolved cases to review, and recommends independent authorization checks on IAM copilot outputs before deployment.
Arxiv (cs.CR + cs.CL + cs.LG)