(no title)
rlonn | 4 years ago
TL;DR is that most Lua engines seem to offer pretty weak support for sandboxing, unfortunately. Gopher-lua, that Supershields is using, makes it hard to adopt a whitelist-approach where you disable more or less everything and then enable just the functionality you want. Blacklisting (where you specify everything you want to disable) is fairly simple though, but not as secure of course.
For Supershields I have used a combination of blacklisting and running the scripts on serverless instances (AWS Lambda), which limits the impact of a breach.
DenseComet|4 years ago
[1] https://docs.aws.amazon.com/lambda/latest/dg/runtimes-contex...
rlonn|4 years ago
Edit: I'm going to add some cleanup regardless.