Skip to main content
Challenges Docker image: secret left behind between layers
Misc Easy docker save archive, manifest.json, OverlayFS whiteout (.wh.) files, and layer analysis Solves: 4

Docker image: secret left behind between layers

Author: CyberSamSU
Points
25

A container image built in the CI pipeline was exported via docker save to the service_image.tar archive. During the build, the developer copied the production environment file into /app/secrets/, then noticed the mistake and deleted it with rm -f in the next RUN step.

However, Docker images consist of immutable layers: deleting a file in a subsequent layer only hides it with a whiteout marker (.wh.<fayl_nomi>), while the original file in the previous layer remains unchanged.

Analyze manifest.json and each layer.tar inside service_image.tar (you can also view the image history in history in the config JSON). Find the production .env file that was deleted with a whiteout in a later layer, and decode the DEPLOY_TOKEN_B64 value inside it from base64. Note: the image also contains non-deleted decoy tokens such as dev.env and staging.env. Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).

Attached files
service_image.tar Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −2 pts Log in
Hint 2 −5 pts Log in
Hint 3 −7 pts Log in
To submit a flag, log in.

First solvers

1. Odam 25.11.2026
2. Mirjaxon Qaxxarov 25.11.2026
3. Asmaa Mottery 27.11.2026
4. Doston Allayarov 28.11.2026