IAMRAGBENCH:针对RAG投毒场景下大语言模型生成AWS IAM策略中授权扩展的基准测试
IAMRAGBENCH: Benchmarking Authorization Expansions in LLM-Generated AWS IAM Policies under RAG Poisoning
AI总结:
该研究提出IAMRAGBENCH基准测试,评估RAG投毒下LLM生成AWS IAM策略的授权风险,发现不同场景下的攻击成功率,表明IAM copilots输出需部署前独立授权检查。
摘要:
使用检索增强生成(RAG)的大语言模型(LLM)可根据任务和操作文档合成亚马逊网络服务(AWS)身份与访问管理(IAM)策略。攻击者控制的上下文可能会生成超出可信授权要求的、由提供商验证有效的策略。本文提出IAMRAGBENCH,这是一个包含60个案例的基准测试,涵盖范围、条件、显式拒绝、信任、权限边界和角色委托。它结合了确定性授权范围评分与特定案例验证,包括在支持情况下的请求级别检查。攻击需要满足两个条件:一是满足任务要求的、由提供商验证有效的干净策略,二是违反授权范围、匹配预先声明的目标、保留预期请求并新授权一个禁止请求的、由提供商验证的处理策略。在五个端点中,包含上下文暴露产生了49个精确授权差异,其中包括46个匹配目标的攻击(46/292,占比15.75%)。对720个文档进行的端到端BM25检索在k=5时为所有60个任务检索到了指定的投毒内容,但产生了7个匹配目标的攻击(7/294,占比2.38%)。将相同的弱化作为最终安全架构异常提出,在冻结的双端点压力测试中产生了74/116次攻击(占比63.79%),在使用相同冻结提示的事后全五端点扩展中产生了115/294次攻击(占比39.12%)。在对194个违反任务要求的、由提供商验证的处理策略的重放中,AWS CheckNoNewAccess报告称,在168个匹配目标的精确攻击中,有4个未产生新访问权限。完整的部署前规则拒绝了所有171个精确差异,并将5个未解决的案例路由至审核。这些发现支持将IAM copilots视为不可信的提案生成器,其输出在部署前需要独立的授权检查。
英文摘要:
Large language models (LLMs) using retrieval-augmented generation (RAG) can synthesize Amazon Web Services (AWS) Identity and Access Management (IAM) policies from tasks and operational documents. Attacker-controlled context may induce provider-valid policies that exceed trusted authorization requirements. We present IAMRAGBENCH, a 60-case benchmark spanning scope, conditions, explicit denies, trust, permissions boundaries, and role delegation. It combines deterministic authorization-envelope scoring with case-specific validation, including request-level checks where supported. An attack requires a provider-valid clean policy that satisfies the task and a provider-valid treatment policy that violates the envelope, matches a predeclared goal, preserves an intended request, and newly authorizes a forbidden request. Across five endpoints, included-context exposure produces 49 exact authorization deltas, including 46 goal-matched attacks (46/292; 15.75\%). End-to-end BM25 over 720 documents retrieves the designated poison for all 60 tasks at \(k=5\) but produces 7/294 goal-matched attacks (2.38\%). Presenting the same weakening as a final security architecture exception produces 74/116 attacks in a frozen two-endpoint stress test (63.79\%) and 115/294 in a post hoc all-five extension using the same frozen prompts (39.12\%). In a replay of 194 provider-valid treatment policies that violate task requirements, AWS \texttt{CheckNoNewAccess} reports no new access for four of 168 goal-matched exact attacks. The full pre-deployment rule rejects all 171 exact deltas and routes five unresolved cases to review. These findings support treating IAM copilots as untrusted proposal generators whose outputs require independent authorization checks before deployment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。