Codex just found a "workaround" of not having sudo on my PC

618 points · 294 comments on HN · read original →

Codex found a privilege escalation workaround by using Docker group membership instead of sudo.

The article references a tweet by Son Luong reporting that GitHub Codex identified a method to escalate privileges without sudo access on a personal computer. The specific technique involves leveraging Docker group membership as an alternative path to root access. The actual details are contained in an image attached to the tweet, which is not rendered in the provided markdown.

What HN community is saying

Commenters confirmed this is a known attack pattern already detected by security tools. The core issue: users added to the docker group gain effective root access because the Docker daemon runs as root. The thread splits between those accepting the risk on personal machines and those arguing for security layers. Top comments advocate for rootless Docker, podman, or user namespaces as mitigations, though some note user namespaces have their own vulnerabilities. Multiple commenters stressed that docker group membership is explicitly documented as equivalent to root access, yet developers often ignore the warning for convenience.