Doki
- Type
- Backdoor
- Capabilities
- Initial accessReconnaissanceDefense evasionExfiltration
- Platforms
- Linux
Doki is Linux malware deployed against servers through exposed Docker daemon APIs. It establishes command-and-control communications and exfiltrates data using Ngrok, and uses the embedTLS library for network communications. Its command-and-control discovery mechanism combines a domain generation algorithm based on the Dogecoin blockchain with the DynDNS service, querying a blockchain explorer API to derive command-and-control addresses. Doki performs process discovery by identifying its current process ID and employs masquerading by disguising a malicious file as a Linux kernel module. It has also been distributed by the rinfo botnet’s miner module alongside cryptocurrency-mining binaries; this association does not establish that Doki itself performs cryptocurrency mining or the credential theft implemented by that module.
Techniques & procedures
18 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
[Doki](https://attack.mitre.org/software/S0600) was executed through an open Docker daemon API port.(Citation: Intezer Doki July 20)
Doki was executed through an open Docker daemon API port; Kinsing was executed in an Ubuntu container deployed via an open Docker daemon API; TeamTNT used tools (e.g., Weave Scope) to target exposed Docker API ports and gain initial access.
Execution
2 techniques
Execution
[Doki](https://attack.mitre.org/software/S0600) has executed shell scripts with /bin/sh.(Citation: Intezer Doki July 20)
[Doki](https://attack.mitre.org/software/S0600) was run through a deployed container.(Citation: Intezer Doki July 20)
Persistence
1 technique
Persistence
[Doki](https://attack.mitre.org/software/S0600) was executed through an open Docker daemon API port.(Citation: Intezer Doki July 20)
Privilege Escalation
1 technique
Privilege Escalation
[Doki](https://attack.mitre.org/software/S0600)’s container was configured to bind the host root directory.(Citation: Intezer Doki July 20)
Stealth
2 techniques
Stealth
actors used the following command to rename one of their tools to a benign file name: ren "%temp%\upload" audiodg.exe ... APT1 ... used ... AcroRD32.exe ... as a name for malware ... APT28 ... changed extensions on files containing exfiltrated data to make them appear benign ... APT32 has renamed a NetCat binary to kb-10233.exe to masquerade as a Windows update.
[Doki](https://attack.mitre.org/software/S0600) has disguised a file as a Linux kernel module.(Citation: Intezer Doki July 20)
Discovery
2 techniques
Discovery
[Doki](https://attack.mitre.org/software/S0600) has searched for the current process’s PID.(Citation: Intezer Doki July 20)
[Doki](https://attack.mitre.org/software/S0600) has resolved the path of a process PID to use as a script argument.(Citation: Intezer Doki July 20)
Command and Control
6 techniques
Command and Control
[Doki](https://attack.mitre.org/software/S0600) has communicated with C2 over HTTPS.(Citation: Intezer Doki July 20)
[Doki](https://attack.mitre.org/software/S0600) has used the dogechain.info API to generate a C2 address.(Citation: Intezer Doki July 20)
[Doki](https://attack.mitre.org/software/S0600) has downloaded scripts from C2.(Citation: Intezer Doki July 20)
[Doki](https://attack.mitre.org/software/S0600) has used the DynDNS service and a DGA based on the Dogecoin blockchain to generate C2 domains.(Citation: Intezer Doki July 20)
The content repeatedly describes malware and threat actors using SSL, TLS, HTTPS, RSA, AES, Blowfish, RC4, ECIES, Diffie-Hellman, OpenSSL, WolfSSL, and mutual TLS to protect command and control traffic.
[Doki](https://attack.mitre.org/software/S0600) has used the embedTLS library for network communications.(Citation: Intezer Doki July 20)
Exfiltration
3 techniques
Exfiltration
[Doki](https://attack.mitre.org/software/S0600) has used a script that gathers information from a hardcoded list of IP addresses and uploads to an Ngrok URL.(Citation: Intezer Doki July 20)
[Doki](https://attack.mitre.org/software/S0600) has used Ngrok to establish C2 and exfiltrate data.(Citation: Intezer Doki July 20)
Doki has used Ngrok to establish C2 and exfiltrate data.
Observables
3 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
23 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.