IMap: Fast and Scalable In-Network Scanning with Programmable Switches

Published in USENIX Symposium on Networked Systems Design and Implementation (NSDI), 2022

Recommended citation:
Guanyu Li, Menghao Zhang, Cheng Guo, Han Bao, Mingwe Xu, Hongxin Hu, Fenghua Li. "IMap: Fast and Scalable In-Network Scanning with Programmable Switches". In The 19th USENIX Symposium on Networked Systems Design and Implementation (NSDI '22), April 4-6, 2022, Renton, WA, USA.

Abstract:
Network scanning has been a standard measurement technique to understand a network’s security situations, e.g., revealing security vulnerabilities, monitoring service deployments. However, probing a large-scale scanning space with existing network scanners is both difficult and slow, since they are all implemented on commodity servers and deployed at the network edge. To address this, we introduce IMap, a fast and scalable in-network scanner based on programmable switches. In designing IMap, we overcome key restrictions posed by computation models and memory resources of programmable switches, and devise numerous techniques and optimizations, including an address-random and rate-adaptive probe packet generation mechanism, and a correct and efficient response packet processing scheme, to turn a switch into a practical high-speed network scanner. We implement an open-source prototype of IMap, and evaluate it with extensive testbed experiments and real-world deployments in our campus network. Evaluation results show that even with one switch port enabled, IMap can survey all ports of our campus network (i.e., a total of up to 25 billion scanning space) in 8 minutes. This demonstrates a nearly 4 times faster scanning speed and 1.5 times higher scanning accuracy than the state of the art, which shows that IMap has great potentials to be the next-generation terabit network scanner with all switch ports enabled. Leveraging IMap, we also discover several potential security threats in our campus network, and report them to our network administrators responsibly.

Paper URL:
Read or download the complete paper here