Blog's Page
Doki Is A Linux-based Backdoor Malware That Gained Significant Attention In 2020 After Researchers Discovered It Targeting Cloud-hosted Docker Environments. Unlike Traditional Malware That Relies On Hardcoded Command-and-control (C2) Infrastructure, Doki Uses A Unique Mechanism Involving The Dogecoin Blockchain To Dynamically Generate And Locate Its C2 Servers. This Approach Makes Detection And Takedown Efforts Considerably More Difficult Because The Malware Can Continuously Discover New Attacker-controlled Infrastructure Without Relying On Fixed Domains Or IP Addresses.
Doki Is Commonly Associated With Compromised Docker Instances That Expose Management APIs To The Internet Without Proper Authentication. Once Attackers Gain Access To A Vulnerable Docker Environment, They Deploy Malicious Containers That Install The Doki Backdoor And Establish Persistent Remote Access. The Malware Allows Threat Actors To Execute Commands, Download Additional Payloads, Perform Reconnaissance, And Maintain Long-term Control Over Infected Systems.
Although Doki Itself Is Primarily A Backdoor Rather Than Ransomware Or A Banking Trojan, It Represents A Serious Threat To Cloud Infrastructure Because It Can Serve As An Entry Point For Data Theft, Cryptomining, Lateral Movement, And Further Malware Deployment.
This Article Provides A Comprehensive Analysis Of Doki Backdoor, Including Affected Operating Systems, Infected Files, Browser Exposure Risks, Impacted Countries, Indicators Of Compromise, MITRE ATT&CK Techniques, Detection Rules, And Frequently Asked Questions.
| Attribute | Details |
|---|---|
| Malware Name | Doki |
| Malware Type | Backdoor |
| Primary Target | Linux Servers |
| Discovery Year | 2020 |
| Initial Vector | Exposed Docker APIs |
| Persistence | Limited But Possible Through Container Deployment |
| Command And Control | Dogecoin-based Dynamic Lookup |
| Primary Objective | Remote Access And Command Execution |
| Typical Victims | Cloud Infrastructure And Docker Hosts |
Doki Is Notable Because Of Its Unconventional Command-and-control Discovery Method, Which Allows Attackers To Evade Traditional Domain-based Detection Techniques.
A Typical Doki Infection Follows Several Stages.
Attackers Scan The Internet For:
Misconfigured Docker Services
Open Docker Remote APIs
Cloud Instances Lacking Authentication
Publicly Exposed Container Management Ports
After Identifying A Vulnerable Target, Attackers Deploy A Malicious Container That Contains Doki Components.
The Malware Installs Binaries And Scripts Inside The Containerized Environment.
Doki Uses Dogecoin Blockchain Transactions And DNS Mechanisms To Derive Active C2 Infrastructure.
The Attacker Gains:
Command Execution Capability
File Management Access
System Reconnaissance Functionality
Payload Deployment Capabilities
Doki Primarily Targets Linux Environments.
Ubuntu
Debian
CentOS
Red Hat Enterprise Linux (RHEL)
Fedora
Alpine Linux
Amazon Linux
Oracle Linux
Doki Frequently Infects:
Docker Containers
Kubernetes Nodes
Cloud Workloads
Virtual Private Servers (VPS)
No Major Windows-specific Doki Variant Has Been Publicly Documented.
There Are No Significant Reports Of Doki Targeting MacOS Systems.
Doki Does Not Directly Target Browsers Like Banking Trojans. However, Compromised Servers May Contain Browser-related Data That Attackers Can Access.
Google Chrome
Mozilla Firefox
Chromium
Microsoft Edge (Linux)
Brave Browser
Saved Credentials
Session Cookies
Authentication Tokens
Browser Profiles
Cached Files
If A Compromised Linux Host Is Used For Development Or Administration, Browser-stored Credentials May Be Exposed.
Although Doki Does Not Specifically Attack Browser Extensions, Attackers With Backdoor Access May Steal Information Stored By Extensions.
Password Managers
Cryptocurrency Wallet Extensions
Cloud Administration Tools
VPN Browser Extensions
Developer Tools
API Keys
Authentication Tokens
Cloud Credentials
Password Vault Metadata
Cryptocurrency Wallet Information
Doki Primarily Installs Executable Binaries And Scripts Rather Than Encrypting User Data.
doki
Nginx
Update
Systemd-helper
.sh
.bash
.run
.bin
.elf
.out
.conf
.cfg
.ini
.json
.yaml
.log
.tmp
SSH Private Keys
Cloud Credentials
Kubernetes Configurations
Docker Configuration Files
Environment Variable Secrets
Doki Operators Often Seek Access To Valuable Administrative Files.
~/.ssh/id_rsa
~/.ssh/authorized_keys
.aws/credentials
.azure/
.gcp/
docker-compose.yml
Daemon.json
Config.json
kubeconfig
Secrets.yaml
These Files May Provide Attackers With Additional Access To Cloud Environments.
One Of Doki's Most Distinctive Features Is Its Dynamic C2 Discovery Process.
Most Malware Relies On:
Static Domains
Hardcoded IP Addresses
Embedded C2 Infrastructure
Doki Instead:
Uses Dogecoin Blockchain Transactions
Generates Dynamic Domains
Resolves Active Attacker Infrastructure
Avoids Fixed C2 Dependencies
This Significantly Complicates Traditional IOC-based Detection.
Exact Infection Numbers Remain Unavailable Because Cloud Compromises Are Often Underreported.
Public Security Research Identified:
Thousands Of Exposed Docker APIs Worldwide.
Multiple Active Doki Campaigns.
Compromised Cloud Workloads Across Several Regions.
Persistent Infections Surviving For Extended Periods.
Researchers Observed That Some Infected Environments Remained Compromised For Months Without Detection.
Industry Estimates Suggest That Hundreds To Thousands Of Linux Cloud Instances May Have Been Infected During Active Campaigns.
The True Number Is Likely Higher Because Many Cloud Environments Do Not Publicly Disclose Incidents.
Doki Targeted Internet-accessible Docker Environments Globally.
United States
Canada
United Kingdom
Germany
France
Netherlands
Spain
Italy
India
Singapore
Australia
Brazil
Japan
South Korea
Because Doki Primarily Targets Exposed Cloud Infrastructure, Infections Correlate More Closely With Cloud Adoption Than Geographic Location.
Doki Can Maintain Access Using Multiple Persistence Techniques.
Malicious Docker Containers
Startup Scripts
Scheduled Tasks
Service Modifications
Container Recreation
Persistence Depends Largely On The Attacker's Deployment Strategy.
The Following Indicators Are Representative Examples Associated With Doki Activity. Security Teams Should Validate Indicators Against Current Threat Intelligence Feeds Before Deployment.
doki
Nginx-helper
System-update
Docker-update
/tmp/
/var/tmp/
/dev/shm/
Unexpected Docker Container Creation
Unauthorized Command Execution
Outbound DNS Activity
Dynamic Domain Generation
Shell Script Downloads
Unexpected Network Connections
Unauthorized Containers
Unknown Docker Images
Unexpected Container Restarts
curl
Wget
Bash
Sh
Python
Perl
Used In Suspicious Download-and-execute Chains.
Organizations Should Investigate:
Connections To Unknown External Servers
Unusual DNS Traffic
Repeated Domain Generation Activity
Communications Originating From Containers
Outbound Traffic To Dynamically Changing Destinations
Because Doki Uses Dynamic Infrastructure, Behavioral Detection Is Often More Effective Than Static IOC Matching.
The Following ATT&CK Techniques Closely Align With Doki Operations.
| ATT&CK ID | Technique |
|---|---|
| T1190 | Exploit Public-Facing Application |
| T1133 | External Remote Services |
| T1611 | Escape To Host |
| T1059.004 | Unix Shell |
| T1105 | Ingress Tool Transfer |
| T1036 | Masquerading |
| T1082 | System Information Discovery |
| T1018 | Remote System Discovery |
| T1046 | Network Service Discovery |
| T1005 | Data From Local System |
| T1552 | Unsecured Credentials |
| T1071 | Application Layer Protocol |
| T1095 | Non-Application Layer Protocol |
| T1027 | Obfuscated Files Or Information |
| T1102 | Web Service |
| T1573 | Encrypted Channel |
Doki Activity Spans Multiple ATT&CK Tactics.
Exploitation Of Exposed Docker APIs
Shell Command Execution
Container Redeployment
Startup Scripts
System Reconnaissance
Network Scanning
SSH Key Theft
Cloud Credential Collection
Dynamic Blockchain-assisted C2 Discovery
title: Suspicious Docker Container Creation
Id: Doki-docker-container
Status: Experimental
Logsource:
Product: Linux
Detection:
Selection:
CommandLine|contains:
- Docker Run
- Docker Create
Condition: Selection
Level: Medium
title: Linux Download And Execute Activity
Id: Doki-download-execute
Status: Experimental
Logsource:
Product: Linux
Category: Process_creation
Detection:
Selection:
CommandLine|contains:
- Wget
- Curl
Condition: Selection
Level: High
title: Execution From Temporary Directories
Id: Doki-temp-execution
Status: Experimental
Logsource:
Product: Linux
Detection:
Selection:
CommandLine|contains:
- /tmp/
- /var/tmp/
- /dev/shm/
Condition: Selection
Level: High
rule Linux_Doki_Backdoor
{
Meta:
Description = "Detect Potential Doki Backdoor Artifacts"
Strings:
$a = "docker"
$b = "Dogecoin"
$c = "curl"
Condition:
Any Of Them
}
Security Teams Should Monitor For:
Unauthorized Docker API Access
New Container Deployments
Download-and-execute Behavior
Dynamic DNS Activity
Unexpected Outbound Connections
SSH Key Access
Credential Harvesting Attempts
Cloud Configuration Access
Container Escape Attempts
Behavior-based Monitoring Often Detects Doki More Effectively Than Signature-based Methods.
Disable Public Docker API Exposure.
Require Authentication.
Restrict Network Access.
Implement Least Privilege.
Monitor Cloud Credentials.
Rotate Secrets Regularly.
Scan Container Images.
Use Trusted Repositories.
Monitor Container Behavior.
Restrict Outbound Communications.
Inspect DNS Traffic.
Monitor Command-and-control Activity.
Deploy Linux EDR Solutions.
Monitor Process Creation.
Detect Unusual Shell Activity.
Doki Is A Linux Backdoor Malware That Primarily Targets Cloud-hosted Docker Environments And Provides Remote Access To Attackers.
It Commonly Spreads Through Exposed Docker APIs And Misconfigured Container Environments That Are Accessible From The Internet.
Doki Primarily Targets Linux Distributions And Containerized Cloud Workloads.
No. Doki Is A Backdoor Rather Than Ransomware. Its Primary Purpose Is Remote Access And System Control.
Its Most Distinctive Feature Is The Use Of The Dogecoin Blockchain To Dynamically Discover Command-and-control Infrastructure.
Attackers May Collect:
SSH Keys
Cloud Credentials
Configuration Files
Application Secrets
Administrative Information
Exact Figures Are Unknown, But Researchers Estimate That Hundreds To Thousands Of Cloud-hosted Linux Systems May Have Been Compromised During Active Campaigns.
Doki Infections Were Observed Globally, Including The United States, Germany, United Kingdom, India, Australia, Brazil, Singapore, And Many Other Countries.
Detection Can Be Achieved Through Docker Monitoring, Linux EDR Solutions, Network Analytics, ATT&CK-based Threat Hunting, And Behavioral Detection.
The Most Effective Defense Is Securing Docker Environments, Disabling Unauthenticated Docker APIs, Implementing Least Privilege, Monitoring Cloud Workloads, And Continuously Auditing Container Activity.
Doki Backdoor Represents A Notable Evolution In Linux-focused Malware, Particularly Within Cloud And Containerized Environments. Its Use Of The Dogecoin Blockchain For Dynamic Command-and-control Discovery Demonstrates How Modern Threat Actors Continue To Innovate In Order To Evade Traditional Detection Methods. Rather Than Relying On Fixed Infrastructure, Doki Leverages Decentralized Mechanisms That Complicate Takedown Efforts And Reduce The Effectiveness Of Static IOC-based Defenses.
By Targeting Exposed Docker APIs And Cloud Workloads, Doki Highlights The Importance Of Secure Container Deployment Practices, Strong Access Controls, And Continuous Monitoring. Organizations Operating Cloud-native Infrastructure Should Prioritize Docker Security, Credential Protection, Behavioral Threat Detection, And ATT&CK-aligned Threat Hunting To Reduce The Risk Posed By Doki And Similar Linux Backdoors.
Step 1: Boot Into Safe Mode
Restart Your PC And Press F8 (or Shift + F8 For Some Systems) Before Windows Loads.
Choose Safe Mode With Networking.
Safe Mode Prevents Most Malware From Loading.
Press Win + R, Type appwiz.cpl, And Press Enter.
Sort By Install Date And Uninstall Unknown Or Recently Added Programs.
Use A Trusted Anti-malware Tool:
Malwarebytes – https://www.malwarebytes.com
Screenshot Of Malwarebytes - Visit Links
Microsoft Defender – Built Into Windows 10/11
HitmanPro, ESET Online Scanner, Or Kaspersky Virus Removal Tool
ZoneAlarm Pro Antivirus + Firewall NextGen
VIPRE Antivirus - US And Others Countries, | India
Run A Full Scan And Delete/quarantine Detected Threats.
Win + R, Type temp → Delete All Files.Press Win + R, Type %temp% → Delete All Files.
Use Disk Cleanup: cleanmgr In The Run Dialog.
Go To: C:\Windows\System32\drivers\etc
Open hosts File With Notepad.
Replace With Default Content:
Press Ctrl + Shift + Esc → Open Task Manager
Go To Startup Tab
Disable Any Suspicious Entries.
Open Command Prompt As Administrator.
Run These Commands:
netsh Winsock Reset
netsh Int Ip Reset
ipconfig /flushdns
Unwanted Homepage Or Search Engine
Pop-ups Or Redirects
Unknown Extensions Installed
For Chrome:
Go To: chrome://extensions/
Remove Anything Unfamiliar
For Firefox:
Go To: about:addons → Extensions
Remove Suspicious Add-ons
For Edge:
Go To: edge://extensions/
Uninstall Unknown Add-ons
Chrome:
Go To chrome://settings/reset → "Restore Settings To Their Original Defaults"
Firefox:
Go To about:support → "Refresh Firefox"
Edge:
Go To edge://settings/resetProfileSettings → "Reset Settings"
All Browsers:
Use Ctrl + Shift + Del → Select All Time
Clear Cookies, Cached Files, And Site Data
Make Sure They Are Not Hijacked.
Chrome: chrome://settings/search
Firefox: about:preferences#search
Edge: edge://settings/search
Chrome: chrome://settings/cleanup
Use Malwarebytes Browser Guard For Real-time Browser Protection.
Always Download Software From Trusted Sources.
Keep Windows, Browsers, And Antivirus Updated.
Avoid Clicking Suspicious Links Or Ads.
Use ad Blockers And reputable Antivirus Software.
Backup Your Files Regularly.
To Remove Malware From Your Windows PC, Start By Booting Into Safe Mode, Uninstalling Suspicious Programs, And Scanning With Trusted Anti-malware Tools Like Malwarebytes. Clear Temporary Files, Reset Your Network Settings, And Check Startup Apps For Anything Unusual.
For web Browsers, Remove Unwanted Extensions, Reset Browser Settings, Clear Cache And Cookies, And Ensure Your Homepage And Search Engine Haven’t Been Hijacked. Use Cleanup Tools Like Chrome Cleanup Or Browser Guard For Added Protection.
?? Prevention Tips: Keep Software Updated, Avoid Suspicious Downloads, And Use Antivirus Protection Plus Browser Ad Blockers. Regular Backups Are Essential.
Why It Matters: Not All VPNs Offer Malware Protection.
What To Look For: Providers With built-in Malware/ad/tracker Blockers (e.g., NordVPN’s Threat Protection, ProtonVPN’s NetShield).
Purpose: Prevents Data Leaks If Your VPN Connection Drops.
Benefit: Ensures Your Real IP And Browsing Activity Aren’t Exposed To Malware-distributing Websites.
Why It Matters: DNS Leaks Can Expose Your Online Activity To Attackers.
Solution: Enable DNS Leak Protection In Your VPN Settings Or Use A Secure DNS Like Cloudflare (1.1.1.1).
Risk: Free VPNs Often Contain Malware, Sell User Data, Or Lack Security Features.
Better Option: Use Reputable Paid VPNs That Offer security Audits And Transparent Privacy Policies.
Some VPNs Block Known Phishing And Malicious Sites.
Example: Surfshark’s CleanWeb, CyberGhost’s Content Blocker.
Reason: Security Patches Fix Known Vulnerabilities.
Tip: Enable Auto-updates Or Check For Updates Weekly.
Scope: Malware Can Enter Through Phones, Tablets, Or IoT Devices.
Solution: Install VPN Apps On Every Internet-connected Device.
Fact: VPNs Do Not Remove Or Detect Malware On Your System.
Complement It With:
Antivirus Software
Firewall
Browser Extensions For Script Blocking
VPN Encrypts Traffic But Can’t Stop Malware From Executing If You Download Infected Files.
Split Tunneling Allows Certain Apps/sites To Bypass VPN.
Tip: Never Exclude Browsers, Email Clients, Or Download Managers From VPN Tunneling.
A VPN (Virtual Private Network) Enhances Your Online Privacy By Encrypting Your Internet Traffic And Masking Your IP Address. It Protects Your Data On Public Wi-Fi, Hides Browsing Activity From Hackers And ISPs, And Helps Bypass Geo-restrictions. VPNs Also Add A Layer Of Defense Against Malware By Blocking Malicious Websites And Trackers When Using Advanced Features. However, A VPN Does Not Remove Existing Malware Or Act As Antivirus Software. For Full Protection, Combine VPN Use With Antivirus Tools, Regular Software Updates, And Cautious Browsing Habits. Always Choose A Reputable VPN Provider With Strong Security And Privacy Policies.
Doki Backdoor, Remove Doki Backdoor, Get Rid Of Doki Backdoor, Delete Doki Backdoor, Uninstall Doki Backdoor, Doki Backdoor Removal Guide