arXiv:2608.23854cs.NIAug 2026

Manuscript Offprint

arXiv:2608.23854

BotScan: An adaptive active probing approach for identifying live IoT Botnet C2 servers at scale

S M Maksudul Alam, Vivek Jain, Zhaowei Tan, Srikanth V. Krishnamurthy, Michalis Faloutsos

S M Maksudul Alam

salam031@ucr.edu

University of California, Riverside

USA

Vivek Jain

vjain014@ucr.edu

University of California, Riverside

USA

Zhaowei Tan

ztan@ucr.edu

University of California, Riverside

USA

Srikanth V. Krishnamurthy

krish@cs.ucr.edu

University of California, Riverside

USA

ABSTRACT

How can we actively search and identify live C2 servers of botnets at scale? The scalability requirement introduces the need to utilize resources efficiently in terms of computation and number of probing packets. We propose BotScan, an approach for actively probing a large IP space to find the highest possible number of live C2 servers. The novelty of BotScan revolves around two insights, which we establish empirically. First, contrary to popular PC-centric observations, many modern IoT botnet communication protocols use packets with minimal customization, which we observe across six major families. Second, C2 servers exhibit exploitable behavioral patterns, such as strong spatial locality. We substantiate the first insight by developing a streamlined approach where, given a malware binaries, we measure and taxonomize the "replayability" of its C2 communication protocol. Then, we introduce a behavior-adaptive probing strategy that: (a) exploits the spatial locality of C2 servers using a two-level segment-centric approach, and (b) adapts dynamically to the success of its probes. We validate the effectiveness of our method using 1,842 recently collected IoT binaries, and we explore a target space of 2.5M IP addresses. First, a replay-based method is applicable for at least 72% of the malware binaries. Second, our method outperforms baseline methods by finding approximately double the live C2 servers for the same number of probes. We also conduct two case-studies where we identify 896 live servers including 112 unreported C2 servers.

CCS CONCEPTS

• Security and privacy → Network security.

KEYWORDS

Measurements, Botnets, Active probing

Michalis Faloutsos

michalis@cs.ucr.edu

University of California, Riverside

USA

ACM Reference Format:

S M Maksudul Alam, Vivek Jain, Zhaowei Tan, Srikanth V. Krishnamurthy, and Michalis Faloutsos. 2026. BotScan: An adaptive active probing approach for identifying live IoT Botnet C2 servers at scale. In Proceedings of ACM Asia Conference on Computer and Communications Security (ASIACCS '27). ACM, New York, NY, USA, 17 pages. https://doi.org/XXXXXXX.XXXXXXX

1 INTRODUCTION

Identifying the Command and Control (C2) servers of botnets and their infrastructure is essential for detecting and mitigating botnet-driven cybercrime. Botnet activities have increased in recent years at an alarming rate [17]. C2 servers 1^{1} are the operational “headquarters” of botnets, and, therefore, they are a good target for security countermeasures. According to Sekoia [53], the number of identified C2 servers in 2022 was 65K, and seems to be growing by 20-50% every year. Once we identify these servers, we can implement measures such as monitoring or blocking traffic aimed at them.

The emergence of IoT devices as a threat vector introduces novel challenges for cybersecurity. First, these devices have lower computing and defense capabilities and there is a lack of mature end-point protections [2,21,74,84][2, 21, 74, 84]. Second, the underlying device population is exploding into tens of billions of devices, dramatically increasing the pool of potential bots [31,70][31, 70]. Third, IoT devices are disproportionately exposed and often misconfigured, compared to other well-managed IT assets [4,28,66][4, 28, 66].

Problem: How can we actively probe for live C2 servers in an efficient way? We use the term efficiency to include the computational resources, and the number of probing packets. Specifically, the input to the problem is a large target IP space of interest. The desired output is the largest possible number of live C2 servers within the target IP space in a cost efficient way. In other words, we frame the problem as a Return on Investment (RoI) maximization: we want the highest number of identified live C2 servers over the number of IP:port pairs that we will probe (which we will refer to as probing budget for ease of reference). From a practical point of view, we allow the solution to consult archival information on C2 servers in the target space, if such information exists. We distill the problem into two research challenges (RC):

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

ASIACCS '27, July 12–16, 2027, Macau, China

© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM. ACM ISBN 978-x-xxxx-xxxx-x/YY/MM https://doi.org/XXXXXXX.XXXXXXX

1^{1}Recently, the term C2 server has expanded to include both hierarchical and peer-to-peer botnets [55, 90] and it refers to devices that can act as “communication gateways” to the botnet: they respond and help bots join a botnet (see section §2).

S M Maksudul Alam, Vivek Jain, Zhaowei Tan, Srikanth V. Krishnamurthy, and Michalis Faloutsos

Figure

Figure 1: The BotScan framework and its three modules: (A) Replay-Packet Generation, (B) Botnet C2 Behavior Profiling, and (C) Behavior-adaptive Probing.

RC-1: What to probe with? Crafting a probing packet 2^{2} is not easy, as it should elicit “incriminating” responses only from C2 servers. RC-2: Where to probe? Given a large IP space, the prioritization of which IP addresses and port numbers to explore is essential for large scale exploration.

Motivation: the need for efficiency. We can illustrate the scope and operational constraints of the problem with some approximate calculations. First, although we experiment with IPv4 in this work, let us consider both the IPv6 and IPv4 spaces, which consist of 3.4×10383.4 \times 10^{38} and 4.3 billion IP addresses respectively. Second, a full exploration would require probing all 65K ports, especially since C2 servers often use diverse ports [20, 21, 41, 58]. Third, several studies have shown that sending one probe is not enough to guarantee discovery: C2 servers do not always respond to a probe even within the same day [20]. As a result, we get to 2.21×10442.21 \times 10^{44} for IPv6 and 2.80×10152.80 \times 10^{15} for IPv4 for a single probing session with 10 repeated probes per IP-port combination. Note that we may want to repeat this process periodically in practice. The need for a scalable approach is apparent: we want to reduce the search space both in terms of IP addresses and port numbers. We revisit practical considerations in §2.

Previous work: To the best of our knowledge, a large-scale IoT-focused botnet probing capability is not currently available, despite several noteworthy efforts. Previous active probing studies can be grouped into the following categories: (a) binary activation methods [19, 21, 27, 56]; and (b) protocol reverse engineering, protocol emulation and packet replay efforts [29, 55, 80, 90]. There are also passive detection methods using network traces [37, 38, 45, 64, 81]. Overall, most prior efforts either: (a) are not designed for scalability, (b) do not develop an adaptive target-address prioritization strategy, or (c) use a small or fixed number of ports as we discuss in §2. Further, prior works do not assess the replayability of IoT malware at scale, as we do here. Note that repositories and feeds [42, 76, 78, 85] provide historical information, but not whether the C2 server is currently live.

Contribution: We propose BotScan, a behavior-adaptive resource-efficient approach to actively scan for C2 servers at scale. Our work makes the following contributions which are implemented by the modules shown in Fig. 1. First, we present the first large-scale assessment of C2 replayability of modern IoT malware, introducing a three-class taxonomy. We show that replay-based probing is feasible for many recently-reported IoT malware binaries across major families (module A), which substantially reduces the probing cost compared with malware-activation approaches (§4.3.3). Second, we propose an efficient probing strategy (module C), which is the first to combine: (a) a two-level segment-centric approach to exploit the spatial locality properties of C2 servers (observed in module B), and (b) an adaptive segment re-prioritization in "real-time" based on prior probe responses. Finally, as an engineering contribution, we develop an automated pipeline that continuously collects recently-reported malware binaries, determines their replayability, and extracts their replay-based packets (module A). The focus on efficiency permeates every step of BotScan: we want to find live C2 servers with the least possible cost.

We evaluate our method using 1,842 recently-collected IoT binaries, which we activate and study. We search for these malware in an IP space of 2.5M addresses across 8 Autonomous Systems (ASes). We highlight our key results.

a. Feasibility: A replay-based approach works for six major IoT malware families. Starting with our 1842 binaries, we activate them and study their C2 communication packets. We find that a replay-based approach works for at least 72% of our malware binaries, and covers six popular families, including Mirai, Gafgyt, Mozi, and Hajime (see §4) and several of their variants (see §4.1.1). For the remaining binaries, only 3% of our them are not amenable to replay-based engagement, while for 25% of them, results are inconclusive: either they don’t activate or fail to connect with or manage response from their C2 server.

b. Efficiency: higher RoI in finding live C2 servers. Our target space has 2.5M IP address, which corresponds to 163.9B IP:port pairs, and a seed set of 11 historically-known C2 servers. Using BotScan, we manage to find 33 new live C2 servers by strategically probing only 1M IP:port pairs (or 0.0006% of the IP:port space). Specifically, we find approximately three times more live C2 servers compared to the seed set and approximately twice as many compared to the closest baseline probing approach.

c. Practical impact: Identifying live C2 servers and interesting behaviors. We conduct two case-studies where we probe a target space over a longer period. First, we find 896 live C2 servers including 112 not reported by three widely-used threat intelligence feeds (64 and 48 new C2 servers in our two case-studies). Second, we observe that we keep finding new C2 servers as we repeat our probing over time: the average response rate is 1 out of 10 probes during a 20 day interval. This flake responsiveness suggests that a thorough study should probe each IP:port pair repeatedly, which further enhances the need for cost-effective probing.

Our work in perspective. We consider this approach as a step towards “offensive” security: we can put botnet operators on the defense. First, BotScan is a critical capability as it enables us to actively and on-demand, probe an IP space from the “outside” and without requiring any privileged access to devices or the traffic of the target network. Second, the efficiency of BotScan makes it suitable for large-scale and frequent explorations. We discuss uses and impact in §6.

Artifacts and sharing. We will make our platform and datasets available to the community. For now, related artifacts can be browsed anonymously [6].

2^{2}The two main options are: (a) generating or replaying packets, and (b) getting packets from an activated binary, as we discuss in section §2. In contrast to popular PC-centric beliefs [75], recent IoT malware does not seem to use sophisticated encryption, as we show in this study, which makes replay-based probing feasible.