$ cat writeup.md…
$ cat writeup.md…
HackTheBox
Our cybercrime unit has been investigating a well-known APT group for several months. The group has been responsible for several high-profile attacks on corporate organizations. However, what is interesting about that case, is that they have developed a custom command & control server of their own.
$ cat /etc/rate-limit
Rate limit reached (20 reads/hour per IP). Showing preview only — full content returns at the next hour roll-over.
Our cybercrime unit has been investigating a well-known APT group for several months. The group has been responsible for several high-profile attacks on corporate organizations. However, what is interesting about that case, is that they have developed a custom command & control server of their own. Fortunately, our unit was able to raid the home of the leader of the APT group and take a memory capture of his computer while it was still powered on. Analyze the capture to try to find the source code of the server.
TrueSecrets.raw — 200MB Windows memory dump (extracted from ZIP with password hackthebox)Used Volatility3 windows.info to identify the system:
python3 -m volatility3 -f TrueSecrets.raw windows.info
Ran windows.pslist and identified key processes:
| PID | Process | Significance |
|---|---|---|
| 2128 | TrueCrypt.exe | TrueCrypt disk encryption — the challenge name hint |
| 2176 | 7zFM.exe | 7-Zip, opened backup_development.zip |
| 3212 | DumpIt.exe | Memory acquisition tool |
python3 -m volatility3 -f TrueSecrets.raw windows.pslist
Ran windows.filescan and found two critical files:
| Offset | File |
|---|---|
| 0xbbf6158 | \Users\IEUser\Documents\backup_development.zip |
| 0xc50c550 | \Users\IEUser\Documents\development.tc |
Extracted backup_development.zip (304KB) from memory:
python3 -m volatility3 -f TrueSecrets.raw windows.dumpfiles --virtaddr 0xbbf6158
Unzipped to get development.tc — a 300KB TrueCrypt encrypted container.
This is the critical step. TrueCrypt caches passwords in process memory as a struct:
Dumped TrueCrypt process memory (PID 2128):
...
$ grep --similar