Skip to main content
Mallory
← Back to News
remote-access-implantphishing-campaign-intelligencecommand-and-control-methodcredential-stealer-activity

PY#RATION Python RAT Uses WebSockets and Fernet Obfuscation to Evade Detection

Malware Intelligence · 2 sources · Updated 4mo ago · First seen Aug 14, 2026

PY#RATION Python RAT Uses WebSockets and Fernet Obfuscation to Evade Detection

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.exe suggests expanding operator capability beyond a single RAT payload
Hunt this familyPull IOCs and campaign context straight into your stack.
Get the IOCs
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · Aug 2022
  1. Reported Jan 26, 20234y ago

    Securonix published advisory on PY#RATION campaign

    Securonix publicly described the PY#RATION campaign as a Python-based remote access trojan using WebSockets for command-and-control and exfiltration. The report detailed its phishing infection chain, persistence, capabilities, and associated infrastructure.

    Securonix Security Advisory: Python-Based PY#RATION Attack Campaign Leverages Fernet Encryption and Websockets to Avoid Detection - Securonix
  2. Reported Jan 26, 20234y ago

    Later PY#RATION payload showed progression to version 1.6.0

    Securonix later identified a PY#RATION payload marked version 1.6.0, indicating the malware was actively developed after the initial August 2022 samples. The newer version added Fernet-obfuscated Python code, sessioning, network scanning, and stronger anti-detection measures.

    Securonix Security Advisory: Python-Based PY#RATION Attack Campaign Leverages Fernet Encryption and Websockets to Avoid Detection - Securonix
  3. Aug 2022

    Securonix observed PY#RATION version 1.0 samples

    Securonix observed PY#RATION samples beginning in August 2022, with code marked version 1.0. The campaign used phishing-delivered password-protected ZIP archives containing malicious .lnk files to infect Windows hosts.

    Securonix Security Advisory: Python-Based PY#RATION Attack Campaign Leverages Fernet Encryption and Websockets to Avoid Detection - Securonix
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Malware

1 linked

Observables

12 linked

Indicator values are masked on this page. View all 12 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?Pull the IOCs, campaigns, and victimology behind this family, ready to push into your SIEM and EDR.
Hunt This Malware
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.