Analysis by: Raymart Christian Yambot

ALIASES:

Ransom:Win32/Safepay.B (MICROSOFT)

 PLATFORM:

Windows

 OVERALL RISK RATING:
 DAMAGE POTENTIAL:
 DISTRIBUTION POTENTIAL:
 REPORTED INFECTION:
 INFORMATION EXPOSURE:

  • Threat Type: Ransomware

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

Infection Channel: Downloaded from the Internet, Dropped by other malware

This Ransomware arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

It does not have any propagation routine.

It does not have any backdoor routine.

It does not have any information-stealing capability.

It encrypts files with specific file extensions. It drops files as ransom note.

  TECHNICAL DETAILS

File Size: 146,432 bytes
File Type: DLL
Memory Resident: No
Initial Samples Received Date: 22 Oct 2025
Payload: Terminates processes, Drops files

Arrival Details

This Ransomware arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

Installation

This Ransomware adds the following processes:

  • "%System%\cmd.exe" /c vssadmin delete shadows /all /quiet
  • "%System%\cmd.exe" /c wmic shadowcopy delete
  • "%System%\cmd.exe" /c bcdedit / set{default} bootstatuspolicy ignoreallfailures
  • "%System%\cmd.exe" /c bcdedit / set{default} recoveryenabled no

(Note: %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.)

It adds the following mutexes to ensure that only one of its copies runs at any one time:

  • It uses either the default name from its configuration data or an ID generated from the -path= parameter:
    • Global\{Hardcoded ID from configuration data}
    • ID generated from the -path= parameter

Autostart Technique

This Ransomware adds the following registry entries to enable its automatic execution at every system startup:

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
{Generated ID} = {Malware command-line execution}

Propagation

This Ransomware does not have any propagation routine.

Backdoor Routine

This Ransomware does not have any backdoor routine.

Rootkit Capabilities

This Ransomware does not have rootkit capabilities.

Process Termination

This Ransomware terminates the following services if found on the affected system:

  • vss
  • sql
  • svc$
  • memtas
  • mepocs
  • msexchange
  • sophos
  • veeam
  • backup
  • GxVss
  • GxBlr
  • GxFWD
  • GxCVD
  • GxCIMgr

It terminates the following processes if found running in the affected system's memory:

  • sql
  • oracle
  • ocssd
  • dbsnmp
  • synctime
  • agntsvc
  • isqlplussvc
  • xfssvccon
  • mydesktopservice
  • ocautoupds
  • encsvc
  • firefox
  • tbirdconfig
  • mydesktopqos
  • ocomm
  • dbeng50
  • sqbcoreservice
  • excel
  • infopath
  • msaccess
  • mspub
  • far
  • onenote
  • outlook
  • powerpnt
  • steam
  • thebat
  • thunderbird
  • visio
  • winword
  • wordpad
  • notepad
  • wuauclt
  • onedrive
  • sqlmangr

Information Theft

This Ransomware does not have any information-stealing capability.

Other Details

This Ransomware does the following:

  • It empties the recycle bin.

It accepts the following parameters:

  • -uac → UAC Bypass flag
  • -network → Encrypt shared resources
  • -selfdelete → Self-deletion after execution
  • -log → Enable logging, creates a log file located at %All Users Profile%\auto.log.safepay
  • -netdrive → Encrypt network drives
  • -pass={32 Characters} → Password for execution
  • -path= → Path for files to encrypt
  • -enc= → Encryption level

(Note: %All Users Profile% is the common user's profile folder, which is usually C:\Documents and Settings\All Users on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\ProgramData on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit). )

It does not exploit any vulnerability.

Ransomware Routine

This Ransomware encrypts files with the following extensions:

  • .safepay
  • .exe
  • .dll
  • .pdb
  • .386
  • .cmd
  • .ani
  • .adv
  • .ps1
  • .cab
  • .msi
  • .msp
  • .com
  • .nls
  • .ocx
  • .mpa
  • .cpl
  • .mod
  • .hta
  • .prf
  • .rtp
  • .rpd
  • .bin
  • .hlp
  • .shs
  • .drv
  • .wpx
  • .bat
  • .rom
  • .msc
  • .spl
  • .msu
  • .ics
  • .key
  • .lnk
  • .hlp
  • .sys
  • .drv
  • .cur
  • .idx
  • .ldf
  • .ini
  • .reg
  • .apk
  • .ttf
  • .otf
  • .fon
  • .fnt
  • .dmp
  • .tmp
  • .pif
  • .wav
  • .wma
  • .dmg
  • .app
  • .ipa
  • .xex
  • .wad
  • .msu
  • .icns
  • .theme
  • .diagcfg
  • .diagcab
  • .diagpkg
  • .msstyles
  • .gadget
  • .woff
  • .part
  • .sfcache
  • .winmd
  • .icl
  • .deskthemepack
  • .nomedia

It avoids encrypting files with the following strings in their file name:

  • readme_safepay.txt
  • autorun.inf
  • boot.ini
  • bootfont.bin
  • bootsect.bak
  • desktop.ini
  • iconcache.db
  • ntldr
  • ntuser.dat
  • ntuser.dat.log
  • ntuser.ini
  • thumbs.db

It avoids encrypting files found in the following folders:

  • $WinREAgent
  • $Windows.~bt
  • public
  • config.msi
  • intel
  • msocache
  • $recycle.bin
  • $windows.~ws
  • tor browser
  • boot
  • windows nt
  • msbuild
  • microsoft
  • all users
  • system volume information
  • perflogs
  • application data
  • windows
  • windows.old
  • appdata
  • common files
  • windows defender
  • windowsapp
  • windowspowershell
  • usoshared
  • windows security
  • program files
  • program files (x86)
  • programdata
  • default
  • mozilla firefox

It appends the following extension to the file name of the encrypted files:

  • .safepay

It drops the following file(s) as ransom note:

  • {Encrypted Directory}\readme_safepay.txt

  SOLUTION

Minimum Scan Engine: 9.800
FIRST VSAPI PATTERN FILE: 20.546.03
FIRST VSAPI PATTERN DATE: 27 Oct 2025
VSAPI OPR PATTERN File: 20.547.00
VSAPI OPR PATTERN Date: 28 Oct 2025

Step 1

Trend Micro Predictive Machine Learning detects and blocks malware at the first sign of its existence, before it executes on your system. When enabled, your Trend Micro product detects this malware under the following machine learning name:

    • TROJ.Win32.TRX.XXPE50FFF099

Step 2

Before doing any scans, Windows 7, Windows 8, Windows 8.1, and Windows 10 users must disable System Restore to allow full scanning of their computers.

Step 3

Note that not all files, folders, and registry keys and entries are installed on your computer during this malware's/spyware's/grayware's execution. This may be due to incomplete installation or other operating system conditions. If you do not find the same files/folders/registry information, please proceed to the next step.

Step 4

Delete this registry value

[ Learn More ]

Important: Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this step only if you know how or you can ask assistance from your system administrator. Else, check this Microsoft article first before modifying your computer's registry.

  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    • {Generated ID} = {Malware command-line execution}

Step 5

Search and delete these files

[ Learn More ]
There may be some files that are hidden. Please make sure you check the Search Hidden Files and Folders checkbox in the "More advanced options" option to include all hidden files and folders in the search result.  
  • {Encrypted Directory}\readme_safepay.txt

Step 6

Scan your computer with your Trend Micro product to delete files detected as Ransom.Win32.SAFEPAY.A. If the detected files have already been cleaned, deleted, or quarantined by your Trend Micro product, no further step is required. You may opt to simply delete the quarantined files. Please check the following Trend Micro Support pages for more information:

Step 7

Restore encrypted files from backup.


Did this description help? Tell us how we did.