Technical assessment
The artifact is a proof-of-concept exploit for CVE-2026-17106 that uses a TOCTOU race condition in Docker's `docker cp` to write arbitrary files outside the intended destination on the host. It includes two complete exploit implementations: a Linux variant that overwrites `/usr/bin/runc` with a malicious script, and a macOS variant that creates a marker file in the user's home directory.
Backdoor review
No backdoor observed in reviewed code
The repository is a proof-of-concept exploit for CVE-2026-17106. All code serves the documented purpose of demonstrating a Docker cp TOCTOU vulnerability. The Linux monitor writes a replacement /usr/bin/runc and the macOS monitor writes ~/pwnd, both as described in the README. No concealed backdoor, unrelated payload, or operator-directed harm beyond the stated exploit behavior was observed.
Model confidence98%
AuthenticationNot required
LanguagesCShell
Target softwareDocker EngineDocker CLIDocker Desktop
Attack typesTOCTOU race conditionsymlink attackcontainer escape
Evidence & reasoningClassification basis · observed behavior · safety review
Technical evidenceClassification basis and observed behavior
Classification basis
The artifact contains complete, functional code that exercises the vulnerability to achieve unauthorized file writes on the host. The Linux monitor.c writes a malicious script to /usr/bin/runc (line 123) and the macOS monitor.c writes a marker to ~/pwnd (line 148). The README explicitly describes these as demonstrations that 'overwrites /usr/bin/runc' and 'creates ~/pwnd', which are exploitation actions, not mere detection.
README.md:15-17linux/monitor.c:123macos/monitor.c:148Requirements
- A vulnerable Docker Engine or Docker Desktop release (tested against Docker Engine/CLI 29.6.1 and Docker Desktop 4.81.0).
README.md:26-33 - A running Docker daemon and Docker CLI access.
README.md:27-28 - Root privileges for the Linux variant that overwrites /usr/bin/runc.
README.md:29
Observed behavior
- The Linux exploit monitor (monitor.c) sets up a directory layout with a staged symlink pointing to /usr/bin, then uses inotify to detect when Docker accesses a trigger file during `docker cp`. It races the archive creation by atomically replacing a directory with the symlink, causing the Docker CLI to follow the symlink and write a malicious payload to /usr/bin/runc.
linux/monitor.c:117-131linux/monitor.c:133-146linux/monitor.c:148-226 - The macOS exploit monitor (monitor.c) similarly races `docker cp` to create a symlink to the user's home directory, causing the CLI to write a marker file (~/pwnd) outside the intended copy destination.
macos/monitor.c:142-156macos/monitor.c:158-171macos/monitor.c:173-251 - Both exploits use an LD_PRELOAD library (watched_preload.c) to hide the underlying directory structure from processes inside the container, making /watched/file.txt appear as a regular file.
linux/watched_preload.c:31-37macos/watched_preload.c:31-37
Safety-review evidenceBehaviors behind the backdoor verdict
Observables
- Exploit Behavior
- Linux monitor writes a replacement /usr/bin/runc script that creates /imperva_red_teamMatches the documented Linux PoC behavior in README.md lines 15-17 and 130-136
linux/monitor.c:123README.md:15-17 - Exploit Behavior
- macOS monitor writes ~/pwnd with contents COPYESCAPE_MACOS_DEMOMatches the documented macOS PoC behavior in README.md lines 13-14 and 57-65
macos/monitor.c:148README.md:13-14 - Exploit Mechanism
- LD_PRELOAD library redirects file operations on /watched/file.txt to a backing fileUsed to hide the directory nature of /watched/file.txt from container processes, as described in README.md lines 161-166
linux/watched_preload.c:31-36README.md:161-166
Review boundariesWhat the analysis did not establish
- Three files (likely Dockerfiles and build scripts) are omitted from the evidence due to text budget constraints, but the core exploit logic in the C source files and shell scripts is fully included.
- The evidence does not include the compiled binaries; analysis is based solely on the provided source code.
- Three files (likely Dockerfiles or build artifacts) were omitted from the text evidence; their content was not reviewed, but metadata indicates no binary payloads.
Model interpretationThis review is limited to the supplied PoC code and context. It does not assert that the code works or is safe to execute.