Earlier quoted context omitted.
It does and you are root. You are evaluating inside a docker container. It's not a bulletproof method but it will stop a few. The instances evaluating your code is also on a network not accessible from the internet. I'm not an expert in security, if you have any advice on how we can improve our defence please tell us.
I am not a pentesting expert. My first reaction is to leave everything as is, as it is a very cool to play with root access to docker containers (I managed to reboot one, but a new one immediately appeared on page reload). My worst concern now would be network security. With root access, it is trivial to e.g. install spambots in all your containers (just checked, command execution works, and external network access i…
Scastie: use any Scala compiler and Scala library in the browser
11–20 of 34 posts
Re: Scastie: use any Scala compiler and Scala library in the browser
#12(naturally, the very first thing I tried to evaluate is scala.io.Source.fromFile("/etc/passwd").getLines.mkString("\n") . Spoiler alert: it works!)
It does and you are root. You are evaluating inside a docker container. It's not a bulletproof method but it will stop a few. The instances evaluating your code is also on a network not accessible from the internet. I'm not an expert in security, if you have any advice on how we can improve our defence please tell us.
Disclaimer: Absolutely not a security expert, just someone who is somewhat on the hook for security!
Re: Scastie: use any Scala compiler and Scala library in the browser
#13I'm a Scala developer but I don't understand what is Scastie. How does it benefit from the perspective of developers like me?
Re: Scastie: use any Scala compiler and Scala library in the browser
#14How am I supposed to dismiss this modal window? http://i.imgur.com/atx6KsX.png
Re: Scastie: use any Scala compiler and Scala library in the browser
#15Re: Scastie: use any Scala compiler and Scala library in the browser
#16(naturally, the very first thing I tried to evaluate is scala.io.Source.fromFile("/etc/passwd").getLines.mkString("\n") . Spoiler alert: it works!)
It does and you are root. You are evaluating inside a docker container. It's not a bulletproof method but it will stop a few. The instances evaluating your code is also on a network not accessible from the internet. I'm not an expert in security, if you have any advice on how we can improve our defence please tell us.
Maybe Jessica McKellar's "Building and Breaking a Python Sandbox" talk can bring some ideas. (But maybe not! It might be too Python-specific or too language-level whereas you want to remain at a higher level with just Docker)
Video: https://www.youtube.com/watch?v=sL_syMmRkoU
Slides: https://speakerdeck.com/pycon2014/building-and-breaking-a-py...
Re: Scastie: use any Scala compiler and Scala library in the browser
#17This looks cool, I just experimented with it. I am curious: what is the business model for this? Server costs are probably fairly expensive.
Re: Scastie: use any Scala compiler and Scala library in the browser
#18Re: Scastie: use any Scala compiler and Scala library in the browser
#19(naturally, the very first thing I tried to evaluate is scala.io.Source.fromFile("/etc/passwd").getLines.mkString("\n") . Spoiler alert: it works!)
It does and you are root. You are evaluating inside a docker container. It's not a bulletproof method but it will stop a few. The instances evaluating your code is also on a network not accessible from the internet. I'm not an expert in security, if you have any advice on how we can improve our defence please tell us.
SELinux also helps, from what I've read.
Re: Scastie: use any Scala compiler and Scala library in the browser
#20(naturally, the very first thing I tried to evaluate is scala.io.Source.fromFile("/etc/passwd").getLines.mkString("\n") . Spoiler alert: it works!)
It does and you are root. You are evaluating inside a docker container. It's not a bulletproof method but it will stop a few. The instances evaluating your code is also on a network not accessible from the internet. I'm not an expert in security, if you have any advice on how we can improve our defence please tell us.
https://github.com/wsargent/docker-cheat-sheet#security-tips
Probably the biggest one is to use Virtualbox or another virtual machine so that Docker isn't your only line of defence.