Forensic Challenge 14 – “Weird Python“ (provided by Thomas Chopitea and Maximilian Hils)
Skill Level: Both entry- and intermediate-level tasks
For any questions and inquiries, please contact [email protected].
Your boss John went to a BYOD conference lately. Yeah, he’s that kind of security guy… After some mumble about targeted attacks happening during the event, your team finally got their hands on a PCAP with his traffic. Your colleague Pete Galloway investigated the incident. Yesterday, he casually mentioned that he found some weird Python bytecode, but couldn’t make much sense out of “random” payloads yet. Today, Pete didn’t come to work. Five minutes ago, he sent a company-wide mail with a total of four words: “Fuck you, I quit.“. What has happened!?
Just in time for the Honeynet Workshop in Stavanger, we have the following prizes for the best submissions:
- 1st Prize: Ticket for the full workshop (3 days), including 3 nights of hotel (Value: ~3000 USD)
- 2nd Prize: Ticket for the full workshop (3 days) (Value: 2450 USD)
- 3rd Prize: Two tickets for the first day (Value: 1380 USD)
(Obligatory legal disclaimer: The prizes cannot be exchanged for the cash equivalent)
(pass: e84f2e4cad4d83ba2af9ee8f17412e97bf29787a8ec4675fc1e4717bd3799426; sha1sum: 8f89d3c831450008d2228a80d8b2bfe637b9a3c9)
You can view a crowd-sourced write-up compiled from the submissions we received here.
If you are interested in using the challenge for educational purposes, let us know and we are happy to remove this part temporarily.
For each question, please explain your methodology (How did you get the answer? Which tools did you use?). Submissions will be primarily rated by accuracy and quality.
- BYOD seems to be a very interesting topic. What did your boss do during the conference?
- What method did the attacker use to infect your boss? Which systems (i.e. IP addresses) are involved?
- Based on the PCAP, which files were exfiltrated? List the filenames.
- Can you sketch an overview of the general actions performed by the malware?
- Do you think this is a targeted or an automated attack? Why?
- The malware seems to be written in Python. Is this “normal” Python? What’s different?
- What does main.pyc do? (Bonus: Can you provide a decompiled version?)
- How is the final payload protected? How is it decrypted by the dropper? (Bonus: Can you provide a decompiled version?)
- Why did Pete leave the company?
- Your boss mentioned he’s going to the Honeynet Workshop in Stavanger, but you’re not allowed to join him. Why so?
- Bonus: There are five superheroes hidden in the challenge. Which of them did you find?
- Optional (not rated, feel free to submit separately): Please provide some feedback on the challenge! What did you like/dislike?
This work by Thomas Chopitea and Maximilian Hils is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.