C2 Beaconing Detection

A finance PC is phoning someone on a schedule. Find the fake invoice, the heartbeat, the hidden orders and the stolen file.

At a glance

Type
Walkthrough (guided: every task says where to look)
Difficulty
Easy
Time
about 20 min
Tools
Wireshark, CyberChef
Skills
Packet Capture Analysis with Wireshark, C2 and Data Exfiltration Detection
Exam prep
Security+, CySA+, BTL1
MITRE ATT&CK tactics
Command and Control, Exfiltration
Tasks
10

The scenario

CASE FILE 5120 · C2 BEACONING DETECTION · PRIORITY HIGH

Tuesday, 03:07. Jordan Smith is working late to close the quarter on the finance PC (192.168.56.30). A tap on the network recorded the next four minutes.

Jordan swears: "I only opened one invoice." But the firewall flagged the PC for strange, regular traffic, as if something were checking in on a schedule. Is Jordan right? Is someone else running the show?

You are the detective on call. Find the file, the clock and the loot. This case is a step up from your first one, but every task still tells you where to look.

What you will investigate

  1. The phone book
  2. The download
  3. Inside the file
  4. Count the check-ins
  5. The clockwork
  6. The disguise
  7. The secret order
  8. The loot
  9. The parting shot
  10. File your report

Terms you will meet

DNS
The network's phone book. It turns a name like news.example.com into an IP address.
GET and POST
A GET asks a server for a page or file. A POST sends data to a server.
User-Agent
A line in a web request that says which software is asking.
Beaconing
A program checking in with its controller at regular intervals.
C2 (command and control)
The server that sends orders to malware and collects what it steals.
Base64
A way of writing any data using only letters and numbers. It hides nothing, because anyone can decode it.
Exfiltration
Quietly sending stolen data out of a network.

Key takeaways

  • A file ending in .pdf.exe is a program, not a document.
  • Malware often checks in on a fixed schedule. Perfectly regular traffic is a red flag.
  • A strange User-Agent, such as a 20-year-old browser, is a clue.
  • Base64 is a costume, not a lock. Decode it.
  • Isolate the machine first, then investigate.

How to talk about this case in an interview

I investigated a finance PC that downloaded a fake invoice that was really a .pdf.exe. In Wireshark I found check-ins to one server at a fixed interval with an outdated User-Agent, decoded the Base64 orders in CyberChef and found the file it stole. I recommended isolating the PC and blocking the C2 server.

Back to all cases

ColdCase Labs: Learn cyber security by reopening cold cases.