HackBlue

Labs / Hashes and verification

No matches, because of one newline

A breach notice shares SHA-256 hashes of exposed email addresses. A colleague found no matches with echo. Find the byte that broke the comparison and redo the check.

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

What you’re looking at

A breach notice shares SHA-256 hashes of exposed email addresses. A colleague found no matches with echo. Find the byte that broke the comparison and redo the check.

Your goal: Find the one invisible byte that made every hash comparison fail, then check the list again correctly.

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

SHA
Secure Hash Algorithm, a fingerprint for data

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

A supplier was breached and sent hashes of affected customer email addresses instead of the addresses themselves. A colleague checked four executive addresses and found none on the list.

echo adds a newline after its text, and sha256sum hashes that newline too. echo -n prints the text alone.

analyst@soc-ws

soc-ws · Hashes and verification

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: 275 words, about 2 min. It gives away every answer, so try the steps first.