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
- The stranger
- The calling card
- The target
- Knock, knock
- The right key
- The gift
- First command
- The treasure map
- The database key
- The flag
- The decoy
- 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
.envas 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.