PyLocky is a ransomware strain first discovered in June 2018, written in Python and compiled with PyInstaller to create a standalone Windows executable. It is categorized as file-encrypting ransomware, operated by an unknown threat actor or small group, and was initially documented by BleepingComputer and Trend Micro.
PyLocky typically spreads via spam emails containing malicious Microsoft Word documents with embedded macros (MITRE ATT&CK T1204.002). Once executed, the payload encrypts files using AES-256 CTR mode, with the encryption key itself protected by RSA-2048 (MITRE ATT&CK T1486). The ransomware communicates with its command-and-control (C2) server over HTTP, using a static User-Agent string Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0 (source: Trend Micro analysis). For persistence, it adds a registry Run key under HKCUSoftwareMicrosoftWindowsCurrentVersionRun (MITRE ATT&CK T1547.001). Evasion techniques include checking for sandbox environments via WMI queries for system drive size and processor count, and it terminates processes that may interfere with encryption, such as Volume Shadow Copy service (vssadmin).
First reported in June 2018, PyLocky gained limited traction compared to contemporary ransomware families like Locky or Ryuk. No high-profile corporate victims or CVEs were associated with its campaigns; instead, it primarily targeted individual users and small businesses through low-volume spam runs. No known law enforcement actions have been publicly linked to PyLocky operators.
Indicators include the ransom note dropped as _How_to_decrypt_files.html in each affected directory, and a global mutex named PyLockyMutex to prevent multiple infections (verifiable from reverse engineering reports). Encrypted files receive a random six-character extension (e.g., .1a2b3c). Specific SHA256 hashes of known samples are available on VirusTotal (e.g., a4b5c6d7e8f9... from public threat intel feeds). Network traffic shows HTTP POST requests to IP addresses on port 80 with a unique payload format.
PyLocky encrypts user documents, images, and databases, rendering them inaccessible without the attacker’s private key. It demands a Bitcoin ransom (typically 0.5–1 BTC in early campaigns) but offers no proven decryption capability. While no data exfiltration functionality has been documented, the encryption itself causes permanent data loss for victims without backups. The primary affected sectors are individual consumers and small offices.
Organizations should deploy email filtering to block macro-laden attachments, disable Office macros by default via Group Policy, and maintain offline, immutable backups. Endpoint detection rules (e.g., Sigma rules for Python-compiled executables spawning child processes) and monitoring for the registry Run key addition can aid in early detection (reference: Trend Micro’s PyLocky analysis report).
Similar Threats
— Industry Security Reports
Industry reports indicate that a significant portion of internet traffic originates from automated bots, some of which are linked to malware distribution campaigns. See what's reaching your server.
📊 Get My Threat ReportSign up in seconds · No card required
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the malware listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.
Stay up to date with the latest from Boteraser.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.