How to remove the WebSocket RAT (Remote Access Trojan)
TrojanAlso Known As: WebSocket remote access trojan
Get free scan and check if your device is infected.
Remove it nowTo use full-featured product, you have to purchase a license for Combo Cleaner. Seven days free trial available. Combo Cleaner is owned and operated by RCS LT, the parent company of PCRisk.com.
What kind of malware is the WebSocket RAT?
WebSocket is the name of a Remote Access Trojan (RAT). This malware allows attackers to access/control devices remotely. It was used in a highly targeted phishing campaign that involved six months of planning and was executed on the 8th of October, 2025. It was designed for maximum efficacy and the Russian-owned infrastructure set up by the threat actors was only active for a day. Individuals associated with the regional government of Ukraine and with international NGOs providing aid to Ukraine were targeted.

WebSocket malware overview
The campaign mentioned in the introduction, targeted Ukrainian government administrations of Dnipropetrovsk, Donetsk, Mikolaevsk, and Poltava regions and NGOs (Non-Governmental Organizations) providing war relief to Ukraine – including the local office of UNICEF (United Nations Children's Fund), International Committee of the Red Cross (ICRC), Norwegian Refugee Council (NRC), and the Register of Damage Caused by the Aggression of the Russian Federation against Ukraine (RD4U).
This phishing campaign involved fake emails sent to individuals of interest. The emails were disguised as missives from the Office of the President of Ukraine. Deceptive PDF documents were attached to these messages, luring victims into visiting a fraudulent Zoom website. The page used a Cloudflare-themed ClickFix scam to trick visitors into executing a malicious command on their devices – thus, triggering WebSocket RAT's infection chain.
It was a multi-stage infection that downloaded a highly obfuscated PowerShell script upon the victim executing the command. The script was responsible for downloading and executing the second-stage payload from a specific domain. This payload collected relevant device data, e.g., device name, Universally Unique Identifier (UUID), process identifier, username, network details, etc.
The gathered information was encrypted and exfiltrated to the C&C (Command and Control) server. It responded by delivering the final payload – WebSocket RAT – which was then decrypted and executed in-memory. This malware is a Remote Access Trojan – it enables remote access and control over infected machines.
The program in question seeks to connect and continuously reconnect to a WebSocket server. This trojan can execute arbitrary commands on devices. RATs can be incredibly versatile or specialized.
Generally, threats associated with this kind of malware include multiple system infections, severe privacy issues, financial losses, and identity theft. However, malicious software leveraged against high-sensitivity targets can pose dangers of even greater scope. This is true for the geopolitically motivated campaign in which the WebSocket RAT was used.
| Name | WebSocket remote access trojan |
| Threat Type | Trojan, Remote Access Trojan, Remote Administration Tool, RAT. |
| Detection Names | Avast (Other:Malware-gen [Trj]), Combo Cleaner (Adware.GenericKD.61070519), ESET-NOD32 (PowerShell/Kryptik.JK), Kaspersky (Trojan.PowerShell.Agent.ate), Microsoft (Trojan:Win32/Alevaul!rfn), Full List Of Detections (VirusTotal) |
| Symptoms | Trojans are designed to stealthily infiltrate the victim's computer and remain silent, and thus no particular symptoms are clearly visible on an infected machine. |
| Distribution methods | Infected email attachments, malicious online advertisements, social engineering, software 'cracks'. |
| Damage | Stolen passwords and banking information, identity theft, the victim's computer added to a botnet. |
| Malware Removal (Windows) |
To eliminate possible malware infections, scan your computer with legitimate antivirus software. Our security researchers recommend using Combo Cleaner. Download Combo CleanerTo use full-featured product, you have to purchase a license for Combo Cleaner. 7 days free trial available. Combo Cleaner is owned and operated by RCS LT, the parent company of PCRisk.com. |
Remote access trojan examples
We have written about numerous malicious programs; Stealit, MonsterV2, SilentSync, MostereRAT, and ZynorRAT are merely some of our newest articles on RATs. Trojans of this kind can be highly multifunctional with extensive data-stealing capabilities. Yet they can also be designed for a specialized purpose.
However, regardless of how malware operates – its presence on a system endangers device integrity and user safety. Therefore, all threats must be removed immediately upon detection.
How did WebSocket malware infiltrate my computer?
WebSocket RAT was proliferated through an email spam campaign utilizing a ClickFix scam. This attack aimed to infect devices of individuals linked to regional government administration in Ukraine and international NGOs providing aid to Ukraine in the Russo-Ukrainian war.
The spam was presented as emails from the Office of the President of Ukraine. They included attachments – legitimate-looking, eight-page-long PDF documents. These files instructed victims to open the embedded "Zoom" link. The domain imitated Zoom, yet was actually a VPS (Virtual Private Server) based in Finland, but owned by KVMka – a Russian private web solution provider.
This webpage imitated a Cloudflare DDoS (Distributed Denial-of-Service) attack protection gateway and instructed to execute a command through Run command (ClickFix scam). Completing the steps provided by this scam triggered WebSocket RAT's infection chain.
The setup for this campaign took at least half a year, and the site was up for just a single day. Hence, the campaign was built with a goal of efficiency and lowering chances of detection and discovery.
It is noteworthy that this Russian-owned infrastructure was not crafted for the sole purpose of malware proliferation. However, the other scenario has not been observed in action, as of the time of writing. Instead of opening the ClickFix scam page, the redirect would lead to a real Zoom meeting protected by a password.
It is likely that this was designed to facilitate conversation between the threat actors and victims, with the former impersonating individuals associated with genuine entities (e.g., the employees of the Office of the President of Ukraine). Social engineering of this kind could be used for a variety of nefarious purposes.
Another thing of note is that this infrastructure is linked to a different campaign, which may be related to the one spreading the WebSocket RAT. This activity is intended to proliferate an Android malware capable of stealing a variety of sensitive information (e.g., contact lists, call logs, SMSes, network info, geolocation data, photos, etc.). The campaign in question – domains and the malicious file – bore different disguises. Known lures include the "Princess Men's Club" – an adult-oriented venue in Lviv, Ukraine, generic explicit adult themes, and cloud storage.
It must be mentioned that the WebSocket RAT could be distributed using different methods. Phishing and social engineering are standard in malware proliferation. Infectious files come in different formats, e.g., archives (ZIP, RAR, etc.), executables (.exe, .run, etc.), documents (PDF, Microsoft Office, Microsoft OneNote, etc.), JavaScript, and so on. Merely opening such a file can be enough to trigger the infection chain.
The most widespread distribution techniques include: malicious attachments or links in spam emails/messages, online scams, backdoor/loader-type trojans, drive-by (stealthy/deceptive) downloads, dubious download channels (e.g., freeware and free file-hosting sites, P2P sharing networks, etc.), malvertising, pirated content, illegal software activation tools ("cracks"), and fake updates.
What is more, some malicious programs can self-spread through local networks and removable storage devices (e.g., external hard drives, USB flash drives, etc.).
How to avoid installation of malware?
Caution is essential to device and user safety. Therefore, be vigilant when browsing since the Internet is rife with deceptive and dangerous content. Be careful with incoming emails and other messages; do not open attachments or links found in suspicious mail, as they can be virulent.
Download only from official and trustworthy sources. Activate and update programs using functions/tools provided by legitimate developers, as those obtained from third-parties can contain malware.
It is crucial to have a reputable antivirus installed and kept updated. Security software must be used to perform regular system scans and to remove detected threats. If you believe that your computer is already infected, we recommend running a scan with Combo Cleaner Antivirus for Windows to automatically eliminate infiltrated malware.
PDF attachment impersonating a document from the Office of the President of Ukraine:

ClickFix scam proliferating WebSocket RAT promoted by the file above:

How to remove malware manually?
Most trojan infections can be removed by running a full system scan with Combo Cleaner. The full manual procedure below is for cases where automatic removal failed, where you want to verify a scan caught everything, or where the threat has multiple persistence points.
Disconnect from the network
Unplug your Ethernet cable and turn off Wi-Fi. If you're on a laptop, the airplane-mode key works fastest.
Many trojans exfiltrate data - saved browser passwords, banking sessions, screenshots - and accept remote commands. Cutting the network stops both immediately. Keep it disconnected until Phase 4.
Boot into Safe Mode with Networking
Safe Mode loads a minimal set of drivers and stops most malware from auto-running. "With Networking" lets you download tools - re-enable Wi-Fi only after you've booted in.
Open . Click Restart now next to Advanced startup.
Your computer will restart into the "Choose an option" menu. Click . After the second reboot, press 5 or F5.
Click the Windows logo, hold Shift, click the Power icon and choose Restart. In the Choose an option screen, click . Press F5.
Windows 8
Go to the Start Screen, type Advanced, select Settings → Advanced startup options → Restart now → Troubleshoot → Advanced options → Startup settings → Restart → F5.
Note: Windows 8 reached end-of-life in January 2023 - running on it puts you at much higher risk of reinfection.
Windows 7
Click Start → Shut Down → Restart → OK. As the system boots, press F8 repeatedly until the Windows Advanced Options menu appears, then choose Safe Mode with Networking.
Note: Windows 7 reached end-of-life in January 2020 - running on it puts you at much higher risk of reinfection.
Inspect running processes with Process Explorer
Download Process Explorer from Microsoft Sysinternals. Run it as Administrator. Click and .
Sort by "Verified Signer." Anything unsigned running from %AppData%, %LocalAppData%, %Temp%, or %ProgramData% is suspicious. Right-click → Properties to see the full image path. Right-click → "Search Online" to look up unfamiliar process names.
Task Manager hides full file paths, doesn't show digital signatures, and groups processes in ways that make malware easy to miss. Process Explorer is the same tool Microsoft engineers use.
Map every persistence point with Autoruns
Download Autoruns. Right-click Autoruns.exe and choose Run as administrator - without elevation, Autoruns can't inspect protected registry hives.
In the menu, open and , then click Refresh.
Modern trojans don't just live in startup. Walk through these tabs and look for unsigned or unfamiliar entries:
- Logon - classic Run/RunOnce keys
- Scheduled Tasks - frequent hiding spot, especially tasks with PowerShell, MSHTA, or rundll32 actions
- Services - unsigned services in non-Microsoft folders
- WMI - Event Subscriptions are a stealthy persistence mechanism (MITRE T1546.003)
- Image Hijacks - Image File Execution Options "Debugger" abuse
- AppInit - DLLs loaded into every GUI process
- Browser plug-ins - unsigned add-ons across all installed browsers
Right-click any suspicious entry → "Jump to Image" to see the actual file. Right-click → "Search Online" opens VirusTotal for the file hash. Don't delete yet - just write down the file paths and entry names. We'll remove them after the scans.
Check the hosts file and DNS settings
Trojans often redirect bank, antivirus, and update domains to attacker-controlled servers by editing the hosts file or DNS settings.
Hosts file: Open Notepad as Administrator and open C:\Windows\System32\drivers\etc\hosts. Legitimate entries are commented with #. Any uncommented IP-to-domain mapping is suspicious - especially redirects for microsoft.com, windowsupdate, or your bank.
DNS settings: Open Command Prompt as Administrator and run ipconfig /all. Confirm your DNS servers point to your ISP, your router, or a known public resolver (Cloudflare 1.1.1.1, Google 8.8.8.8). Then open and verify both DNS and DNS over HTTPS (DoH) settings haven't been hijacked.
A clean PC with hijacked DNS is still a compromised PC. You'll think you're at chase.com and you'll be at the attacker's clone.
No single antivirus catches everything. The order below is intentional: offline scan first (catches rootkits before Windows fully loads), then on-demand scanners on the running system, then manual cleanup of anything they missed.
Run Microsoft Defender Offline
Reboot to normal Windows. Open . Select Microsoft Defender Antivirus (offline scan) and click Scan now. Your computer will restart into a stripped-down environment and scan before the full operating system loads.
Rootkits and bootkits hide from any scanner running on the same Windows session that's already infected. A pre-boot offline scan sees the disk before the malware can hide itself.
VB100 certified. Includes anti-trojan, registry/persistence scanning, anti-spyware in one pass. The 7-day free trial is available.
Download Combo CleanerRun Combo Cleaner full system scan
Install Combo Cleaner and run a full system scan (not the quick scan). Let it complete fully, review the detected threats, and apply the recommended actions. Combo Cleaner will quarantine known trojans and registry persistence.
Run Microsoft Safety Scanner as a second-opinion scan
Download Microsoft Safety Scanner (MSERT.exe), Microsoft's free on-demand tool. The binary expires every 10 days, which means every download has the latest signatures. Run a full scan after Combo Cleaner to catch anything one engine alone might miss.
Different scanning engines catch different threats. Running an additional Microsoft scan after Combo Cleaner is the single most underused verification step in malware removal.
Manually remove anything still listed in Autoruns
Reopen Autoruns. Anything you flagged in Step 4 that's still present hasn't been caught by the automated scans. For each remaining suspicious entry: right-click → Delete in Autoruns (this removes the persistence registration), then navigate to the file path and delete the actual file. Empty the Recycle Bin.
Some malware files reappear after deletion because something else on the system recreates them. If you delete a file and it returns within minutes, you have a remaining persistence point that Autoruns didn't show - usually a service or scheduled task running under SYSTEM. Re-run the scans from Steps 6-8 or proceed to a clean install (see end of guide).
Reset browsers and clear notification permissions
Trojans and adware frequently hijack browsers - change the default search engine, install rogue extensions, or grant themselves notification permissions to keep displaying scam pop-ups even after the malware is gone.
- Chrome: visit
chrome://settings/resetand click "Restore settings to their original defaults." Then visitchrome://settings/content/notificationsand remove any unfamiliar sites. - Edge: visit
edge://settings/reset. Then checkedge://settings/content/notifications. - Firefox: open
about:supportand click Refresh Firefox (Firefox uses "Refresh," not "Reset"). Then check Settings → Privacy & Security → Permissions → Notifications.
Review installed extensions in each browser and remove anything you don't recognize, especially extensions you didn't install yourself.
Re-enable Defender, Tamper Protection, and update everything
Many trojans disable security software. Open and confirm Real-time protection, Cloud-delivered protection, and Tamper Protection are all turned on. Tamper Protection prevents malware from disabling Defender silently.
Then run Windows Update () and update your browsers and applications. The infection vector that let the trojan in originally usually involves outdated software.
Change passwords from a clean device
If the trojan was an info-stealer (Lumma, RedLine, Vidar, and similar are extremely common), assume every password saved in your browser is compromised. Change them from a different, known-clean device - your phone is fine if it's not infected.
Recommended order:
- Primary email first - it's the recovery hub for everything else
- Banking and financial accounts
- Password manager master password (if you use one)
- Social media, shopping, and remaining accounts
Where available, enable phishing-resistant multi-factor authentication (passkeys / FIDO2 hardware keys / authenticator apps) - SMS-based MFA is bypassable by sophisticated attackers.
Verify the clean and monitor for 7 days
Reconnect to the network and run one final full scan with Combo Cleaner. Open Task Manager (Ctrl + Shift + Esc) and switch to the Startup apps tab - confirm nothing suspicious has reappeared.
Over the next 7 days, watch for symptom recurrence: unexpected high CPU usage, unknown processes returning, browser redirects, or pop-ups. If anything returns, you missed a persistence point and the procedure needs to be repeated - or you may have a deeper compromise that requires a clean install.
When to clean install Windows instead
Manual removal isn't always the right answer. Reinstalling Windows from scratch is the only way to be 100% certain when:
- The malware reappears after every removal attempt
- A bootkit or UEFI rootkit was detected (this class of threat sits below the operating system and survives a normal Windows reinstall)
- A confirmed credential-theft trojan ran with administrator privileges (Lumma, RedLine, Vidar) - the system likely has multiple unknown payloads
- The PC is used for online banking, business email, or anything where partial doubt isn't acceptable
A clean install is a 30-60 minute process: Windows 11 reinstall via . Back up documents to external storage first, scan the backup with Combo Cleaner before restoring it, and reinstall applications fresh - never restore them from a backup of the infected system.
Important: Manual removal requires advanced computer skills. If you're not confident identifying system files from malicious files, run an automated scan with Combo Cleaner and Windows Defender and stop there - that path catches the vast majority of consumer trojans without the risk of breaking Windows by deleting the wrong file.
Frequently Asked Questions (FAQ)
My computer is infected with WebSocket malware, should I format my storage device to get rid of it?
Malware removal rarely requires formatting.
What are the biggest issues that WebSocket malware can cause?
The dangers of an infection differ based on the malware's abilities and the attackers' modus operandi. WebSocket is a RAT – a malware that enables remote access/control over devices. Generally, this infection could lead to severe privacy issues, financial losses, and identity theft. However, the WebSocket RAT has been used in geopolitically-motivated attacks targeting governmental entities and NGOs – and infections of this kind pose threats of greater significance.
What is the purpose of WebSocket malware?
While malware is mainly used for financial gain, the WebSocket RAT has been used to launch attacks driven by geopolitical motivations. Aside from these two motivators, malicious software is used to amuse the attackers or realize their personal grudges, disrupt processes (e.g., sites, services, companies, etc.), and engage in hacktivism.
How did WebSocket malware infiltrate my computer?
The WebSocket RAT has been proliferated through a ClickFix scam promoted by spam emails sent to individuals associated with Ukraine's regional government administrations and international NGOs (UNICEF, ICRC, NRC, and RD4U). Other distribution methods are possible.
Generally, malware is spread via trojans, drive-by downloads, spam, online scams, malvertising, suspect download channels (e.g., freeware and third-party websites, P2P sharing networks, etc.), pirated content, illegal software activation tools ("cracks"), and fake updates. Some malicious programs can self-spread via local networks and removable storage devices.
Will Combo Cleaner protect me from malware?
Combo Cleaner is designed to scan computers and eliminate all kinds of threats. It is capable of detecting and removing nearly all known malware infections. Remember that performing a full system scan is paramount since high-end malicious programs usually hide deep within systems.
Share:
Tomas Meskauskas
Expert security researcher, professional malware analyst
I am passionate about computer security and technology. I have an experience of over 10 years working in various companies related to computer technical issue solving and Internet security. I have been working as an author and editor for pcrisk.com since 2010. Follow me on Twitter and LinkedIn to stay informed about the latest online security threats.
PCrisk security portal is brought by a company RCS LT.
Joined forces of security researchers help educate computer users about the latest online security threats. More information about the company RCS LT.
Our malware removal guides are free. However, if you want to support us you can send us a donation.
DonatePCrisk security portal is brought by a company RCS LT.
Joined forces of security researchers help educate computer users about the latest online security threats. More information about the company RCS LT.
Our malware removal guides are free. However, if you want to support us you can send us a donation.
Donate
▼ Show Discussion