What Is the Doorway Botnet Exploiting IoT and Network Devices?

What Is the Doorway Botnet Exploiting IoT and Network Devices?

Cybercriminals managed to record 11,363 device joins in a single hour, demonstrating the sheer scale and efficiency of their automated reconnaissance and exploitation workflow. This massive influx of compromised hardware highlights the sophistication of the Doorway botnet, a modular and highly automated operation that targets a broad spectrum of internet-connected hardware and network infrastructure. By exploiting vulnerabilities in routers, surveillance cameras, and enterprise servers, the actors behind this campaign have successfully built a global proxy infrastructure designed for resilience and high-concurrency operations. The sheer volume of operational data—totaling over 41 gigabytes—uncovered during recent investigations reveals a meticulously documented ecosystem where every stage of the compromise is recorded and analyzed. This operation does not rely on a single, simplistic exploit; rather, it utilizes a multi-functional Rust-based engine capable of deploying 59 distinct exploit modules. These modules are tailored for specific device families, ranging from MikroTik routers to Java-based enterprise services like Openfire and Jenkins. The complexity of the infrastructure is further evidenced by its redundant staging mirrors and a sophisticated credential database that tracks the success and failure of authentication attempts across thousands of distinct device identities. Such a structured approach suggests a transition in the cybercrime world toward enterprise-grade management of botnet fleets, where automated reconnaissance is paired with a feedback-driven optimization loop to ensure maximum infection rates and long-term persistence within targeted networks.

1. The Five-Stage Attack Workflow

The first phase of the Doorway operation centers on meticulous target identification, where the scanning engine performs high-speed reconnaissance across the global internet. Using a hard-coded user-agent string and specific connection timeouts, the botnet identifies responsive devices that exhibit the characteristics of known vulnerable systems. Once a potential target is located, the engine moves immediately into the credential extraction phase. This involves more than just simple brute-force attacks; the system utilizes a learned-credentials database that prioritizes the most effective password pairs based on historical success rates. This feedback loop allows the botnet to bypass security measures by attempting the most likely credentials first, significantly reducing the time required to achieve a successful breach. The extraction process is highly systematic, ensuring that any recovered sensitive information is logged and categorized for future use or for secondary exploitation of the same hardware, creating a self-sustaining cycle of access.

Following the initial reconnaissance and credential harvesting, the botnet proceeds to system authentication, which is the critical gateway to full device control. The doorway engine attempts to log into the target using the extracted or default credentials, carefully recording the outcome of every attempt. Successful logins are not merely noted; they are validated through a series of automated checks to ensure that the access is stable and that the system can support the next stage of the payload. This access verification stage is essential for maintaining the health of the botnet, as it prevents the deployment of heavy malware onto unstable or incompatible systems. By confirming that the compromise is functional before proceeding, the operators ensure that their resources are allocated to high-value, reliable targets. This methodical approach reflects a professionalized mindset where quality of access is prioritized alongside the quantity of compromised nodes, allowing for the creation of a more robust and predictable proxy network.

Once a device is successfully compromised and the access is verified, the operation shifts its focus to the final stage of the workflow: traces cleanup. The operators understand that visibility is the greatest threat to a botnet’s longevity, and they have implemented specific procedures to remove evidence of the initial intrusion. This includes the use of dedicated termination scripts and cleanup modules that attempt to delete temporary files, clear specific logs, and reverse certain configuration changes made during the exploitation process. However, the presence of a cleanup stage does not necessarily mean that the system is restored to its original state; rather, it is a calculated effort to minimize the forensic footprint left behind. The engine distinguishes between found, credential leak, login, validated, and cleaned events, allowing the operators to track the lifecycle of each victim from discovery to finalization. This structured record-keeping provides the threat actors with a clear overview of their operational success and the effectiveness of their obfuscation techniques.

The ultimate goal of this five-stage workflow is the establishment of persistent, long-term access that can be leveraged for various malicious activities. By moving through identification, extraction, authentication, verification, and cleanup, the Doorway botnet creates a reliable and stealthy infrastructure that can withstand basic security audits. The persistent recruitment of new devices is managed through a metrics-driven campaign that constantly evaluates which device families and geographic regions are providing the best return on investment. This allows the botnet to adapt to changing network environments and security patches in real-time. The integration of automated reconnaissance with a structured deployment strategy ensures that the botnet remains a significant threat to global network security, as it can rapidly scale its operations while maintaining a low profile. The systematic nature of this workflow demonstrates that modern botnets have evolved far beyond simple self-propagating worms, becoming sophisticated, managed platforms for large-scale cybercrime.

2. Software Execution Logic

The doorway engine utilizes a sophisticated tiered logic system to ensure that its exploitation modules are only deployed against compatible and susceptible systems. This begins with the module matching process, where the engine captures the banner or fingerprint of a target device and compares it against a library of known signatures. Instead of indiscriminately firing exploits at every open port, the engine uses hard-coded transport settings, including specific read and write timeouts, to gather as much information as possible without triggering traditional intrusion detection systems. The system even accounts for honeypots by implementing a conservative threshold; if a device presents too many distinct fingerprints or server headers, it is flagged and discarded to avoid wasting resources on decoy systems. This selective approach ensures that the exploitation phase is highly targeted, reducing the network noise associated with the botnet’s activities and increasing the likelihood of a successful, unobserved compromise.

Once a potential match is identified, the engine proceeds to the read-only probing stage, which is a critical design feature intended to maintain the stability of the target environment. During this identification step, the engine performs non-intrusive checks to verify the specific version and configuration of the device. This probe is designed to avoid making any state changes on the system, functioning as a final validation check before the actual attack code is executed. If the probe fails to confirm the target’s compatibility, the engine skips the exploitation phase entirely and moves on to the next potential victim. This read-only-first design is a hallmark of sophisticated malware development, as it prevents accidental system crashes or reboots that might alert administrators to the presence of an intruder. By ensuring that the exploit will only run on a verified platform, the operators maximize their success rate while minimizing the risk of premature detection.

The actual exploitation execution only begins after the engine has successfully completed both the fingerprint matching and the read-only probing stages. At this point, the appropriate module is invoked to deliver the attack code, which may involve pre-authentication command injection, path traversal, or the exploitation of specific protocol vulnerabilities. The doorway engine is built using the Rust programming language, leveraging its memory safety features and high-concurrency capabilities to manage thousands of simultaneous exploitation threads. The use of a native TLS stack and specialized transport modules allows the engine to interact with a wide variety of network services, from simple embedded web servers to complex enterprise Java applications. The transition from identification to exploitation is handled seamlessly by the engine’s internal runner, which coordinates the handoff of targets between the different execution stages to maintain a constant flow of new compromises.

To support high-concurrency scanning and exploitation at a massive scale, the operators have implemented several system-level optimizations that are documented in their internal playbooks. This includes instructions for increasing the open-file descriptor limit to near-maximum values and running the deployment engine within persistent terminal multiplexers like tmux. By separating the build environment from the execution environment, the operators ensure that the core exploitation engine is stable and optimized for the specific performance requirements of the staging servers. The use of a Go-compatibility layer and a modular registry system allows for the rapid integration of new exploits as they become available, ensuring that the botnet’s arsenal remains current. This combination of robust software engineering and professional operational procedures allows the Doorway botnet to maintain a high level of performance even as the complexity and scale of its target pool continue to grow.

3. Tiered Payload Deployment

To navigate the diverse security environments encountered across the global internet, the Doorway botnet employs a tiered payload deployment strategy that ensures maximum reliability. This process begins with the initial dropper deployment, where a lightweight command or script is sent to the target device via a successful exploit. These droppers are often extremely small—sometimes just a few hundred bytes—allowing them to fit within character-limited injection points or fields that would reject a full-sized binary. The dropper’s primary role is not to provide full bot functionality, but rather to establish a bridgehead on the system and prepare for the next stage of the installation. By using a variety of injection sinks, such as CGI parameters or malformed protocol headers, the botnet can bypass basic input filters that are not specifically tuned to detect these multi-stage loading sequences.

Once the initial dropper has established a foothold, it triggers the architecture identification phase by invoking a lightweight loader. This loader is responsible for determining the specific processor architecture of the target device, such as MIPS, ARM, x86, or PowerPC. This is a critical step because the final malware client must be compiled for the specific hardware it is running on to execute correctly. The loader performs environment checks and system queries to identify the operating system and CPU type, then reports this information back to the payload server. This ensures that the botnet does not waste bandwidth by sending incompatible binaries to the target. In some cases, the loader may also perform basic execution validation, such as sending an ICMP beacon to a specific IP address, to confirm that it has the necessary permissions to run more complex code.

The final stage of the deployment process is the client installation, where the full-featured malware binary is downloaded and launched on the compromised device. This binary is the primary agent for the botnet, providing the command-and-control capabilities, proxy services, and other malicious functionalities required by the operators. To improve the success rate of this download, the tiered deployment system uses architecture-aware loaders that select the most appropriate binary from a central repository. These clients are often placed in temporary directories or hidden paths to avoid detection by casual observation. Once the binary is executed, it typically attempts to establish a persistent connection to the botnet’s management infrastructure, effectively turning the compromised device into a functional node in the global proxy network. This separation of the dropper, the loader, and the final client allows the operation to remain flexible and resilient even when individual components are identified and blocked by security software.

This multi-step installation process is further enhanced by the use of architecture-specific droppers and intermediate loaders that are tailored for different operating environments. For example, Java-based services like Openfire or ActiveMQ may receive a JAR file or an XML-based ProcessBuilder chain as an initial payload, while a Linux-based router might receive a shell script or a printf-based dropper. This variety of delivery mechanisms allows the Doorway botnet to exploit a wide range of targets without relying on a single point of failure. The use of intermediate tokens and IP-bound signatures during the download process also adds a layer of protection for the botnet’s infrastructure, making it more difficult for security researchers to intercept and analyze the full payload chain. By breaking the deployment into manageable, specialized tiers, the threat actors have created a highly effective system for building a massive, heterogeneous botnet fleet.

4. Redundant Data Transfer Methods

The Doorway botnet’s delivery engine is designed with extreme redundancy to ensure that at least one method of data transfer succeeds even in highly restricted network environments. When an exploit is successfully triggered, the engine sequentially attempts a wide array of delivery chains, starting with common netcat utilities. By trying various versions of the “nc” command, including those with and without the execution flag, the botnet can take advantage of built-in network tools that are often present on Linux-based embedded devices. If netcat is unavailable or blocked, the system immediately moves to standard web downloads using ubiquitous tools like “wget” or “curl.” These utilities are frequently found in modern firmware and are rarely restricted by egress filters, making them a reliable choice for retrieving the second-stage loaders from the botnet’s central fileservers.

In cases where modern web tools are missing, the engine resorts to legacy file protocols to move its malicious payloads. This includes attempting to utilize Trivial File Transfer Protocol (TFTP) or standard FTP clients that may still be present in older or more specialized hardware configurations. These legacy protocols often operate on different ports and follow different network logic than HTTP, allowing the botnet to bypass security policies that are primarily focused on web traffic. Furthermore, the engine is capable of initiating direct TCP streams, where the payload data is sent over a raw connection without the overhead of a higher-level protocol. This raw transmission method is particularly effective against simple intrusion detection systems that look for specific file headers or protocol-compliant traffic, as it allows the botnet to deliver its code in a more obscured and direct manner.

To overcome the challenges of restrictive input fields and character limits, the Doorway operators have implemented several creative delivery alternatives. One such method involves the use of character-limited aliases, where short-domain URLs are used to minimize the length of the injection string. This allows the botnet to deliver a functional download command even in environments where only a few dozen characters can be injected at a time. Additionally, the engine can utilize web gateway submissions, sending form-encoded parameters to CGI endpoints that are then processed by the web server to execute a download command. This technique leverages the legitimate functionality of the target’s web interface to facilitate the infection, making the malicious activity appear as normal, albeit unusual, web traffic. These methods demonstrate a deep understanding of the practical limitations found in many IoT devices and a commitment to overcoming them through technical ingenuity.

The most advanced delivery methods in the Doorway arsenal involve the use of network file shares and manual binary reassembly. By attempting to mount a remote Network File System (NFS) path directly on the target device, the botnet can gain access to its entire payload library as if it were a local disk. This bypasses the need for traditional download tools entirely and can be extremely effective in enterprise environments where NFS is a common service. If all else fails, the engine can even utilize a manual reassembly technique, splitting the malware binary into hundreds of small pieces and rebuilding it on the target using a series of “printf” commands. This method is incredibly slow and noisy, but it is nearly impossible to block without disabling the basic shell functionality of the device. The sheer breadth of these redundant data transfer methods ensures that the Doorway botnet remains a versatile and persistent threat, capable of infecting almost any device it can reach.

5. The “Watcher” Management Cycle

A defining characteristic of the Doorway botnet is its use of a sophisticated, automated orchestration layer known as the Watcher. This system functions like a digital site reliability team, continuously overseeing the status of active scanning agents and managing the overall health of the botnet’s operations. Unlike a simple scheduled task, the Watcher carries a complex context and makes intelligent decisions based on the real-time data it receives from the exploitation engine. It monitors multiple concurrent agent sessions, ensuring that each one is operating within defined performance thresholds and making efficient use of the staging infrastructure’s resources. This high level of oversight allows the botnet operators to maintain a massive fleet of compromised devices with a level of precision that is usually reserved for legitimate enterprise software deployments.

The Watcher’s primary role is the performance evaluation of the different exploitation modules and target families. It constantly measures the success rates of various attacks, tracking which device types are providing the highest number of successful joins and which are underperforming. By analyzing this data, the Watcher can identify shifts in the security landscape, such as the deployment of new patches or the introduction of more effective defensive measures in certain regions. This information is then used to drive a strategic adjustment process, where the botnet’s focus is shifted away from exhausted or well-defended targets and toward more profitable opportunities. This feedback-driven model ensures that the botnet is always operating at peak efficiency, maximizing the infection rate while minimizing the exposure of its core infrastructure to detection and takedown efforts.

Strategic adjustments are not limited to changing target lists; they also involve the dynamic reallocation of resources and the issuing of new directives to the scanning agents. When the Watcher identifies a decline in overall production, it can automatically trigger a shift in tactics, such as prioritizing specific “converter” exploits that have shown a recent uptick in success. It may also suggest the deployment of new “scout” modules to explore previously untapped device families. These adjustments are meticulously recorded in operational logs, allowing the human operators to review the system’s decisions and intervene when necessary. This combination of automated intelligence and human oversight creates a highly adaptable and resilient operation that can quickly respond to the evolving challenges of the cybersecurity world.

In addition to its automated decision-making capabilities, the Watcher provides a robust critical reporting system that keeps the human operators informed of important developments. When production drops below a certain threshold or when a critical failure occurs, the system issues high-priority alerts and notifications, often sent directly to the team’s internal communication channels. These reports include detailed metrics and analysis, providing the context needed for the operators to make informed decisions about infrastructure changes or strategic shifts. By automating the routine monitoring and management of the botnet, the Watcher allows the threat actors to focus their time on more complex tasks, such as developing new exploits or refining their monetization strategies. This professionalized management cycle is a clear indication that modern botnet operations have reached a new level of organizational maturity.

6. ActiveMQ Compromise Procedure (Linux)

The exploitation of Java-based enterprise services, particularly ActiveMQ on Linux systems, represents a significant part of the Doorway botnet’s activity. The procedure begins with a service command injection attack, where the botnet exploits a vulnerability to force the application to start an unauthorized shell process. This is typically achieved by leveraging flaws in how the service handles certain types of XML-based configuration files or network requests. By tricking the Java Virtual Machine into executing a system-level command, the threat actors can bypass the application’s internal security controls and gain a foothold on the underlying operating system. This method is particularly effective because enterprise services like ActiveMQ are often granted significant permissions to interact with other network resources, making them a high-value target for building out the botnet’s infrastructure.

Once the initial command injection is successful, the botnet performs a series of tool sequencing checks to determine how to proceed with the infection. The injected shell command is designed to probe the system for the presence of common download utilities like “wget,” “curl,” or the multi-purpose “busybox” binary. This automated search is performed in a specific order, ensuring that the most reliable and feature-rich tool is used whenever possible. If one utility is missing or restricted, the script immediately attempts the next one in the sequence, demonstrating the same commitment to redundancy seen in other parts of the Doorway operation. This stage is critical for bridging the gap between the initial application-level exploit and the deployment of the actual malware binary, as it ensures that the botnet has a reliable way to pull its code from the internet.

After a suitable download tool is identified, the procedure moves into the script preparation phase. The botnet downloads a specialized loader script and saves it to a temporary directory on the Linux host, such as /tmp or /var/tmp. To avoid detection and ensure smooth execution, the script is often renamed to a short, inconspicuous string and granted executable permissions using the chmod command. This preparation ensures that the loader can run independently of the original Java process, providing a more stable environment for the final stages of the infection. The operators also use these temporary directories because they are often excluded from certain types of security scans and are typically writable by the service accounts used to run applications like ActiveMQ.

The final step in the ActiveMQ compromise procedure is the foreground execution of the loader, which then brings the final malware client onto the system. The loader is responsible for selecting the correct binary for the system’s architecture and launching it in the background, often using specific arguments to attribute the infection to the ActiveMQ exploit vector. This allows the botnet operators to track which vulnerabilities are the most effective at bringing in new bots. Once the final client is running, it may perform additional setup tasks, such as establishing persistence or modifying system settings to improve its stealth. The entire process, from the initial command injection to the final client execution, is highly automated and can be completed in a matter of seconds, allowing the Doorway botnet to rapidly compromise large numbers of enterprise servers with minimal manual intervention.

7. Recommended Defensive Actions

In light of the significant threat posed by the Doorway campaign, organizations must take immediate and decisive steps to secure their network infrastructure and IoT devices. The first and most critical action is the implementation of comprehensive infrastructure blacklisting. This involves denying all outbound traffic from internal networks to the known malicious IP addresses, domains, and fileservers associated with the botnet’s staging and command-and-control operations. Organizations should also closely monitor their DNS and proxy logs for any signs of communication with these indicators, which can serve as an early warning of a potential compromise. By proactively blocking the communication channels used by the botnet, security teams can prevent infected devices from receiving new instructions or downloading additional malware components, effectively neutralizing their participation in the botnet.

Beyond simple blacklisting, a more proactive approach to compromise hunting is necessary to identify and remediate existing infections. Security teams should search their network and system logs for the specific patterns and signals used by the Doorway engine, such as unusual ICMP beacons or outbound connections on TCP port 4444. These beacons are often the first sign of a successful payload execution and can be used to distinguish a confirmed compromise from a simple scanning attempt. Additionally, organizations should look for the characteristic “Hello World” user-agent string in their web server logs, which can help identify reconnaissance activity before an exploitation attempt occurs. By combining network-level detection with host-based analysis, defenders can gain a more complete picture of the threat and take appropriate action to isolate and clean any affected systems.

Device hardening and service auditing are essential for long-term protection against the techniques used by the Doorway botnet. It was found that the most effective defenses involved closing public access to administrative management interfaces for devices like routers, cameras, and optical network units. These interfaces should be placed behind a VPN or restricted to specific, authorized management networks to prevent unauthorized access. Organizations should also enforce the use of strong, unique passwords for all devices and services, and rotate them regularly to mitigate the risk of credential reuse attacks. Furthermore, a thorough audit of all internet-facing Java applications, such as ActiveMQ, Jenkins, and Openfire, is required to ensure they are fully patched and that any unnecessary plugins or management features are disabled. These hardening measures significantly increase the difficulty and cost of an attack, making the organization a less attractive target for automated botnet operations.

Finally, the continuous monitoring of authentication patterns and service behaviors is crucial for detecting the sophisticated credential abuse and exploitation techniques employed by the Doorway actors. Organizations found that the most effective response involved analyzing login failures and successes originating from the identified attacker IP pool to identify targeted accounts or systems. By applying rate limits and alerting on repeated credential combinations, defenders could disrupt the botnet’s automated harvesting efforts before they resulted in a successful breach. It was also recommended that companies implemented robust logging for any changes to system configurations or the addition of new administrative accounts, as these are common signs of post-exploitation activity. These actions, when combined with a commitment to rapid incident response and information sharing within the security community, provided a strong defense against the evolving threat of the Doorway botnet and similar large-scale compromise campaigns.

Subscribe to our weekly news digest.

Join now and become a part of our fast-growing community.

Invalid Email Address
Thanks for Subscribing!
We'll be sending you our best soon!
Something went wrong, please try again later