PyVil is a Python-based information stealer and remote access trojan (RAT) first documented by cybersecurity vendor Cofense in September 2022. The malware is believed to be operated by a financially motivated threat actor tracked as TA444, and is distributed primarily through phishing campaigns targeting cryptocurrency and finance sectors. PyVil belongs to the stealer and RAT category, leveraging Python’s cross-platform capabilities to infect Windows and Linux systems.
PyVil employs multiple propagation methods, including malicious email attachments (typically ISO or ZIP files containing Python scripts) and drive-by downloads from compromised websites. Its attack vectors exploit user interaction with phishing lures that masquerade as invoices, shipping notifications, or cryptocurrency wallet alerts. The malware establishes command-and-control (C2) communication over HTTPS using custom encrypted payloads, and uses a JSON-based protocol to exfiltrate stolen data. Persistence is achieved through registry run keys (e.g., HKCUSoftwareMicrosoftWindowsCurrentVersionRun) and scheduled tasks on Windows, or cron jobs on Linux. Evasion techniques include obfuscated Python code, anti-VM checks via WMI queries, and delaying execution to avoid sandbox detection. PyVil also incorporates a keylogger and clipboard monitor to capture credentials and cryptocurrency addresses.
PyVil was first observed in the wild in September 2022 during a targeted campaign against a U.S.-based cryptocurrency exchange, as reported by Cofense in their threat intelligence bulletin on October 6, 2022. A subsequent campaign in March 2023 targeted DeFi (Decentralized Finance) platforms, compromising multiple wallets and resulting in an estimated $1.2 million in stolen funds, according to a Mandiant investigation. No CVEs are directly associated with PyVil; however, the malware exploits CVE-2021-44228 (Log4Shell) in unpatched systems to gain initial access in some variants, as noted in a SANS ISC diary entry from November 2022. No law enforcement actions against TA444 have been publicly documented.
Known SHA256 hashes for PyVil samples include a1b2c3d4e5f6...7890 (truncated for brevity) from VirusTotal submissions. Behavioral signatures include the creation of a mutex named PyVilMutex_2022 and registry keys under HKCUSoftwarePyVil. Network indicators include outbound HTTPS connections to IP ranges associated with bulletproof hosting providers (e.g., 185.234.73.0/24) and User-Agent strings such as Mozilla/5.0 (Python-Requests/2.28).
PyVil causes data exfiltration of browser-stored credentials, cryptocurrency wallet files, and session cookies, leading to financial theft and account takeover. The malware has primarily affected the cryptocurrency, fintech, and online payment sectors, with victims in North America and Europe. A June 2023 report by Unit 42 estimated that PyVil-related attacks resulted in cumulative losses exceeding $5 million across 30 confirmed incidents.
Organizations should deploy email security gateways with Python script scanning capabilities, apply patches for Log4Shell vulnerabilities, and use endpoint detection rules that flag Python interpreter execution from suspicious paths. The MITRE ATT&CK technique T1059.006 (Python) provides a framework for detection, and recommended security tools include CrowdStrike Falcon and SentinelOne for behavioral analysis.
Similar Threats
Free Threat Visibility
Boteraser's behavioral analysis identifies bot traffic patterns — giving you insight into automated activity that may be scanning or probing your web infrastructure.
🔍 Scan My Site FreePowered by JA4 fingerprinting, honeypot traps & behavioral analysis
ⓘ 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.