Packet Capture to Executable Analysis
Recovered a binary from network-capture data, analyzed its runtime behavior, and reconstructed a cryptographic transformation.
Scope: I completed this as a technical interview exercise. I have omitted the original company's materials, challenge secrets, and step-by-step solution.
The problem
The starting evidence was packet-capture data containing material associated with a Linux executable. After restoration, the program exited unexpectedly, and its encrypted output could not be understood from network traffic alone.
How I approached it
- Inspected captured conversations and reconstructed an executable artifact from the relevant raw bytes.
- Used GDB and Ghidra to investigate startup behavior, failure conditions, and the role of encrypted data.
- Examined socket-driven behavior in a controlled environment and used a small C implementation to validate the decryption workflow.
Tools and techniques
WiresharkHex editorGDBGhidraNcatC / OpenSSL
Result
The original assessment concluded with a successful decoding of the protected challenge output. The write-up does not establish a security defect in a real-world networked product.
What I learned
Reconstructing the executable from network data was only the beginning. I still needed to separate startup failures from the decoding routine and test the recovered transformation against the supplied data.