HackBlue

Labs / Supply chain

What changed in the base image?

Diff two syft SBOMs for consecutive base image builds with jq and sort. Find the upgraded compression library and the release line that carried a backdoor.

  • Terminal mission
  • Intermediate
  • 3 objectives
  • 0 of 3 solved

What you’re looking at

Diff two syft SBOMs for consecutive base image builds with jq and sort. Find the upgraded compression library and the release line that carried a backdoor.

Your goal: Compare two SBOMs (software bills of materials) and find the library that should stop a rollout.

Briefing
the story: what happened and what evidence you were handed.
Terminal
the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
Walkthrough
the numbered path. Each step says what to type and what you should see. Hints open one at a time.
Answer boxes
under each question step. Type what you found and press Check.

Words you will meet

SBOM
software bill of materials, the list of packages inside a build
CVE
Common Vulnerabilities and Exposures, the public ID for a known bug
URL
web address

Start with step 1 in the walkthrough. Every step says what to do and what you should see. The whole thing takes about 2 min to talk through.

Briefing

The platform team rebuilt api-base from a newer distribution snapshot. Before rolling it out, compare the package lists of the old and new image.

In March 2024, xz-utils releases 5.6.0 and 5.6.1 were found to contain a backdoor in liblzma that targeted sshd (CVE-2024-3094). The fix was to go back to 5.4.x.

analyst@appsec-ws

appsec-ws · Supply chain

Type help for the command list and objectives for your tasks. Everything runs in this browser.

Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.

The whole walkthrough

Every step in order, written to be read aloud: 279 words, about 2 min. It gives away every answer, so try the steps first.