FTP Brute Force Attack

Someone guessed their way into a bakery's file server and took the family sourdough recipe. Read the whole heist, line by line, in plain text.

At a glance

Type
Walkthrough (guided: every task says where to look)
Difficulty
Very Easy
Time
about 12 min
Tools
Wireshark
Skills
Packet Capture Analysis with Wireshark, Brute Force and Password Spraying Detection
Exam prep
Security+, CySA+, BTL1
MITRE ATT&CK tactics
Credential Access, Exfiltration
Tasks
9

The scenario

CASE FILE 5130 · FTP BRUTE FORCE ATTACK · PRIORITY MEDIUM

Sunday, 22:41. Rosa's Bakery keeps its order sheets, shopping lists and one very famous recipe on a small file server (192.168.56.40). Tonight the server's log lit up with login attempts, and a tiny recorder saved 28 seconds of the action.

The family sourdough recipe is the bakery's biggest secret. Did someone get in? What did they take? And how easy did we make it for them?

This is a friendly case: every step tells you exactly what to click, and you will read the heist almost like a story.

What you will investigate

  1. Meet the suspect
  2. The username
  3. Count the failures
  4. The winning guess
  5. Why can we read it?
  6. The stolen file
  7. The secret ingredient
  8. The note
  9. File your report

Terms you will meet

FTP
An old way of moving files between computers. It sends everything, passwords included, as plain text.
SFTP
A secure way of moving files. It encrypts everything, so snoopers see only scrambled data.
Password guessing
Trying many passwords until one works. Security people call it brute force.
Response code
A number the server sends back. 230 means login worked and 530 means login failed.
Cleartext
Data sent without encryption. Anyone watching the network can read it.
PCAP
A file that stores captured packets, so you can study them later.

Key takeaways

  • Many failed logins in a row from one address means someone is guessing passwords.
  • Response code 530 means login failed and 230 means it worked.
  • FTP sends passwords and files as plain text, so anyone on the network can read them.
  • Weak passwords like 1234 and bread123 fall in seconds.
  • Fix the cause with encryption, strong passwords and lockouts, not just one blocked address.

How to talk about this case in an interview

I reviewed an FTP capture where one address failed to log in many times (530) before it succeeded (230). Because FTP is plain text I could read the password that worked and the file that was taken. I recommended replacing FTP with an encrypted protocol, strong passwords and lockouts.

Back to all cases

ColdCase Labs: Learn cyber security by reopening cold cases.