HackBlue

Labs / Windows event logs

PsExec from the help desk to a file server

A file server shows a network logon, a share write to ADMIN$, a new PSEXESVC service, and a command saving the SAM hive. Tie them together and trace the source workstation.

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

What you’re looking at

A file server shows a network logon, a share write to ADMIN$, a new PSEXESVC service, and a command saving the SAM hive. Tie them together and trace the source workstation.

Your goal: Tie four events on a file server into one PsExec session and trace it to the source workstation.

Briefing
the story: what happened and what evidence you were handed.
Terminal
the dark box. It is a pretend PowerShell window 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

SAM
Security Account Manager, the Windows file of local password hashes
HKLM
HKEY_LOCAL_MACHINE, the machine-wide registry hive

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

FS-02 raised an alert for reg save HKLM\SAM. Admin accounts do sometimes use PsExec here, so the question is whether this was one of them, and from where.

PsExec copies PSEXESVC.exe to the ADMIN$ share (5145), installs it as a service (7045), and runs commands as children of that service (4688). The 4624 before it shows who connected and from which machine.

PowerShell · FS-02

FS-02 · Windows event logs

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