Sudo/Root Execution
Medium
- Category
- Privilege Escalation
- Content
# 4. Docker mirror (if Docker installed) if command -v docker &> /dev/null; then sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json << 'DOCKER' { "registry-mirrors": ["https://docker.1ms.run"] }- Confidence
- 81% confidence
- Finding
- The pipeline writes directly to /etc/docker/daemon.json via sudo tee in an automation flow, permanently changing a system-wide registry source to a third-party mirror. If that mirror is compromised or untrusted, subsequent image pulls could be redirected to malicious content, and the privileged write increases blast radius on the host.
