构建浏览器代理:架构、安全与实用解决方案
Building Browser Agents: Architecture, Security, and Practical Solutions
AI总结:
本文提出通过专用工具和编程约束构建安全浏览器代理,实现85%的成功率。
摘要:
浏览器代理能够实现自主的网络交互,但在实际生产中面临关键的可靠性和安全性挑战。本文介绍了构建和运行生产级浏览器代理的发现。分析探讨了当前方法的不足以及阻碍安全自主操作的因素。基本见解:模型能力并不限制代理性能;架构决策决定成功或失败。对现实世界事件的安全分析揭示了提示注入攻击使通用自主操作从根本上不安全。本文反对开发通用浏览智能,转而支持具有编程约束的专用工具,其中安全边界通过代码而非大语言模型(LLM)推理来强制执行。通过结合可访问性树快照与选择性视觉的混合上下文管理,全面的浏览器工具链匹配人类交互能力,并通过智能提示工程,代理在WebGames基准测试中实现了约85%的成功率,解决了53种多样化的挑战(相比之前浏览器代理报告的约50%和95.7%的人类基准)。
英文摘要:
Browser agents enable autonomous web interaction but face critical reliability and security challenges in production. This paper presents findings from building and operating a production browser agent. The analysis examines where current approaches fail and what prevents safe autonomous operation. The fundamental insight: model capability does not limit agent performance; architectural decisions determine success or failure. Security analysis of real-world incidents reveals prompt injection attacks make general-purpose autonomous operation fundamentally unsafe. The paper argues against developing general browsing intelligence in favor of specialized tools with programmatic constraints, where safety boundaries are enforced through code instead of large language model (LLM) reasoning. Through hybrid context management combining accessibility tree snapshots with selective vision, comprehensive browser tooling matching human interaction capabilities, and intelligent prompt engineering, the agent achieved approximately 85% success rate on the WebGames benchmark across 53 diverse challenges (compared to approximately 50% reported for prior browser agents and 95.7% human baseline).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。