A flow traction method, device, electronic device and storage medium
Through virtual private network equipment and routing policies, the communication tunnels between application servers and cloud hosts are utilized to achieve strict control and network isolation of attack traffic, solving the problem of insufficient compliance and isolation capabilities of attack traffic in the existing technology, and improving the The controllability and traceability of cyber offensive and defense exercises are achieved.
Patent Information
- Application Number
- CN202210215863.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-07
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-03-07
AI Technical Summary
The existing network offensive and defense exercise platforms cannot effectively ensure the compliance of the attacking party's traffic, especially when concurrent multiple exercise application scenarios, and cannot achieve strict control and network isolation of attack traffic.
Through virtual private network devices, attack traffic is determined based on the source address information of the target traffic, and routing policies are used to introduce it into the routing container of the application server, and strictly control and traction through the communication tunnel between the application server and the cloud host, ultimately achieving the target host Cyber Attack.
The network isolation of different attack teams and exercise scenarios is realized, the controllability and traceability of offensive and defensive exercises are improved, and the controllability and traceability of network security is ensured.
Smart Images

Figure CN114785540B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a traffic traction method, device, electronic device and storage medium. Background Art
[0002] Conventional network attack and defense exercise platforms can only divide the attacker's traffic into different VLANs based on the simple VLAN (Virtual Local Area Network) strategy configured on the switch, that is, isolate through VLAN to achieve the purpose of traffic control. However, conventional network attack and defense exercise platforms cannot guarantee the compliance of the attacker's traffic, which severely limits the attacker's network access methods and even seems powerless in concurrent multiple exercise application scenarios. Summary of the invention
[0003] The purpose of the present invention is to provide a traffic traction method, device, electronic device and storage medium to solve the problem in the prior art that the network attack and defense exercise platform cannot ensure the compliance of the attacker's traffic. The traffic traction technology based on routing strategy of the present application can realize network isolation of different attack teams and different exercises, and at the same time strictly control and traction of attack traffic.
[0004] The present invention provides a flow traction method, comprising:
[0005] The virtual private network device determines, based on the source address information of the received target traffic, that the target traffic is traffic initiated by the attacking host, and draws the target traffic to the routing container of the application server;
[0006] The routing container of the application server draws the target traffic to the tunnel container of the application server corresponding to the set to which the attacking host that initiates the target traffic belongs based on a preset first routing rule;
[0007] The tunnel container of the application server draws the target traffic to the cloud host based on the communication tunnel between the application server and the cloud host;
[0008] The cloud host sends the target traffic to the target host based on a preset second routing rule to implement a network attack on the target host.
[0009] According to the traffic traction method provided by the present invention, before the virtual private network device determines that the target traffic is traffic initiated by the attacking host according to the source address information of the received target traffic, the method further includes:
[0010] On the virtual private network device, according to a preset address allocation rule and the set to which the logged-in attack host belongs, address information is allocated to the logged-in attack host; wherein the address allocation rule allocates corresponding address segments to different attack host sets, and allocates different addresses within the same address segment to different attack hosts in the same set;
[0011] The logged-in attack host initiates target traffic; wherein the source address information of the target traffic is the address information allocated to the logged-in attack host.
[0012] According to the traffic traction method provided by the present invention, before the routing container of the application server tractions the target traffic to the tunnel container of the application server corresponding to the set to which the attacking host that initiates the target traffic belongs based on the preset first routing rule, the method further includes:
[0013] Create a corresponding tunnel container for the set attack host set in the application server;
[0014] A first routing rule is set in a routing container of the application server, where the first routing rule is used to describe a correspondence between source address information of target traffic and address information of the tunnel container.
[0015] According to the traffic traction method provided by the present invention, before the tunnel container of the application server tractions the target traffic to the cloud host based on the communication tunnel between the application server and the cloud host, the method further includes:
[0016] Establishing a password-free login channel between the tunnel container of the application server and the cloud host;
[0017] A tun virtual network card is established in the tunnel container according to the password-free login channel, and a corresponding tun virtual machine network card is established in the cloud host to obtain a communication tunnel between the tunnel container of the application server and the cloud host.
[0018] According to the traffic traction method provided by the present invention, before the cloud host sends the target traffic to the target host based on the preset second routing rule, the method further includes:
[0019] A second routing rule is set in the cloud host, where the second routing rule is used to describe the correspondence between the source address information of the target traffic and the address information of the target host.
[0020] According to the traffic traction method provided by the present invention, after the cloud host sends the target traffic to the target host based on the preset second routing rule to implement a network attack on the target host, the method further includes:
[0021] After the target host is compromised, a connection is established between the target host and the bounce-back virtual host, and data information of the target host is transmitted back to the bounce-back virtual host.
[0022] The present invention also provides a flow traction device, comprising:
[0023] The target traffic is introduced into the routing container module, which is used for the virtual private network device to determine that the target traffic is the traffic initiated by the attacking host according to the source address information of the received target traffic, and to draw the target traffic to the routing container of the application server;
[0024] A target traffic introduction tunnel container module is used for the routing container of the application server to pull the target traffic to the tunnel container of the application server corresponding to the set to which the attack host that initiates the target traffic belongs based on a preset first routing rule;
[0025] The target traffic is introduced into the cloud host module, and the tunnel container of the application server is used to pull the target traffic to the cloud host based on the communication tunnel between the application server and the cloud host;
[0026] The target traffic attack module is used for the cloud host to send the target traffic to the target host based on a preset second routing rule to implement a network attack on the target host.
[0027] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any step of the traffic traction method when executing the program.
[0028] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program implements any step of the traffic traction method when executed by a processor.
[0029] The present invention also provides a computer program product, which includes computer executable instructions, and the instructions are used to implement the steps of any one of the traffic traction methods when executed.
[0030] The present invention provides a traffic traction method, device, electronic device and storage medium, which determines that the target traffic is traffic initiated by an attacking host according to the source address information of the received target traffic through a virtual private network device, and tractions the target traffic to the routing container of an application server; the routing container of the application server tractions the target traffic to the tunnel container of the application server corresponding to the set to which the attacking host that initiates the target traffic belongs based on a pre-set first routing rule; the tunnel container of the application server tractions the target traffic to the cloud host based on the communication tunnel between the application server and the cloud host; the cloud host sends the target traffic to the target host based on a pre-set second routing rule, so as to realize a network attack on the target host. The present invention is based on the design of routing strategies, realizes network isolation of different attack teams and different exercises, and at the same time strictly controls and tractions the attack traffic, ensures that the network security of the attack and defense exercise is more controllable, and effectively improves the traceability and traceability of the exercise process. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 It is a flow chart of the flow traction method provided by the present invention;
[0033] Figure 2 is a schematic diagram of the routing rules provided by the present invention;
[0034] Figure 3 It is a structural schematic diagram of the flow traction device provided by the present invention;
[0035] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] Combine the following Figure 1-Figure 4 The flow traction method, device, electronic device and storage medium of the present invention are described.
[0038] Figure 1 A flow chart of the flow traction method provided by the present invention, such as Figure 1 As shown, the flow traction method provided by the present invention includes:
[0039] Step 110: The virtual private network device determines that the target traffic is traffic initiated by the attacking host according to the source address information of the received target traffic, and draws the target traffic to the routing container of the application server;
[0040] In this embodiment, the virtual private network device is also called a VPN device, which is used to establish a private network on a public network for encrypted communication. The source address is used to identify the sender of the data, including the source IP address or other types of addresses, where the IP address (Internet Protocol Address) refers to the Internet Protocol address, also translated as the Internet Protocol address. The routing container is also called the route container. The route container can be understood as a container or a mechanism for managing a group of routes. That is to say, the route only maps the URL and the function, and after receiving a URL, it searches the routing mapping table for the corresponding function. This process is handled by the route container. In this embodiment, the target traffic is the traffic initiated by the attacking host, and the traffic initiated by non-attack hosts is not considered to be the target traffic.
[0041] In this embodiment, when the attacker launches a network attack, the attack traffic is initiated by the attacker's host, and the attack traffic is diverted to the VPN device, i.e., the virtual private network device, of the network attack and defense exercise platform according to the routing policy of the attack host. The VPN policy of the virtual private network device will determine whether the traffic comes from the attacker based on the source IP, i.e., the source address information of the received traffic and the source IP, i.e., the source address information of the attacker's host pre-stored in the virtual private network device. If the traffic comes from the attacker's host, the traffic is the attack traffic, i.e., the target traffic, and the target traffic is pulled to the network port corresponding to the application server; if the received traffic is not the attacker's traffic, it is discarded to ensure the security and controllability of the attack traffic in the network attack and defense exercise. After the attack traffic enters the application server, the traffic from the attacker will be pulled to the route container, i.e., the routing container, according to the built-in routing policy.
[0042] Step 120: The routing container of the application server draws the target traffic to the tunnel container of the application server corresponding to the set to which the attacking host that initiates the target traffic belongs based on a preset first routing rule;
[0043] Continuing with the above embodiment, in this embodiment, the application server refers to a program that exposes business logic to the client through various protocols. Routing refers to the network-wide process of determining the end-to-end path when a packet goes from a source to a destination. The set to which the attack host belongs refers to a corresponding exercise in multiple parallel attack and defense exercises on the network attack and defense exercise platform. The tunnel container is a tunnel container, where tunnel is a tunnel protocol, which is used to carry a payload of an incompatible delivery network or provide a secure path through an untrusted network; the container is a set of interfaces between components and the platform in the application server.
[0044] Continuing with the above embodiment, in this embodiment, the routing container of the application server is pre-set with a first routing rule, and different routes in the first routing rule correspond to a tunnel container of an exercise, i.e., a tunnel container. Based on the first routing rule, the target traffic is matched with the corresponding route rule, and if it matches, the corresponding target traffic is forwarded to the tunnel container of the corresponding exercise, i.e., the tunnel container of the application server corresponding to the set to which the attacking host of the target traffic belongs, and if the match fails, the corresponding target traffic is discarded.
[0045] Step 130: The tunnel container of the application server draws the target traffic to the cloud host based on the communication tunnel between the application server and the cloud host;
[0046] Continuing with the above embodiment, in this embodiment, the communication tunnel includes an SSH tunnel, wherein SSH (Secure Shell) is a security protocol established on the basis of the application layer and the transport layer. The cloud host is a virtual cloud host in the cloud.
[0047] Continuing with the above embodiment, in this embodiment, a tunnel based on the SSH protocol is established between the tunnel container of the application server and the virtual cloud host in the cloud, and the target traffic is pulled to the cloud host through the SSH tunnel.
[0048] Step 140: The cloud host sends the target traffic to the target host based on a preset second routing rule to implement a network attack on the target host.
[0049] Continuing with the above embodiment, in this embodiment, the cloud host includes a cloud proxy IP host, wherein the proxy IP refers to the intranet IP + public cloud host; when the scenario is that the target host is in the intranet, the intranet IP is used; when the scenario is that the target host is in the public network, the public cloud host is used. In addition, the proxy IP module manages these two types of IPs in a mixed manner.
[0050] Continuing with the above embodiment, in this embodiment, the cloud host as a cloud proxy IP host has a pre-set second routing rule guide, and directly forwards the target traffic to the target host to achieve the attack purpose.
[0051] The present invention provides a traffic traction method, which determines that the target traffic is traffic initiated by an attacking host according to the source address information of the received target traffic through a virtual private network device, and tractions the target traffic to a routing container of an application server; the routing container of the application server tractions the target traffic to a tunnel container of an application server corresponding to a set to which the attacking host that initiates the target traffic belongs based on a pre-set first routing rule; the tunnel container of the application server tractions the target traffic to the cloud host based on a communication tunnel with a cloud host; the cloud host sends the target traffic to the target host based on a pre-set second routing rule, so as to realize a network attack on the target host. The present invention is based on the design of routing strategies, and by strictly controlling and traction of attack traffic, it ensures that the network security of attack and defense exercises is more controllable, and effectively improves the traceability and traceability of the exercise process.
[0052] Based on any of the above embodiments, in this embodiment, according to the traffic traction method provided by the present invention, before the virtual private network device determines that the target traffic is traffic initiated by the attacking host according to the source address information of the received target traffic, the method further includes:
[0053] On the virtual private network device, according to a preset address allocation rule and the set to which the logged-in attack host belongs, address information is allocated to the logged-in attack host; wherein the address allocation rule allocates corresponding address segments to different attack host sets, and allocates different addresses within the same address segment to different attack hosts in the same set;
[0054] The logged-in attack host initiates target traffic; wherein the source address information of the target traffic is the address information allocated to the logged-in attack host.
[0055] In this embodiment, the virtual private network device includes an SSL VPN device, wherein SSL VPN refers to a new VPN technology that uses the SSL protocol to implement remote access, including server authentication, client authentication, data integrity on the SSL link, and data confidentiality on the SSL link. Different attack host sets refer to network attack and defense exercises in different fields and in parallel. Different attack hosts in the same set refer to corresponding attack hosts assigned to different attack teams in the same network attack and defense exercise. Therefore, the address allocation rule is specifically illustrated as follows: before implementing the attack, the network attack and defense exercise and the attack team are network-divided, the corresponding NC grouping information is added to the SSL VPN, and the corresponding attack team is added to the corresponding team NC group of the corresponding network attack and defense exercise. Among them, one network attack and defense exercise is divided into one B-segment private IP address (for example: 172.16.0.0 / 16-172.31.0.0 / 16), and a maximum of 16 network attack and defense exercises are supported in parallel. One attack team corresponds to one C-segment private IP address (for example: 172.16.1.0 / 24-172.16.252.0 / 24), and a maximum of 252 attack teams are supported.
[0056] In this embodiment, during the process of creating users in the network attack and defense exercise, the virtual private network device allocates a separate B-segment private network IP address for different network attack and defense exercises according to the preset address allocation rules, and allocates a C-segment private network IP address for different attack teams in the same network attack and defense exercise. The user, i.e., the attack team, logs in to the corresponding attack host based on the allocated corresponding virtual IP address, and the logged-in attack host initiates the target traffic, and the source address information of the target traffic is the corresponding virtual IP address allocated by the logged-in attack host.
[0057] The present invention provides a traffic traction method, which allocates address information to a logged-in attack host on a virtual private network device according to a preset address allocation rule and the set to which the logged-in attack host belongs, and the logged-in attack host initiates target traffic, thereby achieving network isolation of different attack teams and different network attack exercises, ensuring that the network security of attack and defense exercises is more controllable, and effectively improving the traceability and traceability of the exercise process.
[0058] Based on any of the above embodiments, in this embodiment, according to the traffic traction method provided by the present invention, before the routing container of the application server tractions the target traffic to the tunnel container of the application server corresponding to the set to which the attacking host that initiates the target traffic belongs based on the preset first routing rule, the method further includes:
[0059] Create a corresponding tunnel container for the set attack host set in the application server;
[0060] A first routing rule is set in a routing container of the application server, where the first routing rule is used to describe a correspondence between source address information of target traffic and address information of the tunnel container.
[0061] In this embodiment, the first routing rule refers to that the routing container uses iptables under Linux to maintain a set of rule routing tables based on the network exercise grouping (for example: 172.16.0.0 / 16-172.31.0.0 / 16) in the network attack and defense exercise, and different routes correspond to tunnel containers, i.e., tunnel containers, of a network attack and defense exercise. A routing table is an electronic spreadsheet (file) or a database-like object stored in a router or a networked computer, which stores the path to a specific network address, and in some cases, also records the routing metric value of the path.
[0062] In this embodiment, combined with Figure 2 The schematic diagram of the routing rules shown in the figure is used to specifically explain the first routing rule as follows: the routing container receives the target traffic with the source IP address of 172.16.0.0 / 16, and according to Figure 2 The rule rules in the built-in iptables shown in the figure match the target traffic with source IP address 172.16.0.0 / 16 to the corresponding routing table name g01_attacker, where the rule rules contain the corresponding rule ID, source IP address or network segment and the corresponding forwarding routing table name. Then, according to the routing table rules in the routing table g01_attacker, the target traffic is matched to the corresponding destination IP, and then forwarded from the outbound interface to the next-hop IP, where the routing table rules include the corresponding destination IP, next-hop IP (i.e., the inbound interface IP corresponding to the tunnel container) and the outbound interface. At this point, the target traffic is pulled by the policy of the first routing rule of the route container and forwarded to the corresponding tunnel container.
[0063] The present invention provides a traffic traction method, which clarifies the specific control and traction process performed in the process of forwarding target traffic to a tunnel container through the routing container by further disclosing the first routing rule set in the routing container in the application server, thereby ensuring that the network security of the attack and defense exercise is more controllable and effectively improving the traceability and traceability of the exercise process.
[0064] Based on any of the above embodiments, in this embodiment, according to the traffic traction method provided by the present invention, before the tunnel container of the application server tractions the target traffic to the cloud host based on the communication tunnel between the application server and the cloud host, the method further includes:
[0065] Establishing a password-free login channel between the tunnel container of the application server and the cloud host;
[0066] A tun virtual network card is established in the tunnel container according to the password-free login channel, and a corresponding tun virtual machine network card is established in the cloud host to obtain a communication tunnel between the tunnel container of the application server and the cloud host.
[0067] In this embodiment, a channel for secret-free login is established between the tunnel container of the application server and the cloud host, that is, a set of mutual access methods for secret-free login is configured. The specific implementation process includes: using a method called "public-private key" authentication to perform SSH login. First, create a pair of public-private key pairs on the client, including the public key file ~ / .ssh / id_rsa.pub and the private key file ~ / .ssh / id_rsa. Then store the public key information in the ~ / .ssh / authorized_keys file on the server, and the client keeps the private key. When logging in through SSH, the SSH program will send the private key to match the public key on the server. If the match is successful, log in. Among them, SSH (Secure Shell) is a security protocol based on the application layer and the transport layer.
[0068] Obtaining a communication tunnel between the tunnel container of the application server and the cloud host includes building a tunnel based on the SSH protocol between the tunnel container, i.e., the tunnel container and the cloud host. The specific implementation process includes: in the above embodiment, an SSH channel without secret login is built between the tunnel container and the cloud host, and a tun virtual network card is established in the tunnel by using the SSH channel, and a corresponding tun virtual machine network card is established in the cloud host to achieve target traffic with the source IP of the attacker communicating with the cloud host, and then setting the traffic forwarding iptables routing policy with the source IP of the attacker on the cloud host through SSH remote command execution.
[0069] The present invention provides a traffic traction method, which clarifies the specific control and traction process in the process of forwarding target traffic to the cloud host by further disclosing the implementation path of the communication tunnel between the tunnel container of the application server and the cloud host, ensures that the network security of the attack and defense exercise is more controllable, and effectively improves the traceability and traceability of the exercise process.
[0070] Based on any of the above embodiments, in this embodiment, according to the traffic traction method provided by the present invention, before the cloud host sends the target traffic to the target host based on the preset second routing rule, the method further includes:
[0071] A second routing rule is set in the cloud host, where the second routing rule is used to describe the correspondence between the source address information of the target traffic and the address information of the target host.
[0072] In this embodiment, the second routing rule can be implemented specifically through iptables routing forwarding rules, wherein iptables constitutes a packet filtering firewall under the Linux platform. The specific implementation process includes: the cloud host adds iptables routing forwarding rules, based on the iptables routing forwarding rules, when the cloud host receives the target traffic from the tun virtual network card and the target IP is a public network IP address, the default routing rule is matched to forward the traffic from the physical network card; if the traffic is received from the physical network card and the destination IP address is the IP address of the tun virtual network card's peer network card, the static routing policy is matched to forward the traffic from the tun virtual network card, and the forwarding function of the attack bidirectional traffic is realized through one-in and one-out.
[0073] When the target traffic of the tun virtual network card in the tunnel container matches the iptables routing forwarding rules, the target traffic will be pulled to the physical network card of the cloud host, and then directed to the target host, launching a real network attack on the target host.
[0074] The present invention provides a traffic traction method, which clarifies the specific control and traction process performed in the process of sending target traffic to the target host by further disclosing the second routing rule set in the cloud host, ensures that the network security of attack and defense exercises is more controllable, and effectively improves the traceability and traceability of the exercise process.
[0075] Based on any of the above embodiments, in this embodiment, according to the traffic traction method provided by the present invention, after the cloud host sends the target traffic to the target host based on the preset second routing rule to implement a network attack on the target host, the method further includes:
[0076] After the target host is compromised, a connection is established between the target host and the bounce-back virtual host, and data information of the target host is transmitted back to the bounce-back virtual host.
[0077] In this embodiment, the bounce back virtual host is used to receive some data / files in the target host that are transmitted back after the attacker successfully obtains the target host authority through penetration attack.
[0078] In this embodiment, after the target host is compromised, the firewall will configure the DNAT strategy between the virtual machine IP address within the private network and the Internet IP through the remotely implanted proxy software, and send the data information of the target host to the bounce-back virtual host within the network attack and defense exercise platform.
[0079] The present invention provides a traffic traction method, which further discloses the use of rebound connection to a virtual host for data return, clarifies the specific process of data information return from a target host, ensures that the network security of attack and defense exercises is more controllable, and effectively improves the traceability and traceability of the exercise process.
[0080] The flow traction device provided by the present invention is described below. The flow traction device described below and the flow traction method described above can be referenced to each other.
[0081] Figure 3 The structural diagram of the flow traction device provided by the present invention is as follows: Figure 3 As shown, the flow traction device provided by the present invention includes:
[0082] The target traffic is introduced into the routing container module 310, which is used for the virtual private network device to determine that the target traffic is the traffic initiated by the attacking host according to the source address information of the received target traffic, and to draw the target traffic to the routing container of the application server;
[0083] The target traffic is introduced into the tunnel container module 320, which is used for the routing container of the application server to pull the target traffic to the tunnel container of the application server corresponding to the set to which the attack host that initiates the target traffic belongs based on the preset first routing rule;
[0084] The target traffic is introduced into the cloud host module 330, and the tunnel container of the application server is used to pull the target traffic to the cloud host based on the communication tunnel between the application server and the cloud host;
[0085] The target traffic attack module 340 is used for the cloud host to send the target traffic to the target host based on a preset second routing rule to implement a network attack on the target host.
[0086] The present invention provides a traffic traction device, which strictly controls and tractions the attack traffic by setting a target traffic introduction routing container module, a target traffic introduction tunnel container module, a target traffic introduction cloud host module and a target traffic attack module, thereby ensuring that the network security of attack and defense exercises is more controllable and effectively improving the traceability and traceability of the exercise process.
[0087] Based on any of the above embodiments, in this embodiment, according to the flow traction device provided by the present invention, the device further includes:
[0088] An address allocation module is used to allocate address information to the logged-in attack host on the virtual private network device according to a preset address allocation rule and the set to which the logged-in attack host belongs; wherein the address allocation rule allocates corresponding address segments to different attack host sets, and allocates different addresses within the same address segment to different attack hosts in the same set;
[0089] The target traffic initiating module is used for the logged-in attack host to initiate the target traffic; wherein the source address information of the target traffic is the address information allocated to the logged-in attack host.
[0090] The present invention provides a traffic traction device, which realizes network isolation of different attack teams and different network attack exercises by setting an address allocation module and a target traffic initiation module, ensures that the network security of the attack and defense exercises is more controllable, and effectively improves the traceability and traceability of the exercise process.
[0091] Based on any of the above embodiments, in this embodiment, according to the flow traction device provided by the present invention, the target flow introduction tunnel container module 320 further includes:
[0092] A tunnel container unit, used to establish a corresponding tunnel container for a set attack host set in the application server;
[0093] The first routing rule unit is used to set a first routing rule in a routing container of the application server, wherein the first routing rule is used to describe the correspondence between the source address information of the target traffic and the address information of the tunnel container.
[0094] The present invention provides a traffic traction device, which clarifies the specific control and traction process performed in the process of forwarding the target traffic to the tunnel container through the routing container by further disclosing the tunnel container unit and the first routing rule unit included in the target traffic introduction tunnel container module, thereby ensuring that the network security of the attack and defense exercise is more controllable and effectively improving the traceability and traceability of the exercise process.
[0095] Based on any of the above embodiments, in this embodiment, according to the traffic traction device provided by the present invention, the target traffic is introduced into the cloud host module 330 further including:
[0096] A password-free channel unit, used to establish a password-free login channel between the tunnel container of the application server and the cloud host;
[0097] The communication tunnel unit is used to establish a tun virtual network card in the tunnel container according to the password-free login channel, establish a corresponding tun virtual machine network card in the cloud host, and obtain a communication tunnel between the tunnel container of the application server and the cloud host.
[0098] The present invention provides a traffic traction device, which clarifies the specific control and traction process in the process of forwarding the target traffic to the cloud host by further disclosing the non-confidential channel unit and the communication tunnel unit included in the module for introducing the target traffic into the cloud host, thereby ensuring that the network security of the attack and defense exercise is more controllable and effectively improving the traceability and traceability of the exercise process.
[0099] Based on any of the above embodiments, in this embodiment, according to the traffic traction device provided by the present invention, the target traffic attack module 340 further includes:
[0100] The second routing rule unit is used to set a second routing rule in the cloud host, where the second routing rule is used to describe the correspondence between the source address information of the target traffic and the address information of the target host.
[0101] The present invention provides a traffic traction device, which clarifies the specific control and traction process performed in the process of sending the target traffic to the target host by further disclosing the second routing rule unit included in the target traffic attack module, thereby ensuring that the network security of the attack and defense exercise is more controllable and effectively improving the traceability and traceability of the exercise process.
[0102] Based on any of the above embodiments, in this embodiment, according to the flow traction device provided by the present invention, the device further includes:
[0103] The bounce-back virtual host module is used to establish a connection between the target host and the bounce-back virtual host after the target host is compromised, and to transmit data information of the target host back to the bounce-back virtual host.
[0104] The present invention provides a flow traction device, which clarifies the specific process of data information return of the target host by setting a rebound back connection virtual host module, ensures that the network security of the attack and defense exercise is more controllable, and effectively improves the traceability and traceability of the exercise process.
[0105] In another aspect, the present invention further provides an electronic device, Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include a processor 410, a communication bus 440, a memory 430, a communication interface 420, and a computer program stored in the memory 430 and executable on the processor 410, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 440, and the processor 410 may call the logic instructions in the memory 430 to execute the traffic traction method, which includes:
[0106] The virtual private network device determines, based on the source address information of the received target traffic, that the target traffic is traffic initiated by the attacking host, and draws the target traffic to the routing container of the application server;
[0107] The routing container of the application server draws the target traffic to the tunnel container of the application server corresponding to the set to which the attacking host that initiates the target traffic belongs based on a preset first routing rule;
[0108] The tunnel container of the application server draws the target traffic to the cloud host based on the communication tunnel between the application server and the cloud host;
[0109] The cloud host sends the target traffic to the target host based on a preset second routing rule to implement a network attack on the target host.
[0110] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, a traffic traction method can be implemented. The method includes:
[0111] The virtual private network device determines, based on the source address information of the received target traffic, that the target traffic is traffic initiated by the attacking host, and draws the target traffic to the routing container of the application server;
[0112] The routing container of the application server draws the target traffic to the tunnel container of the application server corresponding to the set to which the attacking host that initiates the target traffic belongs based on a preset first routing rule;
[0113] The tunnel container of the application server draws the target traffic to the cloud host based on the communication tunnel between the application server and the cloud host;
[0114] The cloud host sends the target traffic to the target host based on a preset second routing rule to implement a network attack on the target host.
[0115] Finally, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the computer can implement a traffic traction method, the method comprising:
[0116] The virtual private network device determines, based on the source address information of the received target traffic, that the target traffic is traffic initiated by the attacking host, and draws the target traffic to the routing container of the application server;
[0117] The routing container of the application server draws the target traffic to the tunnel container of the application server corresponding to the set to which the attacking host that initiates the target traffic belongs based on a preset first routing rule;
[0118] The tunnel container of the application server draws the target traffic to the cloud host based on the communication tunnel between the application server and the cloud host;
[0119] The cloud host sends the target traffic to the target host based on a preset second routing rule to implement a network attack on the target host.
[0120] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0122] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A flow traction method, characterized in that: include: The virtual private network device determines, based on the source address information of the received target traffic, that the target traffic is traffic initiated by the attacking host, and draws the target traffic to the routing container of the application server; The routing container of the application server draws the target traffic to the tunnel container of the application server corresponding to the set to which the attacking host that initiates the target traffic belongs based on a preset first routing rule; The tunnel container of the application server draws the target traffic to the cloud host based on the communication tunnel between the application server and the cloud host; The cloud host sends the target traffic to the target host based on a preset second routing rule to implement a network attack on the target host.
2. The flow traction method according to claim 1, characterized in that: Before the virtual private network device determines, according to the source address information of the received target traffic, that the target traffic is traffic initiated by the attacking host, the method further includes: On the virtual private network device, according to a preset address allocation rule and the set to which the logged-in attack host belongs, address information is allocated to the logged-in attack host; wherein the address allocation rule allocates corresponding address segments to different attack host sets, and allocates different addresses within the same address segment to different attack hosts in the same set; The logged-in attack host initiates target traffic; wherein the source address information of the target traffic is the address information allocated to the logged-in attack host.
3. The flow traction method according to claim 1, characterized in that: Before the routing container of the application server draws the target traffic to the tunnel container of the application server corresponding to the set to which the attacking host that initiates the target traffic belongs based on the preset first routing rule, the method further includes: Create a corresponding tunnel container for the set attack host set in the application server; A first routing rule is set in a routing container of the application server, where the first routing rule is used to describe a correspondence between source address information of target traffic and address information of the tunnel container.
4. The flow traction method according to claim 1, characterized in that: Before the tunnel container of the application server draws the target traffic to the cloud host based on the communication tunnel between the application server and the cloud host, the method further includes: Establishing a password-free login channel between the tunnel container of the application server and the cloud host; A tun virtual network card is established in the tunnel container according to the password-free login channel, and a corresponding tun virtual machine network card is established in the cloud host to obtain a communication tunnel between the tunnel container of the application server and the cloud host.
5. The flow traction method according to claim 1, characterized in that: Before the cloud host sends the target traffic to the target host based on the preset second routing rule, the method further includes: A second routing rule is set in the cloud host, where the second routing rule is used to describe the correspondence between the source address information of the target traffic and the address information of the target host.
6. The flow traction method according to any one of claims 1 to 5, characterized in that: After the cloud host sends the target traffic to the target host based on the preset second routing rule to implement a network attack on the target host, the method further includes: After the target host is compromised, a connection is established between the target host and the bounce-back virtual host, and data information of the target host is transmitted back to the bounce-back virtual host.
7. A flow traction device, characterized in that: include: The target traffic is introduced into the routing container module, which is used for the virtual private network device to determine that the target traffic is the traffic initiated by the attacking host according to the source address information of the received target traffic, and to draw the target traffic to the routing container of the application server; A target traffic introduction tunnel container module is used for the routing container of the application server to pull the target traffic to the tunnel container of the application server corresponding to the set to which the attack host that initiates the target traffic belongs based on a preset first routing rule; The target traffic is introduced into the cloud host module, and the tunnel container of the application server is used to pull the target traffic to the cloud host based on the communication tunnel between the application server and the cloud host; The target traffic attack module is used for the cloud host to send the target traffic to the target host based on a preset second routing rule to implement a network attack on the target host.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the traffic traction method according to any one of claims 1 to 6 are implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the traffic traction method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising computer executable instructions, characterized in that: When the instruction is executed, it is used to implement the steps of the traffic traction method according to any one of claims 1 to 6.
