HackBlue

Labs / Hashes and verification

Same rows, different hash

Finance’s vendor file does not match the hash the bank sent, so someone suspects tampering. Compare the bytes and show that line endings, not edits, changed the hash.

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

What you’re looking at

Finance’s vendor file does not match the hash the bank sent, so someone suspects tampering. Compare the bytes and show that line endings, not edits, changed the hash.

Your goal: Show that a hash mismatch came from line endings, not from someone editing the file.

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

Before every payment run the bank emails a SHA-256 of the vendor master file it holds. Today the hash of vendors.csv on the finance share does not match, and the payment run is on hold.

A hash covers every byte, including invisible ones. Windows ends lines with CR LF (0d 0a) and Linux with LF (0a). A file opened and saved on the other kind of system can change every line without changing a single visible character.

analyst@fin-share

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