News for hackers. Stuff that matters.
Re:How the modern containerization trend is exploited by att... by chris408 on Wednesday June 13, 2018 @11:48AM (#17304187)
Maybe this isn’t clear, but something I read a while back on this topic:

Running a container from dockerhub is basically the same as curl piping into bash.

Re:How the modern containerization trend is exploited by att... by theamk on Wednesday June 13, 2018 @11:57AM (#17304274)
What? No.

Curl piping into bash will trivially steal all of your data at once.

Running a container from dockerhub is much safer, provided you do not give it privileges using --privileged or bind-mounting system files like docker control socket.

If your system is up to date and there are no docker 0-days active, the worst "docker run --rm -it RANDOM-CONTAINER" can do is to use too much resources -- your local secrets would be safe.

Re:How the modern containerization trend is exploited by att... by orthecreedence on Wednesday June 13, 2018 @03:08PM (#17306072)
...unless said docker container is running an app server that has direct access to your database.
Re:How the modern containerization trend is exploited by att... by walrus01 on Wednesday June 13, 2018 @07:51PM (#17308057)
It is kind of disturbing that apparently a huge number of people installed these Docker containers and did not care to notice that they were using 100% CPU on all available cores, 24x7.
Re:How the modern containerization trend is exploited by att... by Dirlewanger on Wednesday June 13, 2018 @04:27PM (#17306638)
The fact that so many people are nitpicking the analogy instead of the argument is indicative of how true this is.
Re:How the modern containerization trend is exploited by att... by eeZah7Ux on Wednesday June 13, 2018 @12:18PM (#17304484)
Even worse. A simple script can be stored, reviewed and then executed. Reviewing a whole image is practically impossible.
Re:How the modern containerization trend is exploited by att... by raesene9 on Wednesday June 13, 2018 @12:34PM (#17304636)
Reviewing images is relatively straightforward. For anyone using automated builds you can just review the Dockerfile either on Docker hub or github.

For non-automated builds just pull to a local machine and use something like portainer to have a look around.

Re:How the modern containerization trend is exploited by att... by eropple on Wednesday June 13, 2018 @12:35PM (#17304644)
> For anyone using automated builds you can just review the Dockerfile either on Docker hub or github.

And then review what it `FROM`s. And then review the core OS build that relies on.

It's a lot of work. It is doable, but it is a lot of work.

Re:How the modern containerization trend is exploited by att... by raesene9 on Wednesday June 13, 2018 @12:41PM (#17304698)
indeed there's a hierarchy to follow up so can be painful, but then no different to where a shellscript goes and pulls more code as part of it's run.

I just wanted to make the point that I don't think it's impossible :)

Re:How the modern containerization trend is exploited by att... by paulddraper on Wednesday June 13, 2018 @11:56AM (#17304268)
No, it isn't. It's like curl bashing in a chroot jail.

(Unless you explicitly expose ports or mount volumes or grant elevated kernel permissions.)

I can't think of safer way of running someone else's code, can you?

Re:How the modern containerization trend is exploited by att... by gant on Wednesday June 13, 2018 @01:28PM (#17305213)
qemu
Re:How the modern containerization trend is exploited by att... by cookiecaper on Wednesday June 13, 2018 @05:00PM (#17306896)
Yep. Even full virtualization isn't truly sandboxed, but the sandbox is much tighter.

FreeBSD has jails and Solaris has zones, both of which were designed to be safe sandboxes for OS-level virtualization or "containerization" as it's called today. The consensus, as far as I can tell, is that these are pretty safe/strict, at least as far as "provide a safe environment to execute untrusted code" goes.

On Linux, resource control mechanisms like cgroups and namespaces have been co-opted to simulate secure sandboxes, but it's not the same as actually providing them.

Re:How the modern containerization trend is exploited by att... by paulddraper on Wednesday June 13, 2018 @05:12PM (#17306987)
FWIW, AWS Fargate -- which uses Docker containers as the unit of virtualization -- is now HIPAA compliant.

I can't speak with authority on Docker security, but that's a data point, from the largest cloud provider in the world.

Re:How the modern containerization trend is exploited by att... by 0xdeadbeefbabe on Wednesday June 13, 2018 @12:10PM (#17304387)
Sure, and there is nothing wrong with either one in most cases. Salesmen, bloggers, security people, and others like to disagree, but they do it out of bias, and not because they want you to get things done.

Edit: I'd like to be wrong about this. Maybe some brave downvoter could help out here?

Re:How the modern containerization trend is exploited by att... by eropple on Wednesday June 13, 2018 @12:20PM (#17304507)
Security people certainly "do it out of bias". Most are, rather understandably, biased against having systems they're tasked with managing get pwned from under them.
Re:How the modern containerization trend is exploited by att... by arglebarnacle on Wednesday June 13, 2018 @12:43PM (#17304731)
Piping curl to bash is equivalent to running a remote code execution exploit against yourself. Even if you implcitly trust the endpoint, do you trust that they will remain uncompromised forever? Also, it's especially silly because it's never the best or only way of accomplishing a given task, so it serves only to shoot yourself in the foot.