Operation Tunnel Network

The finance share was zipped up and sent out of a file server, using the IT admin's own account. But the admin was at lunch. Follow the tunnel back across two machines and find where it started.

At a glance

Type
Walkthrough (guided: every task says where to look)
Difficulty
Medium
Time
about 35 min
Tools
Event Viewer, Chainsaw
Skills
Windows Event Log Analysis, Lateral Movement Detection, PowerShell and Process Logging
Exam prep
Security+, CySA+, BTL1
MITRE ATT&CK tactics
Lateral Movement, Credential Access, Execution, Discovery, Collection, Exfiltration
Tasks
15

The scenario

CASE FILE 5184 · OPERATION TUNNEL NETWORK · PRIORITY CRITICAL

Thursday, 13:10. The firewall at Larkspur Logistics flags a 31 MB upload from the file server LS-FS02 to an unknown internet address at 11:07. The IT admin, Arjen Jansen, swears he did nothing: he was at lunch.

CRITICAL 11:07 · Large outbound transfer from LS-FS02 to 198.51.100.23

Larkspur runs a Windows domain (LARKSPUR). Staff use their normal accounts, and Arjen has a separate admin account, adm.jansen. Like the tunnels in an old war game, attackers move from one machine to the next underground, and each hop leaves a mark in a different log.

You get three logs: the file server's Security and System logs, and the Security log from LS-WS031, the PC of Petra Dekker in finance. Start where the alarm went off and work backwards.

What you will investigate

  1. The tunnel exit
  2. Where from
  3. Odd one out
  4. The back door share
  5. The new service
  6. What it runs
  7. With what rights
  8. Looking for the crown
  9. What they packed
  10. Out the door
  11. Back through the tunnel
  12. How they got the keys
  13. Why the keys were there
  14. Patient zero
  15. File your report

Terms you will meet

Lateral movement
Moving from one compromised machine to the next inside a network.
4648
A logon with explicit credentials. Written on the machine where someone uses another account's password.
5140
A network share was accessed. ADMIN$ and C$ access from a workstation is a red flag.
7045
A new service was installed (System log). The classic PsExec footprint.
LSASS
The Windows process that holds the credentials of logged-on users. Dumping it steals them.
Pass-the-hash
Logging on with a stolen password hash instead of the password. Shows up as NTLM.
Kerberos
The normal way domain machines authenticate by name. NTLM where Kerberos is expected is suspicious.

Key takeaways

  • Start at the alarm and work backwards, one machine at a time. Build a timeline as you go.
  • On the target: 4624 Type 3 + NTLM from a workstation, 5140 ADMIN$, 7045 new service. That trio is PsExec-style movement.
  • On the source: 4648 shows which process used whose credentials.
  • comsvcs.dll MiniDump on LSASS is credential theft. Alert on it.
  • Admins should never log on to user PCs with domain admin accounts. Their credentials stay behind.

How to talk about this case in an interview

I traced lateral movement across two machines. On the file server, an admin account logged on with NTLM from a workstation (4624), opened ADMIN$ (5140) and installed a service (7045) that zipped the finance share and sent it out with curl. I pivoted to the workstation, where 4648 showed which program used the admin's credentials and 4688 showed an LSASS dump with comsvcs.dll, after a phishing script ran. That gave the full chain from email to exfiltration.

Back to all cases

ColdCase Labs: Learn cyber security by reopening cold cases.