Prince Ransomware
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Proofpoint researchers identified a campaign impersonating the British postal carrier Royal Mail delivering Prince ransomware. Prince is a ransomware variant freely available on GitHub with a “disclaimer” that it is only designed for educational purposes.
Techniques & procedures
19 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
Proofpoint researchers identified a campaign impersonating the British postal carrier Royal Mail delivering Prince ransomware... Messages contained a unique PDF attachment that also impersonated Royal Mail.
Messages contained a unique PDF attachment that also impersonated Royal Mail. The PDF included a link that led to the download of a ZIP file hosted on Dropbox.
Execution
5 techniques
Execution
Used PowerShell to create a Scheduled Task that ran every 20 minutes, but only if the computer was connected to power and had been idle for 15 minutes
It used PowerShell to run PS1.ps1 and PS2.ps1... JS2.js again ran the PS1.ps1 AMSI Bypass, and then ran PS3.ps1... The Scheduled Task ran an encoded PowerShell command
It used the “findstr” command to find the JavaScript code embedded in the shortcut, wrote it to a file... in %temp%, and executed it using WScript.
The second ZIP file contained a shortcut (LNK) file which, if executed, extracted and ran JavaScript... The JavaScript, which is heavily obfuscated, performed the following actions...
The second ZIP file contained a shortcut (LNK) file which, if executed, extracted and ran JavaScript extracted from the shortcut itself.
Persistence
3 techniques
Persistence
Used PowerShell to create a Scheduled Task that ran every 20 minutes, but only if the computer was connected to power and had been idle for 15 minutes
Deleted all previously dropped files Wrote three Base64 strings to the registry (keys varied between the scripts)
The second ZIP file contained a shortcut (LNK) file which, if executed, extracted and ran JavaScript extracted from the shortcut itself... It used the “findstr” command to find the JavaScript code embedded in the shortcut, wrote it to a file... and executed it using WScript.
Privilege Escalation
3 techniques
Privilege Escalation
Used PowerShell to create a Scheduled Task that ran every 20 minutes, but only if the computer was connected to power and had been idle for 15 minutes
The second ZIP file contained a shortcut (LNK) file which, if executed, extracted and ran JavaScript extracted from the shortcut itself... It used the “findstr” command to find the JavaScript code embedded in the shortcut, wrote it to a file... and executed it using WScript.
PS2.ps1 was a highly obfuscated version of a well-documented Windows Connection Manager UAC bypass. This essentially wrote an INF file and opened it with Windows Connection Manager (CMSTP) to invoke WScript to run the previously created JS2.js.
Stealth
4 techniques
Stealth
The JavaScript, which is heavily obfuscated... PS1.ps1 was a highly obfuscated version of a well-known AMSI Bypass... PS2.ps1 was a highly obfuscated version of a well-documented Windows Connection Manager UAC bypass... PS3.ps1, which was again heavily obfuscated... The loaded .NET assembly... was likely obfuscated with some form of the ConfuserEx obfuscator
The emails all contained a sender or reply-to Proton Mail email address... Email lure impersonating Royal Mail... Messages contained a unique PDF attachment that also impersonated Royal Mail.
Created an AES decrypt function that used the AES key and Initialization Vector from the previously written registry keys... decrypted the third Base64 encoded registry key, decoded the resulting Base64, which was compressed with Gzip, and extracted that data to a new Base64 string. This final string was decoded to bytes and loaded as a .NET assembly.
This final string was decoded to bytes and loaded as a .NET assembly.
Defense Impairment
2 techniques
Defense Impairment
Deleted all previously dropped files Wrote three Base64 strings to the registry (keys varied between the scripts)
PS1.ps1 was a highly obfuscated version of a well-known AMSI Bypass... [Ref].Assembly.GetType('System.Management.Automation.Utils.Amsi').GetField('amsiInitFailed', 'NonPublic,Static').SetValue($null, $true)
Collection
1 technique
Collection
The ZIP contained another password-protected ZIP file... and a text file... that contained the password needed to open the password-protected ZIP file.
Command and Control
1 technique
Command and Control
The PDF included a link that led to the download of a ZIP file hosted on Dropbox... The only network activity was the download of the desktop background
Impact
2 techniques
Impact
Impact T1486 – Data Encrypted for Impact The ransomware encrypts file using ChaCha20 and ECIES cryptography which makes it difficult to recover the files
While encrypting files, the ransomware displayed the Windows Update splash screen to the user... This connection was first identified due to the observed sample downloading the same PNG from Imgur, and setting the PNG as the background
Observables
9 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.