IPv6 distributed collaborative scanning detection method based on double-end polymerization features

By adopting a detection method based on dual-end aggregation features, the problems of single-source perspective failure and easy bypass of tool features in IPv6 distributed collaborative scanning are solved. This method achieves high-precision detection and low false alarm rate for IPv6 distributed collaborative scanning, thereby improving the robustness of network defense.

CN123184953APending Publication Date: 2026-11-27GUANGZHOU UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611499221.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-24
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing network scanning and detection methods fail to address IPv6 distributed collaborative scanning due to the ineffectiveness of threshold detection from a single-source perspective, and the detection mechanisms that rely on the characteristics of scanning tools are easily bypassed by attackers, making them ineffective against highly covert scanning involving multiple protocols.

Method used

A detection method based on dual-end aggregation features is adopted. By acquiring IPv6 network boundary data packets, aggregating them to form a data stream, statistically analyzing the underlying state, extracting dual-end aggregation features, and using a pre-trained classifier to identify the probability of malicious scanning, a cross-protocol connection failure judgment standard is established to avoid dependence on specific tool fingerprints and time series.

Benefits of technology

It achieves high-precision detection of IPv6 distributed collaborative scanning, improves the robustness of network defense, reduces the false alarm rate, can cope with low-frequency covert detection of multi-protocol interleaving and massive source IPs, and has extremely strong anti-escape capability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184953A_ABST
    Figure CN123184953A_ABST
Patent Text Reader

Abstract

The disclosure provides a kind of IPv6 distributed collaborative scanning detection method based on double-end aggregation feature, comprising: obtaining all IPv6 data packets in preset time window at network boundary;According to network quintuple, all IPv6 data packets are aggregated to form multiple data streams;Statistical bottom state of each data stream, bottom state at least includes flow behavior state and connection state;According to the bottom state of all data streams, determine the double-end aggregation feature of each data stream;Based on the pre-trained classifier, the double-end aggregation feature of each data stream is identified, and the confidence probability that the data stream belongs to malicious scanning is output.The disclosure abandons the traditional single-source detection or deep packet inspection perspective, and instead identifies scanning intent through flow-level behavior characteristics and double-end aggregation features, improves the recognition effect of distributed collaborative scanning, and effectively ensures network security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of cyberspace security technology, and in particular to an IPv6 distributed collaborative scanning detection method, apparatus, storage medium, and electronic device based on dual-end aggregation features. Background Technology

[0002] With the global migration of network infrastructure to IPv6, malicious probing activities targeting the vast IPv6 address space have increased dramatically. Attackers have fully shifted to regionalized and structured scanning based on Target Generation Algorithms (TGAs). In real-world attack scenarios, IPv6 scanning attack sources are highly concentrated in distribution. Attackers often control large-granularity prefixes (such as / 48 or / 64) to orchestrate massive and constantly rotating source IP addresses, launching low-frequency distributed collaborative scans against target networks. This multi-source collaborative, low-frequency probing strategy greatly enhances the stealth of network reconnaissance attacks, posing a severe challenge to existing defense systems.

[0003] To address the aforementioned network scanning behavior, traditional Intrusion Detection Systems (IDS) and mainstream traffic detection schemes primarily rely on threshold statistics methods for individual source addresses or the extraction of single-stream behavioral characteristics (such as the PortScout model based on flow aggregation and FlowTransformer based on Transformer characteristics). However, when facing IPv6 distributed collaborative scanning performed by attackers using massive amounts of source addresses, attackers deliberately suppress the connection frequency of individual nodes, causing the detection intensity of each single source to be completely diluted to normal network traffic levels. This characteristic dilution phenomenon directly leads to traditional threshold detection methods based on a single-source perspective losing sensitivity or becoming completely ineffective, resulting in serious false negatives and failing to effectively cope with this type of distributed scanning attack driven by massive amounts of source addresses.

[0004] To counter the aforementioned distributed escape scanning, existing distributed cooperative scanning detection mechanisms (such as the ScanCorrelation method) attempt to extract group correlation features of traffic. However, these mechanisms often heavily rely on the inherent characteristics of the scanning tools. For example, some studies have proposed using methods such as Distributed Trend Analysis (DFA) to capture the correlation of traffic signals over time. The core premise of this approach is that if distributed network scanning uses the same scanning tool, the resulting scan traffic must exhibit specific temporal characteristics. However, this detection method based on scanning tool characteristics is still inherently limited by the constraints of signature fingerprint matching. In real adversarial environments, attackers can easily disrupt the correlation of traffic signals over time by simply randomizing the time characteristics of the probe packets they send, such as the interval and rate, or by deliberately mimicking the time distribution of normal business requests to normalize the traffic characteristics. This allows them to completely bypass the identification of such detection models.

[0005] To address this, this disclosure proposes an IPv6 distributed collaborative scanning detection method based on dual-end aggregation features to overcome the shortcomings of existing technologies. Summary of the Invention

[0006] The purpose of this disclosure is to provide an IPv6 distributed collaborative scanning detection method, apparatus, storage medium, and electronic device based on dual-end aggregation features, in order to solve the problems existing in the prior art.

[0007] The embodiments of this disclosure adopt the following technical solution: an IPv6 distributed collaborative scanning detection method based on dual-end aggregation features, comprising: acquiring all IPv6 data packets within a preset time window at the IPv6 network boundary; aggregating all the IPv6 data packets into multiple data streams according to the network quintuple; statistically analyzing the underlying state of each data stream, wherein the underlying state includes at least the stream behavior state and the connection state; determining the dual-end aggregation features of each data stream based on the underlying state of all the data streams; performing intent recognition on the dual-end aggregation features of each data stream based on a pre-trained classifier, and outputting the confidence probability that the data stream belongs to malicious scanning.

[0008] This disclosure also provides an IPv6 distributed collaborative scanning detection device based on dual-end aggregation features, comprising: a data acquisition module for acquiring all IPv6 data packets within a preset time window at the IPv6 network boundary; a data flow aggregation module for aggregating all the IPv6 data packets into multiple data flows based on the network quintuple; a state statistics module for statistically analyzing the underlying state of each data flow, wherein the underlying state includes at least flow behavior state and connection state; a feature extraction module for determining the dual-end aggregation features of each data flow based on the underlying states of all the data flows; and an intent recognition module for performing intent recognition on the dual-end aggregation features of each data flow based on a pre-trained classifier, and outputting the confidence probability that the data flow belongs to a malicious scan.

[0009] This disclosure also provides a storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described IPv6 distributed collaborative scanning detection method based on dual-end aggregation features.

[0010] This disclosure also provides an electronic device, including at least a memory and a processor. The memory stores a computer program, and the processor, when executing the computer program in the memory, implements the steps of the above-described IPv6 distributed cooperative scanning detection method based on dual-end aggregation features.

[0011] The beneficial effects of the embodiments disclosed herein are as follows: (1) This embodiment adopts fixed time window aggregation and highly abstract underlying flow behavior features. It does not deeply analyze the specific data packet payload, nor does it rely on a specific packet sending time interval sequence. This detection mechanism based on the macroscopic structural features of both ends makes it impossible for attackers to bypass the detection method of this embodiment, no matter how they modify the tool fingerprint, obfuscate the traffic content or randomize the packet sending rate. It gets rid of the dependence on specific scanning tool fingerprints and time sequences, has extremely strong anti-escape robustness, and greatly improves the robustness of the network defense system. (2) This embodiment establishes a unified judgment standard for cross-protocol connection failure, and highly abstracts the no response or abnormal handshake of TCP, UDP and ICMPv6 into a consistent failure behavior. This enables the system to perform accurate correlation analysis and intent capture when facing attackers who deliberately rotate or mix multiple network protocols for covert detection. It completely eliminates the protocol blind spots in traditional detection methods and can effectively cope with complex multi-protocol interleaved scanning.

[0012] (3) Based on the multi-dimensional dual-end aggregation feature, this embodiment effectively aggregates and amplifies the weak scanning signals scattered on the massive attack sources at the victim's destination when facing low-frequency covert probing initiated by attackers using massive source IPs alternately. This fundamentally prevents the problem of dilution of single source address features in distributed scanning. While significantly improving the recall rate of distributed collaborative scanning, it effectively filters out occasional benign connection failure noise in the network and significantly reduces the false alarm rate of the system. Attached Figure Description

[0013] To more clearly illustrate the technical solutions in one or more embodiments of this specification or in the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0014] Figure 1 This is a flowchart of the IPv6 distributed collaborative scanning detection method based on dual-end aggregation features in the first embodiment of this disclosure; Figure 2 This is a schematic diagram of the structure of the IPv6 distributed collaborative scanning and detection device based on dual-end aggregation features in the second embodiment of this disclosure. Detailed Implementation

[0015] To enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of this document.

[0016] To address the aforementioned problems in existing technologies, this disclosure primarily aims to resolve the issue in distributed collaborative scanning attacks where multi-source behavior severely dilutes features, rendering traditional single-source threshold detection completely ineffective. When facing low-frequency covert probing attacks initiated alternately by attackers using massive amounts of source IPs, existing single-flow or single-source perspective detection methods lose sensitivity and produce false negatives. Therefore, the primary technical problem this embodiment aims to solve is how to effectively overcome the bottleneck of single-source probe intensity dilution, break through the traditional mindset of focusing solely on source-end behavior, and effectively aggregate weak scanning signals scattered across massive attack sources within the victim's target network area. This fundamentally prevents the dilution of individual source address features in distributed scanning and accurately extracts high-confidence group scanning intent from noisy network background traffic.

[0017] Secondly, this embodiment needs to address the problem that existing distributed collaborative scanning detection mechanisms rely excessively on the inherent characteristics of specific scanning tools, making them highly susceptible to being bypassed by attackers. Existing collaborative detection methods often attempt to extract the time-series correlation of traffic (such as eliminating trend fluctuation analysis) or rely excessively on deep analysis of the content of specific traffic packet fields. However, such mechanisms are extremely vulnerable in real adversarial environments. Once an attacker simply randomizes the sending interval and packet rate of probe packets, or deliberately mimics normal business requests to normalize the attacker's fingerprint characteristics, they can easily destroy its time correlation and static fingerprint, thereby evading detection. Therefore, how to get rid of the dependence on the specific traffic packet field characteristics and packet sending frequency of scanning tools, extract a low-level behavioral feature that is not easily controlled by the attacker's subjective control, and provide a robust detection mechanism that is not limited by signature fingerprints or time-series matching is the second key technical problem that this embodiment aims to solve.

[0018] Finally, this embodiment also addresses the problem of existing technologies having a single detection dimension and weak generalization ability when facing scan traffic with intertwined multiple protocols and high levels of camouflage. To completely circumvent the dual escape methods of tool fingerprint normalization and single-source feature dilution, a comprehensive and highly abstract detection dimension is urgently needed. The first embodiment of this disclosure proposes an IPv6 distributed collaborative scanning detection method based on dual-end aggregation features. Without concern for the specific packet payload and underlying field details, it achieves high-precision and low-false-report online detection of highly concealed, multi-source collaborative IPv6 distributed scans by combining the macroscopic behavior of the source structure with the spatial aggregation effect of the destination.

[0019] Figure 1 The flowchart of the IPv6 distributed cooperative scanning detection method of this embodiment is shown. This method can be implemented on any system with data processing capabilities, and mainly includes steps S10 to S50: S10: Obtain all IPv6 packets within a preset time window at the IPv6 network boundary.

[0020] This embodiment can set up traffic mirroring at the protected IPv6 network boundary, or obtain complete IPv6 inbound and outbound traffic using bypass optical splitting. This allows for the acquisition of complete IPv6 inbound and outbound traffic without affecting normal service forwarding, thus providing a data foundation for subsequent flow aggregation and feature extraction. It should be noted that the IPv6 network boundary includes, but is not limited to, the location of border routers, SDN border routers, gateways, firewalls, etc., between the protected network and external networks. The specific IPv6 data packets can be selected based on the specific device type at the network boundary; this embodiment does not impose any restrictions.

[0021] Furthermore, to avoid dependence on the packet transmission time series or frequency of specific scanning tools, the system does not record the precise time interval of data packets (inter-packet delay), but instead uses a uniform fixed time window to process the intercepted data packets. The window width of the preset time window in this embodiment can be set according to the detection accuracy, computing resources, and network scale. For example, the window width can be from 500ms to 2000ms. This embodiment does not impose a specific window width limit.

[0022] By combining the preset time window setting, this embodiment avoids the detection process from relying too much on the attacker's packet sending time sequence, and subsequent processing does not require the time interval between data packets. Therefore, it is difficult for attackers to bypass the detection by simply changing the packet sending rhythm.

[0023] S20 aggregates all IPv6 packets into multiple data streams based on the network quintuple.

[0024] A network 5-tuple is a set of information used to uniquely identify a network connection or data stream, specifically including source IP, destination IP, source port, destination port, and transport layer protocol. In this embodiment, IPv6 packets with the same network 5-tuple are aggregated in chronological order to form a data stream. That is, packets with the same source IP, destination IP, source port, destination port, and transport layer protocol are grouped into a data stream according to their arrival order within a preset time window.

[0025] It is important to note that the data stream in this embodiment is not an application-layer session obtained through deep parsing of the packet payload, but rather a set of packets obtained by extracting flow-level features based on the network 5-tuple. In this case, the system does not need to parse the specific packet payload or reconstruct the application-layer protocol content, significantly reducing computational overhead. Furthermore, it will not fail due to attackers encrypting payloads, obfuscating content, or modifying application-layer fingerprints. Simultaneously, this embodiment aggregates discrete IPv6 packets into multiple data streams, converting massive amounts of packets into a relatively limited number of stream objects. This improves online processing efficiency while ensuring the integrity of the detection information, making it particularly suitable for large-scale traffic detection scenarios within the vast IPv6 address space.

[0026] S30, statistics on the underlying state of each data stream.

[0027] The underlying state in this embodiment refers to the most basic interaction results and connection behaviors of the data flow at the network and transport layers. Its core premise is that it completely abandons the parsing of the application layer payload and application layer fields of specific data packets. In actual implementation, the system does not care about the specific application layer content sent by the attacker, such as whether it is sending SSH brute-force passwords or whether it contains specific malicious HTTP requests. The system only focuses on the lowest-level interaction state of the network communication protocol, namely the flow behavior state and connection state.

[0028] Specifically, the flow behavior status of each data stream mainly includes the flow direction and the flow duration. The flow direction is mainly used to characterize whether the data stream is entering the protected network from the external network or being sent from the protected network to the external network. The flow duration can represent the time interval between the first and last data packets of the data stream. Based on the flow behavior status of each data stream, it can reflect the common behavioral characteristics of scanning traffic such as one-way, instantaneous, and short connection. Moreover, these characteristics do not depend on the static signature of a specific scanning tool, so they have good robustness.

[0029] The connection status of a data stream primarily reflects whether the connection corresponding to the data stream was successfully established, received a response, or failed. During data stream aggregation, to prevent attackers from escaping by interleaving different network protocols, this embodiment pre-defines a cross-protocol connection condition to determine whether a data stream is in a connection failure state, specifically including: (1) For the TCP protocol, data streams that have not completed the three-way handshake or have received an RST reset message are judged as connection failures. Specifically, TCP is a stateful protocol, and the system makes a judgment by directly reading the flags in the TCP header of the intercepted data packets. In the case of incomplete handshake, if the system only intercepts the probe packet with the SYN flag sent by the attacker within the current time window, but does not intercept the SYN-ACK response packet returned by the destination address, or there is no complete ACK confirmation afterward, it is judged as connection failure. If a data packet with the RST (Reset) flag returned by the destination IP is intercepted (indicating that the target host is alive but the port is closed and actively refuses the connection), it is also directly judged as failure. (2) For the UDP protocol, a data stream that has sent a UDP probe packet and has not received a reverse response packet within the current time window is judged as a connection failure; specifically, UDP is a stateless protocol, and the system does not look at the message content, but only makes a judgment based on the bidirectional matching of the five-tuple; for example, the system records a UDP stream initiated from the outside to the inside within the time window. Within the same time window, the system will reverse search its "mirror five-tuple" (i.e., the message with the source and destination IP / port swapped) in the mirror traffic. If no reverse matching UDP packet or ICMPv6 destination unreachable error message is intercepted until the end of the time window, it is judged that the UDP probe lacks a valid response and is recorded as a connection failure; (3) For the ICMPv6 protocol, a data stream that has sent an Echo Request packet and has not received an Echo Reply reply within the current time window is judged as a connection failure. For ICMPv6, the system makes a judgment by parsing the Type field of the ICMPv6 header. When the system intercepts an ICMPv6 packet sent from the outside and parses it as Type=128 (i.e., Echo Request packet), it will wait within the time window. If a matching Type=129 (i.e., Echo Reply reply packet) sent back by the destination IP is not intercepted before the end of the time window, the connection is judged as a failure.

[0030] In this embodiment, the setting of cross-protocol connection conditions eliminates the dependence on specific protocol semantics, so that even if an attacker uses multiple protocols in rotation, the system can still uniformly identify them as connection failure behavior, thereby performing correlation analysis and intent capture.

[0031] S40 determines the two-end aggregation characteristics of each data stream based on the underlying state of all data streams.

[0032] At the end of the preset time window, the system extracts the two-end aggregation features for each aggregated data stream, forming a corresponding two-end aggregation feature vector. Two-end aggregation features refer to the feature set obtained by aggregating the flow behavior from both the source and destination ends. In this embodiment, they mainly include flow behavior features, source end structural features, and destination end structural features.

[0033] Specifically, the flow behavior features include flow direction features (is_inbound) and flow duration features. The flow direction feature is used to indicate whether the data flow is actively initiated by an external network and is represented by 0 or 1. The flow duration feature is used to characterize the continuity of the data flow connection and is the time interval between the first and last data packets of the data flow. Both can be directly extracted based on the underlying state of the data flow in step S30.

[0034] The main structural characteristics of the source end include the number of single-source fan-outs (hist_src_flows) and the single-source failure rate (src_fail_ratio). The number of single-source fan-outs describes how many different destination ports the same source IP accesses within a preset time window, thus reflecting the breadth of the source end's probe. The single-source failure rate describes the ratio between the number of failed connection data flows initiated by the same source IP and its number of single-source fan-outs, thus reflecting the failure tendency of the source end's probe behavior. In actual calculation, within the current time window, the first number of different destination ports accessed by each source IP and the second number of failed connection data flows initiated by that source IP can be counted. The first number is taken as the number of single-source fan-outs for all data flows containing that source IP, and the first ratio of the second number to the first number is taken as the single-source failure rate for all data flows containing that source IP. At this point, the first number of different destination ports reflects the breadth of the source IP's probes within the window. If a source IP accesses a large number of different destination ports in a short period of time, its single-source fanout count will increase significantly, which is usually a manifestation of port scanning or service discovery behavior. The second number of connection failure data streams reflects the number of data streams initiated by the source IP that did not receive a valid response. The first ratio obtained by dividing the second number by the first number is used as the single-source failure rate, which can characterize the failure density of the source IP per unit fanout. Even if an attacker performs distributed scanning using a massive number of source IPs, reducing the number of probes by a single source IP, the single-source fanout count and single-source failure rate can still provide local behavioral evidence from the source side for subsequent classifiers.

[0035] The destination-side structural features mainly include destination-side probe density (dst_probe_density), destination failure rate (dst_fail_ratio), and / 112 destination prefix failure breadth feature (dst_fail_breadth_p112). Destination-side probe density describes how many different source IPs probe the same destination IP, thus reflecting whether the destination is subject to multi-source distributed collaborative scanning. Destination failure rate describes the ratio between the number of failed connections to the current destination IP and the total number of connections, thus reflecting the degree of clustering of connection failures at the destination. / 112 destination prefix failure breadth feature describes the number of deduplicated destination addresses probed and failed under the same / 112 destination prefix, thereby aggregating cross-source failure signals at the destination prefix level, realizing the aggregation and amplification of distributed scanning behavior from the destination.

[0036] Similar to the source-end structural characteristics, within the current time window, a third number of all source IPs probing each destination IP and a fourth number of time-varying data streams responding to the destination IP can be statistically analyzed. The corresponding third number is used as the destination-end probing density of all data streams containing that destination IP, while the second ratio of the fourth number to the third number is used as the destination failure rate of all data streams containing that destination IP. Here, the third number reflects how many different source IPs probe the destination IP within the time window. If this number is large, it indicates that the destination IP may be under multi-source distributed collaborative scanning. The destination failure rate represents the ratio between the number of connection failures in the data streams responded to by the destination IP and the total number of source IPs probing that destination IP. This ratio reflects the degree of aggregation of destination connection failure events. By using the destination-end probing density and the destination failure rate, this embodiment can detect multi-source collaborative behavior from the victim's perspective, rather than relying solely on the threshold judgment of a single source address. Therefore, it can effectively counter the escape methods of attackers who use a massive number of source addresses to dilute the intensity of single-source probing. Meanwhile, since the destination structure features are aggregated at the destination IP level, occasional benign connection failures usually do not occur simultaneously on multiple source IPs. Therefore, this feature can also help filter occasional noise in the network and reduce the false alarm rate.

[0037] Regarding the / 112 destination prefix failure breadth feature, the / 112 destination prefix refers to the set of IPv6 addresses where the first 112 bits are identical and the last 16 bits are variable. Failure breadth represents the number of deduplicated destination addresses probed and whose connections failed within the same / 112 destination prefix within the current time window. Its calculation method can be based on the following formula:

[0038] in, Indicates the breadth of failures. Represents any prefix of / 112 destination. Indicates the destination IP address. For the current time window, This represents a deduplication counter. This represents the number of unique destination addresses probed and failed to connect under a specific / 112 destination prefix within the current time window. This failure breadth is then used as the / 112 destination prefix failure breadth feature for all data flows belonging to the / 112 destination prefix. The formula above does not count the number of failures for a single destination IP, but rather how many different destination addresses under the same / 112 prefix experienced connection failures. Therefore, even if the attacker uses a large number of different / 48 prefixes, / 64 prefixes, or constantly rotating source IPs at the source end to dilute the probe traffic from each source, these distributed probe records will still aggregate into a high failure breadth value under the victim's / 112 destination prefix. In this situation, the attacker can disperse at the source end, but cannot change the fact that the victim sees a large number of destination addresses within the same / 112 prefix being probed and failing to connect at the destination end. Therefore, the / 112 destination prefix failure breadth feature can fundamentally solve the feature dilution problem caused by massive source addresses, re-aggregate and amplify weak failure signals across sources into high-confidence structured features. At the same time, due to the use of deduplication counting, occasional repeated failures or normal business retries will not cause the feature to be over-amplified, thereby improving the recall rate of distributed collaborative scanning while reducing the false positive rate.

[0039] S50 uses a pre-trained classifier to perform intent recognition on the two-end aggregated features of each data stream, and outputs the confidence probability that the data stream belongs to a malicious scan.

[0040] After obtaining the two-end aggregated features of each data stream, a pre-trained classifier is used to determine whether each data stream belongs to a malicious scan. In one specific implementation, the pre-trained classifier can be an XGBoost tree classification model. The XGBoost tree classification model outputs the confidence probability that a data stream belongs to a malicious scan through an additive model of multiple regression trees. Specifically, the two-end aggregated features of each data stream can be used to form a feature vector, which is then input into the pre-trained XGBoost tree classification model. Multiple regression trees make judgments on the feature vector and output scores. The scores of each regression tree are then added together, and the result is mapped to a probability value between 0 and 1 using the sigmoid function. The higher the probability value, the higher the confidence that the data stream belongs to a malicious scan. It should be noted that other classification models can also be used in this embodiment, including but not limited to LightGBM, CatBoost, random forest, and any other model that can achieve the corresponding function. This embodiment does not impose any restrictions. All of the above models can be pre-trained in a supervised manner, and this embodiment does not provide additional explanations for the training phase.

[0041] Furthermore, based on the confidence probability of the data stream output by the classifier... The system detects whether it exceeds a preset threshold. If the confidence probability of a data stream does not exceed a preset threshold, it indicates that the data stream is more likely to be normal traffic or a failed benign connection. The system determines the data stream as normal traffic and does not perform any additional processing. If the confidence probability of a data stream exceeds the preset threshold, it indicates that the data stream has a high probability of malicious scanning. The system then determines the stream as a malicious scanning stream and can perform alarm processing, such as outputting a scan event tuple containing information such as the source IP and destination IP of the data stream, providing accurate attack intelligence for subsequent security protection systems. The preset threshold in this embodiment... The settings can be adjusted according to the actual network environment, false alarm tolerance, and false negative tolerance. This embodiment does not impose specific limitations, such as setting a preset threshold. Setting the threshold to 0.9 results in a relatively high threshold, indicating that the system has a low tolerance for false alarms and a high tolerance for false negatives. If the preset threshold is... Setting it to 0.7 indicates that the system has a high tolerance for false alarms and a low tolerance for false negatives.

[0042] This embodiment employs fixed-time window aggregation and highly abstract underlying flow characteristics. It does not delve into the specific packet payload or rely on specific packet transmission time interval sequences. This detection mechanism, based on macroscopic structural features at both ends, ensures that attackers cannot bypass its detection method regardless of how they modify tool fingerprints, obfuscate traffic content, or randomize packet transmission rates. It eliminates dependence on specific scanning tool fingerprints and time sequences, exhibiting extremely strong anti-escape robustness and significantly enhancing the robustness of the network defense system. Secondly, this embodiment establishes a unified cross-protocol connection failure judgment standard, highly abstracting TCP, UDP, and ICMPv6's no-response or abnormal handshakes into consistent failure behaviors. This allows the system to perform accurate correlation analysis and intent capture even when attackers deliberately rotate or mix multiple network protocols for covert probing, completely eliminating protocol blind spots in traditional detection methods and effectively handling complex multi-protocol interleaved scans. Furthermore, this embodiment, based on multi-dimensional dual-end aggregation features, effectively aggregates and amplifies weak scanning signals scattered across a massive number of attack sources at the victim's destination when facing low-frequency covert probing attacks initiated alternately by attackers using a large number of source IPs. This fundamentally prevents the dilution of single source address features in distributed scanning, significantly improving the recall rate of distributed collaborative scanning while effectively filtering out occasional benign connection failure noise in the network, thus significantly reducing the false alarm rate of the system. Finally, this embodiment has extremely low system resource consumption and excellent online real-time detection capabilities. It uses bypass traffic mirroring and a unified short time window for flow aggregation, resulting in a simplified joint feature vector with low computational complexity. Furthermore, based on the advantages of a pre-trained classifier that does not require feature normalization and has constant-level (O(1)) inference time, the detection method of this embodiment can maintain extremely low processing latency when processing large-scale IPv6 network traffic, fully meeting the stringent requirements of the industry for online real-time network security detection, and providing high-quality attack intelligence in real time for subsequent network security protection and emergency response.

[0043] Based on the same inventive concept, the second embodiment of this disclosure provides an IPv6 distributed cooperative scanning and detection device based on dual-end aggregation features. This device can be configured in a system at the network boundary, and its structural schematic diagram is shown below. Figure 2 As shown, it mainly includes the following functional modules: Data acquisition module 10 is used to acquire all IPv6 data packets within a preset time window at the IPv6 network boundary; The data stream aggregation module 20 is used to aggregate all IPv6 packets into multiple data streams based on the network 5-tuple; The status statistics module 30 is used to count the underlying status of each data stream. The underlying status includes at least the stream behavior status and the connection status. The feature extraction module 40 is used to determine the two-end aggregated features of each data stream based on the underlying state of all data streams. The intent recognition module 50 is used to perform intent recognition on the two-end aggregated features of each data stream based on a pre-trained classifier, and outputs the confidence probability that the data stream belongs to malicious scanning.

[0044] It should be noted that the specific functions and implementation principles of each functional module in this embodiment have been described in detail in the first embodiment, and will not be repeated here.

[0045] This embodiment employs fixed-time window aggregation and highly abstract underlying flow characteristics. It does not delve into the specific packet payload or rely on specific packet transmission time interval sequences. This detection mechanism, based on macroscopic structural features at both ends, ensures that attackers cannot bypass its detection method regardless of how they modify tool fingerprints, obfuscate traffic content, or randomize packet transmission rates. It eliminates dependence on specific scanning tool fingerprints and time sequences, exhibiting extremely strong anti-escape robustness and significantly enhancing the robustness of the network defense system. Secondly, this embodiment establishes a unified cross-protocol connection failure judgment standard, highly abstracting TCP, UDP, and ICMPv6's no-response or abnormal handshakes into consistent failure behaviors. This allows the system to perform accurate correlation analysis and intent capture even when attackers deliberately rotate or mix multiple network protocols for covert probing, completely eliminating protocol blind spots in traditional detection methods and effectively handling complex multi-protocol interleaved scans. Furthermore, based on multi-dimensional dual-end aggregation features, this embodiment effectively aggregates and amplifies weak scanning signals scattered across a massive number of attack sources at the victim's destination when facing low-frequency covert probing attacks initiated alternately by attackers using a large number of source IPs. This fundamentally prevents the dilution of single source address features in distributed scanning, significantly improving the recall rate of distributed collaborative scanning while effectively filtering out occasional benign connection failure noise in the network, thus significantly reducing the false alarm rate of the system. Finally, this embodiment has extremely low system resource consumption and excellent online real-time detection capabilities. It uses bypass traffic mirroring and a unified short time window for flow aggregation, resulting in a simplified joint feature vector with low computational complexity. Furthermore, based on the advantages of a pre-trained classifier that does not require feature normalization and has constant-level (O(1)) inference time, the detection device in this embodiment can maintain extremely low processing latency when processing large-scale IPv6 network traffic, fully meeting the stringent requirements of the industry for online real-time network security detection, and providing high-quality attack intelligence in real time for subsequent network security protection and emergency response.

[0046] Based on the same inventive concept, the third embodiment of this disclosure provides a storage medium storing a computer program, which, when executed by a processor, implements the steps of the IPv6 distributed collaborative scanning detection method based on dual-end aggregation features described in the first embodiment of this disclosure.

[0047] Based on the same inventive concept, the fourth embodiment of this disclosure provides an electronic device, including at least a memory and a processor. The memory stores a computer program, and when the processor executes the computer program in the memory, it implements the steps of the IPv6 distributed cooperative scanning detection method based on dual-end aggregation features described in the first embodiment of this disclosure.

[0048] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this disclosure, and are not intended to limit them. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this disclosure.

Claims

1. A distributed collaborative scanning detection method for IPv6 based on dual-end aggregation features, characterized in that, include: Retrieve all IPv6 packets within a preset time window at the IPv6 network boundary; Based on the network quintuple, all the IPv6 packets are aggregated to form multiple data streams; The underlying state of each data stream is statistically analyzed, and the underlying state includes at least the stream behavior state and the connection state; Based on the underlying state of all the data streams, determine the two-end aggregation characteristics of each data stream; Based on a pre-trained classifier, the intent is identified by the aggregated features of both ends of each data stream, and the confidence probability that the data stream belongs to a malicious scan is output.

2. The IPv6 distributed cooperative scanning detection method according to claim 1, characterized in that, The process of aggregating all IPv6 packets into multiple data streams based on the network 5-tuple includes: IPv6 packets with the same network 5-tuple are aggregated in chronological order to form a data stream. The network 5-tuple includes: source IP, destination IP, source port, destination port, and transport layer protocol.

3. The IPv6 distributed cooperative scanning detection method according to claim 2, characterized in that, The underlying state of each data stream is statistically analyzed, including: The direction and duration of each data stream are determined as the flow behavior state; The system determines whether each data stream is in a connection failure state based on preset cross-protocol connection conditions, wherein the preset cross-protocol connection conditions include at least the following: For the TCP protocol, data streams that have not completed the three-way handshake or have received an RST reset message are considered as connection failures. For the UDP protocol, a data stream that has sent a UDP probe packet but has not received a reverse response packet within the current time window is considered a connection failure; For the ICMPv6 protocol, a data stream that has sent an Echo Request packet but has not received an Echo Reply within the current time window is considered a connection failure.

4. The IPv6 distributed cooperative scanning detection method according to claim 3, characterized in that, The two-end aggregation features include: flow behavior features, source-end structural features, and destination-end structural features; wherein... The flow behavior characteristics include: flow direction characteristics and flow duration characteristics; The source-end structural features include: single-source fanout quantity and single-source failure rate; The target end structural features include: target end detection density, target failure rate, and / 112 target prefix failure breadth feature.

5. The IPv6 distributed cooperative scanning detection method according to claim 4, characterized in that, The step of determining the two-end aggregation feature of each data stream based on the underlying state of all the data streams includes: The direction of each data stream is used as the flow direction feature of the data stream, and the duration of each data stream is used as the duration feature of the data stream. Within the current time window, count the first number of different destination ports accessed by each source IP and the second number of connection failure data streams initiated by the source IP. Use the first number as the single-source fan-out number of all data streams with the source IP, and use the first ratio of the second number to the first number as the single-source failure rate of all data streams with the source IP. Within the current time window, the third number of all source IPs for each destination IP and the fourth number of connection time-varying data streams responded by the destination IP are counted. The third number is used as the destination probe density of all data streams with the destination IP, and the second ratio of the fourth number to the third number is used as the destination failure rate of all data streams with the destination IP. Within the current time window, the failure breadth of each / 112 destination prefix is ​​calculated based on the following formula, and the failure breadth is used as the / 112 destination prefix failure breadth characteristic for all data flows whose destination IP belongs to the / 112 destination prefix: in, Indicates the breadth of failures. Represents any prefix of / 112 destination. Indicates the destination IP address. For the current time window, This represents a deduplication counter.

6. The IPv6 distributed cooperative scanning detection method according to claim 1, characterized in that, The pre-trained classifier is an XGBoost tree classification model, which outputs the confidence probability that the data stream belongs to malicious scanning through an additive model of multiple regression trees.

7. The IPv6 distributed cooperative scanning detection method according to claim 5, characterized in that, After the pre-trained classifier performs intent recognition on the two-end aggregated features of each data stream and outputs the confidence probability that the data stream belongs to malicious scanning, it also includes: Detect whether the confidence probability of the data stream exceeds a preset threshold; If the confidence probability of the data stream does not exceed a preset threshold, the data stream is determined to be normal traffic. If the confidence probability of the data stream exceeds a preset threshold, the data stream is determined to be malicious scanning traffic and an alarm is issued.

8. An IPv6 distributed cooperative scanning and detection device based on dual-end aggregation features, characterized in that, include: The data acquisition module is used to acquire all IPv6 packets within a preset time window at the IPv6 network boundary; The data stream aggregation module is used to aggregate all the IPv6 packets into multiple data streams based on the network 5-tuple; The status statistics module is used to count the underlying status of each data stream, and the underlying status includes at least the stream behavior status and the connection status. The feature extraction module is used to determine the two-end aggregation features of each data stream based on the underlying state of all the data streams. The intent recognition module is used to perform intent recognition on the two-end aggregated features of each data stream based on a pre-trained classifier, and output the confidence probability that the data stream belongs to malicious scanning.

9. A storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the IPv6 distributed cooperative scanning detection method based on dual-end aggregation features as described in any one of claims 1 to 7.

10. An electronic device, comprising at least a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program on the memory, it implements the steps of the IPv6 distributed cooperative scanning detection method based on dual-end aggregation features as described in any one of claims 1 to 7.