Operation Black Lotus

Someone guessed their way into the BrightMart staff portal and left a strange file behind. Work out how they got in, what they ran, and what they walked away with. No hand-holding.

At a glance

Type
Challenge (unguided: you decide how to solve it)
Difficulty
Medium
Time
about 30 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, Initial Access, Execution, Collection
Tasks
12

The scenario

CASE FILE 5170 · OPERATION BLACK LOTUS · PRIORITY CRITICAL

Thursday, 02:10. The BrightMart staff portal (portal.brightmart.test, server 192.168.56.80) raised an alert: a file nobody recognizes appeared in its uploads folder. Ordinary staff also use the portal in the same recording, so not everything you see is evil.

This is a challenge. There are no step-by-step instructions: you get the capture and a list of questions, and how you answer them is up to you. Follow the attacker from the first knock to the last command.

Find the visitor, how they got in, what they ran and what they took.

What you will investigate

  1. The stranger
  2. The calling card
  3. The target
  4. Knock, knock
  5. The right key
  6. The gift
  7. First command
  8. The treasure map
  9. The database key
  10. The flag
  11. The decoy
  12. File your report

Terms you will meet

Brute force
Trying many passwords in a row until one works.
Web shell
A small program on a web server that lets an attacker run commands through the browser.
User-Agent
A line in a web request that says which software is asking.
.env file
A file that holds a website's secrets, such as database passwords.
Lockout
A rule that blocks an account after too many failed logins.

Key takeaways

  • Fast, repeated failed logins from one address are a brute-force attack.
  • Allow only safe file types on uploads, and never let uploads run as code.
  • Treat any file named .env as a treasure chest: keep it out of the web folder.
  • Do not confuse normal staff traffic with the attacker's. Verify who and from where.

How to talk about this case in an interview

I investigated a brute force against a staff web portal from a packet capture. I found the attacker, the password that worked, an uploaded file that ran commands and a stolen .env file with database secrets, while keeping normal staff traffic separate. I recommended upload restrictions and rotating the leaked secrets.

Back to all cases

ColdCase Labs: Learn cyber security by reopening cold cases.