PY#RATION Python RAT Uses WebSockets and Fernet Obfuscation to Evade Detection
Malware Intelligence · 2 sources · Updated 4mo ago · First seen Aug 14, 2026

Securonix reported a phishing campaign distributing PY#RATION, a Python-based remote access trojan targeting Windows systems through password-protected ZIP archives that contain malicious .lnk shortcut files. Once launched, the malware establishes persistence and gives operators broad access to infected hosts, including remote command execution, keylogging, file transfer, clipboard theft, browser credential and cookie extraction, and host and antivirus enumeration. Newer variants also added network-scanning capability and stronger anti-detection features as the malware evolved from version 1.0 to 1.6.0.
The campaign stood out for using WebSockets through Python Socket.IO for command-and-control and data exfiltration, alongside Fernet-obfuscated Python code to hinder analysis. Securonix linked activity to infrastructure centered on 169.239.129.108, with staged payload delivery from domains including install.realproheros[.]com and Pastebin, and observed status callbacks to api.safeit[.]com. Researchers also noted overlap with a Python-packed infostealer executable named one.exe, indicating the operators were expanding tooling and refining methods to avoid detection.
Why it matters
Impact assessment
PY#RATION is a credential-theft and remote-access malware campaign affecting Windows users exposed to phishing emails with password-protected ZIP attachments and malicious .lnk files. Impact is high for targeted organizations because the malware enables persistent remote control, keylogging, browser credential and cookie theft, clipboard theft, file transfer, and local network reconnaissance, creating risk of account compromise, lateral movement, and follow-on fraud or ransomware.
The exposure appears targeted rather than indiscriminate, but the infection chain uses common user-driven delivery methods that can affect any organization with Windows endpoints and email exposure. Securonix reported active campaign activity and evolving malware versions from 1.0 to 1.6.0, indicating sustained operator development and real-world use.
Affected populations
- Windows endpoint users receiving phishing emails
- Organizations with users able to open password-protected ZIP attachments
- Environments where
.lnk, batch, VBScript, and Python-packed executables can run from user-writable paths
Severity and business risk
- Credential theft from browsers and cookies can enable account takeover
- Keylogging and clipboard theft can expose passwords, MFA seeds, wallet addresses, and sensitive business data
- Remote command execution and file transfer enable hands-on-keyboard intrusion and data exfiltration
- Network scanning in newer variants increases risk of internal discovery and lateral movement
- Persistence via Startup folder increases dwell time and repeat access
Scope and exploitation status
- Known in-the-wild phishing campaign reported by Securonix
- Malware development observed across multiple versions from August 2022 onward
- Additional tooling overlap with
one.exesuggests expanding operator capability beyond a single RAT payload


