Privilege auditHackBlue

A root cron job anyone can edit

A cleanup script runs as root every five minutes, but its file is world-writable. Find the weak permission, see what was appended, and name the file it creates.

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

Your goal

Your goalFind the root cron script anyone can edit and what was added to it.

An EDR rule fired on a SUID shell appearing in /tmp on db-02. The host has no interactive users other than admins.

Cron runs files in /etc/cron.d as the user in the sixth column. If any user can write the script that root runs, any user can become root. find -perm -o+w lists world-writable files.

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
EDR
endpoint detection and response, the security agent on a computer
SUID
set-user-ID, a file permission that runs a program as its owner

analyst@db-02

db-02 · Privilege audit

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