News for hackers. Stuff that matters.
Re:OpenSSF: Scanning open source packages for malicious beha... by mdaniel on Monday May 02, 2022 @04:24PM (#31240421)

    docker run --privileged -ti \
        gcr.io/ossf-malware-analysis/analysis
I'm sure it's more complicated than it looks, but seeing "--privileged" and "malware-analysis" in the same command made me chuckle

    docker run \
      -v /var/tmp/fake.docker.sock:/var/run/docker.sock \
      -e DOCKER_HOST=unix:///var/run/docker.sock \
would be some next-level runtime analysis, eh?
Re:OpenSSF: Scanning open source packages for malicious beha... by calebbrown on Monday May 02, 2022 @11:31PM (#31244221)
Author here.

It's running a Podman container (like Docker but daemon-less) with a GVisor runtime for isolation inside the docker container.

The outer container is privileged, but doesn't run any attacker controlled code.

But, yeah, seeing those two strings together in the same command is certainly amusing.

Re:OpenSSF: Scanning open source packages for malicious beha... by metanull on Tuesday May 03, 2022 @12:04AM (#31244470)
Hello! Cool project. Wonder why you need the —privileged for?
Re:OpenSSF: Scanning open source packages for malicious beha... by calebbrown on Tuesday May 03, 2022 @04:10AM (#31245897)
Thanks!

`--privileged` is needed to run the container inside a container.

e.g. https://www.docker.com/blog/docker-can-now-run-within-docker...

This is particularly useful for using Kubernetes to manage a cluster of instances.