Doki is a Linux backdoor and downloader associated with Docker host compromise. It is used to execute remote commands, proxy traffic, and fetch additional payloads after attackers gain container or host access. Defenders should monitor for unusual shell execution, unexpected outbound connections, and persistence on Kubernetes or containerised systems.
What Doki Is and How It Operates
Doki is a Linux backdoor and downloader tied to Docker host compromise. It gives attackers a way to run commands, proxy traffic, and stage additional payloads after they have already reached a container or host.
What makes Doki dangerous is that it is not just a single-purpose implant. Once an attacker has valid execution on a containerised system, a backdoor and downloader can turn that foothold into a broader intrusion path, especially when the environment has weak isolation or broad network reach.
Why Doki Matters in Containerised Environments
In Docker and Kubernetes environments, the boundary between container and host matters. A backdoor that lands on the host, or that can pivot from a container to adjacent systems, can expose workloads, secrets, service endpoints, and management interfaces that were never intended to be reachable from the original compromise point.
Doki also fits the common post-compromise pattern where remote command execution is paired with traffic proxying. That combination helps attackers blend their activity into normal infrastructure communications and move laterally without immediately introducing a new visible toolset on every target.
Defenders should treat unexplained shell activity, unusual process trees, and outbound connections from containerised workloads as signals that the environment may already be in an attacker-controlled state.
Exposure, Persistence, and Detection Challenges
Container platforms often make exposure assessment harder because the same image, runtime, or host configuration can be reused across many workloads. If one Docker host is compromised, the question becomes whether the implant is confined to a container, has host-level reach, or can survive restarts through configuration changes, mounted paths, or scheduler-driven redeployment.
Detection is difficult when the malware acts as a downloader rather than a full payload bundle. That means a first-stage compromise may look small, while the real impact comes later through fetched tools, redirected traffic, or follow-on access that appears unrelated to the original alert.
For that reason, defenders should correlate container logs, host audit trails, and network telemetry. A single suspicious shell is less important than the pattern around it: who launched it, what it contacted, what files changed, and whether the behaviour repeats after redeployment.
Containment and Recovery After Suspected Compromise
When Doki is suspected, the response should focus on both the infected runtime and the wider trust boundary around it. In practice, that means assuming any credentials, tokens, or access paths used on the compromised host may have been observed or reused during the intrusion.
Recovery is not complete when the binary is removed. Teams should confirm that persistence has been eliminated, that any reintroduced pods or containers are clean, and that the original foothold was not enabled by an overly permissive runtime, exposed management interface, or weak image hygiene. A review of the container build and deployment path is often necessary to ensure the same compromise cannot be recreated.
Risk and Threat Considerations
Doki is risky because it sits in the post-access phase of an intrusion, where the attacker already has enough privilege to execute code and can then expand control through remote command execution, traffic proxying, and payload staging. In containerised environments, that can turn a single host compromise into a broader operational incident.
Failure mechanism: If the attacker can keep command execution alive on the host or within a persistent container path, they can re-enter the environment, fetch additional tools, and hide later activity behind ordinary-looking outbound connections.
Impact: The result can include workload manipulation, broader lateral movement, exposure of adjacent systems, and loss of confidence that the affected container or host can still be trusted.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK addresses the attack and risk surface, while CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1059 — Command and Scripting Interpreter | Doki relies on remote command execution on Linux hosts. |
| T1090 — Proxy | Doki proxies traffic to help attackers relay connections through the compromised system. | |
| Recommendation — Map suspicious shell execution to command-and-scripting activity and hunt the surrounding execution chain. Trace proxy-like outbound flows and isolate systems that relay attacker traffic. | ||
| CIS Controls v8 | CIS-12 — Network Infrastructure Management | Containerised environments need managed network visibility and boundary control to spot unusual outbound connections. |
| Recommendation — Instrument network monitoring and restrict unmanaged egress paths from container hosts. | ||
| NIST SP 800-53 Rev 5 | AU-6 — Audit Record Review, Analysis, and Reporting | Doki detection depends on reviewing host and container audit evidence after suspicious execution. |
| SI-4 — System Monitoring | Doki is best detected through monitoring of processes, connections, and persistence behaviour. | |
| Recommendation — Review audit records for the initial shell, follow-on processes, and repeated access patterns. Monitor host and container telemetry for anomalous execution, egress, and persistence indicators. | ||
Practitioner Guidance
Why practitioners should care: Doki is a good reminder that container compromise is rarely just a container problem. If the attacker can reach the host, reuse shared mounts, or survive orchestration events, the blast radius can extend far beyond the original pod or image.
What to watch for: Look for interactive shell behaviour in non-interactive services, unexpected outbound sessions, and repeated process or network activity after restart. Those are often stronger indicators of persistence than any single malware artefact.
Practitioner takeaway: Treat the compromise as an environment-level investigation, not a one-off malware cleanup, until you can explain the initial access path, persistence path, and any secondary payloads delivered afterward.
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 17, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org