安全性: PyInterpreter 中未放入沙箱的 exec() 函数以及预先注入的 os/sys 模块
作者: MM0n5Ter创建于 2026年4月23日更新于 2026年4月23日
`sources/tools/PyInterpreter.py` 中的 `PyInterpreter.execute()` 方法通过 `exec()` 运行 LLM 生成的 Python 代码,没有沙盒化和输入验证。`os` 和 `sys` 模块被明确预先注入到执行命名空间中,并且提供了完整的 `__builtins__`:
内容来源: Fosowl/agenticSeek