page-agent
Audited by Socket on Sep 19, 2026
2 alerts found:
Anomalyx2未发现该代码片段包含明显恶意行为或供应链后门。主要安全问题是将 AI API 密钥部署到客户端,尤其是保存到 localStorage 或通过 public runtime config 暴露;应改用服务端代理、短期令牌或受限密钥,并验证和固定 API 端点。PageAgent.execute 的内部实现未提供,需进一步审查其是否执行页面操作、访问敏感数据或发送额外遥测。Svelte 中 onMounted 的拼写错误会导致组件初始化失败。
The code appears to implement legitimate AI-assisted order, accessibility, and form-filling features. It contains no direct indicators of malware, hidden exfiltration, or system compromise. It does introduce meaningful security and privacy risk because untrusted order data, speech input, and form data are embedded into prompts sent to an agent capable of taking webpage actions. The sensitive-action confirmation mechanism is narrow and should be reinforced with explicit server-side authorization, structured action validation, data minimization, and confirmation based on the actual requested operation rather than description text.