SafetyKatz is an open-source Windows credential-dumping tool in the GhostPack collection that combines a modified Mimikatz payload with a .NET PE loader. Primarily authored by harmj0y, it is implemented in C# and built for .NET Framework 3.5. It is used in authorized penetration testing and has also been adopted by threat actors for post-compromise credential theft.
SafetyKatz invokes the MiniDumpWriteDump Win32 API to create a minidump of the Local Security Authority Subsystem Service (LSASS). It then loads and executes its customized Mimikatz payload in memory, running sekurlsa::logonpasswords and sekurlsa::ekeys against the dump to recover logon credentials and cryptographic key material. The payload automatically operates in minidump mode and removes some Mimikatz functionality to reduce its size. SafetyKatz deletes the temporary dump after processing, reducing residual artifacts, although its workflow is not entirely fileless. It can also be executed through in-memory .NET assembly-loading mechanisms, including Cobalt Strike.
Documented users include the financially motivated OPERA1ER group, Iranian-linked Chafer, and China-linked APT15. These deployments have occurred in intrusions affecting African banking and financial services organizations, Middle Eastern air transportation and government entities, and foreign affairs ministries in Central and South America. SafetyKatz serves as a credential-harvesting component rather than an initial-access mechanism.
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...
8 distinct techniques documented for this family, organized by ATT&CK tactic.
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.
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.
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.
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...
“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»
10 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.