Published on2026年9月6日1,587 字 · 8 min readAgent 怎么防止 Prompt 注入:四层纵深防御体系aiagentsecurityprompt-injectionllm单靠 Prompt 加限制词防不住注入,正确做法是搭建「输入侧 → 模型侧 → 执行侧 → 输出侧」四层纵深防御体系,其中执行侧权限管控是最硬的底线。