Skip to main content
Mallory
Malware

PY#RATION

Tracked since Aug 14, 2026 · Updated 4 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors0Associated
ATT&CK23Techniques
IOCs12Tracked
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
MITRE ATT&CK

Techniques & procedures

23 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

2 techniques
T1566PhishingEvidence1

Initial infection of PY#RATION begins with a phishing email containing a malicious attachment .zip file, documents.zip in our case for v1.6.0.

T1566.001Spearphishing AttachmentEvidence1

Initial infection of PY#RATION begins with a phishing email containing a malicious attachment .zip file, documents.zip in our case for v1.6.0. The zip file is password protected.

Execution

4 techniques
T1059Command and Scripting InterpreterEvidence1

The “Command” class. This allows the attacker to interact with the system by issuing shell commands.

T1059.003Windows Command ShellEvidence1

The files are then renamed to .bat files and then executed... Malicious VB script is then echoed into another file, “c.txt” in our case. Wscript.exe is then called to execute the newly built file.

T1059.005Visual BasicEvidence1

Malicious VB script is then echoed into another file, “c.txt” in our case. Wscript.exe is then called to execute the newly built file.

T1204.002Malicious FileEvidence1

Once the zip file is extracted, the user is presented with two convincing .lnk files disguised as the two .jpg files. When executed by the user a front and back image of a seemingly valid UK driver’s license is displayed along with the malicious code.

Persistence

2 techniques
T1547.001Registry Run Keys / Startup FolderEvidence1

Persistence is established by dropping CortanaAssist.bat into the local user’s startup directory “ %appdata%/Microsoft/Windows/Start Menu/Programs/Startup/CortanaAssist.bat ”

T1547.009Shortcut ModificationEvidence1

Contained inside the zip file are two shortcut (.lnk) files that reference two corresponding files located on a remote C2 server, front.jpg(.lnk) and back.jpg(.lnk).

Privilege Escalation

2 techniques
T1547.001Registry Run Keys / Startup FolderEvidence1

Persistence is established by dropping CortanaAssist.bat into the local user’s startup directory “ %appdata%/Microsoft/Windows/Start Menu/Programs/Startup/CortanaAssist.bat ”

T1547.009Shortcut ModificationEvidence1

Contained inside the zip file are two shortcut (.lnk) files that reference two corresponding files located on a remote C2 server, front.jpg(.lnk) and back.jpg(.lnk).

Stealth

3 techniques
T1027Obfuscated Files or InformationEvidence1

The 1.6.0 version’s main Python code was also hidden behind a trivial layer of fernet... This helps attackers reduce the ability for AV detections to trigger on anything malicious as it masked many easily identifiable strings

T1218.010Regsvr32Evidence1

Next, the Microsoft utility certutil.exe is leveraged to decode “unrar.cert” into the exe file “unrar.exe” which is then executed

T1497Virtualization/Sandbox EvasionEvidence1

It is also apparent that new features and anti-evasion techniques have since been introduced into the later versions.

Credential Access

3 techniques
T1056.001KeyloggingEvidence1

The not-so-subtle “ KeyRecorder ” class does just as the name suggests — it acts as a keylogger that lets the attacker record the victim’s keystrokes

T1555Credentials from Password StoresEvidence1

After analyzing the source code, we can determine that the PY#RATION malware contains the following additional functionalities... Password/cookie extraction from browser stores

T1555.003Credentials from Web BrowsersEvidence1

another Python-based Infostealer malware, which grabs and extracts local PC data including browser credential stores... In this case, browser data is recorded, parsed and sent out to C2

Discovery

4 techniques
T1046Network Service DiscoveryEvidence1

The configuration parameter IN_NETWORK_SCAN is also new and makes use of the Python class NetworkScanner, which as its name suggests, attempts to probe the surrounding network for IPs and ports.

T1082System Information DiscoveryEvidence1

Other classes allow for general enumeration which provides system information and antivirus protection status.

T1083File and Directory DiscoveryEvidence1

The “ actions ” class gives the attacker the ability to transfer files from host to C2 or vice versa.

T1497Virtualization/Sandbox EvasionEvidence1

It is also apparent that new features and anti-evasion techniques have since been introduced into the later versions.

Collection

3 techniques
T1056.001KeyloggingEvidence1

The not-so-subtle “ KeyRecorder ” class does just as the name suggests — it acts as a keylogger that lets the attacker record the victim’s keystrokes

T1115Clipboard DataEvidence1

After analyzing the source code, we can determine that the PY#RATION malware contains the following additional functionalities... Clipboard stealer

T1560Archive Collected DataEvidence1

The executable “ctask.exe” is then executed... Persistence is established... After executing the 1.0 version of the malware, the attackers downloaded an additional executable, “one.exe”... another Python-based Infostealer malware, which grabs and extracts local PC data including browser credential stores, cryptocurrency wallets, and user and system data.

Command and Control

3 techniques
T1071.001Web ProtocolsEvidence1

What makes this malware particularly unique is its utilization of websockets for both command and control (C2) communication and exfiltration... The PY#RATION malware leverages Python’s built in Socket.IO framework

T1105Ingress Tool TransferEvidence1

When the shortcut is executed, the remote server is contacted to download two additional files to the user’s temp directory.

T1219Remote Access ToolsEvidence1

The malware exhibits remote access trojan (RAT) behavior, allowing for control of and persistence on the affected host.

Exfiltration

1 technique
T1041Exfiltration Over C2 ChannelEvidence1

The malware exhibits remote access trojan (RAT) behavior... including data exfiltration... utilization of websockets for both command and control (C2) communication and exfiltration

Indicators of compromise

Observables

12 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching12Match every observed IP, domain, and hash against your live telemetry.
Associated threat actorsGroups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping23Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.