TryHackMe Writeup: Keylogger Disguised as Hotel Update Script Analyzed
A network capture analysis from a TryHackMe challenge revealed that a victim host at 192.168.1.141 downloaded a malicious Python script named updates.py from an attacker-controlled server masquerading as a hotel update service. The script, built using the pynput library, functioned as a keylogger that captured individual keystrokes on the infected machine. Each keystroke was XOR-encrypted using a hardcoded key, base64-encoded, and silently exfiltrated to a command-and-control server via a cookie field in repeated HTTP GET requests. Forensic analysis of the packet capture identified 30 such requests, and decoding the cookie values revealed the hidden challenge flag. The exercise demonstrated how malware can disguise data exfiltration as routine web traffic to evade detection.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in