SafetyKatz
- Type
- Infostealer
- Capabilities
- Credential theftPost exploitationDefense evasion
- Platforms
- Windows
SafetyKatz is an open-source Windows credential-dumping tool that combines a modified version of Mimikatz with a .NET PE loader. Primarily authored by harmj0y, it is implemented as a C# application built against .NET Framework 3.5. It uses the MiniDumpWriteDump Win32 API to create a minidump of the Local Security Authority Subsystem Service (LSASS), then loads a customized Mimikatz payload into memory to extract logon credentials and Kerberos encryption keys from the dump. The embedded Mimikatz is reduced in size and configured to process the minidump automatically. SafetyKatz deletes the dump after processing, reducing residual credential material on disk, although its operation is not entirely fileless.
SafetyKatz supports authorized security assessments but is also used for credential theft during post-compromise operations. Documented operators include the financially motivated OPERA1ER group, the Iranian-linked Chafer group, and the China-linked APT15 group. Associated intrusions have affected banking and financial services, telecommunications, air transportation, and government organizations. SafetyKatz has also been packaged for in-memory execution through other offensive frameworks; those wrappers provide their own loading and evasion functionality rather than representing native SafetyKatz capabilities.
Associated threat actors
4 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
“Also the attacker used additional tools to intercept passwords and RDP sessions: ... safetykatz...”
Mimikatz was used with different flavors, such as SafetyKatz, or customized.
we speculate the tool might be a variation of the tool SafetyKatz based on the debug.bin dump file the tool creates, which is also the name of the dump file created by SafetyKatz that was previously tied to Iranian threat actors
Mimikatz, Pypykatz, Safetykatz – Publicly available credential-dumping tools...
Techniques & procedures
8 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
T1078.003 - Valid Accounts: Local Accounts Adversaries may obtain and abuse credentials of a local account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
Persistence
1 technique
Persistence
T1078.003 - Valid Accounts: Local Accounts Adversaries may obtain and abuse credentials of a local account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
Privilege Escalation
1 technique
Privilege Escalation
T1078.003 - Valid Accounts: Local Accounts Adversaries may obtain and abuse credentials of a local account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
Stealth
5 techniques
Stealth
favicon.ico corresponds to an encoded and compressed version of safetykatz ... embedded as resources in order to be able to use them with execute-assembly
...runs sekurlsa::logonpasswords and sekurlsa::ekeys on the minidump file, removing the file after execution is complete... mimikatz # deleting C:\Windows\Temp\debug.bin
T1078.003 - Valid Accounts: Local Accounts Adversaries may obtain and abuse credentials of a local account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
.Net tradecraft can be compressed, encoded (encrypted if required) ... then embedded as a resource to be loaded after patching amsi.dll memory.
Then @subtee's PELoader is used to load a customized version of Mimikatz that runs sekurlsa::logonpasswords and sekurlsa::ekeys on the minidump file...
Credential Access
3 techniques
Credential Access
“The use of Mimikatz on affected systems for credential dumping.”
First, the MiniDumpWriteDump Win32 API call is used to create a minidump of LSASS to C:\Windows\Temp\debug.bin. Then @subtee's PELoader is used to load a customized version of Mimikatz that runs sekurlsa::logonpasswords and sekurlsa::ekeys on the minidump file, removing the file after execution is complete.
«DCSync - это техника, при которой атакующий, имея права на репликацию, имитирует поведение контроллера домена и запрашивает у легитимного DC хэши паролей пользователей через протокол DRSUAPI»
Observables
10 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.