News for hackers. Stuff that matters.
Re:MCP Run Python by kissgyorgy on Thursday April 17, 2025 @11:31AM (#43718335)
Not at all.
Re:MCP Run Python by jononor on Thursday April 17, 2025 @12:00PM (#43718720)
What is the best way? Or at least, a better way?
Re:MCP Run Python by babush on Thursday April 17, 2025 @01:06PM (#43719590)
I recall Shopify having a seccomp-based jail to run untrusted ruby code. But their use-case was very limited so they can get away with blocking almost every syscall.

Other than that... VMs? The fact that people consider JS/WASM engines good security sandboxes is a bit scary tbf.

Re:MCP Run Python by simonw on Thursday April 17, 2025 @01:16PM (#43719705)
I trust a WASM sandbox a whole lot more than I trust a Docker container sandbox.

WASM engines run in almost every browser on earth, billions of times a day. Security problems in those get spotted very quickly.

Re:MCP Run Python by babush on Thursday April 17, 2025 @02:06PM (#43720292)
It's a bit hard to do comparisons without going into threat models and all that _fun_ stuff :shrug:

For example, JS runs in almost every browser on earth too, yet it took V8 devs 2 years to find out that `Math.expm1()` could return -0.0 (https://chromium.googlesource.com/v8/v8.git/+/56f7dda67fdc97...). This is a cherry-picked example, and JS is clearly more complex than WASM, but still.

Just because stuff runs on a lot of devices doesn't mean it's more or less secure.

Linux runs on quite a few devices too, yet we still find bugs, people still don't ship updates to said bugs, yadda yadda yadda.

My point is just that lots of devs often skip the threat modeling and just think "I'll slap it in a WASM thingie an it'll be fine". Well good luck.

Re:MCP Run Python by kissgyorgy on Thursday April 17, 2025 @01:58PM (#43720219)
Landlock, cgroups on Linux
Re:MCP Run Python by ehsanu1 on Thursday April 17, 2025 @04:05PM (#43721566)
gVisor