TL;DR
This paper introduces a novel approach to analyze darknet traffic for understanding attacker behavior through port scanning. By combining graph modeling, data mining, and semantic analysis of port descriptions, the authors can identify patterns and dependencies in how attackers probe networks, offering valuable insights for security professionals.
What Problem Does This Paper Address?
Attackers frequently use port scanning to discover vulnerable services on target systems. While we know what ports are scanned, understanding why and how these scans are orchestrated (i.e., the attacker's strategy) is crucial for effective defense. Existing methods often lack the ability to uncover the relationships and dependencies between scanned ports, making it difficult to profile attacker behavior and anticipate their next moves. This paper aims to bridge this gap by providing a deeper, "deep mining" analysis of port scan data.
Methods
The core of the proposed method is a multi-stage pipeline:
- Event Extraction: Raw network traffic (TCP packets) is parsed to extract key header fields like IP addresses, ports, and protocols. These are structured into key-value pairs.
- Sequence Extraction: For each unique key (e.g., a source-destination IP pair), a sequence of scanned ports is constructed based on timestamps. This captures the order of probes.
- Behavioral Graph Construction: These sequences are aggregated into a directed, weighted graph. Vertices represent ports (or IPs in horizontal scans), and edges represent transitions between them, weighted by the frequency of that transition. This graph models the "behavior" of scans.
- Behavioral Graph Mining (Clustering): A modularity-based clustering algorithm is used to identify groups of "well-connected" vertices (ports or IPs). These clusters represent commonly scanned entities, suggesting coordinated attack strategies.
- Graph Vertices Enrichment: The discovered clusters are enriched with semantic information. For vertical scans, port descriptions are crawled from Wikipedia, and technical terms are extracted. For horizontal scans, IP addresses are enriched with metadata like organization or ISP.
- Mining Enriched Vertices (Frequent Pattern Mining): Frequent itemset mining (using LCM) is applied to the extracted words (from port descriptions) within each cluster to find common patterns and co-occurring terms. These patterns act as "tags" for the clusters.
- Port Similarity Measurement: Several similarity metrics (Jaccard, Cosine, and Doc2Vec) are explored to quantify the semantic similarity between port descriptions, aiding in understanding cluster homogeneity.
Datasets
The study utilizes real-world darknet data collected from a /20 darknet network (4096 addresses) over a two-year period (November 2014 to November 2016). This dataset consists of approximately 2.88 billion packets, with TCP packets making up over 78%. This is a significant dataset for analyzing unsolicited network traffic.
Key Insights and Ideas
- Beyond "What" to "Why": The paper moves beyond simply identifying scanned ports to understanding the underlying strategies and dependencies that drive these scans.
- Semantic Port Similarity: Leveraging Wikipedia descriptions to derive semantic similarity between ports is a novel way to group functionally related services, even if they use different port numbers.
- Graph-Based Behavioral Modeling: Representing scan sequences as a behavioral graph allows for the discovery of complex relationships and patterns that would be missed by simpler statistical analyses.
- Clustering Reveals Attacker Strategies: Discovered clusters of ports or IPs directly map to potential attacker strategies, such as targeting specific application types (e.g., streaming servers, databases) or entire network segments.
- Darknet as a Rich Source: The use of darknet data provides a unique perspective on unsolicited traffic and attacker reconnaissance activities, free from the noise of legitimate user traffic.
Key Results
- The methodology successfully identified clusters of ports and IP addresses that are commonly scanned together, revealing distinct attacker behaviors.
- For vertical scans, clusters were found to represent specific services (e.g., streaming servers, database services, communication protocols) and often contained a mix of system, registered, and dynamic ports.
- For horizontal scans, clusters highlighted targeted subnetworks or organizations, with IP addresses enriched with metadata like ISP and organization names.
- The analysis showed that attackers often target specific types of services or entire network segments, indicating a strategic approach rather than random probing.
- The paper demonstrates the effectiveness of their approach on a large-scale darknet dataset, providing a comprehensive view of port scanning activities over time.
Limitations and Future Work
- Assumptions on Data Trust: The method assumes that web pages used for port description crawling are from trusted sources and not manipulated by malicious actors. The security of the crawler itself is also noted as out of scope.
- Unassigned Ports: For clusters consisting entirely of unassigned ports, semantic similarity measures could not be applied, indicating a limitation in understanding the specific intent behind such scans.
- Future Work: The authors plan to extend their work by predicting future scanned ports, which would further enhance proactive defense capabilities.
Summary updated