|
|
Log in / Subscribe / Register

pysandbox vs pypy-sandbox

pysandbox vs pypy-sandbox

Posted Apr 29, 2015 3:26 UTC (Wed) by gmatht (subscriber, #58961)
In reply to: Unsafe Blocks by Cyberax
Parent article: Rust Once, Run Everywhere

I understand that pysandbox used a blacklist. Blacklists have a poor reputation even when not combined with local code execution, so I am not surprised the author gave up. Heck, Linux is designed to be reasonably secure for a monolithic kernel, rather than just layering a pysandbox-like hack on top. Yet, Linux has had a long list of security vulnerabilities. Folk wisdom seems to be not to trust the Linux Kernel's normal security model, and to contain any locally executed untrusted processes with something like SECCOMP.

What is your opinion of the security of the PyPy Sandbox model? I understand it uses a very short whitelist similar to SECCOMP. I haven't heard of any vulnerabilities, though that may just be because it is so new.


to post comments

pysandbox vs pypy-sandbox

Posted Apr 29, 2015 3:29 UTC (Wed) by Cyberax (✭ supporter ✭, #52523) [Link]

PyPy sandbox might actually work. It completely isolates the running code from anything that might make syscalls or C-library calls. That's what Java sandbox _should_ have been from the start.

However, it still assumes that the language-level verifier and JIT do not have bugs and this might be a little bit overoptimistic assumption.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds