Peel Back The Layers
Peel Back The Layers
Platform: HackTheBox | Category: Forensics | Difficulty: Easy | Author: D3v0o0Nu11 | Date: 2026-02-10
Description
A well known hacker rival of ours, managed to gain access to our dockehub profile and insert a backdoor to one of our public docker images in order to distribute his malware and fullfil his soul purpose,
which is to destroy our steampunk robot using his steam malware.
When we started tracing him back he deleted his backdoor. Can you help us retrieve his backdoor? Docker Image: steammaintainer/gearrepairimage
Solution Approach
Core idea: Identify the weakness from source review or fingerprinting first. Iterate with incremental payloads instead of guessing.
Steps
- Based from the description, let's pull the image using
dockercommand.
docker pull steammaintainer/gearrepairimage
- Let's save it on a
.tarfile.
sudo docker save steammaintainer/gearrepairimage > peel.tar
-
Let's untar the
.tarfile. -
Let's jump to this directory first.
-
Now let's untar the
layer.tarfile, then jump to the extracted directory. -
Got a binary file.
-
Let's strings it first.
-
Surprisingly got the flag!
-
But remove the
Hcharacter first.
Flag
REDACTED
Lessons Learned
- Identify the weakness from source review or fingerprinting first.
- Iterate with incremental payloads instead of guessing.
- Reuse the same pattern in future engagements.