Linux log triageHackBlue

The database died at 03:00. Was it an attack?

PostgreSQL was killed overnight and the on-call asked whether the server was attacked. Read the kernel and cron logs and show it was the out-of-memory killer and a report job.

  • Terminal mission
  • Beginner
  • 4 questions
  • 0 of 4 solved

Your goal

Your goalShow that the database was killed by the out-of-memory killer during a report job, not by an attacker.

db-04 restarted PostgreSQL at 03:02 and the on-call engineer opened a security incident just in case.

When Linux runs out of memory, the OOM killer picks a process to kill and logs why. The question for triage is not only "what died" but "what was using the memory".

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
OOM
out of memory
PID
process ID, the number Linux or Windows gives each running program

analyst@db-04

db-04 · Linux log triage

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.