Comment Comment by lemoncucumber Sure, that's basically what services like AWS Lambda do. As a starting point, you'd want to run the code in a short-lived VM with little to no network access which is dedicated to just running untrusted code. parent lemoncucumber 5 years ago