Secrets in GitHackBlue

The token on a branch nobody merged

A scan of main came back clean, but the repository has other branches. Search every branch for the API token that leaked, find the branch, and the file it sits in.

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

Your goal

Your goalSearch every branch for a leaked token and find exactly where it sits.

The payments-sdk repository was public for a week by mistake. A secret scan of main found nothing, so the incident was nearly closed.

git log on its own walks the current branch only. git log --all walks every branch, including ones that were never merged.

What’s on screen
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 to know
API
application programming interface, how programs talk to a service

analyst@dev-laptop

dev-laptop · Secrets in Git

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.