WikiLoader
- Type
- Downloader
- Capabilities
- Defense evasionProcess injectionDLL sideloadingReconnaissanceExfiltration
- Delivery
- PhishingMalspamLure
- Platforms
- Windows
WikiLoader is a sophisticated Windows downloader first observed in December 2022, designed to retrieve and execute additional malware. It has been distributed by the cybercriminal groups TA544 and TA551, primarily in campaigns targeting Italian organizations, although some campaigns reached broader audiences. Observed follow-on payloads include the Ursnif banking trojan. Delivery chains have used malicious emails impersonating tax authorities and courier services, accounting-themed lures, macro-enabled Excel attachments, OneNote attachments containing embedded executables, and PDF attachments linking to archived JavaScript downloaders. Analyzed infection chains have also used DLL sideloading through a bundled legitimate application.
WikiLoader uses heavily obfuscated DLLs and multiple encrypted shellcode stages. Its defense-evasion techniques include dynamic API resolution through Process Environment Block traversal, encoded strings, indirect system calls, checks for API hooks and analysis tools, hidden suspended threads, thread-context manipulation, and lengthy execution delays. It can overwrite code in a loaded library and inject shellcode into the Windows shell process. Environmental checks include validating a Wikipedia response and querying an unregistered domain to detect suspicious DNS behavior associated with analysis environments.
Later variants collect basic host information, including computer and user names, administrative status, language, and system time, and transmit encoded host data through HTTP cookies. Payload retrieval has used compromised web pages and legitimate content-delivery infrastructure, while one observed version used MQTT to retrieve information needed for a subsequent download. Multiple versions introduced changes to obfuscation, system-call handling, execution delays, and communications.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Proofpoint identified a new malware we call WikiLoader... WikiLoader is a sophisticated downloader with the objective of installing a second malware payload.
Proofpoint identified a new malware we call WikiLoader... WikiLoader is a sophisticated downloader with the objective of installing a second malware payload.
Techniques & procedures
34 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
3 techniques
Initial Access
Campaigns began with emails containing either Microsoft Excel attachments, Microsoft OneNote attachments, or PDF attachments.
The Microsoft Excel attachments contained characteristic VBA macros which, if enabled by the recipient, would download and execute a new unidentified downloader that Proofpoint researchers eventually dubbed WikiLoader.
TA544 used accounting themes to deliver PDF attachments with URLs that led to the download of a zipped JavaScript file.
Execution
5 techniques
Execution
The Microsoft Excel attachments contained characteristic VBA macros which, if enabled by the recipient, would download and execute...WikiLoader.
If the JavaScript was executed by the recipient, it led to the download and execution of the packed downloader, WikiLoader.
Function Used to load native API to perform indirect syscalls: ntdll.dll Checks if native calls are hooked.
Thus, user interaction is required to begin the malware installation.
The OneNote attachments contained a hidden CMD file behind an “OPEN” button which, if clicked by the recipient, downloaded and executed WikiLoader.
Persistence
1 technique
Persistence
Creates a mutex 330117 ... It will load CreateMutexA, and attempt to create one with the value
Privilege Escalation
3 techniques
Privilege Escalation
Shellcode is writte into explorer.exe
NtSetContextThread -> Inside the context object in memory there is pointer referencing the start of injected code which will be the threads RIP.
Creates a mutex 330117 ... It will load CreateMutexA, and attempt to create one with the value
Stealth
13 techniques
Stealth
Deobfuscation of strings through even positioned characters. The obfuscation is simple and is only based on getting the character sitting in an even position.
Stage 1 is the packed DLL. The use of packed downloaders is a common technique employed by threat actors to evade detection and analysis.
Using similar method to load API, the malware retrieves GetProcAddress() from the PEB. Retrieving once again API via PEB walking
To avoid this, from Process Hacker I opened the section created by CreateToolHelp32SnapShot and modified the hex values to match svchost.exe, and it worked.
Shellcode is writte into explorer.exe
NtSetContextThread -> Inside the context object in memory there is pointer referencing the start of injected code which will be the threads RIP.
Stage 3 is encrypted via a single byte XOR key and placed at the end of the stage 2 shellcode. Stage 2 finds a reference to the start of stage 3, decrypts it via the XOR key and transfers execution.
Function Used to load native API to perform indirect syscalls: ntdll.dll
Long busy loop to slow down execution. Anti analysis checks for common malware analysis tools (x64dbg.exe, pe-bear, process hacker etc.)
The loader then checks GetTickCount64... If the value returned is less than 125, the loader will make a request to a specified, hardcoded URL.
Full execution of the loader takes almost an hour given the abundance of busy loops.
Call NtProtectVirtualMemory on bingmaps.dll location with 0x40 rx -> wrx ... Once it has finished injecting code it will call once again NtProtectVirtualMemory with 0x20 PAGE_EXECUTE_READ on the .text section of bingmaps.dll.
Anti analysis checks for common malware analysis tools (x64dbg.exe, pe-bear, process hacker etc.)
Discovery
9 techniques
Discovery
GetUserNameA
For this, from the PEB it fetches the following API: CreateToolHelp32SnapShot Process32First Process32Next.
Gathers system information to send to C2 ... GetComputerNameA GetUserNameA IsUserAnAdmin GetUserDefaultUILanguage GetSystemTime
GetSystemTime
Long busy loop to slow down execution. Anti analysis checks for common malware analysis tools (x64dbg.exe, pe-bear, process hacker etc.)
The loader then checks GetTickCount64... If the value returned is less than 125, the loader will make a request to a specified, hardcoded URL.
Full execution of the loader takes almost an hour given the abundance of busy loops.
GetUserDefaultUILanguage
Anti analysis checks for common malware analysis tools (x64dbg.exe, pe-bear, process hacker etc.)
Command and Control
6 techniques
Command and Control
On 11 July 2023, researchers identified additional changes to the actively developed malware in the protocol used for reaching compromised webhosts, exfiltration of host information via HTTP cookies... The second filename is pulled via the MQTT protocol rather than reaching the compromised webhosts.
Malware attempts to connect to the 8 hard-coded URLs and read the page... The requests are made to the URLs with cookie Cookie: jfkUg=75888210 + [BASE64 ENCODED SYSTEM DATA]
The second filename is pulled via the MQTT protocol rather than reaching the compromised webhosts.
the pages contain a tag containing the string "gmail", inside there is another obfuscated URL which contains the next stage payload.
Before moving to network function the string seen above is converted to BASE64 with CryptBinaryToStringA().
This function seems to load BCrypt.dll and perform some decryption on a large data section contained in the shellcode... the key is actually obtained from results of the URL connections.
Exfiltration
1 technique
Exfiltration
In later versions of this upstream PHP, host information is gathered and sent via HTTP cookies. These cookies contain basic host information, and a unique identifier for tracking purposes.
Observables
61 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.