基於零信任架構之 AI Agent 惡意提示詞挾持防禦機制研究

Zero Trust Architecture-Based Defense Against Prompt Injection Attacks in AI Agent Systems

檔案

日期

2026

類型

語言

中文

摘要

隨著 AI Agent 的普及化,間接提示詞挾持(Indirect Prompt Injection)已成為關鍵安全威脅。攻擊者無須修改模型,只要在外部資料中混入惡意指令,就能誘導 Agent 濫用其系統權限,導致機敏資料外洩。現有防護方案依賴大型語言模型(Large Language Model, LLM)自身的指令遵循能力,一旦 LLM 遭惡意引導而喪失判斷力,所有防線將連帶失效。本研究提出以零信任架構(Zero Trust Architecture, ZTA)作為語意無關獨立防線(Alignment-Agnostic Enforcement Layer, AAEL),於 API 閘道層強制執行最小權限原則(PoLP)與 JIT 短效憑證時效管理,確保即使 LLM 被完全誘騙,資料存取仍受嚴格管控。並以海事船舶監控 Agent 為情境,實作基於 Kong API Gateway、Keycloak 及 LangGraph ReAct Agent 之概念驗證系統,設計三項量化指標驗證。結果顯示:ZTA 閘道引入之延遲開銷僅 4.82 ms,JIT 短效憑證 TTL 時效有效性 100%,四級攻擊梯度下(n=120),即使 LLM 被誘騙率達 100%,ZTA 閘道對「跨越憑證權限邊界」之越權存取仍維持 100% 攔截,無 ZTA 對照組於相同條件下洩漏率為 100%。需說明者,該被誘騙率係小型模型(Llama 3.2 3B)於本實驗條件下之表現,較大模型可能較低,而閘道防禦效果與此無關,恰可凸顯防線之模型無關性。本研究之防禦範圍界定為跨權限邊界之越權存取;對授權範圍內之資料濫用,則需輸出內容過濾(Output Filtering)、出口流量控制(Egress Control)及控制流與資料流分離(如 CaMeL)等互補機制共同防護。
As AI Agents become prevalent, Indirect Prompt Injection has emerged as a critical security threat. Without modifying the model, attackers embed malicious instructions in external data that agents consume, manipulating them into abusing system privileges and exfiltrating sensitive data. Existing defenses rely on the LLM's own instruction-following, so once the LLM is deceived, all protections fail in tandem. This study proposes Zero Trust Architecture (ZTA) as an Alignment-Agnostic Enforcement Layer (AAEL), enforcing the Principle of Least Privilege (PoLP) and JIT credential TTL management at the API gateway, ensuring data access remains strictly controlled even when the LLM is fully compromised. Using a maritime vessel monitoring agent, we implement a Proof-of-Concept on Kong API Gateway, Keycloak, and LangGraph ReAct Agent, with three quantitative metrics. Results show ZTA gateway overhead of only 4.82 ms; 100% effectiveness of JIT credential TTL enforcement; and under four escalating attack gradient levels (n=120), a 100% interception rate for cross-credential-boundary privilege escalation even when the LLM deception rate reaches 100%, while the no-ZTA control leaks 100% under identical conditions. This deception rate reflects a small model (Llama 3.2 3B) under the present experimental conditions and may be lower for larger ones; the gateway's defense is independent of it, underscoring its model-agnostic nature. The study's defense is delimited to cross-boundary escalation; in-scope misuse requires complementary mechanisms such as output filtering, egress control, and control-flow/data-flow separation (e.g., CaMeL).
顯示完整詮釋資料 統計資料

引用此條目

謝濡鈴 (2026). 基於零信任架構之 AI Agent 惡意提示詞挾持防禦機制研究. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/89002

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/89002