PINHOLE
- Type
- RAT
- Capabilities
- Credential theftExfiltrationPersistenceDefense evasionProcess injectionReconnaissance
- Delivery
- Phishing
- Platforms
- Windows
PINHOLE is a multistage, 64-bit Windows remote access trojan compiled with MinGW-w64 and identified during investigations of malicious FTP-banner activity observed from July 2026. Its delivery chain retrieves executable instructions from FTP welcome banners and uses PowerShell to download and launch subsequent stages. An initial wrapper masquerades as a software update utility and conceals an encoded payload within certificate-like data.
PINHOLE retrieves encrypted command-and-control configuration from Pinterest pins and SurveyMonkey questions, using these services as dead drop resolvers, and proxies communications through Cloudflare Workers. Configuration data is concealed in NTFS alternate data streams. The malware establishes persistence through a per-user Windows Registry setting that launches it at login.
Its evasion mechanisms include Halo’s Gate-based direct system calls, dynamic API resolution, anti-analysis checks, six unpacking or decryption layers, and Early Bird APC injection into a suspended legitimate Windows process. Shellcode fluctuation limits the decrypted executable payload to one 4 KB page at a time, reducing its exposed memory footprint. The installation chain also deletes temporary artifacts.
The final RAT communicates over HTTP GET and POST and supports 14 commands covering directory enumeration, recursive file searching, file upload and download, file deletion and execution, process enumeration and termination, screenshot capture, and PowerShell execution with persistent interactive sessions. It can also deploy a browser credential-stealing module and execute additional payloads.
PINHOLE and E4del are distinct malware clusters that share the FTP-banner delivery technique. No established threat-actor attribution or specific industry targeting has been identified.
Techniques & procedures
46 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
T1583.007 — Acquire Infrastructure: Serverless (Resource Development)
Initial Access
2 techniques
Initial Access
Предположительно, такие атаки начинаются с фишинга; в одной из цепочек использовались испаноязычные приманки с предложением получить купон.
Des fichiers LNK (probablement distribués par phishing) récupèrent ces commandes, qui déclenchent ensuite le téléchargement de charges utiles via WebDAV ou PowerShell.
Execution
7 techniques
Execution
T1047 — Windows Management Instrumentation (Execution)
E4del способен выполнять шелл-команды; PINHOLE умеет выполнять команды PowerShell и открывать PowerShell-сессии.
PINHOLE поддерживает выполнение команд PowerShell и открытие PowerShell-сессий.
Téléchargement de u.cmd ... Décodage via certutil -decode → archive Cabinet → calc.exe
Загрузчик PINHOLE использует технику Halo's Gate.
to entice users into executing a shortcut file
The post was the first to document the capability of LNK files (likely spread through phishing) to use FTP banners as a DDR for fetching commands.
Persistence
4 techniques
Persistence
Les acteurs malveillants intègrent des commandes malveillantes directement dans les bannières de réponse initiale du protocole FTP
it establishes persistence by utilizing Electron’s native login item settings ( setLoginItemSettings ), configuring the host executable ( Discord.exe ) to launch automatically upon user login
It creates a “ Load ” value located at HKCUSoftwareMicrosoftWindows NTCurrentVersionWindows , which is a legacy Windows feature designed to automatically load programs upon user login.
This unusual method was first observed in July by MalwareHunterTeam and involves using shortcut files and FTP server banners as dead-drop resolvers to retrieve commands
Privilege Escalation
5 techniques
Privilege Escalation
The payload is subsequently handed off to an Early Bird APC Injection routine to run it inside a legitimate, suspended process
Пейлоад внедряется в приостановленный процесс ApplicationFrameHost.exe с помощью метода Early Bird APC Injection.
it establishes persistence by utilizing Electron’s native login item settings ( setLoginItemSettings ), configuring the host executable ( Discord.exe ) to launch automatically upon user login
It creates a “ Load ” value located at HKCUSoftwareMicrosoftWindows NTCurrentVersionWindows , which is a legacy Windows feature designed to automatically load programs upon user login.
This unusual method was first observed in July by MalwareHunterTeam and involves using shortcut files and FTP server banners as dead-drop resolvers to retrieve commands
Stealth
13 techniques
Stealth
6 couches de déchiffrement : faux JPEG ... XOR ... Donut ... aPLib
Пейлоад PINHOLE проходит через шесть слоев распаковки.
it dynamically resolves APIs at runtime by walking the PEB loader data and matching 32-bit function hashes against module export tables.
The end goal of the attack is to deliver E4del, a Node.js-based RAT that's embedded within a digitally signed Electron application masquerading as Discord.
E4del ... se faisant passer pour Discord ... PINHOLE ... se faisant passer pour un utilitaire de mise à jour de « Weston Computing Systems Ltd »
The payload is subsequently handed off to an Early Bird APC Injection routine to run it inside a legitimate, suspended process
Пейлоад внедряется в приостановленный процесс ApplicationFrameHost.exe с помощью метода Early Bird APC Injection.
This script is saved as %TEMP%u.cmd, executed, and subsequently deleted to minimize the forensic footprint.
Décodage via certutil -decode → archive Cabinet → calc.exe
Les acteurs malveillants intègrent des commandes malveillantes directement dans les bannières de réponse initiale du protocole FTP
This serves as an anti-sandbox technique , ensuring the payload only detonates on the intended victim’s machine rather than in an automated analysis environment
T1564.003 — Hide Artifacts: Hidden Window (Defense Evasion)
Stockage de la configuration dans des NTFS Alternate Data Streams (ADS) de fichiers desktop.ini
Defense Impairment
1 technique
Defense Impairment
PINHOLE supports numerous commands, including file manipulation and credential theft.
Credential Access
2 techniques
Credential Access
deploying a module for stealing credentials stored in browsers.
14 commandes supportées : ... stealer (navigateur)
Discovery
5 techniques
Discovery
T1012 — Query Registry (Discovery)
list running processes, terminate a process by PID
E4del conducts a localized fingerprinting phase to profile the infected machine. It generates a unique hardware identifier ( HWID ) by SHA256-hashing the MAC addresses of the system’s network interfaces alongside the CPU model.
PINHOLE RAT features 14 commands to enumerate files and directories, exfiltrate files, execute a payload or binary, recursively search for files
This serves as an anti-sandbox technique , ensuring the payload only detonates on the intended victim’s machine rather than in an automated analysis environment
Collection
3 techniques
Collection
download or upload files, and retrieve an as-yet-undetermined browser stealer module
E4del способен делать скриншоты и транслировать рабочий стол через WebSocket; PINHOLE также умеет делать скриншоты.
The attack chain begins with a ZIP archive, likely distributed via phishing, which initiates an LNK-based infection.
Command and Control
9 techniques
Command and Control
The final injected executable contains the RAT functionality of PINHOLE, which entails communicating with the C2 server over HTTP GET and POST requests to poll for commands and send the results back
C2 chiffré AES-256-CBC ... via HTTP POST ... Le trafic est proxifié via Cloudflare Workers
Злоумышленники используют FTP-баннеры в качестве dead drop resolver (DDR) для передачи команд; команды встраиваются в приветственные сообщения FTP-серверов до аутентификации.
Конфигурацию C2 PINHOLE получает через Pinterest и SurveyMonkey, при этом соединения проксируются через Cloudflare Workers.
uses high-reputation platforms like Pinterest and SurveyMonkey as DDRs to obtain the C2 server details and proxy the communication through Cloudflare Workers.
FTP-баннеры используются в качестве dead drop resolver (DDR) для передачи команд. PINHOLE может получать конфигурацию управляющих серверов через пины на Pinterest и вопросы в SurveyMonkey.
Les acteurs malveillants intègrent des commandes malveillantes directement dans les bannières de réponse initiale du protocole FTP (port 21).
E4del может скачивать файлы и запускать дополнительные пейлоады; PINHOLE может запускать дополнительные пейлоады и бинарники.
Les acteurs malveillants intègrent des commandes malveillantes directement dans les bannières de réponse initiale du protocole FTP
Exfiltration
1 technique
Exfiltration
communicating with the C2 server over HTTP GET and POST requests to poll for commands and send the results back, download or upload files
Impact
1 technique
Impact
terminate a process by PID
Observables
33 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.