Karkoff is a lightweight, modular .NET backdoor associated with the Iranian-linked cyberespionage group APT34, also known as OilRig, Earth Simnavaz, and Helix Kitten. It provides persistent access and remote command execution on compromised Windows systems. First publicly identified in 2019 during investigations of DNSpionage-related activity, Karkoff has subsequently appeared in APT34 operations involving Middle Eastern government organizations. Documented campaigns have used malicious Microsoft Excel macros and phishing emails during the initial infection stages.
Karkoff includes a backdoor module that abuses Microsoft Exchange servers as a command-and-control channel through the Exchange Web Services API. It authenticates using a hardcoded account and exchanges commands through the compromised organization's mail infrastructure, allowing malicious communications to blend with legitimate email traffic. Later samples have been signed using an abused code-signing certificate issued to a legitimate IT vendor. Karkoff shares Exchange-based communication characteristics with other APT34 implants, including PowerExchange and STEALHOOK.
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.
19 distinct techniques documented for this family, organized by ATT&CK tactic.
used a hardcoded account to authenticate the said communication. Aside from using hardcoded accounts as exchange accounts, APT34 can add a new module that can monitor changes in passwords and use the new accounts to send mails
This pattern is consistent with OilRig's established tactic of compromising trusted IT vendors to gain access to their government and critical infrastructure clients.
in the two separate attacks using Karkoff ... and Saitama ... the group used macros inside Excel files as part of the first stage to send phishing emails since the group did not have access to the enterprise yet.
They use phishing emails to deliver weaponized Microsoft Excel documents... Between 2014 to 2016, the group's attack campaigns targeted banks and technology organizations in Saudi Arabia with phishing emails that included weaponized Microsoft Excel attachments.
Karkoff maintains persistence via scheduled tasks or registry run keys.
the group used macros inside Excel files as part of the first stage
the group used macros inside Excel files as part of the first stage ... Despite the dated Saitama operation’s first stage dropper, a VBA macro that drops the actual .Net backdoor Saitama malware
From there they asked victims to open malicious documents.
Karkoff maintains persistence via scheduled tasks or registry run keys.
used a hardcoded account to authenticate the said communication. Aside from using hardcoded accounts as exchange accounts, APT34 can add a new module that can monitor changes in passwords and use the new accounts to send mails
Karkoff maintains persistence via scheduled tasks or registry run keys.
Karkoff maintains persistence via scheduled tasks or registry run keys.
used a hardcoded account to authenticate the said communication. Aside from using hardcoded accounts as exchange accounts, APT34 can add a new module that can monitor changes in passwords and use the new accounts to send mails
Karkoff maintains persistence via scheduled tasks or registry run keys.
The internal filename of the signed Karkoff sample, egatdmtools.exe, mimics tooling associated with EGAT (Electricity Generating Authority of Thailand)... A binary named egatdmtools.exe, signed by MOSCII's certificate, would appear entirely legitimate.
Stripped metadata: No internal name, company string, or product version is present. This removes static analysis anchors that analysts and YARA rules rely on.
The 2014 compile date on a sample submitted in 2026 is an immediate red flag. This is a known anti-forensics technique where threat actors set the PE timestamp to a historical date to confuse timeline analysis.
used a hardcoded account to authenticate the said communication. Aside from using hardcoded accounts as exchange accounts, APT34 can add a new module that can monitor changes in passwords and use the new accounts to send mails
OilRig activity leveraging a stolen Entrust Extended Validation (EV) code signing certificate issued to Thai IT vendor MOSCII Corporation. The certificate was used to sign multiple malware samples, including the Karkoff backdoor.
Karkoff malware has a full backdoor module using a government exchange server as a communication channel via send/received commands over an exchanged server
They also created a new remote administration tool that supported HTTP and DNS communication.
They also created a new remote administration tool that supported HTTP and DNS communication.
from the heavy use of DNS-based command and control (C&C) communication
the latest compromise seems to be rewritten to use the same technique but only to exfiltrate data over the mail channel.
Shifting to new data exfiltration techniques — from the heavy use of DNS-based command and control (C&C) communication to combining it with the legitimate simple mail transfer protocol (SMTP) mail traffic — to bypass any security policies enforced on the network perimeters.
48 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.