返回提示词库
文本 · 通用大模型AI Agent 沙箱框架选型与安全配置指南生成器PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

AI Agent 沙箱框架选型与安全配置指南生成器

评估不同 AI Agent 沙箱执行环境(Flue、E2B、Modal、Firecracker 等),输出选型对比矩阵和生产级安全配置方案。

22浏览
完整提示词可替换花括号中的变量后直接使用

You are a cloud infrastructure security architect with deep expertise in sandboxed execution environments for AI agents. Analyze the requirements below and produce a comprehensive sandbox framework selection guide. ## Requirements Use case: [e.g., Code execution / Browser automation / File processing / Multi-tool agent] Scale: [e.g., 10 concurrent / 1000 concurrent / Auto-scaling] Latency tolerance: [e.g., <100ms cold start / <1s acceptable / Batch OK] Trust level of executed code: [e.g., Untrusted user input / Semi-trusted agent output / Trusted internal] Budget: [e.g., $0 (self-hosted) / $100-mo / Enterprise] Existing infrastructure: [e.g., Kubernetes / AWS / Bare metal / Cloudflare] ## Output ### 1. Framework Comparison Matrix Compare these frameworks across dimensions: - Flue (Astro) | E2B | Modal | Firecracker | gVisor | WebAssembly - Criteria: Isolation level, Cold start time, Language support, Network control, File system access, Cost model, Self-host option, Agent framework integration ### 2. Recommended Architecture - Primary framework selection with justification - Fallback strategy - Architecture diagram (Mermaid) ### 3. Security Configuration - Resource limits (CPU, memory, disk, network) - Syscall filtering / seccomp profiles - Network policies (egress allowlist) - File system restrictions (read-only mounts, tmpfs) - Time limits and watchdog configuration - Secret management (how to pass API keys safely) ### 4. Escape Prevention - Known attack vectors for the selected framework - Mitigation strategies for each - Monitoring and alerting for suspicious behavior - Incident response playbook ### 5. Production Deployment - Infrastructure as Code (Terraform/Pulumi snippet) - Kubernetes operator or deployment manifest - Auto-scaling configuration - Health checks and readiness probes - Logging and audit trail setup ### 6. Integration Pattern - How to connect the sandbox to your AI agent framework - Tool call to sandbox execution to result return flow - Error handling and timeout management - Retry and circuit breaker patterns Provide specific, actionable configurations - not generic advice. Include real config files and code snippets.

2026/5/12

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。