Memory forensicsHackBlue

Shell history the attacker turned off

The intruder unset HISTFILE, so .bash_history is empty. Recover the commands from memory with linux.bash and match them to a running process with linux.pslist.

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

Your goal

Your goalRecover an intruder’s shell commands from memory after they turned history off.

A web server’s .bash_history files show nothing unusual, but the host was beaconing at midnight. The responder captured RAM with AVML before rebooting: cases/web-3/web-3.lime.

linux.bash reads command history straight from each bash process’s memory, so unsetting HISTFILE only stops it reaching disk. linux.pslist gives PID, PPID, and UID.

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
RAM
the computer’s working memory
PID
process ID, the number Linux or Windows gives each running program
PPID
parent process ID, the program that started this one
UID
user ID number
IP
Internet Protocol address, the number that identifies a machine on a network

analyst@forensics-ws

forensics-ws · Memory forensics

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.