This is a classic attack path that was already captured by plenty of EDRs/XDRs/CWPPs a couple years ago.
dangus•27m ago
Right, why is their login user in the docker group? Mine sure isn’t.
unglaublich•24m ago
Convenience. Want to run `docker run ...` without password, want IDEs and agents to be able to run containers...
tempest_•12m ago
For most CRUD apps running in docker its enough to just tell the "agent" to use podman.
awoimbee•12m ago
Use podman then, or rootless docker if you can make it work
oytis•24m ago
Rather, why do people still run agents as their own user. IMO, agent sessions should at least be containerised with just necessary code mounted.
alephnerd•21m ago
Becuase a lot of devs don't know this stuff. There's a reason security engineers (as in SWEs who specialize in securing specific attack surfaces) remain in hot demand.
Every time I try to install Docker there's a warning that being in the "docker" group is equivalent to having root access.
You should probably know about this workaround by now.
Youden•15m ago
I think that's distro-specific. Some set it up with more secure defaults (unix socket with permissions), others less (TCP socket).
tmaly•22m ago
this is the new GTD
throwawaypath•20m ago
This has been a known Docker "feature" since the beginning, nothing new here. This pattern is used to configure host machines by some tools.
jmole•6m ago
clever girl...
nialse•5m ago
This was of course dependent on yolo mode, but automatic approval has also been pulling stunts like this. A recent example is data that was purposely kept away from Codex in a folder far far away. When it found a single reference it just went for the data when having an issue. Lesson learned, keep essential data and Codex separated on different machines. Codex remote ssh actually helps here.
dbacar•4m ago
This is one of the main reasons people like Podman. Docker has this "feature" but as far as I remember, it needed some obscure configuration. I guess they don't add it as default as it will break many current setups.
alephnerd•30m ago
dangus•27m ago
unglaublich•24m ago
tempest_•12m ago
awoimbee•12m ago
oytis•24m ago
alephnerd•21m ago