Room: First incident
Room scenario. The web server of a logistics company in Samarkand started behaving strangely at night: the processor is overloaded and unknown requests are going out to external addresses. Before shutting the server down, the engineer on duty took a snapshot of its environment. You are the first analyst of the incident response team.
You are given server_snapshot.tar.gz: inside it are the server's var/log/auth.log log, the users' home folders (home/*/.bash_history, with a #UNIX_VAQT entry before each command in the history files), several files from etc/ and the tmp/ folder.
Solve the room step by step in TryHackMe style. Answers to the questions are not submitted — they guide you, and each step builds on the result of the previous one:
- Task 1. From which external IP did the attacker get into the system? (Note: the IP that made the most failed attempts is not always the IP that managed to get in.)
- Task 2. Exactly which user account did the attacker take over, and by which method (
password/publickey) did he get in? - Task 3. In that user's command history, from which server did the attacker download what file, where did he save it, and what did he do?
- Task 4. Decode the configuration inside the downloaded file: what is the
c2=address and theid=field? Analyse the file indicated in the history — there are other similar scripts intmp/.
The final flag has the form BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits). Do NOT RUN the scripts — only read and decode them.