Ask HN: Is there a reliable way to sandbox untrusted code?

https://news.ycombinator.com/item?id=3323530
by Estragon • 15 years ago
4 4 15 years ago

I'm designing on an application which involves running untrusted code. The untrusted code does not need to make any system calls, just take a string as input and return a string as output. There aren't any real constraints at this stage on the form in which the code should be provided. Source code, byte code or binaries would all be OK.

Are there any ways to do this securely, at the moment? NaCl is intriguing, but there hasn't been much incentive to break it yet. Java and Javascript sandboxes have probably been pounded on the hardest, but privilege escalation exploits for them do show up from time to time. Are there any other sandboxes I should be looking at? Is attempting to securely run untrusted code just a foolhardy enterprise?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com