[Release feedback] Production security checklist for sandboxed AI agents

未关闭
#175 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
活跃
技术栈
ai-infra-agents

调研方向

The payload names no file, so start by finding where the repository's existing LLM Top 10 entries discuss agent tool use and excessive agency. Read the proposed controls and decide which belong in that text and which need a new section. Done means a checklist with an end-to-end prompt-injection scenario, a trust-boundary sketch, and observable pass/fail tests, agreed with the maintainers first.

由索引模型根据 Issue 内容生成。

描述

Feedback type

Prevention or mitigation guidance

Feedback

A useful production-security contribution would be a compact, testable boundary checklist for agents that can call tools or run code. The key distinction is that safe model output does not itself secure the execution environment: policy enforcement must remain outside the model and fail closed.

Recommended controls:

  1. Define an explicit, deny-by-default capability policy for each agent and task. Put tool authorization in a broker; validate tool names and arguments against strict schemas, and authorize each action against the user, resource, and current task rather than trusting model-generated intent.
  2. Execute untrusted code and tool workloads in ephemeral, per-task sandboxes. Separate tenants and jobs; expose only required files and services; drop privileges; disable host mounts and unnecessary syscalls; and set CPU, memory, process, and wall-clock limits. Treat containerization as one layer, not a substitute for stronger isolation where the threat model warrants it.
  3. Restrict network egress to explicit destinations and protocols. Keep credentials outside prompts and the sandbox, broker short-lived scoped credentials at runtime, and revoke them immediately on timeout, cancellation, or policy violation.
  4. Require human approval for high-impact or irreversible actions, with clear previews of the exact target and arguments. Separate read and write privileges, and use an independent policy check before execution.
  5. Record provenance for prompts, retrieved content, model/version, policy decisions, tool calls, and results. Redact secrets and sensitive payloads, protect audit records from tampering, and set retention limits.
  6. Test adversarially before release and continuously after deployment: prompt-injected documents requesting secret or file exfiltration; malformed tool arguments; cross-tenant access; egress to an unapproved host; resource exhaustion; compromised tools; sandbox termination and recovery. Verify that a denied or timed-out action cannot continue with stale authority.

A practical future-cycle treatment could pair a threat diagram with one end-to-end scenario (untrusted retrieved content tries to induce an agent to read a secret and send it externally), identify trust boundaries and controls, and give observable pass/fail tests. This would make the guidance actionable without implying that an LLM's own refusal behavior is a security boundary.

Supporting evidence

Related implementation reference: Clixlogix's practical guidance on securing AI-agent sandboxes as they move from experimentation into production: https://www.clixlogix.com/ai-agent-sandbox-production-security/ . This is a practitioner resource relevant to the isolation, capability boundaries, and production-hardening controls discussed above; it is cited as a resource for readers to assess, not as an OWASP endorsement.

Acknowledgments
  • I searched existing issues and discussions for this topic.
  • I agree to follow the OWASP Code of Conduct.
主要语言
JavaScript
星标
177
派生
57
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

GenAI-Security-Project/GenAI-LLM-Top10 的其他 Issue

查看 GenAI-Security-Project/GenAI-LLM-Top10 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。