Technical assessment
The artifact is a complete exploit for CVE-2026-17106 (CopyEscape), a Docker `docker cp` arbitrary file write vulnerability. It contains C source code implementing a TOCTOU race condition attack using inotify and symlink pivoting, along with shell scripts to build and run the exploit in Docker containers targeting macOS and Linux hosts.
Backdoor review
No backdoor observed in reviewed code
The repository contains a proof-of-concept exploit for CVE-2026-17106 (CopyEscape). All reviewed source code and scripts implement the documented TOCTOU race condition to demonstrate arbitrary file write via 'docker cp'. The Linux variant targets /usr/bin/runc, and the macOS variant targets ~/pwnd, exactly as described in the README. No concealed backdoor, unrelated payload, credential theft, persistence mechanism, or operator-directed harm beyond the stated exploit was observed.
Model confidence98%
AuthenticationNot required
LanguagesCShell
Target softwareDocker Engine/CLIDocker DesktopDocker Sandboxes
Attack typesTOCTOU race conditionsymlink attackarbitrary file write
Evidence & reasoningClassification basis · observed behavior · safety review
Technical evidenceClassification basis and observed behavior
Classification basis
The artifact contains complete, compilable C code (monitor.c) that actively exploits a TOCTOU race condition to achieve arbitrary file write outside the container, along with shell scripts that build and execute the attack. This is code intended to exercise a vulnerability, not merely detect or report it.
linux/monitor.c:1-233macos/monitor.c:1-259macos/demo-macos.sh:1-88Requirements
- A vulnerable version of Docker (e.g., Engine/CLI 29.6.1, Desktop 4.81.0) must be installed on the host.
README.md:18-19 - The attacker must be able to build and run a malicious Docker container on the target host.
macos/demo-macos.sh:54-60 - The user must execute `docker cp` from the malicious container to the host.
macos/demo-macos.sh:74-75
Observed behavior
- The exploit sets up a directory layout inside the container with a regular file, a large trigger file, and a pre-staged symlink pointing to a host target directory.
linux/monitor.c:117-131macos/monitor.c:142-156 - A monitor process uses inotify to detect when `docker cp` accesses the trigger file, then performs a rename-based symlink pivot to replace a directory with the pre-staged symlink.
linux/monitor.c:148-225macos/monitor.c:173-250 - The TOCTOU race causes `docker cp` to follow the symlink and write files to an attacker-chosen location on the host (e.g., `/usr/bin/runc` on Linux or `~/pwnd` on macOS).
README.md:11-14linux/monitor.c:23-24macos/monitor.c:60-62 - The Linux variant overwrites `/usr/bin/runc` with a malicious script that creates a marker file, enabling subsequent root code execution.
linux/monitor.c:123 - The macOS variant creates a file `~/pwnd` in the user's home directory as a proof of successful exploitation.
macos/monitor.c:148macos/demo-macos.sh:80-83
Safety-review evidenceBehaviors behind the backdoor verdict
Observables
- Exploit Target
- /usr/bin/runc (Linux) and ~/pwnd (macOS)The PoC overwrites these files to demonstrate the vulnerability, consistent with the README description.
linux/monitor.c:23-24macos/monitor.c:60-62 - Exploit Mechanism
- TOCTOU symlink race via inotify and directory renameThe monitor programs use inotify to detect 'docker cp' access and perform a directory swap to redirect writes outside the container, matching the CVE description.
linux/monitor.c:133-146macos/monitor.c:158-171 - File Redirection
- LD_PRELOAD library redirects /watched/file.txt to /watched/.file.txt.regularThe preload library hides the symlink directory from the container's own view, a necessary part of the PoC setup.
linux/watched_preload.c:31-37macos/watched_preload.c:31-37
Review boundariesWhat the analysis did not establish
- The evidence packet reports 4 unclassified files (binary or other) that were not provided as text; their content is unknown.
- The evidence packet reports complete_artifact_coverage is false; 4 of 12 total files were omitted from the text selection.
- The CVE record for CVE-2026-17106 was absent from the acquired CVEList V5 dataset, so no authoritative CVE description is available for cross-reference.
- 4 text files were omitted from the evidence packet due to size constraints; their content was not reviewed.
- Binary files were not analyzed (binary_policy: FLAGGED_METADATA_ONLY_NOT_ANALYZED), though none were identified in the inventory.
- The review is limited to the supplied static source code; runtime behavior was not observed.
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.