Anatomy of a suspicious email
Six messages have reached the Ferrari Law Firm secretary, and at least one is not what it claims to be. Tone or subject are not enough: the headers say where a message really comes from. Compare them, pick the one to report and decode its file.
Lab 7 of 10 in the Blue Team / Defense path. If you get stuck you have 3 hints, from the vaguest to the most precise: they cost 0, 40 and 100 XP.
What you learn
Objectives complete themselves while you work in the terminal; each one is worth experience points:
- Compare the check results (SPF, DKIM, DMARC) of all messages (100 XP)
- Read the suspicious message in full (100 XP)
- Decode the file of the message to report (100 XP)
Topics: defense, posta, phishing, intestazioni.
Commands you will use
The terminal is simulated and understands about forty Linux commands. In this lab you will mostly need these:
cat: prints the contents of a file: the most direct way to read configurations, notes and logs.grep: finds the lines that contain a word, even across whole folders with -r. It is the main tool for analysing text and logs.base64: encodes and decodes Base64, the format that turns bytes into text. It protects nothing: it can be undone without a key.
The simulated environment
You work in a simulated Linux shell, in the home folder of the user runner: invented files and folders, no network target.
The defensive lesson
Once the lab is solved, the write-up explains what went wrong and how to protect yourself:
SPF, DKIM and DMARC say whether a message really comes from the domain it claims; Return-Path and Reply-To show where bounces and replies go. A single signal misleads: a forward can give softfail while being legitimate, and spam can pass every check. Real phishing combines failed checks and paths leading to domains different from the sender. Defense: DMARC in reject mode on your own domain, an antispam filter that reads these results, staff training and an easy way to report a doubtful message without opening attachments.
Before and after this lab
To unlock it you must have solved:
- Reading an access log (Blue Team / Defense, easy)
- Searching text (Linux Fundamentals, medium)
After this lab you can move on to:
- Who is taking the data? (Blue Team / Defense, medium)
The Blue Team / Defense path
Blue Team / Defense is the path of those who protect. You read access logs, count failed attempts to find out who is forcing a login, rebuild the timeline of an incident, compare an SSH configuration with the recommended one, shut down unnecessary services and handle incident response in four steps: detect, contain, clean up, document. The commands are the same as in the other paths, but used through the eyes of someone who must understand what happened and stop it from happening again.