XP 0·Recruit·Streak 0
Cases › Windows Logs › Operation Night Shift

Operation Night Shift

Someone tried a handful of passwords against every account on a file server in the middle of the night. One of them worked. Read the Security log and find out what they did next.

At a glance

Type
Guided walkthrough: every task says where to look
Difficulty
Easy
Time
~30 min
Tools
Event Viewer (or Chainsaw / Hayabusa on Linux and macOS), CyberChef
MITRE ATT&CK tactics
Credential Access, Initial Access, Discovery, Persistence, Execution, Defense Evasion
Tasks
15

The scenario

CRITICAL03:14 UTC · HF-FS01Windows event log cleared: System
HIGH03:07 UTC · HF-FS01New account added to local Administrators group

Wednesday, 14 October, 08:20. Tom Becker, the only IT person at Halvorsen Freight, gets in early and finds two alerts from the overnight monitoring on HF-FS01, the company file server. Somebody cleared one of its event logs at 03:14, and seven minutes before that a brand-new account joined the Administrators group.

Nobody at Halvorsen works at 3 a.m. Tom remembers opening Remote Desktop on the server to the internet last month "just for a day" so a vendor could fix the backup software. He never closed it.

Whoever cleared the logs missed one. Tom has exported the server's Security log and handed it to you. It covers the normal working day before the attack, the night itself, and the next morning.

Your job: work out how they got in, which account they used, what they did on the server, and how they planned to come back.

The evidence

↓ night-shift-evidence.zip
Security.evtx (the exported log) and Security.json (the same 71 events as JSON, handy for Linux and macOS)

Zip password: coldcase

The zip is password protected like all ColdCase evidence, so mail filters and antivirus leave it alone. Everything inside is a recording: no live malware, and every link is defanged.

Recommended tools

Windows

Event Viewer

Built into Windows. Press Win+R, type eventvwr.msc, then Action > Open Saved Log and pick Security.evtx. Use Filter Current Log to show one Event ID at a time.

EvtxECmd + Timeline Explorer

Free tools by Eric Zimmerman. EvtxECmd turns the log into a CSV; Timeline Explorer opens it like a spreadsheet with filters on every column. What many real analysts use.

Linux and macOS

Chainsaw

Fast command-line hunting through .evtx files, with built-in detection rules.

Hayabusa

Builds a timeline from .evtx files and flags suspicious events. Single download, no install.

evtx_dump

Converts .evtx to readable XML or JSON so you can grep it.

jq + Security.json

No .evtx tool at all? Every event is also in Security.json. Example: jq '[.[] | select(.EventID==4625)] | length' Security.json

Everyone

CyberChef

Runs in your browser. You will need it to decode one command.

Windows Security Log Encyclopedia

Look up what any Event ID or field means.

What you will investigate

1The noise floor+10 XP

How many failed logons (Event ID 4625) are in the whole log?

Event Viewer: Filter Current Log, type 4625 in the Event IDs box. The count appears at the top of the list ("Number of events").
2The knocker+10 XP

Almost all of those failures come from one address. Which IP address?

Open any 4625 event. In the General tab look under Network Information > Source Network Address. In the XML it is the IpAddress field.
3The calling card+10 XP

Attackers often forget their own computer leaks its name. What computer name did the attacker's machine report?

Same 4625 events, Network Information > Workstation Name (WorkstationName).
4Spray or brute force?+10 XP

How many different account names did the attacker try?

Look at Account For Which Logon Failed > Account Name (TargetUserName) across the attacker's 4625s. In Timeline Explorer or with jq you can list the unique values.
5Low and slow+10 XP

The failures come in three bursts. Roughly how many minutes apart do the bursts start?

Sort the attacker's 4625 events by time and note when each burst begins.
6The weak link+10 XP

In the third burst one guess worked. Which account did the attacker get into?

Filter for 4624 (successful logon) and look for one coming from the attacker's IP address.
7The baseline+10 XP

That account has a normal job too. The night before, it logged on from a different computer. Which one?

Look at the other 4624 events for the same account. Check Workstation Name.
8The way in+10 XP

Six minutes later the attacker logged on again with a different Logon Type. Which Logon Type number?

The second 4624 from the attacker's IP. Logon Information > Logon Type.
9First look around+10 XP

What is the first command the attacker typed into cmd.exe?

Filter for 4688 (a new process was created). Read Process Command Line in time order after cmd.exe starts.
10The new friend+10 XP

The attacker created a new account. What is its name?

Filter for 4720 (a user account was created). You can also see the net user ... /add command in a 4688 event.
11Promotion+10 XP

Which group did they add the new account to?

Filter for 4732 (a member was added to a security-enabled local group). Look at Group > Group Name.
12Staying power+10 XP

They also set something up to run every time anyone logs on. What is the name of the scheduled task?

Filter for 4698 (a scheduled task was created). Read Task Name, or find the schtasks /create command in a 4688.
13Decode the payload+10 XP

The task runs PowerShell with an encoded command (-enc). What URL does it download from?

Copy the long text after -enc from the 4698 or 4688 event. In CyberChef use From Base64, then Decode text set to UTF-16LE (1200).
14Covering tracks+10 XP

Before leaving, the attacker tried to clear two logs. Which log did they clear first?

The last 4688 events from the attacker. Look for wevtutil cl ("clear log").
15File your report+10 XP

Password spraying has its own MITRE ATT&CK technique ID. What is it? (format T0000.000)

Search for "password spraying" on attack.mitre.org. It is a sub-technique of Brute Force.

CASE CLOSED

Good work. Here is what the defenders should do next:

Terms you will meet

Event ID
A number that says what kind of thing happened. 4624 is a successful logon, 4625 a failed one, 4688 a new process.
Logon Type
How someone logged on. 2 is at the keyboard, 3 is over the network, 10 is Remote Desktop.
Password spraying
Trying one or two common passwords against many accounts, slowly, so no single account gets locked out.
Service account
An account used by software (like a backup job) rather than a person. Often has too many rights and an old password.
Persistence
Anything an attacker sets up so they can get back in later, like a new account or a scheduled task.
wevtutil
A built-in Windows tool for managing event logs. wevtutil cl clears a log.
-enc / EncodedCommand
A PowerShell option that takes a Base64 command. Legitimate tools use it, and so do attackers hiding what they run.

Key takeaways

← Back to all cases · Reset this case
ColdCase Labs. Hands-on blue team cases that run in your browser. Progress is saved in this browser only.