4G and 5G small base station protection device and working method thereof
By adding multiple modules to the security gateway for in-depth analysis and filtering identification, restricting the use of certificates and controlling traffic, the security problem of data returned by non-dedicated line networks of 4G or 5G small base stations is solved, preventing attackers from attacking the core through existing IPsec tunnels. eliminate network threats and achieve the security and stability of data transmission.
Patent Information
- Application Number
- CN202410848883.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-03
AI Technical Summary
The data returned by 4G or 5G small base stations through non-dedicated line networks is less secure and can easily be tampered with or stolen by attackers. Attackers can also conduct detection attacks, DDOS attacks or steal digital certificates through existing IPsec security tunnels and use them to Attack the core network.
Add a security tunnel management module, IPsec tunnel negotiation module, certificate access control module, signaling DPI flow control module and data DPI flow control module to the security gateway to identify signaling and data packets through in-depth analysis and filtering, and limit the use of certificates. Discard packets that do not comply with specifications and logic, control traffic, and prevent attacks.
It effectively prevents small base stations from being used by attackers to conduct detection attacks, DDOS attacks and certificate theft on devices behind the security gateway through existing IPsec tunnels, ensuring the security of data transmission and the stability of the core network.
Smart Images

Figure CN118590886A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of 4G / 5G communication technology, and in particular to a 4G and 5G small base station protection device and a working method thereof. Background Art
[0002] Since the 4G or small base stations that fill blind spots usually do not have physical dedicated lines for backhauling to the core network, and the cost of building new physical dedicated lines is too high, 4G or 5G small base stations often choose to backhaul through non-dedicated networks (such as the Internet). Non-dedicated networks have poor security, and the backhauled data may be stolen or tampered with in non-dedicated networks. In order to solve the security problem of backhauling of small base stations that fill blind spots, a security gateway is usually deployed at the boundary of the non-dedicated network (such as the Internet) and the dedicated network. The small base station and the security gateway establish an IPsec encrypted tunnel. All backhauled data is encrypted with IPsec and transmitted to the security gateway. After the data reaches the security gateway, it is decrypted and transmitted to the core network. The overall solution is as follows: Figure 1 shown.
[0003] The traditional security gateway IPsec encrypted backhaul solution can solve the problem of data being tampered with or stolen when it is transmitted on an insecure network (Internet). In addition, the security gateway controls network access through ACL rules and shields the access of network packets decrypted through the tunnel to unauthorized networks. The traditional security gateway encrypted backhaul solution can solve the problem of secure transmission of base station backhaul data on the Internet and ensure that the returned data does not access unauthorized networks. It provides a relatively secure base station data backhaul solution, but it still has the following disadvantages:
[0004] 1) Attackers can break into small base stations at the source and tamper with the data transmitted through the IPsec tunnel into attack packets. Small base stations are often deployed in non-physically isolated computer rooms, so attackers can directly access small base stations. Attackers have the opportunity to invade the small base station system and inject attack packets into the existing IPsec security tunnel of the small base station. Since the IPsec tunnel also encrypts the attack packets, the firewall cannot identify and filter them out. After these packets pass through the security tunnel, they will pose a threat to network devices behind the security gateway (such as 4G core network / 5G core network);
[0005] 2) After the attacker breaks into the small base station, he can also inject legitimate 4G / 5G backhaul data into the IPsec tunnel. For example, he can obtain the backhaul data of the small base station, copy it in batches, and then inject it into the IPsec tunnel. This can cause a DDOS attack on the network equipment behind the security gateway (such as the 4G core network / 5G core network);
[0006] 3) After the attacker breaks into the small base station, he can also copy the digital certificate of the IPsec tunnel of the small base station to other attacking devices, so that other devices can use this stolen certificate to establish an IPsec tunnel with the security gateway, thereby attacking the core network behind the security gateway. Summary of the invention
[0007] In view of the technical problems raised by the background technology, the present invention proposes a 4G and 5G small base station protection device and a working method thereof, aiming to solve the following problems:
[0008] 1. Prevent attackers from conducting detection attacks on devices behind the security gateway through the existing IPsec security tunnel after the small base station is breached;
[0009] 2. Prevent attackers from launching DDOS attacks on devices behind the security gateway through the existing IPsec security tunnel after the small base station is breached;
[0010] 3. Prevent attackers from stealing IPsec digital certificates from small base stations and then using the stolen digital certificates to access the security gateway on illegal devices.
[0011] In a first aspect, the present application provides a 4G and 5G small base station protection device, including a security gateway, in which a security tunnel management module, an IPsec tunnel negotiation module and an IPsec tunnel data transmission module are provided, and a certificate access control module, a signaling DPI flow control module and a data DPI flow control module are additionally provided in the security gateway;
[0012] The certificate access control module is used to manage the mapping relationship between the established certificates and tunnels. Only one tunnel is allowed to be created with the same certificate.
[0013] The signaling DPI flow control module is used to perform in-depth analysis and identification of 4G and 5G signaling packets decrypted by the IPsec tunnel data transmission module.
[0014] The data DPI flow control module is used to perform in-depth analysis and identification of 4G and 5G data packets transmitted through the IPsec tunnel.
[0015] Preferably, the signaling DPI flow control module specifically identifies and parses signaling packets that are discarded that do not comply with protocol specifications, signaling packets that comply with protocol specifications but do not comply with business logic, and signaling packets that meet the first two conditions but have a flow rate exceeding an upper limit.
[0016] On the second aspect, the present application provides a working method of a 4G and 5G small base station protection device, including: the data DPI flow control module specifically analyzes and identifies, including discarding data packets that do not comply with user-side data protocol specifications, discarding data packets that comply with protocol specifications but do not comply with business logic, and discarding data packets that meet the first two conditions but whose traffic exceeds the upper limit.
[0017] The IPSEC secure tunnel negotiation process is that the base station sends an IKE tunnel negotiation request to the security gateway. After the IPSEC tunnel negotiation module passes the negotiation, it checks the certificate occupancy status of the certificate to the certificate access control module. The certificate access control module returns the certificate occupancy result. The IPSEC tunnel negotiation module sends a response to the base station based on the certificate occupancy result. If the certificate is occupied, the negotiation fails and the security incident is reported to the network management; if the certificate is not occupied, the negotiation is successful.
[0018] The workflow of signaling packet DPI flow control filtering is that the base station sends encrypted 4G / 5G signaling packets to the security gateway through the Ipsec encrypted tunnel. First, the Ipsec tunnel data transmission module decrypts the signaling packet and sends it to the signaling DPI flow control module; then the signaling DPI flow control module performs a protocol check on the signaling packet. If the signaling packet does not comply with the protocol specifications of 4G and 5G signaling, it is directly discarded; the signaling DPI flow control module performs a business logic check on the signaling packet. If it does not comply with the business logic, such as the session to which the signaling packet belongs does not exist, it is directly discarded; finally, the signaling DPI flow control module performs flow control on the signaling packet. If the signaling packet traffic of the channel exceeds the upper limit, it is directly discarded; the signaling DPI flow control module forwards the filtered and safe signaling packet to the core network.
[0019] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0020] 1) Prevent the attacker from conducting detection attacks on the devices behind the security gateway through the existing IPsec security tunnel after the small base station is breached;
[0021] 2) Prevent attackers from launching DDOS attacks on devices behind the security gateway through the existing IPsec security tunnel after the small base station is breached;
[0022] 3) Prevent attackers from stealing IPsec digital certificates from small base stations and then using the stolen digital certificates to access the security gateway on illegal devices.
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0024] Figure 1 It is a schematic diagram of the architecture provided by the background technology of this application;
[0025] Figure 2 It is an overall architecture diagram provided by the embodiment of the present application;
[0026] Figure 3 It is a module diagram of a security gateway provided in an embodiment of the present application;
[0027] Figure 4 It is a flowchart of IPSEC secure tunnel negotiation provided by an embodiment of the present application;
[0028] Figure 5 This is a flow chart of DPI flow control filtering of signaling packets provided in an embodiment of the present application;
[0029] Figure 6 This is a data packet DPI flow control filtering flow chart provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0031] Example 1
[0032] This embodiment provides a 4G and 5G small base station protection device, which is set in a security gateway, such as Figure 3 As shown,
[0033] 1) Security tunnel management module: provides configuration management of IPsec security tunnels, including configuration of tunnel certificates and IP parameters, and addition, deletion, modification and query of tunnel configuration data;
[0034] 2) IPsec tunnel negotiation module: provides IKE tunnel negotiation services, authenticates the legitimacy of the peer device certificate through tunnel negotiation, negotiates the tunnel's security context, encryption and decryption algorithms, integrity check algorithms, keys and other information;
[0035] 3) IPsec tunnel data transmission module, which provides IPsec tunnel data transmission function, maps the data packets encrypted and transmitted by the peer base station to the corresponding tunnel security context, decrypts the data through the negotiated key and forwards it to the signaling DPI flow control module or the data DPI flow control module; maps the data packets received by the local end to the corresponding tunnel context, encrypts them and transmits them to the peer base station;
[0036] 4) Certificate access control module: manages the mapping relationship between the established certificates and tunnels. Only one tunnel is allowed to be created with the same certificate.
[0037] 5) The signaling DPI flow control module performs in-depth analysis and identification of the 4G and 5G signaling packets decrypted by the IPsec tunnel data transmission module. This module not only identifies 4G and 5G communication signaling, but also understands the 4G / 5G business logic and performs the following filtering on the signaling packets:
[0038] (1) If the signaling packet does not comply with the protocol specifications of 4G and 5G signaling, it is directly discarded;
[0039] (2) The signaling packet complies with the protocol specifications of 4G and 5G signaling, but does not comply with the service logic. If the session specified by the signaling packet does not exist, it is directly discarded;
[0040] (3) If the signaling packet meets the above two conditions, but the signaling packet flow of the channel exceeds the upper limit, it will be discarded directly.
[0041] 6) The data DPI flow control module performs in-depth analysis and identification of 4G and 5G data packets transmitted through the IPsec tunnel. This module not only identifies 4G and 5G data packets, but also understands the 4G / 5G service logic and performs the following filtering on the data packets:
[0042] (1) If the data packet does not comply with the protocol specifications for 4G and 5G user plane data, it is directly discarded;
[0043] (2) The data packet complies with the protocol specifications of 4G and 5G user plane data, but does not comply with the service logic. If the session to which the data packet belongs does not exist, it is directly discarded;
[0044] (3) If the data packet meets the above two conditions, but the data packet flow of the channel exceeds the upper limit, it will be discarded directly.
[0045] Among them, three modules are added to the security gateway, namely, the certificate access control module, the signaling DPI flow control module and the data DPI flow control module;
[0046] 1. The certificate access control module strictly controls that one certificate can only establish one IPsec tunnel. If the same certificate is used to establish an IPsec tunnel repeatedly, a security incident will be generated and reported to the maintenance personnel. The maintenance personnel will determine whether the certificate has been stolen and decide whether to abandon the certificate.
[0047] 2. The signaling DPI flow control module performs in-depth analysis and identification of 4G and 5G signaling packets transmitted through the IPsec tunnel. This module not only identifies 4G and 5G communication signaling, but also understands 4G / 5G business logic and performs the following filtering on signaling packets:
[0048] If the signaling packet does not comply with the protocol specifications of 4G and 5G signaling, it will be discarded directly;
[0049] The signaling packet complies with the protocol specifications of 4G and 5G signaling, but does not comply with the business logic. If the session specified by the signaling packet does not exist, it is directly discarded;
[0050] If the signaling packet meets the above two conditions, but the signaling packet flow of the channel exceeds the upper limit, it will be discarded directly.
[0051] 3. The data DPI flow control module performs in-depth analysis and identification of 4G and 5G data packets transmitted through the IPsec tunnel. This module not only identifies 4G and 5G data packets, but also understands the 4G / 5G service logic and performs the following filtering on the data packets:
[0052] If the data packet does not comply with the protocol specifications for 4G and 5G user plane data, it is discarded directly;
[0053] The data packet complies with the protocol specifications of 4G and 5G user plane data, but does not comply with the service logic. If the session to which the data packet belongs does not exist, it is directly discarded;
[0054] If the data packet meets the above two conditions, but the data packet flow of the channel exceeds the upper limit, it will be discarded directly.
[0055] This embodiment also provides a working method of a 4G and 5G small base station protection device, specifically including the following steps: Figure 4-6 As shown, 1) the IPSEC secure tunnel negotiation process is:
[0056] (1) The base station sends an IKE tunnel negotiation request to the security gateway;
[0057] (2) The IPSEC tunnel negotiation module, after the negotiation is successful, checks the certificate access control module to see if the certificate is in use;
[0058] (3) The certificate access control module returns the certificate occupation result;
[0059] (4) The IPSEC tunnel negotiation module sends a response to the base station based on the certificate occupation result. If the certificate has been occupied, the negotiation fails and the security incident is reported to the network management; if the certificate has not been occupied, the negotiation succeeds.
[0060] 2) Signaling packet DPI flow control filtering
[0061] (1) The base station sends encrypted 4G / 5G signaling packets to the security gateway through the IPsec encrypted tunnel;
[0062] (2) The IPsec tunnel data transmission module decrypts the signaling packet and sends it to the signaling DPI flow control module;
[0063] (3) The signaling DPI flow control module performs protocol checks on signaling packets. If the signaling packets do not comply with the protocol specifications of 4G and 5G signaling, they are directly discarded.
[0064] (4) The signaling DPI flow control module performs a business logic check on the signaling packet. If it does not conform to the business logic, such as if the session to which the signaling packet belongs does not exist, it is directly discarded;
[0065] (5) The signaling DPI flow control module performs flow control on the signaling packets. If the signaling packet flow of the channel exceeds the upper limit, it will be directly discarded;
[0066] (6) The signaling DPI flow control module forwards the filtered and secure signaling packets to the core network.
[0067] 3) Packet DPI flow control filtering
[0068] (1) The base station sends encrypted 4G / 5G data packets to the security gateway through the IPsec encrypted tunnel;
[0069] (2) The IPsec tunnel data transmission module decrypts the data packet and sends it to the data DPI flow control module;
[0070] (3) The data DPI flow control module performs protocol checks on data packets. If the data packets do not comply with the protocol specifications for 4G and 5G user plane data, they are directly discarded.
[0071] (4) The data DPI flow control module performs a business logic check on the data packet. If it does not conform to the business logic, such as if the session to which the data packet belongs does not exist, it is directly discarded;
[0072] (5) The data DPI flow control module performs flow control on the data packets. If the data packet flow on the channel exceeds the upper limit, it will be directly discarded;
[0073] (6) The data DPI flow control module forwards the filtered and safe data packets to the core network.
[0074] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0075] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such 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 application, and should all be included in the protection scope of the present application.
Claims
1. A 4G and 5G small base station protection device, comprising a security gateway, in which a security tunnel management module, an IPsec tunnel negotiation module and an IPsec tunnel data transmission module are arranged, characterized in that: A certificate access control module, a signaling DPI flow control module and a data DPI flow control module are additionally provided in the security gateway; The certificate access control module is used to manage the mapping relationship between the established certificates and tunnels, and only one tunnel is allowed to be created with the same certificate; The signaling DPI flow control module is used to perform deep analysis and identification on the 4G and 5G signaling packets decrypted by the IPsec tunnel data transmission module. The data DPI flow control module is used to perform deep analysis and identification on 4G and 5G data packets transmitted through the IPsec tunnel.
2. A 4G and 5G small base station protection device according to claim 1, characterized in that: The signaling DPI flow control module specifically identifies and parses the signaling packets that do not comply with the protocol specifications, the signaling packets that comply with the protocol specifications but do not comply with the business logic, and the signaling packets that meet the first two conditions but have a flow rate exceeding the upper limit.
3. According to claim 1, a working method of a 4G and 5G small base station protection device is characterized in that: The data DPI flow control module specifically analyzes and identifies packets that do not conform to the user plane data protocol specifications, Discard packets that comply with protocol specifications but do not comply with business logic, and discard packets that comply with the first two conditions but whose traffic exceeds the upper limit.
4. The working method of a 4G and 5G small base station protection device according to claim 1 is characterized in that: The IPSEC secure tunnel negotiation process is that the base station sends an IKE tunnel negotiation request to the security gateway. After the IPSEC tunnel negotiation module passes the negotiation, it checks the certificate occupancy status to the certificate access control module. The certificate access control module returns the certificate occupancy result. The IPSEC tunnel negotiation module sends a response to the base station based on the certificate occupancy result. If the certificate is already occupied, the negotiation fails and the security incident is reported to the network management. If the certificate is not in use, the negotiation is successful.
5. According to claim 1, a working method of a 4G and 5G small base station protection device is characterized in that: The workflow of signaling packet DPI flow control filtering is that the base station sends encrypted 4G / 5G signaling packets to the security gateway through the IPsec encrypted tunnel. First, the IPsec tunnel data transmission module decrypts the signaling packet and sends it to the signaling DPI flow control module; the signaling DPI flow control module performs a protocol check on the signaling packet. If the signaling packet does not comply with the protocol specifications of 4G and 5G signaling, it is directly discarded; then, the signaling DPI flow control module performs a business logic check on the signaling packet. If it does not comply with the business logic, such as the session to which the signaling packet belongs does not exist, it is directly discarded; finally, the signaling DPI flow control module performs flow control on the signaling packet. If the signaling packet traffic of the channel exceeds the upper limit, it is directly discarded; The signaling DPI flow control module forwards the filtered and secure signaling packets to the core network.
