Pysa
- Type
- Ransomware
- Capabilities
- Credential theftExfiltrationLateral movementDefense evasionReconnaissanceScanningBrute forceExtortion
- Delivery
- Phishing
- Platforms
- WindowsLinuxEsxi
PYSA, also known as Mespinoza, is a financially motivated ransomware family used in enterprise network intrusions and double-extortion attacks. Mespinoza has been observed since at least October 2018, with the PYSA name associated with a newer version documented in December 2019. Its operators target organizational networks, including businesses and French local authorities. Windows variants and Linux encryptors targeting VMware ESXi environments have been identified.
PYSA encrypts selected file types using AES-CBC and RSA and demands payment for recovery. Analyzed implementations include Windows executables and Python-based payloads; a related PowerShell encryptor has also been deployed in associated attacks. Windows variants can modify Registry settings to display ransom messages, masquerade as legitimate system components, and remove execution artifacts. Analyzed payloads lacked self-propagation capabilities, with deployment instead supported by operator-controlled scripts and lateral movement.
PYSA operations have used Mimikatz for credential dumping, extracted credentials from password databases, conducted network reconnaissance with Advanced IP Scanner, and moved laterally through RDP. Associated intrusions have included brute-force attempts against administrative interfaces and Active Directory accounts, security-tool disabling, and deletion of restore points and shadow copies. Operators use PowerShell scripts to locate and exfiltrate sensitive files before encryption, searching for financial records, personal information, credentials, insurance information, and potentially damaging internal documents. Stolen information supports ransom sizing and threats of public disclosure; operators have also threatened to report victims' alleged illegal activities to increase pressure.
Techniques & procedures
46 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
5 techniques
Initial Access
These brute-force attacks were followed by the exfiltration of a company's accounts & passwords database. Victim organizations also reported seeing unauthorized RDP connections to their domain controllers
PYSA typically gains unauthorized access to victim networks by compromising Remote Desktop Protocol (RDP) credentials and/or through phishing emails.
...обманных загрузок... вредоносной рекламы, веб-инжектов, фальшивых обновлений, перепакованных и заражённых инсталляторов.
...ботнетов, эксплойтов...
The PYSA ransomware operators typically gain initial access to target systems through phishing email messages or by compromising credentials...
Execution
7 techniques
Execution
Victim organizations also reported seeing unauthorized RDP connections to their domain controllers, and the deployment of Batch and PowerShell scripts.
[Pysa](https://attack.mitre.org/software/S0583) has used Powershell scripts to deploy its ransomware.(Citation: CERT-FR PYSA April 2020)
Victim organizations also reported seeing unauthorized RDP connections to their domain controllers, and the deployment of Batch and PowerShell scripts.
[Pysa](https://attack.mitre.org/software/S0583) has used Python scripts to deploy ransomware.(Citation: CERT-FR PYSA April 2020)
MITRE ATT&CK Techniques Execution ... Native API ... These are drives for which the Windows API function GetDriveTypeW returns 0x3 (DRIVE_FIXED)...
...с помощью email-спама и вредоносных вложений, обманных загрузок...
[Pysa](https://attack.mitre.org/software/S0583) has used [PsExec](https://attack.mitre.org/software/S0029) to copy and execute the ransomware.(Citation: CERT-FR PYSA April 2020)
Persistence
3 techniques
Persistence
These brute-force attacks were followed by the exfiltration of a company's accounts & passwords database. Victim organizations also reported seeing unauthorized RDP connections to their domain controllers
[Pysa](https://attack.mitre.org/software/S0583) has modified the registry key “SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System” and added the ransom note.(Citation: CERT-FR PYSA April 2020)
PYSA typically gains unauthorized access to victim networks by compromising Remote Desktop Protocol (RDP) credentials and/or through phishing emails.
Privilege Escalation
1 technique
Privilege Escalation
These brute-force attacks were followed by the exfiltration of a company's accounts & passwords database. Victim organizations also reported seeing unauthorized RDP connections to their domain controllers
Stealth
6 techniques
Stealth
actors used the following command to rename one of their tools to a benign file name: ren "%temp%\upload" audiodg.exe ... APT1 ... used ... AcroRD32.exe ... as a name for malware ... APT28 ... changed extensions on files containing exfiltrated data to make them appear benign ... APT32 has renamed a NetCat binary to kb-10233.exe to masquerade as a Windows update.
[Pysa](https://attack.mitre.org/software/S0583) has executed a malicious executable by naming it svchost.exe.(Citation: CERT-FR PYSA April 2020)
the Pysa gang also deployed a version of the PowerShell Empire penetration-testing tool, stopped various antivirus products, and even uninstalled Windows Defender in some instances.
[Pysa](https://attack.mitre.org/software/S0583) has deleted batch files after execution. (Citation: CERT-FR PYSA April 2020)
These brute-force attacks were followed by the exfiltration of a company's accounts & passwords database. Victim organizations also reported seeing unauthorized RDP connections to their domain controllers
By targeting virtual machines, ransomware operators can also encrypt multiple servers at once with a single command. In June, researchers spotted a new REvil ransomware Linux encryptor designed to target VMware ESXi virtual machines, a popular enterprise virtual machine platform.
Defense Impairment
2 techniques
Defense Impairment
[Pysa](https://attack.mitre.org/software/S0583) has modified the registry key “SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System” and added the ransom note.(Citation: CERT-FR PYSA April 2020)
[Pysa](https://attack.mitre.org/software/S0583) has the capability to stop antivirus services and disable Windows Defender.(Citation: CERT-FR PYSA April 2020)
Credential Access
5 techniques
Credential Access
Multiple actors and tools are described as using Mimikatz/Windows Credential Editor/LaZagne/ProcDump to “dump credentials,” often by targeting LSASS memory (e.g., “used Mimikatz to capture and use legitimate credentials,” “dumped the LSASS process memory using the MiniDump function,” “injecting itself into lsass.exe”).
[Pysa](https://attack.mitre.org/software/S0583) can perform OS credential dumping using [Mimikatz](https://attack.mitre.org/software/S0002).(Citation: CERT-FR PYSA April 2020)
[Pysa](https://attack.mitre.org/software/S0583) has used brute force attempts against a central management console, as well as some Active Directory accounts.(Citation: CERT-FR PYSA April 2020)
[Pysa](https://attack.mitre.org/software/S0583) has extracted credentials from the password database before encrypting the files.(Citation: CERT-FR PYSA April 2020)
AADInternals can gather unsecured credentials for Azure AD services, such as Azure AD Connect, from a local machine... Agent Tesla has the ability to extract credentials from configuration or support files... APT33 has used a variety of publicly available tools like LaZagne to gather credentials.
Discovery
8 techniques
Discovery
The p.ps1 script is used to kill or terminate services which may interfere with the encryption process. It also attempts to identify specific anti-virus applications.
MITRE ATT&CK T1012 --> Query Registry --> Discovery
[Pysa](https://attack.mitre.org/software/S0583) can perform network reconnaissance using the Advanced IP Scanner tool.(Citation: CERT-FR PYSA April 2020)
[Pysa](https://attack.mitre.org/software/S0583) can perform network reconnaissance using the Advanced Port Scanner tool.(Citation: CERT-FR PYSA April 2020)
Le script « step1.ps1 » est chargé de lister les fichiers présents sur le système.
Of course Mespinoza won't stop with the system drive so it will check for connected removable media or shared network drives. GetDriveTypeW will tell it which type of media the selected device belongs to.
Of course Mespinoza won't stop with the system drive so it will check for connected removable media or shared network drives.
By targeting virtual machines, ransomware operators can also encrypt multiple servers at once with a single command. In June, researchers spotted a new REvil ransomware Linux encryptor designed to target VMware ESXi virtual machines, a popular enterprise virtual machine platform.
Lateral Movement
3 techniques
Lateral Movement
Victim organizations also reported seeing unauthorized RDP connections to their domain controllers
[Pysa](https://attack.mitre.org/software/S0583) has laterally moved using RDP connections.(Citation: CERT-FR PYSA April 2020)
"PsExec ... can be used to execute binaries on remote systems using a temporary Windows service"; "RemoteCMD can execute commands remotely by creating a new service on the remote system"; "Winexe installs a service on the remote system, executes the command, then uninstalls the service"
Collection
2 techniques
Collection
more and more ransomware gangs prefer to steal the data before encrypting it, to use it as leverage in ransom negotiations
MITRE ATT&CK T1114 --> Email Collection --> Collection
Exfiltration
4 techniques
Exfiltration
These brute-force attacks were followed by the exfiltration of a company's accounts & passwords database.
...the FBI reports that malicious actors use the WinScp tool for data exfiltration from victim systems before the data is encrypted.
On top of client applications such as those provided by Mega, many ransomware families may use other software or built-in operating system utilities to exfiltrate data. We’ll use Mega as the example here... you can look for execution of any process that is not chrome.exe ... initiating a network connection to the domains mega.io or mega.co.nz .
As 14 ransomware gangs are now stealing data and publishing it in their blogs, we can assume that more ransomware operators will adopt the tactic and will require double ransoms.
Impact
6 techniques
Impact
[Pysa](https://attack.mitre.org/software/S0583) has used RSA and AES-CBC encryption algorithm to encrypt a list of targeted file extensions.(Citation: CERT-FR PYSA April 2020)
[Pysa](https://attack.mitre.org/software/S0583) can stop services and processes.(Citation: CERT-FR PYSA April 2020)
[Pysa](https://attack.mitre.org/software/S0583) has the functionality to delete shadow copies.(Citation: CERT-FR PYSA April 2020)
La modification du mot de passe des comptes locaux [T1498].
BlackByte Ransomware modifies the victim Registry to prevent system recovery; ShrinkLocker modifies various registry keys associated with system logon and BitLocker functionality to effectively lock-out users following disk encryption.
Вымогатели, распространяющие Mespinoza-Pysa, стали угрожать опубликовать украденные данные с целью усиления давления на жертву... для этого операторы-вымогатели начинают кражу данных ещё перед шифрованием файлов.
Observables
114 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
74 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.