Data processing method and related equipment

By using untampered terminal identity identifiers in mobile networks and data networks for traceability and disposal, the security risks of malicious terminal devices attacking data networks in mobile networks are solved, precise identification and processing of attack sources are achieved, and the network is improved Security.

CN118921178APending Publication Date: 2024-11-08HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310505384.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-06
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The integration of mobile networks and data networks has introduced new security risks. Malicious terminal devices are connected to mobile networks through legal user identity identification modules, and cannot be accurately traced and disposed of by data networks, especially in case of IP addresses imitation or dynamic IP addresses, resulting in It is difficult to accurately trace and deal with attack sources.

Method used

By recording terminal identity identification of terminal devices in gateways and authentication servers, including International Mobile Subscriber Identification Code (IMSI), Mobile Subscriber Number (MSISDN) and International Mobile Device Identification Code (IMEI), these identifications are not easily tampered with and counterfeit. It analyzes and records the access behavior of terminal devices, and adds terminal identity to the log to achieve accurate traceability and disposal of attack sources.

Benefits of technology

It realizes accurate traceability and effective disposal of malicious terminal devices, improves the security of the data network, avoids the difficulty of identifying attack sources due to insubstantiable IP addresses, and enhances the security of mobile networks and data networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921178A_ABST
    Figure CN118921178A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method so as to realize accurate source tracing of an attack source. The method comprises the following steps that: a gateway receives an application access request from terminal equipment and records a log according to the application access request; wherein the log comprises a terminal identity label of the terminal equipment. The terminal identity identifier uniquely indicates one terminal device. The log is used for analyzing the access behavior of the terminal equipment and determining the terminal identity of the terminal equipment when the access behavior of the terminal equipment is abnormal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data processing method and related equipment. Background Art

[0002] With the development and evolution of mobile networks, mobile networks have been deeply integrated with more and more industries with their characteristics of greater bandwidth, lower latency, and greater connection density, promoting the networking, intelligent and digital development of various industries. For example, users can use mobile terminal devices to remotely access services in data networks (such as enterprise networks, government networks, and campus networks) anytime and anywhere through mobile networks. For example, IoT terminal devices can transmit collected data to application servers in data networks through mobile networks.

[0003] Data networks store sensitive business secrets and user data, and have higher security and confidentiality requirements. However, the integration of mobile networks and data networks will introduce new security risks, such as malicious terminal devices abusing legitimate subscriber identity module (SIM) card access, malicious terminals illegally accessing customer premises equipment (CPE), etc. Since the data network cannot perceive and identify the access behavior of malicious terminals in the mobile network, malicious terminal devices may access and attack the data network by accessing the mobile network, endangering the security of the data network.

[0004] When security detection equipment in a data network detects an attack on a terminal device, it can only trace the source to the Internet Protocol (IP) address of the malicious terminal device. In some cases, such as when there is IP address spoofing or a dynamic IP address, it is impossible to accurately trace and handle the attack source based on the IP address. Summary of the invention

[0005] The present application provides a processing method and related equipment to solve the problem of being unable to accurately trace and deal with the attack source.

[0006] The first aspect provides a data processing method. The method includes: a gateway receives an application access request from a terminal device. The gateway records a log according to the application access request, and the log includes a terminal identity of the terminal device. The terminal identity can uniquely identify the identity of a terminal device and has the characteristics of being difficult to be tampered with and counterfeited. It should be noted that the terminal identity is different from the IP address. The terminal identity is also different from the media access control (MAC) address. The log is used to analyze the access behavior of the terminal device and to determine the terminal identity of the terminal device when the access behavior of the terminal device is abnormal. The gateway adds the terminal identity to the log corresponding to the terminal device accessing the data network, and the terminal identity can accurately identify the terminal device, so that the terminal device with abnormal access behavior and the terminal identity of the terminal device with abnormal access behavior can be analyzed according to the log, thereby realizing the accurate tracing of the terminal device with abnormal access behavior.

[0007] In one possible implementation, the gateway records logs according to the application access request, including: the gateway obtains the source IP address in the application access request. Then the gateway obtains the terminal identity of the terminal device according to the source IP address and the correspondence between the IP address of the terminal device and the terminal identity. When the gateway records the log corresponding to the application access request, the terminal identity is added to the log. Therefore, when the access behavior of the terminal device is subsequently analyzed based on the log, not only can it be determined whether the access behavior of the terminal device is abnormal based on the log, but also the terminal identity of the terminal device can be obtained because the log includes the terminal identity. Therefore, the terminal identity of the terminal device with abnormal access behavior can be obtained, and the accurate tracing of the attack source can be achieved.

[0008] After determining the terminal device with abnormal access behavior and its terminal identity, the terminal device can be accurately and effectively handled based on the terminal identity.

[0009] In a possible implementation, the gateway disposes of the terminal device according to the terminal identity of the terminal device with abnormal access behavior. Therefore, the method also includes: the gateway receives a notification message, the notification message includes a terminal identity, and the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior; the gateway obtains the IP address of the terminal device according to the terminal identity and the correspondence between the terminal identity and the IP address; the gateway blocks the application access request whose source IP address is the IP address of the terminal device. Therefore, after receiving the terminal identity of the abnormal terminal device (the abbreviation of the terminal device with abnormal access behavior), the gateway obtains the IP address of the abnormal terminal device according to the correspondence between the IP address and the terminal identity, so that when the access traffic from the abnormal terminal device is subsequently received, the traffic is blocked based on the IP address. For example, the gateway can discard the traffic whose source IP address is the IP address of the abnormal terminal device. Thereby preventing the attack behavior of the abnormal terminal device and improving the security of the data network.

[0010] In a possible implementation, before the gateway receives the application access request of the terminal device, it includes: the gateway receives the terminal information of the terminal device sent by the authentication server, the terminal information includes the correspondence between the IP address of the terminal device and the terminal identity, and the terminal information is sent by the authentication server after the terminal device is authenticated. Thus, the gateway can obtain the terminal identity of the terminal device according to the correspondence between the IP address of the terminal device and the terminal identity, and then when recording the log, the terminal identity can be added to the log, so that the source can be traced back to the terminal identity of the terminal device when tracing the source based on the log later.

[0011] In a possible implementation, the terminal identity includes the user's identity, and the user's identity includes information of a SIM card installed in the terminal device. The SIM card information includes at least one of an international mobile subscriber identity (IMSI) and a mobile subscriber ISDN number (MSISDN); and / or the terminal identity includes the device's identity, and the device's identity includes the international mobile equipment identity (IMEI) of the terminal device. IMSI, MSISDN, and IMEI are not easily tampered with or counterfeited, have high security and reliability, and can uniquely identify a terminal device. Therefore, the corresponding terminal device can be accurately traced based on IMSI / MSISDN / IMEI.

[0012] The second aspect provides a data processing method. The method includes: an authentication server receives an authentication request from an authentication device in a mobile network, the authentication request carries the identity information of the terminal device, and the authentication information includes a terminal identity identifier of the terminal device. The terminal identity identifier can uniquely identify the identity of a terminal device and has the characteristics of being difficult to be tampered with and counterfeited. It should be noted that the terminal identity identifier is not an IP address. The terminal identity identifier is not a MAC address either. After the authentication server authenticates the terminal device according to the authentication information, it sends the correspondence between the terminal identity identifier of the terminal device and the Internet Protocol IP address of the terminal device to the gateway in the data network. Thus, the gateway can add the terminal identity identifier to the log generated based on the application access request from the terminal device according to the corresponding relationship. When the terminal access behavior is subsequently analyzed based on the log, accurate traceability can be achieved based on the terminal identity identifier in the log.

[0013] After obtaining the terminal identity of the abnormal terminal device, the authentication server can link the devices in the gateway / mobile network to deal with the abnormal terminal device, thereby blocking the attack of the abnormal terminal device and improving the security of the data network. The authentication server can obtain the terminal identity of the abnormal terminal device through a log analysis device (the log analysis device analyzes the log to obtain the abnormal terminal device and its terminal identity). The authentication server can also obtain the terminal identity of the abnormal terminal device through configuration or issuing instructions by the management personnel (the abnormal terminal device and its terminal identity are obtained by manually analyzing the log).

[0014] For example, the terminal device is connected to the authentication server through a mobile network, and the authentication server links the devices in the mobile network to handle the abnormal terminal device. The device that handles the abnormal terminal device in the mobile network is, for example, a unified data management (UDM) or a session management function (SMF), or a home subscriber server (HSS) or a packet data network gateway (PGW), etc. Specifically, the method also includes: the authentication server receives a notification message, the notification message includes a terminal identity of the terminal device, the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior, and the terminal identity in the notification message is obtained by analyzing the log; the authentication server sends the terminal identity of the terminal device to the device in the mobile network. The device that receives the terminal identity of the terminal device sent by the authentication server in the mobile network is, for example, a network exposure function (NEF). By linking the mobile network to handle the abnormal terminal device, the security of the data network can be guaranteed, and the security of the mobile network can be improved.

[0015] For example, the authentication server links with the gateway to handle abnormal terminal devices. Specifically, the method also includes: the authentication server receives a notification message, the notification message includes a terminal identity of the terminal device, the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior, and the terminal identity in the notification message is obtained by analyzing the log; the authentication server sends the terminal identity of the terminal device to the gateway.

[0016] For example, the authentication server links with the gateway to handle abnormal terminal devices. Specifically, the method also includes: the authentication server receives a notification message, the notification message includes a terminal identity of the terminal device, the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior, and the terminal identity in the notification message is obtained based on the analysis of the log; the authentication server changes the connection state of the abnormal terminal device from online to offline according to the terminal identity in the notification message; the authentication server sends the changed connection state of the terminal device to the gateway, so that the gateway disconnects from the terminal device.

[0017] In a possible implementation, the IP address of the terminal device is assigned to the terminal device by the authentication server after the terminal device is authenticated. Thus, the data network can grasp the IP address of the terminal device, and the management of the terminal device is more flexible.

[0018] In one possible implementation, the terminal identity includes the user's identity, the user's identity includes information of a user identity module SIM card installed in the terminal device, the SIM card information includes at least one of IMSI and MSISDN; and / or the terminal identity includes the device's identity, the device's identity includes the IMEI of the terminal device.

[0019] The third aspect provides a data processing method. The method includes: a log analysis device obtains a log, the log is generated by the gateway according to an application access request from a terminal device, and the log includes a terminal identity of the terminal device; the log analysis device analyzes the log to determine the terminal device with abnormal access behavior and the terminal identity of the terminal device with abnormal access behavior. Since the log includes the terminal identity, the terminal identity in the log can indicate which terminal device issued the application access request based on which the log was generated. Thus, the log analysis device analyzes the log, can determine whether the access behavior of the terminal device is abnormal based on the log, and can also obtain the terminal identity based on the log. For abnormal terminal devices with abnormal access behavior, accurate tracing and disposal can be achieved based on the terminal identity.

[0020] There are many ways for the log analysis device to obtain logs. For example, the logs can be sent to the log analysis device by the gateway. Alternatively, the log analysis device reads the logs from the gateway. Alternatively, the gateway stores the logs in a storage server, and the log analysis device reads the logs from the storage server.

[0021] After the log analysis device analyzes the log to obtain the terminal identity of the abnormal terminal device, it can link the authentication server / gateway / device in the mobile network to deal with the abnormal terminal device, thereby blocking the attack of the abnormal terminal device and improving the security of the data network.

[0022] In a possible implementation, the log analysis device links with the authentication server to handle abnormal terminal devices. Specifically, the method also includes: the log analysis device sends a notification message to the authentication server, the notification message carries the terminal identity, and the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior. Thus, the authentication server can handle the abnormal terminal device according to the terminal identity of the abnormal terminal device. For example, the authentication server takes the terminal offline according to the terminal identity. Alternatively, the authentication server sends the terminal identity of the abnormal terminal to the device in the mobile network, so that the device in the mobile network handles the abnormal terminal device. Alternatively, the authentication server sends the terminal identity of the abnormal terminal to the gateway, instructing the gateway to take the abnormal terminal device offline, etc.

[0023] In a possible implementation, the log analysis device links with the gateway to handle abnormal terminal devices. Specifically, the terminal device is connected to the gateway via a mobile network, and the method further includes: the log analysis device sends a notification message to a device in the mobile network, the notification message carries a terminal identity, and the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior.

[0024] In a possible implementation, the log analysis device links with devices in the mobile network, and the device handles abnormal terminal devices. Specifically, the method further includes: the log analysis device sends a notification message to the gateway, the notification message carries the terminal identity, and the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior.

[0025] In one possible implementation, the terminal identity includes the user's identity, the user's identity includes information of a user identity module SIM card installed in the terminal device, the SIM card information includes at least one of IMSI and MSISDN; and / or the terminal identity includes the device's identity, the device's identity includes the IMEI of the terminal device.

[0026] The fourth aspect provides a data processing method. The method is applied to a core network device in a mobile network to handle terminal devices with abnormal access behaviors on the mobile network side. The core network device may be a device for managing contract information in the core network, such as UDM or PGW, or a device for managing contract information in a future version of a mobile network. The core network device may also be a device for managing sessions in the core network, such as SMF or PGW, or a device for managing sessions in a future version of a mobile network. The method includes: after the core network device obtains the terminal identity of the abnormal terminal device, the abnormal terminal device is processed according to the terminal identity of the abnormal terminal device. Among them, the terminal identity of the abnormal terminal device comes from a device in the data network accessed by the abnormal terminal. The abnormal terminal device is connected to the data network via a mobile network. Thus, handling the abnormal terminal device on the mobile network side can further improve the security of the data network and ensure the security of the mobile network and the data network.

[0027] In a possible implementation, the core network device processes the abnormal terminal device according to the terminal identity of the abnormal terminal device, including: the core network device rejects the session creation request of the abnormal terminal device according to the terminal identity of the abnormal terminal device, and the session creation request is used to instruct the core network device to create a session between the abnormal terminal device and the data network. As a result, the abnormal terminal device cannot access the data network, cannot launch an attack on the data network, and can ensure the security of the data network.

[0028] In a possible implementation, the core network device processes the abnormal terminal device according to the terminal identity of the abnormal terminal device, including: the core network device releases the session between the abnormal terminal device and the data network according to the terminal identity of the abnormal terminal device. Thus, the abnormal terminal device cannot disconnect the session connection with the data network, and the abnormal terminal device cannot launch an attack on the data network based on the session connection, which can ensure the security of the data network.

[0029] In a possible implementation, the core network device processes the abnormal terminal device according to the terminal identity of the abnormal terminal device, including: the core network device cancels the contract relationship between the abnormal terminal device and the data network according to the terminal identity of the abnormal terminal device. Specifically, the UDM / HSS stores the name of the data network (datanetwork name, DNN) / (access point name, APN) contracted by the terminal device, and the terminal device can access the contracted data network. The data network feeds back the terminal identity of the abnormal terminal device and the DNN / APN of the data network to the mobile network, and the core network device in the mobile network can cancel the contract relationship between the abnormal terminal device and the data network according to the terminal identity of the abnormal terminal device and the DNN / APN of the data network, such as deleting the DNN / APN information in the contract information of the abnormal terminal device. As a result, the subsequent mobile network will not establish a session between the abnormal terminal device and the data network, so the abnormal terminal device cannot access the data network, which can effectively ensure the security of the data network.

[0030] In a possible implementation, the terminal identity includes a user identity, the user identity includes information of a SIM card installed in the terminal device, the SIM card information includes at least one of an IMSI and an MSISDN. And / or, the terminal identity includes a device identity, the device identity includes an IMEI of the terminal device.

[0031] A fifth aspect provides a device. The device is applied to a gateway, and the device includes: a transceiver module, which is used to receive an application access request from a terminal device. A processing module, which is used to record a log according to the application access request, the log includes a terminal identity of the terminal device, and the log is used to analyze the access behavior of the terminal device, and to determine the terminal identity of the terminal device when the access behavior of the terminal device is abnormal.

[0032] In a possible implementation, the processing module is used to obtain the source Internet Protocol IP address in the application access request. The processing module is used to obtain the terminal identity according to the source IP address and the correspondence between the IP address of the terminal device and the terminal identity. The processing module is used to add the terminal identity to the log generated based on the application access request.

[0033] In a possible implementation, a transceiver module is used to receive a notification message, the notification message includes a terminal identity, and the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior. A processing module is used to obtain the IP address of the terminal device according to the terminal identity and the correspondence between the terminal identity and the IP address. The processing module is used to block an application access request whose source IP address is the IP address of the terminal device.

[0034] In a possible implementation, the transceiver module is used to receive terminal information of the terminal device sent by the authentication server, the terminal information includes the correspondence between the IP address of the terminal device and the terminal identity identifier, and the terminal information is sent by the authentication server after the terminal device is authenticated.

[0035] In a possible implementation, the terminal identity includes a user identity, the user identity includes information of a SIM card installed in the terminal device, and the SIM card information includes at least one of an IMSI and an MSISDN; and / or

[0036] The terminal identity includes the device identity, and the device identity includes the IMEI of the terminal device.

[0037] The sixth aspect provides a device. The device is applied to an authentication server, and the device includes: a transceiver module, which is used to receive an authentication request from an authentication device in a mobile network, the authentication request carries the identity information of the terminal device, and the authentication information includes the terminal identity of the terminal device. A processing module is used to authenticate the terminal device according to the authentication information. The transceiver module is used to send the correspondence between the terminal identity of the terminal device and the Internet Protocol IP address of the terminal device to the gateway in the data network after the terminal device is authenticated, so that the gateway can add the terminal identity to the log generated based on the application access request from the terminal device according to the correspondence.

[0038] In a possible implementation, the transceiver module is used to receive a notification message, the notification message includes a terminal identity of a terminal device, the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior, and the terminal identity in the notification message is obtained by analyzing the log. The transceiver module is used to send the terminal identity of the terminal device to the mobile network.

[0039] In a possible implementation, the device further includes: a transceiver module, configured to receive a notification message, the notification message including a terminal identity of a terminal device, the terminal identity in the notification message indicating that the terminal device is a device with abnormal access behavior, and the terminal identity in the notification message is obtained by analyzing the log. The authentication server sends the terminal identity of the terminal device to the gateway.

[0040] In a possible implementation, the device further includes: a transceiver module, which is used to receive a notification message, the notification message includes a terminal identity of a terminal device, the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior, and the terminal identity in the notification message is obtained based on the analysis of the log. A processing module, which is used to change the connection state of the abnormal terminal device from online to offline according to the terminal identity in the notification message. The transceiver module is used to send the changed connection state of the terminal device to the gateway so that the gateway disconnects from the terminal device.

[0041] In a possible implementation, the IP address of the terminal device is allocated to the terminal device by the authentication server after the terminal device is authenticated successfully.

[0042] In one possible implementation, the terminal identity includes a user identity, the user identity includes information of a SIM card installed in the terminal device, the SIM card information includes at least one of IMSI and MSISDN; and / or the terminal identity includes a device identity, the device identity includes the IMEI of the terminal device.

[0043] A seventh aspect provides a device, which is applied to a log analysis device, and includes: a processing module, which is used to obtain a log, the log is generated by a gateway according to an application access request from a terminal device, and the log includes a terminal identity of the terminal device. The processing module has an analysis device that analyzes the log to determine the terminal device with abnormal access behavior and the terminal identity of the terminal device with abnormal access behavior.

[0044] In a possible implementation, the apparatus further includes: a transceiver module, configured to send a notification message to the authentication server, the notification message carrying a terminal identity, the terminal identity in the notification message indicating that the terminal device is a device with abnormal access behavior.

[0045] In a possible implementation, the apparatus further includes: a transceiver module, configured to send a notification message to a device in a mobile network, the notification message carrying a terminal identity, the terminal identity in the notification message indicating that the terminal device is a device with abnormal access behavior.

[0046] In a possible implementation, the apparatus further includes: a transceiver module, configured to send a notification message to a gateway, the notification message carrying a terminal identity, the terminal identity in the notification message indicating that the terminal device is a device with abnormal access behavior.

[0047] In one possible implementation, the terminal identity includes the user's identity, the user's identity includes information of a user identity module SIM card installed in the terminal device, the SIM card information includes at least one of IMSI and MSISDN; and / or the terminal identity includes the device's identity, the device's identity includes the IMEI of the terminal device.

[0048] In an eighth aspect, a device is provided. The device is applied to a core network device in a mobile network, and the device includes: a processing module, which is used to obtain a terminal identity of an abnormal terminal device, the terminal identity of the abnormal terminal device comes from a device in a data network accessed by the abnormal terminal, and the abnormal terminal device is connected to the data network through a mobile network. The processing module is used to process the abnormal terminal device according to the terminal identity of the abnormal terminal device.

[0049] In a possible implementation, the processing module is used to reject a session creation request of the abnormal terminal device according to a terminal identity identifier of the abnormal terminal device, where the session creation request is used to instruct the core network device to create a session between the abnormal terminal device and the data network.

[0050] In a possible implementation, the processing module is configured to release a session between the abnormal terminal device and the data network according to a terminal identity identifier of the abnormal terminal device.

[0051] In one possible implementation, the terminal identity includes a user identity, the user identity includes information of a SIM card installed in the terminal device, the SIM card information includes at least one of IMSI and MSISDN; and / or the terminal identity includes a device identity, the device identity includes the IMEI of the terminal device.

[0052] The ninth aspect provides a network system. The system includes the device in the fourth aspect or any one of the implementations of the fourth aspect, the device in the fifth aspect or any one of the implementations of the fifth aspect, the device in the sixth aspect or any one of the implementations of the sixth aspect, and the device in the seventh aspect or any one of the implementations of the seventh aspect.

[0053] A tenth aspect provides an electronic device. The electronic device includes a processor and a memory, the processor is coupled to the memory, and the processor is configured to execute the data processing method of any one of the first to fourth aspects, or the data processing method in any possible implementation of any one of the first to fourth aspects, based on instructions stored in the memory.

[0054] In the eleventh aspect, a computer-readable storage medium is provided. The computer-readable storage medium includes instructions, and when the computer-readable storage medium is run on a computer, the computer executes the data processing method of any one of the first to fourth aspects, or the data processing method in any possible implementation of any one of the first to fourth aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 Schematic diagram of two access technologies for access network;

[0056] Figure 2 This is a schematic diagram of the framework of secondary authentication based on 5G network;

[0057] Figure 3 A schematic diagram of the network system architecture provided for this application;

[0058] Figure 4 Based on Figure 3 A flowchart of tracing and handling the attack source of a network system;

[0059] Figure 5 Schematic diagram of the scenario of joint handling of abnormal terminal devices provided for this application;

[0060] Figure 6 A schematic diagram of the interactive process of the data processing method provided in this application;

[0061] Figure 7 A schematic diagram of the structure of a device provided in this application;

[0062] Figure 8 A schematic diagram of the structure of another device provided in this application;

[0063] Fig. 9 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION

[0064] The present application provides a data processing method and related equipment to achieve accurate tracing and disposal of attack sources and improve network security.

[0065] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the described embodiments are only embodiments of a part of the present application, rather than all embodiments. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0066] The terms "first", "second" and the like in the specification and claims of this application and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0067] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0068] The following is an explanation of the relevant terms involved in this application:

[0069] (1)AAA

[0070] AAA is the abbreviation of Authentication, Authorization and Accounting. It is a security management framework for network access control. It determines which users can access the network, which resources or services the users with access rights can access, and how to bill the users who are using network resources. AAA can be implemented through a variety of protocols, such as remote authentication dial-in user service (RADIUS), terminal access controller access-control system (TACACS), Huawei terminal access controller access control system (HWTACACS) and Diameter.

[0071] (2) Mobile network

[0072] A mobile network may also be referred to as a cellular network. Mobile networks include, for example, third generation mobile communication technology (3G) networks, fourth generation mobile communication technology (4G) networks, fifth generation mobile communication technology (5G) networks, and future evolution versions of mobile communication networks.

[0073] With the development of mobile communication technology, mobile networks have the characteristics of high bandwidth, low latency and wide connection. In addition to serving individual users, mobile networks can also serve industry users (enterprises, governments and public institutions, etc.). The integration of mobile networks and industries empowers industry users with intelligence, digitization and networking. For example, in a remote mobile office scenario, terminal devices can access the mobile network anytime and anywhere, and access applications in the data network through a session connection established through the mobile network. In the industrial Internet scenario, terminal devices access the mobile network and communicate with the data network through a session connection established through the mobile network. For example, the terminal device sends collected data to the data network through the mobile network, or receives control instructions from the data network through the mobile network.

[0074] Mobile networks usually include access networks (AN) and core networks (CN). Access networks and core networks belong to and are controlled by operators. Access networks can be used to implement functions related to wireless access. Figure 1 As shown, Figure 1 Schematic diagram of two access technologies for access networks. Access networks may include 3rd generation partnership project (3GPP) access networks (or 3GPP access technologies) and non-3GPP access networks (or non-3GPP access technologies). 3GPP access technologies refer to access technologies that comply with 3GPP standards, such as wireless access technologies used in 3G, 4G or 5G systems. Non-3GPP access technologies refer to access technologies that do not comply with 3GPP standards, such as air interface technologies represented by access points (APs) in wireless local area networks (WLANs) or worldwide interoperability for microwave access (WiMAX).

[0075] The access network can provide network access functions for authorized users in a specific area, including radio access network (RAN) equipment and AN equipment. RAN equipment is mainly 3GPP network wireless network equipment, and AN equipment can be non-3GPP defined access network equipment. Access network equipment (AN equipment) can allow terminal equipment and 3GPP core network to interconnect and communicate using non-3GPP technologies.

[0076] The wireless access network includes, for example, but is not limited to: macro base stations, micro base stations (also called small stations), radio network controllers (RNCs), node Bs (NBs), base station controllers (BSCs), base transceiver stations (BTSs), home base stations (e.g., home evolved NodeBs, or home Node Bs, HNBs), baseband units (BBUs), wireless access points (APs) in WLAN systems, wireless access controllers (ACs), wireless relay nodes, wireless backhaul nodes, transmission points (TPs) or transmission and reception points (TRPs), etc. It can also be a gNB or transmission point (TRP or TP) in a 5G (e.g., NR) system, one or a group of (including multiple antenna panels) antenna panels of a base station in a 5G system, or a network node constituting a gNB or transmission point, such as a baseband unit (BBU), or a distributed unit (DU), or a base station in a next-generation communication 6G system, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the wireless access network device.

[0077] (3) Data Network

[0078] Data network is a general term for networks outside the mobile network domain. Specific examples of data network include enterprise intranet, Internet, campus network, government network or industry intranet.

[0079] In the 3G standard, data networks are also called external networks or packet switching networks. In the 4G standard, data networks are also called packet data networks. In the 5G standard, data networks are also called data networks (DN). In future evolutionary versions of mobile communication technology standards, data networks may also be referred to as other names for networks outside the mobile network domain.

[0080] (4) Primary and secondary authentication

[0081] When a terminal device accesses a mobile network, it must first be authenticated. The authentication between the terminal device and the mobile network is the primary authentication. During the primary authentication process, the mobile network authenticates the terminal device, or the mobile network and the terminal device perform two-way authentication. After the authentication is passed, the terminal device accesses the mobile network. The target object of the mobile network verification is the subscriber identity module (SIM). In mobile networks, the authentication and key agreement (AKA) protocol based on "challenge-response" is generally used for primary authentication. The 3G primary authentication adopts the universal mobile telecommunications system (UMTS) AKA protocol. The core network devices participating in the primary authentication in the 3G core network include the visitor location register / serving GPRS support node (VLR / SGSN) and the local environment / home location register (HE / HLR). The 4G primary authentication adopts the evolved packet system (EPS) AKA protocol. The core network devices participating in the primary authentication in the 4G core network include the mobility management entity (MME) and the home subscriber server (HSS). The 5G primary authentication adopts 5G AKA or extensible authentication protocol (EAP) AKA' protocol. The core network devices involved in the primary authentication in the 5G core network include access and mobility management function (AMF) / security anchor function (SEAF), authentication credential repository and processing function (ARPF) / unified data management (UDM) and authentication server function (AUSF), etc.

[0082] After the primary authentication is passed, the core network device in the mobile network triggers the secondary authentication process. The core network device sends the authentication information of the terminal device to the AAA server in the data network, and the AAA server authenticates the identity of the terminal device based on the authentication information of the terminal device. The process of the AAA server authenticating the identity of the terminal device is called secondary authentication. After the terminal device passes the secondary authentication, the mobile network establishes a session connection between the terminal device and the data network, so that the terminal device that has passed the secondary authentication can securely access the data network.

[0083] In 3G / 4G, secondary authentication is also called AAA authentication. The core network equipment and the data network implement secondary authentication based on the layer two tunneling protocol (L2TP) and AAA authentication protocols (such as Radius or Diameter, etc.). Specifically, in the 4G network, the user's username and password information is configured in the subscriber identity module (SIM) card of the terminal device, and the username and password information is passed to the packet data network gateway (PGW) network element through the non-access stratum (NAS) message during the primary authentication process. Then, the AAA authentication is implemented based on the Radius, HWTACACS or Diameter protocol between the PGW network element and the AAA server deployed in the data network.

[0084] 5G network provides a secondary authentication channel based on the unified bearer of extensible authentication protocol (EAP). In 5G network, the secondary authentication is triggered by the session management function (SMF), and the authentication information of the terminal device is sent to the AAA server for authentication. Figure 2 As shown, Figure 2 The following is a schematic diagram of the framework of secondary authentication based on 5G network. After the primary authentication is passed, SMF triggers Radius PAP / CHAP authentication, and SMF sends an authentication request to the authentication server. The authentication request carries the authentication information of the terminal device. UPF forwards the authentication request. To avoid exposing SMF to the data network, UPF hides the SMF address in the authentication request message and forwards the authentication request message to the authentication server in the data network. After receiving the authentication request, the authentication server authenticates the terminal device according to the authentication information in the authentication request. If the terminal device is successfully authenticated, the authentication server notifies the gateway to allow access to the terminal device, and the terminal device can access the application in the data network. If the terminal device fails to authenticate, the authentication ends.

[0085] The specific process of primary authentication and secondary authentication can be found in the relevant specifications proposed by the 3rd Generation Partnership Project (3GPP), which will not be repeated here.

[0086] From the above description, it can be seen that the terminal device can access the application server in the data network only after the primary authentication of the core network device in the data network and the secondary authentication of the AAA server in the data network, which can ensure the security of the data network to a certain extent. However, there are still malicious terminal devices that achieve authentication and access by impersonating or abusing the authentication information of legitimate terminal devices, or attack legitimate terminal devices to invade the data network, threatening the security of the data network. For example, malicious terminal devices abuse legitimate user SIM cards, or malicious terminals connect to the wireless hotspots of legitimate terminal devices, or malicious terminals invade customer premise equipment (CPE) / Internet of Things terminals, etc. The core network devices participating in the primary authentication in the mobile network and the AAA server in the data network may not be able to identify the malicious terminal devices accessed through the above methods, resulting in the malicious terminal devices accessing the mobile network after passing the primary authentication and accessing the data network after passing the secondary authentication. The data network is exposed to malicious terminal devices, and malicious terminal devices may access and attack the data network, endangering the security of the data network.

[0087] Therefore, after the data network perceives the attack behavior of the malicious terminal device, it is particularly important to accurately trace the malicious terminal device and effectively deal with the malicious terminal device. At present, the security detection and analysis of the data network use the IP address of the terminal device to identify a terminal device, resulting in that after the attack behavior of the malicious terminal device is discovered, only the IP address of the malicious terminal device can be traced back. In some cases, such as when the IP address of the malicious terminal device is a counterfeit IP address, a dynamic IP address, or an IP address after network address translation (NAT), it is impossible to accurately trace the source of the attack based on the IP address. For the disposal of malicious terminal devices, currently only the security gateway deployed at the boundary of the data network can block the attack traffic of the malicious terminal device based on the IP address. However, even if the security gateway blocks the attack traffic of the malicious terminal device at the boundary of the data network, the malicious terminal device can still continue to attack the AAA server, such as launching a denial of service attack on the AAA server, causing the AAA server to fail to work normally and thus affecting the use of other users, and it is impossible to completely and effectively deal with the attack behavior of the malicious terminal device.

[0088] In order to solve the above technical problems, the present application provides the following embodiments.

[0089] like Figure 3 and Figure 4 As shown, Figure 3 The schematic diagram of the network system architecture provided for this application is as follows: Figure 4 Based on Figure 3 Figure 1 is a flowchart of tracing and handling the attack source of a network system. The network system includes terminal devices, mobile networks, and data networks. The data network includes gateways, authentication servers (AAA servers), application servers, and log analysis devices. The gateways are connected to the authentication servers, application servers, and log analysis devices respectively. The terminal device accesses the mobile network after the primary authentication is passed, and accesses the data network through the mobile network after the secondary authentication is passed. The terminal device connects to the gateway in the data network through the mobile network.

[0090] The terminal device is a device that can install a SIM card, such as a mobile terminal, an Internet of Things terminal or a CPE. Mobile terminals are, for example, mobile phones, laptops, tablets, smart wearable devices or tablets. Internet of Things terminals are, for example, cameras, sensors, industrial automation equipment or robots. The SIM card can be a physical SIM card or an electronic SIM card (eSIM card), which is not limited here. In the 3G, 4G and 5G standards, the SIM card is also called a universal subscriber identity module (USIM), also known as an upgraded SIM card. The SIM card in this application also includes a SIM card defined in future evolution versions of mobile communication technologies. The SIM card stores information such as keys, user names and passwords, as well as information such as international mobile subscriber identity (IMSI) and mobile subscriber ISDN number (MSISDN). During the primary authentication and secondary authentication process, the SIM card in the terminal device completes the authentication calculation based on the key stored therein. The information stored in the SIM card is not easily tampered with or counterfeited, and has high security.

[0091] The terminal device can access the mobile network through 3GPP access technology or non-3GPP access technology, without restriction here. If the terminal device accesses the mobile network through 3GPP access technology, the UMTS AKA protocol, EPS AKA protocol, 5G AKA protocol or EAP AKA' protocol can be used between the terminal device and the mobile network to complete the main authentication. If the terminal device accesses the mobile network through non-3GPP access technology (such as WLAN), the EAP-SIM protocol can be used between the terminal device and the mobile network to access the mobile network.

[0092] The mobile network includes multiple core network devices. The core network devices participate in the primary authentication process between the terminal device and the core network, and participate in the secondary authentication process between the terminal device and the authentication server in the data network. The core network devices participating in the primary authentication process include, for example, VLR / SGSN and HE / HLR (3G), or MME and HHS (4G), or AMF / SEAF, UDM / ARPF and AUSF (5G). The core network devices participating in the secondary authentication include, for example, SGW and PGW (4G), or AMF, SMF and UPF (5G). After the primary authentication is passed, the core network devices such as SMF / PGW send an authentication request to the authentication server in the data network. The authentication request carries the authentication information of the terminal device, and the authentication request is used to instruct the authentication server to perform secondary authentication on the terminal device according to the authentication information of the terminal device. After the secondary authentication is successful, the core network devices such as SMF / PGW establish a session connection between the terminal device and the data network, so that the terminal device can access the services in the data network through the session connection established by the mobile network.

[0093] The gateway is deployed at the boundary of the data network to forward the traffic entering the data network and the traffic emitted from the data network. The traffic entering the data network includes, for example, authentication requests from core network devices in the mobile network and application access requests from terminal devices. For authentication requests, the gateway forwards them to the authentication server. For application access requests from terminal devices authenticated by the authentication server, the gateway forwards them to the corresponding application server. In this embodiment, in addition to the forwarding function, the gateway also has a security detection function. The gateway can be a security device such as a firewall, an intrusion detection system, an intrusion prevention system, or a Web application protection system (web application firewall, WAF). Alternatively, the gateway can be a combination of at least one of the above security devices.

[0094] After receiving the authentication request, the authentication server performs secondary authentication on the terminal device according to the authentication information of the terminal device in the authentication request. The authentication information includes, for example, a user name and password, as well as information such as the terminal identity of the terminal device. The terminal identity of the terminal device can uniquely identify a terminal device, and the terminal identity is an identifier with high security and difficult to tamper with and counterfeit. Specifically, the terminal identity may include the identity of the user, and / or the identity of the device. The identity of the user includes at least one of the IMSI and MSISDN of the SIM card installed in the terminal device. The identity of the device includes the international mobile equipment identity (IMEI) of the terminal device, etc. IMSI / MSISDN / IMEI is not easy to be tampered with and counterfeited, and can uniquely identify a terminal device. Since the risk of IP addresses and MAC addresses being counterfeited is relatively high, IP addresses and MAC addresses cannot uniquely identify a terminal device. Therefore, in this embodiment, the terminal identity does not include IP addresses and MAC addresses, etc.

[0095] The terminal device and / or SIM card is purchased by the administrator of the data network, and the terminal identity of the terminal device can be imported or synchronized to the authentication server by the administrator. If the terminal device includes an IoT device, the terminal identity of the terminal device can also be synchronized to the authentication server by the management platform that manages the IoT device. Therefore, the authentication server itself stores the terminal identity of the terminal device. The authentication server authenticates the authentication information in the authentication request based on the terminal identity, user name, password and other information stored in itself. If the terminal identity, user name and password are consistent, the terminal device passes the authentication. Authentication and authentication can be performed between the authentication server and the terminal device through authentication mechanisms such as Radius PAP / CHAP, which will not be elaborated here.

[0096] After the authentication server authenticates the terminal device according to the authentication request, it obtains the correspondence between the IP address of the terminal device and the terminal identity, and then sends the correspondence to the gateway. In one possible implementation, the IP address of the terminal device may be assigned to the terminal device by the authentication server after the terminal device passes the authentication of the authentication server. The IP address assigned by the authentication server to the terminal device may be a static IP address, that is, after the terminal device passes the secondary authentication each time, the authentication server assigns the same IP address to the terminal device. The IP address assigned by the authentication server to the terminal device may be a dynamic IP address, that is, after the terminal device passes the secondary authentication each time, the IP address assigned by the authentication server to the terminal device may be different from the IP address previously assigned to the terminal device. In another possible implementation, the IP address of the terminal device is a static IP address assigned by the terminal device to the operator. The IP address contracted by the terminal device can also be imported into the authentication server, so that the authentication server can obtain the correspondence between the IP address of the terminal device and the terminal identity.

[0097] The authentication server sends the correspondence between the IP address of the terminal device and the terminal identity to the gateway. After the terminal device passes the authentication, it obtains the permission to access the application server in the data network. The terminal device sends an application access request to the data network through the session connection established by the mobile network.

[0098] The gateway receives an application access request from a terminal device and records a corresponding log according to the application access request. In this embodiment, the log includes at least one of a traffic log, an alarm log, a threat log, an access log, a user activity log, an intrusion log, a uniform resource locator (URL) filtering log, and a policy hit log. The gateway can record a log for each application access request, and can also record a log for an application access request that violates a security policy / hit a security rule in the application access request.

[0099] In this embodiment, the log corresponding to the application access request includes the terminal identity of the terminal device that issued the application access request. That is, compared with the traditional log, the log recorded by the gateway of the present application includes a terminal identity field. When the gateway records the log according to the application access request, the terminal identity of the terminal device that issued the application access request is added to the terminal identity field of the log. Specifically, the source IP address in the application access request is the IP address of the terminal device that issued the application access request. The gateway obtains the source IP address from the application access request, and obtains the terminal identity that corresponds to the source IP address based on the source IP address and the correspondence between the IP address of the terminal device and the terminal identity. After the gateway obtains the terminal identity, it can add the terminal identity to the log, thereby obtaining a log including the terminal identity.

[0100] The log records the access time, frequency, number of times, and online and offline information of the terminal device. When the application access request hits the security rules configured by the gateway, or violates the security policy corresponding to the terminal device, it indicates that the terminal device may have attack behavior. The log also records the attack time, number of times, and attack type of the terminal device. The log can reflect whether there is an abnormality in the access behavior of the terminal device. For example, according to the log analysis, the same terminal device has generated a large number of application access requests in a short period of time. It is possible that the terminal device is launching an attack and the access behavior of the terminal device is abnormal. For another example, according to the log analysis, the number and frequency of attacks corresponding to the same terminal device are high. It is also possible that the terminal device is launching an attack and the access behavior of the terminal device is abnormal.

[0101] The log analysis device analyzes the logs recorded by the gateway to obtain the terminal device with abnormal access behavior (hereinafter referred to as the abnormal terminal device) and the terminal identity of the abnormal terminal device. Compared with the IP address of the terminal device, the terminal identity is not easy to be tampered with or counterfeited, and the terminal identity can more accurately and uniquely indicate a terminal device. Therefore, the log analysis device analyzes the access behavior of the terminal device based on the log including the terminal identity, and can accurately trace the source to the terminal identity of the abnormal terminal device, and then can accurately and effectively deal with the abnormal terminal device based on the terminal identity of the abnormal terminal device.

[0102] There are many ways for the log analysis device to obtain the logs recorded by the gateway. For example, the gateway sends the recorded logs to the log analysis device in real time, or the gateway sends the recorded logs to the log analysis device periodically or when the recorded logs reach a certain number. For another example, the gateway stores the logs, and the log analysis device reads the logs from the gateway. For another example, the network system also includes a storage server (not shown), and the gateway sends the recorded logs to the log analysis device in real time / periodically / when the recorded logs reach a certain number, and the log analysis device reads the logs from the storage server. The log analysis device and the gateway can be the same physical device or different physical devices, which is not limited here.

[0103] After the log analysis device obtains the terminal identity of the abnormal terminal device through log analysis, it can link with at least one of the authentication server, gateway and core network device in the mobile network to handle the abnormal terminal device. Specifically, the handling of abnormal terminal devices includes but is not limited to the following methods:

[0104] 1. The log analysis device links with the authentication server to handle abnormal terminal devices, and the authentication server links with the gateway and / or the devices in the mobile network to handle abnormal terminals

[0105] like Figure 5 As shown, the log analysis device sends a first notification message to the authentication server, the first notification message carries the terminal identity of the abnormal terminal device. The first notification message is used to instruct the authentication server to handle the terminal device corresponding to the terminal identity in the first notification message.

[0106] After the authentication server obtains the terminal identity of the abnormal terminal device from the first notification message, the linkage gateway handles the abnormal terminal device. Specifically, in a possible implementation, the authentication server can send the terminal identity of the abnormal terminal device to the gateway. After the gateway receives the terminal identity of the abnormal terminal device, it obtains the IP address of the abnormal terminal device according to the correspondence between the IP address and the terminal identity. If the gateway subsequently receives application access requests whose source IP address is the IP address of the abnormal terminal device, it discards these application access requests and does not forward them to the application server, that is, it blocks the traffic from the abnormal terminal device to ensure the security of the data network.

[0107] In another possible implementation, the authentication server may change the connection status of the abnormal terminal device from an online status to an offline status, and then the authentication server will send the changed connection status of the terminal device to the gateway so that the gateway disconnects from the terminal device and the gateway no longer receives application access requests from the abnormal terminal device.

[0108] After the authentication server obtains the terminal identity of the abnormal terminal device from the first notification message, it can link the devices in the mobile network to deal with the abnormal terminal device. Specifically, in one possible implementation, the authentication server can send a session release request to a device in the mobile network (such as a core network device such as SMF or PGW that participates in establishing a session between the terminal device and the data network). The session release request is used to instruct the device in the mobile network to release the session between the abnormal terminal device and the data network, so that the abnormal terminal device cannot send an application access request to the data network through the mobile network.

[0109] In another possible implementation, if the mobile network is a 5G network, the authentication server sends the terminal identity of the abnormal terminal device to the network exposure function (NEF) in the mobile network. Thus, after other core network devices in the mobile network (such as UDM or SMF, etc.) obtain the terminal identity of the abnormal terminal device from NEF, they can dispose of the abnormal terminal device according to the terminal identity. For example, UDM obtains the contract information of the abnormal terminal device according to the terminal identity, and the contract information includes the name of the data network (data network name, DNN) that the abnormal terminal device is allowed to access. UDM deletes the DNN in the contract information, that is, the abnormal terminal device is not allowed to access the data network corresponding to the DNN. Thus, when SMF receives a session creation request from the abnormal terminal device (the session creation request includes DNN, indicating that SMF establishes a session between the abnormal terminal device and the data network corresponding to the DNN), SMF determines that the abnormal terminal device is not allowed to access the data network corresponding to the DNN based on the contract information of the abnormal terminal device obtained from UDM, and SMF refuses to establish a session between the abnormal terminal device and the data network, that is, SMF will not trigger the secondary authentication process. Furthermore, abnormal terminal devices cannot trigger authentication with the authentication server through the mobile network, nor can they access the data network through the data network, thus achieving near-source blocking of abnormal terminal devices. Through the linkage between the data network and the mobile network based on the terminal identity, abnormal terminal devices can be effectively and accurately handled, which can not only ensure the security of the data network, but also improve the security of the mobile network.

[0110] 2. Log analysis equipment links with the gateway to handle abnormal terminal equipment

[0111] like Figure 5As shown, the log analysis device sends a second notification message to the gateway, and the second notification message carries the terminal identity of the abnormal terminal device. The second notification message is used to instruct the gateway to handle the terminal device corresponding to the terminal identity in the second notification message. After the gateway obtains the terminal identity in the second notification message, it obtains the IP address of the abnormal terminal device according to the correspondence between the IP address and the terminal identity. If the gateway subsequently receives application access requests with the source IP address of the abnormal terminal device, it discards these application access requests and does not forward these application access requests to the application server, that is, it blocks the traffic from the abnormal terminal device to ensure the security of the data network.

[0112] 3. Log analysis equipment links with devices in the mobile network to handle abnormal terminal devices

[0113] like Figure 5 As shown, if the mobile network is a 5G network, the log analysis device sends a third notification message to the device in the mobile network, and the third notification message carries the terminal identity of the abnormal terminal device. The third notification message is used to instruct the device in the mobile network to handle the terminal device corresponding to the terminal identity in the third notification message. The log analysis device sends the terminal identity of the abnormal terminal device to the NEF in the mobile network. Thus, after other core network devices in the mobile network (such as UDM or SMF, etc.) obtain the terminal identity of the abnormal terminal device from the NEF, they can handle the abnormal terminal device according to the terminal identity. The method for the core network device to handle abnormal terminal devices can refer to the above-mentioned related description, which will not be repeated here.

[0114] When the mobile network is a 5G network, the authentication server / log analysis device can automatically link with the core network device in the mobile network through NEF to handle abnormal terminal devices, and the core network device can obtain the terminal identity of the abnormal terminal device through NEF. When the mobile network is a 3G network or a 4G network, after the authentication server / log analysis device obtains the terminal identity of the abnormal terminal device, it can issue an alarm to remind the data network administrator that there is an abnormal terminal device that attacks the data network, as well as the terminal identity of the abnormal terminal device. Thus, the data network administrator can notify the operator of the terminal identity of the abnormal terminal device, and the operator will import the terminal identity of the abnormal terminal device into the relevant core network device (such as PGW or HSS, etc.), and the core network device will handle the abnormal terminal device accordingly according to the terminal identity of the abnormal terminal device. The way HSS handles abnormal terminal devices is similar to UDM, and the way PGW handles abnormal terminals is similar to SMF, which will not be repeated here.

[0115] In the above, the network system includes a log analysis device, and the log analysis device analyzes the logs recorded by the gateway as an example. In another implementation method, the network system may not include a log analysis device, but the logs are manually analyzed to determine the abnormal terminal device and the terminal identity of the abnormal terminal device, and the authentication server / gateway / device in the mobile network is notified to instruct the authentication server / gateway / device in the mobile network to handle the abnormal terminal device.

[0116] In this embodiment, the terminal identity is an identifier that can also be recognized and used by devices in the mobile network, such as the terminal identity is IMEI, IMSI or MSISDN, so that the devices in the mobile network can accurately handle the abnormal terminal device according to the terminal identity of the abnormal terminal device. In addition, the relevant core network equipment in the mobile network can release the corresponding session according to the terminal identity, and can also refuse the abnormal terminal device from accessing the data network. The abnormal terminal device cannot launch an attack on the authentication server and application server in the data network, and the abnormal terminal device can be handled more effectively, which can not only improve the security of the data network, but also improve the security of the mobile network.

[0117] like Figure 6 As shown, Figure 6 The interactive flow diagram of the data processing method provided in this application is as follows. The execution subjects involved in the embodiment of this method include Figure 3 The network system shown includes terminal devices, core network devices (authentication devices) of the mobile network, and gateways, authentication servers and log analysis devices in the data network.

[0118] S601: An authentication device in a mobile network sends an authentication request to an authentication server. The authentication request carries authentication information of the terminal device. The authentication information includes a terminal identity of the terminal device.

[0119] This step is a step in which the authentication device in the mobile network starts a secondary authentication process after the primary authentication between the terminal device and the mobile network is successful, triggered by a session creation request from the terminal device. The authentication request carries the authentication information of the terminal device, and the authentication information includes the terminal identity of the terminal device. The authentication request instructs the authentication server to authenticate the identity of the terminal device according to the authentication information of the terminal device. Among them, the terminal identity of the terminal device may include the identity of the user, and / or the identity of the device. The identity of the user includes at least one of the IMSI and MSISDN of the SIM card installed in the terminal device. The identity of the device includes the international mobile equipment identity (IMEI), etc. Different from easily counterfeited and tampered identifiers such as IP addresses or MAC addresses, IMSI / MSISDN / IMEI is not easily tampered and counterfeited, and can uniquely identify a terminal device.

[0120] According to the 3GPP specification, the secondary authentication adopts the EAP authentication framework protocol. The EAP framework includes a client, an authenticator, and an authentication server. The client is the entity to be authenticated, that is, the terminal device. The authentication server is used to verify the identity of the terminal device. The authentication server is, for example, an AAA server. In this embodiment, the authentication server is located in the data network. The authentication device forwards EAP messages between the terminal device and the authentication server. In this embodiment, the authentication device is located in the mobile network. The authentication device is, for example, an SMF or a PGW.

[0121] The terminal identity of the terminal device can be sent to the authentication device by the device participating in the main authentication. The terminal identity of the terminal device can also be obtained by the authentication device from the HSS / UDM according to the IMSI / subscription permanent identifier (SUPI) / subscription concealed identifier (SUCI) of the terminal device.

[0122] S602: The authentication service server authenticates the terminal device according to the authentication information.

[0123] When the authentication request enters the data network, it is forwarded by the gateway. The gateway does not perform authentication processing on the message whose destination address is the authentication server, but forwards the authentication request message to the authentication server for secondary authentication.

[0124] Authentication information also includes account information such as username and password. The authentication server authenticates the terminal device based on the username, password and terminal identity information. For example, the authentication server compares the username and password in the authentication request with the username and password stored in the authentication server to see if they are consistent. If they are consistent, the account information can be considered correct. If they are inconsistent, the terminal device cannot pass the authentication.

[0125] Optionally, the authentication server also authenticates the terminal identity in the authentication request. For example, the terminal device and / or the SIM card installed in the terminal device is purchased by the data network administrator, and these terminal devices are allowed to access the data network. Therefore, the data network administrator can obtain the terminal identity of the terminal device and import it into the authentication server, that is, the authentication server stores a terminal identity library of terminal devices that are allowed to access the data network. The authentication server determines whether the terminal identity in the authentication request exists in the terminal identity library stored in the authentication server. If it exists, it is considered that the corresponding terminal device has the right to access the data network; if it does not exist, it is considered that the corresponding terminal device has no right to access the data network, and the terminal device cannot pass the authentication. In this case, when the account information in the authentication request is correct and the terminal identity in the authentication request exists in the terminal identity library stored in the authentication server, it is considered that the authentication is successful and the terminal device passes the authentication.

[0126] It is understandable that there may be multiple information interactions between the authentication server and the terminal device / authentication device during the secondary authentication process. The secondary authentication process can refer to the relevant specifications and protocols proposed by 3GPP, and will not be described in detail here.

[0127] S603: After the authentication server authenticates the terminal device according to the authentication information, it sends the corresponding relationship between the terminal identity of the terminal device and the IP address of the terminal device to the gateway in the data network.

[0128] After the terminal device passes the authentication, the authentication server establishes a correspondence between the IP address of the terminal device and the terminal identity of the terminal device, and sends the correspondence to the gateway so that the gateway can access the terminal device, and adds the terminal identity to the log corresponding to the application access request from the terminal device according to the correspondence.

[0129] When the authentication server assigns an IP address to a terminal device, the authentication server assigns an IP address to the terminal device after the terminal device passes authentication, and then establishes a correspondence between the IP address of the terminal device and the terminal identity of the terminal device. Since the IP address of the terminal device is assigned by the authentication server, the authentication server itself can grasp the IP address of the terminal device, so the IP address assigned by the authentication server to the terminal device can be a static IP address or a dynamic IP address, which is not limited here.

[0130] When the IP address of the terminal device is the IP address assigned by the operator, the authentication server stores the IP address assigned by the terminal device. After the terminal device passes the authentication, the authentication server obtains the correspondence between the IP address of the terminal device and the terminal identity of the terminal device.

[0131] Optionally, the authentication server configures a corresponding security policy for the terminal device based on the correspondence between the IP address and the terminal identity identifier to complete the fine authorization of the terminal device. The authentication server sends the security policy to the gateway.

[0132] S604: The authentication server sends an authentication success message to the authentication device.

[0133] It can be understood that this step has no sequence relationship with S603.

[0134] S605: The authentication device responds with an authentication success message and establishes a session between the terminal device and the data network.

[0135] The authentication device receives the authentication success message, determines that the terminal device has passed the secondary authentication, and establishes a session between the terminal device and the data network. Thus, the terminal device can access the application in the data network through the session.

[0136] S606: The terminal device sends an application access request to the application server in the data network through the session.

[0137] When a terminal device needs to access an application in a data network, it sends an application access request to an application server in the data network through a session connection between the terminal device and the data network.

[0138] S607: The gateway receives an application access request from the terminal device.

[0139] The application access request reaches the gateway, which forwards it to the corresponding application server.

[0140] S608: The gateway records a log according to the application access request, where the log includes a terminal identity of the terminal device.

[0141] After receiving the application access request, the gateway records a log according to the application access request. In this embodiment, the log recorded by the gateway includes at least one of a traffic log, an alarm log, a threat log, an access log, a user activity log, an intrusion log, a URL filtering log, and a policy hit log.

[0142] Specifically, the gateway obtains the source IP address from the application access request, and obtains the terminal identity of the terminal device based on the source IP address and the correspondence between the IP address of the terminal device and the terminal identity. When the gateway records a log based on the application access request from the terminal device, the terminal identity of the terminal device is added to the log. The log is used to analyze the access behavior of the terminal device and to determine the terminal identity of the terminal device when there is an abnormality in the access behavior of the terminal device. Therefore, based on the terminal identity in the log, the corresponding terminal device can be accurately traced.

[0143] Optionally, the gateway has the ability to perform security detection and generate alarms. The gateway detects application access requests based on the security policy corresponding to the terminal identity. When the application access request hits the rules in the security policy, the gateway generates a corresponding alarm log / threat log / intrusion log, and the corresponding terminal identity is added to the log. Security policies include, for example, access control policies, intrusion prevention policies, or URL policies.

[0144] S609: The log analysis device obtains the log.

[0145] There are many ways for the log analysis device to obtain the logs generated by the gateway. For example, the gateway sends the logs to the log analysis device. For another example, the log analysis device reads the logs from the gateway. For another example, the gateway stores the logs in a storage server, and the log analysis device obtains the logs from the storage server.

[0146] S610: The log analysis device analyzes the log to determine the terminal device with abnormal access behavior and the terminal identity of the terminal device with abnormal access behavior.

[0147] Logs can reflect the access behavior of terminal devices. Therefore, the log analysis device can analyze the logs to determine whether the corresponding terminal device has abnormal behaviors such as attacks. In addition, since the logs in this example include the terminal identity of the corresponding terminal device, and the terminal identity is a highly reliable identifier, the logs can not only determine whether the access behavior of the terminal device is abnormal, but also obtain the terminal identity of the terminal device with abnormal access behavior, so as to achieve accurate tracing.

[0148] Exemplarily, the log analysis device classifies all logs according to the terminal identity identifier and collects logs with the same terminal identity identifier. Then, the log analysis device analyzes the logs corresponding to the terminal identity identifier to analyze whether the access behavior of the terminal device corresponding to the terminal identity identifier is abnormal, and the analysis result includes the terminal identity identifier and the result of whether the access behavior is abnormal.

[0149] S611: The log analysis device links the authentication server / gateway / device in the mobile network to handle the abnormal terminal device according to the terminal identity of the abnormal terminal device.

[0150] The method for the log analysis device to link with the authentication server / gateway / device in the mobile network to handle abnormal terminal devices can be found in the relevant description above, so it will not be repeated here.

[0151] It can be understood that in another implementation, S609 and S610 are optional steps. For example, when the network system does not include a log analysis device, the log is manually analyzed to determine the abnormal terminal device and the terminal identity of the abnormal terminal device. The terminal identity of the abnormal terminal is notified to the authentication server / gateway / device in the mobile network manually by sending configuration or control instructions, so that the device in the authentication server / gateway / mobile network handles the abnormal terminal device according to the terminal identity of the abnormal terminal device. Alternatively, a notification message including the terminal identity of the abnormal terminal device is sent to the authentication server manually by sending configuration or control instructions, and the authentication server links the device in the gateway / mobile network to handle the abnormal terminal device.

[0152] In this embodiment, a terminal identity is used to indicate a terminal device. The terminal identity is IMSI / MSISDN / IMEI, which is not easy to be tampered with or counterfeited, and is used to identify the terminal device with high security and reliability. After the terminal device passes the authentication, the authentication server sends the correspondence between the IP address of the terminal device and the terminal identity to the gateway, so that when the gateway receives the application access request from the terminal device, it records the log containing the terminal identity according to the application access request and the correspondence. Therefore, based on the log containing the terminal identity, the log analysis device can determine the terminal identity of the abnormal terminal device with abnormal access behavior, and realize the accurate tracing of the abnormal terminal device.

[0153] Furthermore, after obtaining the terminal identity of the abnormal terminal device, the log analysis device links the authentication server / gateway / device in the mobile network to handle the abnormal terminal device based on the terminal identity. By linking the operator to handle the abnormal terminal device, the access request and session establishment request of the abnormal terminal device are blocked on the mobile network side, thereby more effectively ensuring the security of the data network. In addition, after the operator obtains the terminal identity of the abnormal terminal, the attack behavior of the terminal device on the mobile network can be analyzed based on the terminal identity, such as analyzing whether the abnormal terminal device has signaling attacks or uses the mobile network to attack other corporate networks, and the abnormal terminal device is processed according to the behavior of the abnormal terminal device in the mobile network to ensure the security of the mobile network.

[0154] The above describes the verification method of the remote attestation result provided by the embodiment of the present application. The following describes the device for executing the above data processing method. Figure 7 As shown, Figure 7 The schematic diagram of the structure of a device provided in the present application is as follows: The device 700 includes a transceiver module 701 and a processing module 702 .

[0155] When the device 700 is applied to a gateway, the device 700 may be a gateway, or a functional module or hardware module (such as a chip, etc.) in the gateway. The gateway may be a security device such as a firewall, an intrusion detection system, an intrusion prevention system, or a WAF. Alternatively, the gateway may be a combination of at least one of the above security devices.

[0156] The transceiver module 701 is used to receive an application access request from a terminal device. The processing module 702 is used to record a log according to the application access request, the log includes a terminal identity of the terminal device, and the log is used to analyze the access behavior of the terminal device and to determine the terminal identity of the terminal device when the access behavior of the terminal device is abnormal.

[0157] In a possible implementation, processing module 702 is used to obtain a source Internet Protocol IP address in an application access request. Processing module 702 is used to obtain a terminal identity according to the source IP address and the correspondence between the IP address of the terminal device and the terminal identity. Processing module 702 is used to add the terminal identity to a log generated based on the application access request.

[0158] In a possible implementation, the transceiver module 701 is used to receive a notification message, the notification message includes a terminal identity, and the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior. The processing module 702 is used to obtain the IP address of the terminal device according to the terminal identity and the correspondence between the terminal identity and the IP address. The processing module 702 is used to block the application access request whose source IP address is the IP address of the terminal device.

[0159] In a possible implementation, the transceiver module 701 is used to receive terminal information of a terminal device sent by an authentication server. The terminal information includes a correspondence between an IP address of the terminal device and a terminal identity identifier. The terminal information is sent by the authentication server after the terminal device is authenticated.

[0160] In a possible implementation, the terminal identity includes a user identity, the user identity includes information of a SIM card installed in the terminal device, and the SIM card information includes at least one of an IMSI and an MSISDN; and / or

[0161] The terminal identity includes the device identity, and the device identity includes the IMEI of the terminal device.

[0162] When the device 700 is applied to an authentication server, the device 700 may be an authentication server, or a functional module or hardware module (such as a chip, etc.) in the authentication server. The authentication server may be a server, a server cluster, a computer, or other equipment.

[0163] Among them, the transceiver module 701 is used to receive an authentication request from an authentication device in a mobile network, the authentication request carries the identity information of the terminal device, and the authentication information includes the terminal identity of the terminal device. The processing module 702 is used to authenticate the terminal device according to the authentication information. The transceiver module 701 is used to send the correspondence between the terminal identity of the terminal device and the Internet Protocol IP address of the terminal device to the gateway in the data network after the terminal device is authenticated, so that the gateway can add the terminal identity to the log generated based on the application access request from the terminal device according to the correspondence.

[0164] In a possible implementation, the transceiver module 701 is used to receive a notification message, the notification message includes a terminal identity of a terminal device, the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior, and the terminal identity in the notification message is obtained by analyzing the log. The transceiver module 701 is used to send the terminal identity of the terminal device to the mobile network.

[0165] In a possible implementation, the device further includes: a transceiver module 701, configured to receive a notification message, the notification message including a terminal identity of a terminal device, the terminal identity in the notification message indicating that the terminal device is a device with abnormal access behavior, and the terminal identity in the notification message is obtained by analyzing the log. The authentication server sends the terminal identity of the terminal device to the gateway.

[0166] In a possible implementation, the device further includes: a transceiver module 701, which is used to receive a notification message, the notification message includes a terminal identity of a terminal device, the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior, and the terminal identity in the notification message is obtained based on the analysis of the log. A processing module 702 is used to change the connection state of the abnormal terminal device from online to offline according to the terminal identity in the notification message. The transceiver module 701 is used to send the changed connection state of the terminal device to the gateway so that the gateway disconnects the terminal device.

[0167] In a possible implementation, the IP address of the terminal device is allocated to the terminal device by the authentication server after the terminal device is authenticated successfully.

[0168] In one possible implementation, the terminal identity includes a user identity, the user identity includes information of a SIM card installed in the terminal device, the SIM card information includes at least one of IMSI and MSISDN; and / or the terminal identity includes a device identity, the device identity includes the IMEI of the terminal device.

[0169] When the device 700 is applied to a log analysis device, the device 700 may be a log analysis device, or a functional module or hardware module (such as a chip, etc.) in the log analysis device. The log analysis device may be a server, a server cluster, or a computer, etc. The log analysis device may also be integrated with the gateway into the same physical device as a functional module or hardware module of the gateway.

[0170] The processing module 702 is used to obtain logs, which are generated by the gateway according to the application access request from the terminal device, and the logs include the terminal identity of the terminal device. The processing module 702 has an analysis device to analyze the logs to determine the terminal device with abnormal access behavior and the terminal identity of the terminal device with abnormal access behavior.

[0171] In a possible implementation, the apparatus further includes: a transceiver module 701, configured to send a notification message to an authentication server, the notification message carrying a terminal identity, the terminal identity in the notification message indicating that the terminal device is a device with abnormal access behavior.

[0172] In a possible implementation, the apparatus further includes: a transceiver module 701, configured to send a notification message to a device in a mobile network, the notification message carrying a terminal identity, the terminal identity in the notification message indicating that the terminal device is a device with abnormal access behavior.

[0173] In a possible implementation, the apparatus further includes: a transceiver module 701, configured to send a notification message to a gateway, the notification message carrying a terminal identity, the terminal identity in the notification message indicating that the terminal device is a device with abnormal access behavior.

[0174] In one possible implementation, the terminal identity includes the user's identity, the user's identity includes information of a user identity module SIM card installed in the terminal device, the SIM card information includes at least one of an international mobile user identity code IMSI and a mobile user number MSISDN; and / or the terminal identity includes the device's identity, the device's identity includes the IMEI of the terminal device.

[0175] like Figure 8 As shown, Figure 8A schematic diagram of the structure of another device provided for the present application. The device 800 is applied to a core network device in a mobile network. The device 800 may be an SMF / UDM (5G network) in the core network, or an HSS / PGW (4G network), etc. The device 800 includes a processing module 801. The processing module 801 is used to obtain a terminal identity of an abnormal terminal device, where the terminal identity of the abnormal terminal device comes from a device in a data network accessed by the abnormal terminal, and the abnormal terminal device is connected to the data network via a mobile network. The processing module 801 is used to process the abnormal terminal device according to the terminal identity of the abnormal terminal device.

[0176] In a possible implementation, the processing module 801 is used to reject a session creation request of an abnormal terminal device according to a terminal identity of the abnormal terminal device, where the session creation request is used to instruct a core network device to create a session between the abnormal terminal device and a data network.

[0177] In a possible implementation, the processing module 801 is used to release the session between the abnormal terminal device and the data network.

[0178] In one possible implementation, the terminal identity includes the user's identity, the user's identity includes information of a user identity module SIM card installed in the terminal device, the SIM card information includes at least one of an international mobile user identity code IMSI and a mobile user number MSISDN; and / or the terminal identity includes the device's identity, the device's identity includes the IMEI of the terminal device.

[0179] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in this application. Fig. 9 As shown, the electronic device 900 is equipped with the device described in any of the above embodiments. The electronic device 900 is implemented by a general bus architecture.

[0180] The electronic device 900 includes at least one processor 901 , a communication bus 902 , a memory 903 , and at least one communication interface 904 .

[0181] Optionally, the processor 901 is a general-purpose CPU, NP, microprocessor, or one or more integrated circuits for implementing the solution of the present application, such as an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD is a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0182] The communication bus 902 is used to transmit information between the above components. The communication bus 902 is divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0183] Optionally, the memory 903 is a read-only memory (ROM) or other types of static storage devices that can store static information and instructions. Alternatively, the memory 903 is a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions. Alternatively, the memory 903 is an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this. Optionally, the memory 903 exists independently and is connected to the processor 901 through the communication bus 902. Optionally, the memory 903 and the processor 901 are integrated together.

[0184] The communication interface 904 uses any transceiver-like device for communicating with other devices or communication networks. The communication interface 904 includes a wired communication interface. Optionally, the communication interface 904 also includes a wireless communication interface. Among them, the wired communication interface is, for example, an Ethernet interface. The Ethernet interface is an optical interface, an electrical interface or a combination thereof. The wireless communication interface is a wireless local area network (WLAN) interface, a cellular network communication interface or a combination thereof, etc.

[0185] In a specific implementation, as an embodiment, the processor 901 includes one or more CPUs, such as Fig. 9 CPU0 and CPU1 are shown in the figure.

[0186] In a specific implementation, as an embodiment, the electronic device 900 includes multiple processors, such as Fig. 9 901 and processor 905 are shown in FIG. Each of these processors is a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here refers to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0187] In some embodiments, the memory 903 is used to store program code 906 for executing the solution of the present application, and the processor 901 executes the program code 906 stored in the memory 903. That is, the electronic device 900 implements the above method embodiment through the processor 901 and the program code 906 in the memory 903.

[0188] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a computer, the data processing method flow of any of the above method embodiments is implemented.

[0189] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0190] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe the specific order of the objects, and cannot be understood as indicating or implying relative importance. For example, the first speed-limited channel and the second speed-limited channel are used to distinguish different speed-limited channels, rather than to describe the specific order of the speed-limited channels, and cannot be understood as the first speed-limited channel being more important than the second speed-limited channel.

[0191] In the embodiments of the present application, unless otherwise specified, “at least one” means one or more, and “plurality” means two or more.

[0192] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical or other forms.

[0193] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0194] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0195] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the technical solution of the present application can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A data processing method, characterized in that: The method comprises: The gateway receives the application access request from the terminal device; The gateway records a log according to the application access request, the log including the terminal identity of the terminal device, the log is used to analyze the access behavior of the terminal device, and to determine the terminal identity of the terminal device when there is an abnormality in the access behavior of the terminal device.

2. The method according to claim 1, characterized in that The gateway records a log according to the application access request, including: The gateway obtains a source Internet Protocol IP address in the application access request; The gateway obtains the terminal identity according to the source IP address and the correspondence between the IP address of the terminal device and the terminal identity; The gateway adds the terminal identity to a log generated based on the application access request.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: The gateway receives a notification message, the notification message includes the terminal identity, and the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior; The gateway obtains the IP address of the terminal device according to the terminal identity identifier and the corresponding relationship between the terminal identity identifier and the IP address; The gateway blocks application access requests whose source IP address is the IP address of the terminal device.

4. The method according to any one of claims 1 to 3, characterized in that Before the gateway receives the application access request of the terminal device, it includes: The gateway receives the terminal information of the terminal device sent by the authentication server, wherein the terminal information includes the correspondence between the IP address of the terminal device and the terminal identity identifier, and the terminal information is sent by the authentication server after the terminal device is authenticated successfully.

5. The method according to any one of claims 1 to 4, characterized in that The terminal identity includes a user identity, the user identity includes information of a user identity module SIM card installed in the terminal device, the SIM card information includes at least one of an international mobile subscriber identity code IMSI and a mobile subscriber number MSISDN; and / or The terminal identity includes an identity of a device, and the identity of the device includes an International Mobile Equipment Identity (IMEI) code of the terminal device.

6. A data processing method, characterized in that: The method comprises: The authentication server receives an authentication request from an authentication device in a mobile network, wherein the authentication request carries identity information of a terminal device, and the authentication information includes a terminal identity identifier of the terminal device; After the authentication server authenticates the terminal device according to the authentication information, it sends the correspondence between the terminal identity of the terminal device and the Internet Protocol IP address of the terminal device to the gateway in the data network, so that the gateway can add the terminal identity to the log generated based on the application access request from the terminal device according to the correspondence.

7. The method according to claim 6, characterized in that The terminal device is connected to the authentication server via a mobile network; the method further comprises: The authentication server receives a notification message, the notification message including a terminal identity of the terminal device, the terminal identity in the notification message indicating that the terminal device is a device with abnormal access behavior, and the terminal identity in the notification message is obtained by analyzing the log; The authentication server sends the terminal identity of the terminal device to the device in the mobile network.

8. The method according to claim 6 or 7, characterized in that: The method further comprises: The authentication server receives a notification message, the notification message including a terminal identity of the terminal device, the terminal identity in the notification message indicating that the terminal device is a device with abnormal access behavior, and the terminal identity in the notification message is obtained by analyzing the log; The authentication server sends the terminal identity of the terminal device to the gateway.

9. The method according to any one of claims 6 to 8, characterized in that The IP address of the terminal device is allocated to the terminal device by the authentication server after the terminal device is authenticated.

10. The method according to any one of claims 7 to 9, characterized in that The terminal identity includes a user identity, the user identity includes information of a user identity module SIM card installed in the terminal device, the SIM card information includes at least one of an international mobile subscriber identity code IMSI and a mobile subscriber number MSISDN; and / or The terminal identity includes an identity of a device, and the identity of the device includes an International Mobile Equipment Identity (IMEI) code of the terminal device.

11. A data processing method, characterized in that: The method comprises: The log analysis device obtains a log, wherein the log is generated by the gateway according to an application access request from the terminal device, and the log includes a terminal identity of the terminal device; The log analysis device analyzes the log to determine the terminal device whose access behavior is abnormal and the terminal identity of the terminal device whose access behavior is abnormal.

12. The method according to claim 11, characterized in that The method further comprises: The log analysis device sends a notification message to the authentication server, the notification message carries the terminal identity identifier, and the terminal identity identifier in the notification message indicates that the terminal device is a device with abnormal access behavior.

13. The method according to claim 11, characterized in that The terminal device is connected to the gateway via a mobile network, and the method further includes: The log analysis device sends a notification message to a device in the mobile network, the notification message carries the terminal identity, and the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior.

14. The method according to any one of claims 11 to 13, characterized in that The terminal identity includes a user identity, the user identity includes information of a user identity module SIM card installed in the terminal device, the SIM card information includes at least one of an international mobile subscriber identity code IMSI and a mobile subscriber number MSISDN; and / or The terminal identity includes an identity of a device, and the identity of the device includes an International Mobile Equipment Identity (IMEI) code of the terminal device.

15. A data processing method, characterized in that: The method is applied to a core network device in a mobile network, and the method comprises: The core network device obtains a terminal identity of an abnormal terminal device, where the terminal identity of the abnormal terminal device comes from a device in a data network accessed by the abnormal terminal, and the abnormal terminal device is connected to the data network through the mobile network; The core network device processes the abnormal terminal device according to the terminal identity identifier of the abnormal terminal device.

16. The method according to claim 15, characterized in that The core network device processes the abnormal terminal device according to the terminal identity of the abnormal terminal device, including: The core network device rejects a session creation request of the abnormal terminal device according to the terminal identity identifier of the abnormal terminal device, wherein the session creation request is used to instruct the core network device to create a session between the abnormal terminal device and the data network.

17. The method according to claim 15 or 16, characterized in that The core network device processes the abnormal terminal device according to the terminal identity of the abnormal terminal device, including: The core network device releases the session between the abnormal terminal device and the data network according to the terminal identity identifier of the abnormal terminal device.

18. The method according to any one of claims 15 to 17, characterized in that The terminal identity includes a user identity, the user identity includes information of a user identity module SIM card installed in the terminal device, the SIM card information includes at least one of an international mobile subscriber identity code IMSI and a mobile subscriber number MSISDN; and / or The terminal identity includes an identity of a device, and the identity of the device includes an International Mobile Equipment Identity (IMEI) code of the terminal device.

19. A device, characterized in that: The device is applied to a gateway, and the device includes: A transceiver module, used for receiving application access requests from terminal devices; A processing module is used to record a log according to the application access request, the log including the terminal identity of the terminal device, the log is used to analyze the access behavior of the terminal device, and to determine the terminal identity of the terminal device when there is an abnormality in the access behavior of the terminal device.

20. The device according to claim 19, characterized in that The processing module is used to obtain the source Internet Protocol IP address in the application access request; The processing module is used to obtain the terminal identity according to the source IP address and the corresponding relationship between the IP address of the terminal device and the terminal identity; The processing module is used to add the terminal identity to the log generated based on the application access request.

21. The device according to claim 19 or 20, characterized in that The transceiver module is used to receive a notification message, the notification message includes the terminal identity, and the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior; The processing module is used to obtain the IP address of the terminal device according to the terminal identity and the corresponding relationship between the terminal identity and the IP address; The processing module is used to block application access requests whose source IP address is the IP address of the terminal device.

22. The device according to any one of claims 19 to 21, characterized in that The transceiver module is used to receive terminal information of the terminal device sent by the authentication server, wherein the terminal information includes the correspondence between the IP address of the terminal device and the terminal identity identifier, and the terminal information is sent by the authentication server after the terminal device is authenticated.

23. A device, characterized in that: The device is applied to an authentication server, and the device comprises: A transceiver module, configured to receive an authentication request from an authentication device in a mobile network, wherein the authentication request carries identity information of a terminal device, and the authentication information includes a terminal identity identifier of the terminal device; A processing module, used for authenticating the terminal device according to the authentication information; The transceiver module is used to send the correspondence between the terminal identity of the terminal device and the Internet Protocol IP address of the terminal device to the gateway in the data network after the terminal device is authenticated, so that the gateway can add the terminal identity to the log generated based on the application access request from the terminal device according to the correspondence.

24. The device according to claim 23, characterized in that The transceiver module is used to receive a notification message, the notification message includes a terminal identity of the terminal device, the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior, and the terminal identity in the notification message is obtained by analyzing the log; The transceiver module is used to send the terminal identity of the terminal device to the device in the mobile network.

25. The device according to claim 23 or 24, characterized in that The device also includes: The transceiver module is used to receive a notification message, the notification message includes a terminal identity of the terminal device, the terminal identity in the notification message indicates that the terminal device is a device with abnormal access behavior, and the terminal identity in the notification message is obtained by analyzing the log; The authentication server sends the terminal identity of the terminal device to the gateway.

26. The device according to any one of claims 23 to 25, characterized in that The IP address of the terminal device is allocated to the terminal device by the authentication server after the terminal device is authenticated.

27. A device, characterized in that: The device is applied to a log analysis device, and the device comprises: A processing module, configured to obtain a log, wherein the log is generated by the gateway according to an application access request from a terminal device, and the log includes a terminal identity of the terminal device; The processing module comprises an analysis device for analyzing the log to determine the terminal device with abnormal access behavior and the terminal identity of the terminal device with abnormal access behavior.

28. The device according to claim 27, characterized in that The device also includes: The transceiver module is used to send a notification message to the authentication server, wherein the notification message carries the terminal identity identifier, and the terminal identity identifier in the notification message indicates that the terminal device is a device with abnormal access behavior.

29. The device according to claim 27, characterized in that The device also includes: The transceiver module is used to send a notification message to a device in the mobile network, wherein the notification message carries the terminal identity identifier, and the terminal identity identifier in the notification message indicates that the terminal device is a device with abnormal access behavior.

30. A device, characterized in that: The device is applied to a core network device in a mobile network, and the device includes: A processing module, configured to obtain a terminal identity of an abnormal terminal device, wherein the terminal identity of the abnormal terminal device comes from a device in a data network accessed by the abnormal terminal, and the abnormal terminal device is connected to the data network via the mobile network; The processing module is used to process the abnormal terminal device according to the terminal identity identifier of the abnormal terminal device.

31. The device according to claim 30, characterized in that The processing module is used to reject a session creation request of the abnormal terminal device according to the terminal identity identifier of the abnormal terminal device, wherein the session creation request is used to instruct the core network device to create a session between the abnormal terminal device and the data network.

32. The device according to claim 30 or 31, characterized in that The processing module is used to release the session between the abnormal terminal device and the data network according to the terminal identity identifier of the abnormal terminal device.

33. A network system, characterized in that: The system comprises the apparatus of any one of claims 19 to 22, the apparatus of any one of claims 23 to 26, the apparatus of any one of claims 27 to 29, and the apparatus of any one of claims 30 to 32.

34. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the processor is coupled to the memory, and the processor is configured to execute the data processing method according to any one of claims 1 to 18 based on instructions stored in the memory.

35. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises instructions, which, when the computer-readable storage medium is executed on a computer, causes the computer to execute the data processing method according to any one of claims 1 to 18.