SafeRat
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.
This article details a new malicious code, SafeRat , which we attribute to the APT group Silver Fox .
Techniques & procedures
16 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
All files consist of a DLL ... loaded by a legitimate and signed executable ... typically embedded in a ZIP file and sent by email.
Execution
3 techniques
Execution
It subsequently installs persistence via a system64 scheduled task executing the binary at user logon.
The Drop Plugin command copies and executes an executable in %temp%, specifying -connect %s:1111 as arguments
If the first payload is extracted from the sample, we find a shellcode, followed by a SafeRAT binary. The shellcode used to load the binary is DONUT.
Persistence
2 techniques
Persistence
It subsequently installs persistence via a system64 scheduled task executing the binary at user logon.
The Set Group and Set Remark commands allow data to be saved in the registry in a fixed key.
Privilege Escalation
1 technique
Privilege Escalation
It subsequently installs persistence via a system64 scheduled task executing the binary at user logon.
Stealth
1 technique
Stealth
Load plugin PE binary + context — Reflective load, export “base” called, 12 thread slots
Defense Impairment
1 technique
Defense Impairment
The Set Group and Set Remark commands allow data to be saved in the registry in a fixed key.
Credential Access
2 techniques
Credential Access
Subsequently, the malware will send, in real time, all the window titles that gain focus, which suggests very strong interactivity with the user controlling them.
The Install/Steal Sunlogin command allows the SunLogin RMM ... to be silently installed, then exfiltrates the credentials
Discovery
3 techniques
Discovery
Value of the registry key HKCU\Software\<computer>:Group ... Content of the registry key HKCU\Software\<computer>:Remark ... Content of the registry key HKCU\Software\<computer>:Time
During the first data transmission, the malware will send the following information about the user: System IP address System name User account name Date and time of infection Malware path ... Process PID ... Local Admin status
The following antivirus products are searched for... The following instant messaging software is searched for: Telegram.exe WeChat.exe WeChatApp.exe
Collection
2 techniques
Collection
Subsequently, the malware will send, in real time, all the window titles that gain focus, which suggests very strong interactivity with the user controlling them.
During the first data transmission, the malware will send the following information about the user...
Command and Control
4 techniques
Command and Control
The data sent by the malware is XOR-encrypted with a 16-byte key (hardcoded in the code) before compression.
Once loaded, it will instantiate its network routines and contact its control server via RAW TCP.
The Drop Plugin command copies and executes an executable in %temp%
The Install/Steal Sunlogin command allows the SunLogin RMM ... to be silently installed, then exfiltrates the credentials, subsequently allowing for graphical control.
Observables
83 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.