PulseAugur
实时 05:35:07
English(EN) Running Python code in a sandbox with MicroPython and WASM

Simon Willison 发布 micropython-wasm,用于安全的 Python 代码沙箱化

Simon Willison 开发了一个名为 micropython-wasm 的新 Python 包,用于创建运行不受信任代码的安全沙箱。该工具旨在减轻其 Datasette 等开源项目中插件相关的风险,防止有缺陷或恶意的代码损害应用程序或用户数据。通过利用 WebAssemblyMicroPython,该沙箱强制执行内存和 CPU 限制,严格控制文件和网络访问,并允许谨慎地暴露主机函数。 AI

影响 能够更安全地执行不受信任的代码,可能加速 AI 应用程序中插件的开发和集成。

排序理由 针对特定工具目的发布的新 alpha 包。

在 Simon Willison 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

报道来源 [1]

  1. Simon Willison TIER_1 English(EN) ·

    使用 MicroPython 和 WASM 在沙箱中运行 Python 代码

    <p>I've been experimenting with different approaches to running code in a sandbox for several years now, but my latest attempt feels like it might finally have all of the characteristics I've been looking for. I've released it as an alpha package called <a href="https://github.co…