Security gateway processing method and device based on 5G message

By encrypting and verifying the short links of 5G messages, combining AI intelligent prediction and deep learning models, the security risks in the field of 5G message operation and maintenance are solved, the protection of network addresses and the prevention of malicious access is achieved, and wireless communication is improved security.

CN119012186APending Publication Date: 2024-11-22CHINA MOBILE GRP GUANGDONG CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410968010.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing 5G message operation and maintenance field has security risks at the network level, application level, and information level, especially in terms of security supervision, and lacks deep security mechanisms.

Method used

Encryption by obtaining the real access address of the short link generated by the application, encapsulate the second short link, and perform routing information verification, validity verification and user permission verification, generate tokens for verification, and detect web page data to determine the scenario Classification, use AI intelligent prediction to set the validity period, and combine the XGBoost model and the BERT+CRF model for security detection.

Benefits of technology

It improves the security of 5G messages during transmission, avoids malicious access, enhances the protection of network addresses, and realizes unified request control and management of account access rights.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012186A_ABST
    Figure CN119012186A_ABST
Patent Text Reader

Abstract

The invention provides a security gateway processing method and device based on a 5G message, and relates to the technical field of wireless communication, and the method comprises the steps: obtaining a real access address of a first short link generated by an application party, and encrypting the first short link to obtain an encrypted address; packaging the encrypted address to obtain a second short link, and sending the second short link to a 5G message application party; receiving a second short link sent by the 5G message application party and forwarding the second short link to the 5G message sending interface; in response to the user accessing the second short link, analyzing the second short link and acquiring a real access address; generating a token for the second short link of the legal user; acquiring a token sent by an application party, and performing verification according to information in the token; and obtaining the webpage data corresponding to the token passing the verification, and performing detection to determine the scene classification. By encrypting and verifying the short link, the network address is protected, malicious access is avoided, and the security of wireless communication is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a 5G message-based security gateway processing method and device. Background Art

[0002] At present, based on the 5G message operation and maintenance solutions, combined with 5G messages, SMS applets, number card authentication and other capabilities, a number of scenario-based network management applications based on 5G message subscription accounts have been built, which has improved the efficiency of network management and operation and maintenance work order approval, alarm processing, and message notification. However, there are also security risks at the network level, application level, and information level, especially in terms of security supervision. Summary of the invention

[0003] The present application proposes a security gateway processing method, device, electronic device, computer-readable storage medium and computer program based on 5G messages, so as to at least solve the technical problem of low network address security in related technologies to a certain extent, improve the security of 5G messages during transmission, and avoid malicious access.

[0004] To achieve the above objectives, the first embodiment of the present application proposes a security gateway processing method based on 5G messages, including:

[0005] Obtaining a real access address of a first short link generated by the application party, and encrypting the first short link to obtain an encrypted address;

[0006] Encapsulate the encrypted address to obtain a second short link, and send the second short link to the 5G message application party;

[0007] Receive the second short link sent by the 5G message application and forward it to the 5G message sending interface;

[0008] In response to the user accessing the second short link, parsing the second short link and obtaining a real access address, and performing routing information verification, validity verification, and user authority verification on the real access address;

[0009] Generate a token for the second short link of the legitimate user, and send the token to the application party corresponding to the real access address;

[0010] Obtaining a token sent by the application party, and performing verification according to the information in the token;

[0011] The web page data corresponding to the verified token is obtained, and the web page data is tested to determine the scene classification.

[0012] Optionally, obtaining the real access address of the first short link generated by the application party and encrypting the first short link to obtain an encrypted address includes:

[0013] Obtaining the real access address of the first short link generated by the application party, matching the real access address with the platform's routing configuration table, and verifying whether it complies with the routing configuration policy;

[0014] Encrypting the verified real access address to obtain an encrypted address, and setting a validity period for the encrypted address;

[0015] Optionally, setting the validity period of the encrypted address includes:

[0016] Generate a sample set based on the user's historical message sending data, viewing data, and processing time data, and train a prediction model based on the sample set;

[0017] Extract the message type, sending, viewing and other features of the encrypted address and input them into the trained prediction model, and obtain the prediction validity period;

[0018] The validity period of the encrypted address is determined according to the predicted validity period.

[0019] Optionally, the performing routing information verification, validity verification and user authority verification on the real access address includes:

[0020] Matching the real access address with the routing configuration table to verify whether it complies with the routing configuration policy;

[0021] Obtaining the validity period of the real access address, and determining the validity of the second short link according to the validity period;

[0022] The user corresponding to the valid second short link is obtained, and the legitimacy of the user is verified to determine the access rights of the legitimate user.

[0023] Optionally, determining the validity of the second short link according to the validity period includes:

[0024] Compare the validity period with the current date, and if the current date has exceeded the validity period, determine that the second short link is expired, and generate an error message;

[0025] If the current date is within the validity period, it is determined that the second short link is valid.

[0026] Optionally, obtaining a user corresponding to a valid second short link, verifying the legitimacy of the user, and determining access rights of a legitimate user include:

[0027] Obtain the mobile phone number of the user corresponding to the valid second short link;

[0028] Querying a preset blacklist according to the mobile phone number;

[0029] Calling an account permission verification interface to determine whether the mobile phone number has permission to access the second short link;

[0030] If the mobile phone number is not in the blacklist and the mobile phone number has the authority to access the second short link, the user is determined to be a legitimate user; otherwise, the user is determined to be an illegal user.

[0031] Optionally, the second short link generation token for the legitimate user includes: account information, unique identity identifier, timestamp, expiration time, and request IP, and the verification based on the information in the token includes:

[0032] Determining the correctness of the token based on the unique identity identifier;

[0033] Determining the timeliness of the token according to the expiration time;

[0034] Compare the request IP in the token with the current request IP to determine consistency;

[0035] Verify the account information and obtain the account information of the accessing user.

[0036] Optionally, the detecting the webpage data to determine the scene classification includes:

[0037] Identify text information and image information in the web page data;

[0038] If the text information contains sensitive words and SQL injection, or the image information contains illegal scenes, the scene is determined to be classified as a high risk level;

[0039] If the text information includes identity information, determining that the scenario is classified as a medium risk level;

[0040] If the text message contains a mobile phone number, determining that the scenario is classified as a low risk level;

[0041] If the text information does not contain any dangerous keywords, the scene is determined to be classified as a safe level.

[0042] To achieve the above-mentioned purpose, the second embodiment of the present application proposes a 5G message-based security gateway processing device, including:

[0043] A receiving module, used to obtain a real access address of a first short link generated by an application party, and encrypt the first short link to obtain an encrypted address;

[0044] An encapsulation module, used to encapsulate the encrypted address to obtain a second short link, and send the second short link to a 5G message application party;

[0045] A sending module, used to receive the second short link sent by the 5G message application party and forward it to the 5G message sending interface;

[0046] a parsing module, configured to, in response to a user accessing the second short link, parse the second short link and obtain a real access address, and perform routing information verification, validity verification, and user authority verification on the real access address;

[0047] A token generation module, used to generate a token for a second short link of a legitimate user, and send the token to an application corresponding to the real access address;

[0048] A token receiving module, used to obtain the token sent by the application party and perform verification according to the information in the token;

[0049] The scene classification module is used to obtain the web page data corresponding to the token that has passed the verification, and detect the web page data to determine the scene classification.

[0050] To achieve the above-mentioned purpose, the third aspect of the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0051] The memory stores computer-executable instructions;

[0052] The processor executes the computer-executable instructions stored in the memory to implement the method as described in any one of the first aspects.

[0053] To achieve the above-mentioned purpose, the fourth aspect embodiment of the present application proposes a computer-readable storage medium, in which computer-readable storage medium is stored computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the method as described in any one of the first aspects.

[0054] To achieve the above-mentioned purpose, the fifth aspect of the present application proposes a computer program product, which implements any method in the first aspect when executed by a processor.

[0055] The 5G message-based security gateway processing method, device, electronic device and storage medium provided in this application protect network addresses by encrypting and verifying short links, avoid malicious access, and improve the security of wireless communications.

[0056] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0058] Figure 1 A flowchart of a security gateway processing method based on 5G messages provided in an embodiment of the present application;

[0059] Figure 2 A schematic diagram of the structure of a 5G message-based security gateway processing system provided in an embodiment of the present application;

[0060] Figure 3 A flowchart of a security gateway processing method based on 5G messages provided in an embodiment of the present application;

[0061] Figure 4 A flowchart of a security gateway processing method based on 5G messages provided in an embodiment of the present application;

[0062] Figure 5 A schematic diagram of the structure of a 5G message-based security gateway processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0063] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0064] At present, based on the 5G message operation and maintenance solutions, combined with 5G messages, SMS applets, number card authentication and other capabilities, a number of scenario-based network management applications based on 5G message subscription accounts have been built, which has improved the efficiency of network management and operation and maintenance work order approval, alarm processing, and message notification. However, there are also security risks at the network level, application level, and information level, especially in terms of security supervision.

[0065] Although some existing networks have also added control gateways between applications and background services, they mainly play a forwarding role and have certain authentication management, but lack deep security mechanisms. At present, the reverse proxy channel can only realize simple network request forwarding, lacks unified request control, lacks unified management of network request forwarding strategies, request page access address validity period, original access address encryption and decryption, and account access permission control.

[0066] To address this problem, the present application provides a security gateway processing method based on 5G messages. Figure 1 A flowchart of a security gateway processing method based on 5G messages provided in an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0067] Step 101, obtaining a real access address of a first short link generated by an application party, and encrypting the first short link to obtain an encrypted address;

[0068] Step 102: encapsulate the encrypted address to obtain a second short link, and send the second short link to the 5G message application party;

[0069] Step 103: receiving the second short link sent by the 5G message application and forwarding it to the 5G message sending interface;

[0070] Step 104: in response to the user accessing the second short link, the second short link is parsed to obtain a real access address, and the real access address is verified for routing information, validity, and user authority;

[0071] Step 105, generating a token for the second short link of the legitimate user, and sending the token to the application party corresponding to the real access address;

[0072] Step 106, obtaining the token sent by the application party, and performing verification according to the information in the token;

[0073] Step 107, obtaining web page data corresponding to the verified token, and detecting the web page data to determine the scene classification.

[0074] Figure 2 A schematic diagram of the structure of a 5G message-based security gateway processing system provided in an embodiment of the present application. Figure 2 As shown, the system includes four participants: a user 210, a 5G message application 220, a 5G message security gateway 230 and a 5G message provider 240.

[0075] The user is the initiator of the access request and makes a request to access a certain link. The 5G message application is used to generate a short link. The 5G message security gateway is used to perform a series of processing on the short link, including but not limited to encryption and decryption, and serves as a channel between the user and the 5G message application to transmit access requests and feedback information. The 5G message provider is used to provide multiple interfaces for the 5G message security gateway to process short links.

[0076] In this embodiment, steps 101-103 are the process of generating and sending 5G messages. Short link is a URL simplification service on the Internet, which converts long URLs into shorter URLs for easy sharing, memorization and entry. This is particularly useful for social media platforms, as these platforms usually have character limits. Short link services are usually implemented through a third-party platform, which records the mapping relationship between long links and short links and redirects users to the original long URL when they access the short link.

[0077] Steps 104-107 are the process of users accessing 5G messages. The user sends a short link access request to the 5G message security gateway. The 5G message security gateway parses the user's request and performs a security check on the user (including authentication, legality verification, etc.), and then provides web page data to users who pass the security check.

[0078] In step 101, the 5G message application creates a short link by calling the short link encapsulation interface provided by the 5G message operation and maintenance platform. All short links are mapped to the unified short link verification interface of the 5G security gateway.

[0079] In step 102, the 5G security gateway generates a second short link by calling the short link encapsulation interface of the 5G message provider and returns it to the 5G message application.

[0080] In a possible embodiment, the address of the second short link is:

[0081] https: / / hfx.net / i / IWLW31.

[0082] The 5G message operation and maintenance platform sends 5G messages by calling the 5G message sending interface of the Internet company

[0083] In step 103, the 5G message application sends the second short link to the 5G security gateway, which then sends it to the user via a 5G message. The user receives the 5G message on the mobile phone and can click on the second short link to access it.

[0084] Optionally, the step 101 of acquiring a real access address of a first short link generated by the application party and encrypting the first short link to obtain an encrypted address includes:

[0085] Obtaining the real access address of the first short link generated by the application party, matching the real access address with the platform's routing configuration table, and verifying whether it complies with the routing configuration policy;

[0086] Encrypting the verified real access address to obtain an encrypted address, and setting a validity period for the encrypted address;

[0087] In this embodiment, the 5G message security gateway verifies the real access address of the first short link, matches the real access address with the platform's routing configuration table, and verifies whether it complies with the routing configuration policy.

[0088] The 5G message security gateway also encrypts the real access address through the AES encryption algorithm, sets a validity period, and saves it to the database table and Redis cache. The encrypted addresses are mapped to the unified short link verification interface of the 5G security gateway.

[0089] For example, the first short link address is: https: / / xxx / nrms / gw / nsuper-app / weekly / list

[0090] The encrypted return address is:

[0091] https: / / xxx.hfx.net / nrms / gw?id=2f001432db7f4b40b1e8f2142499307d&token=c3962021fec611ed898792be66baacc6

[0092] Optionally, setting the validity period of the encrypted address includes:

[0093] Generate a sample set based on the user's historical message sending data, viewing data, and processing time data, and train a prediction model based on the sample set;

[0094] Extract the message type, sending, viewing and other features of the encrypted address and input them into the trained prediction model, and obtain the prediction validity period;

[0095] The validity period of the encrypted address is determined according to the predicted validity period.

[0096] In this embodiment, AI is used to intelligently predict and set the validity period of the first short link. The system extracts message type, sending, viewing and other features based on the user's historical message sending, viewing and processing time sample set, and uses the XGBoost (eXtremeGradient Boosting) model to intelligently predict the short link validity period to determine whether the set validity period is reasonable, reduce unreasonable human time settings, and reduce the risk of information leakage.

[0097] XGBoost (eXtreme Gradient Boosting) is an algorithm engineering implementation based on GBDT. Gradient Boosting Decision Tree (GBDT) is an additive model based on the idea of ​​boosting integration. It uses the forward distribution algorithm for greedy learning during training. Each iteration learns a CART tree to fit the residual between the prediction results of the previous t-1 trees and the true value of the training sample, so as to achieve the purpose of integrated learning.

[0098] Optionally, step 104 performs routing information verification, validity verification, and user authority verification on the real access address, including:

[0099] Matching the real access address with the routing configuration table to verify whether it complies with the routing configuration policy;

[0100] Obtaining the validity period of the real access address, and determining the validity of the second short link according to the validity period;

[0101] The user corresponding to the valid second short link is obtained, and the legitimacy of the user is verified to determine the access rights of the legitimate user.

[0102] In this embodiment, when a user accesses a short link, the Internet company parses the short link to obtain the real request address. The 5G message security gateway decrypts the request parameters and queries the database table based on the parameter ID to obtain the real access address. The real access address is the parameter and token ticket information.

[0103] For example, there is a short link address: https: / / hfx.net / i / IWLW31. After parsing, the real access address is:

[0104] https: / / xxx.hfx.net / nrms / gw?id=2f001432db7f4b40b1e8f2142499307d&token=c3962021fec611ed898792be66baacc6.

[0105] Decrypt according to the request parameter decryption, query the database table according to the parameter ID, and obtain the original real access address: https: / / xxx / nrms / gw / nsuper-app / weekly / list.

[0106] If the real access address, address validity period and other parameters cannot be decrypted, and if no record is found, the system determines that the request is an illegal request and returns an error message "Invalid link".

[0107] Match the original real access address with the platform's routing configuration table to verify whether it complies with the routing configuration policy.

[0108] Optionally, determining the validity of the second short link according to the validity period includes:

[0109] Compare the validity period with the current date, and if the current date has exceeded the validity period, determine that the second short link is expired, and generate an error message;

[0110] If the current date is within the validity period, it is determined that the second short link is valid.

[0111] In this embodiment, the validity of the second short link is verified, and the expiration date of the second short link is compared with the current date to determine whether the second short link has expired. If it has expired, an error message will be returned to the user. For example, the cutover daily report is valid for 1 day and is only valid on that day. It will be invalid beyond that day.

[0112] Optionally, obtaining a user corresponding to a valid second short link, verifying the legitimacy of the user, and determining access rights of a legitimate user include:

[0113] Obtain the mobile phone number of the user corresponding to the valid second short link;

[0114] Querying a preset blacklist according to the mobile phone number;

[0115] Calling an account permission verification interface to determine whether the mobile phone number has permission to access the second short link;

[0116] If the mobile phone number is not in the blacklist and the mobile phone number has the authority to access the second short link, the user is determined to be a legitimate user; otherwise, the user is determined to be an illegal user.

[0117] In this embodiment, after the second short link verification is passed, the 5G message security gateway will further call the Internet company's number authentication interface, pass in the token ticket information, and obtain the mobile phone number of the accessing user.

[0118] Query the account and black and white lists based on the number to determine whether the user has illegal access.

[0119] Call the account permission verification interface provided by the 5G message application to determine whether the user has permission to access the application link.

[0120] Optionally, the second short link generation token for the legitimate user includes: account information, unique identity identifier, timestamp, expiration time, and request IP, and the verification based on the information in the token includes:

[0121] Determining the correctness of the token based on the unique identity identifier;

[0122] Determining the timeliness of the token according to the expiration time;

[0123] Compare the request IP in the token with the current request IP to determine consistency;

[0124] Verify the account information and obtain the account information of the accessing user.

[0125] In this embodiment, JSON Web Token (JWT) technology is used to generate a token with account information and timestamp, including unique identity identification, timestamp, expiration time, request IP and other parameters, and the newly generated token is carried to the real address of the application party. The token expiration time defaults to 120 minutes, and different users can set different token expiration times.

[0126] When jumping to the real address, the 5G message security gateway will parse the token information, including the unique identity identifier, timestamp, expiration time, request IP and other parameters, and perform the following security verification based on the parsing results:

[0127] Verify the validity of the token and determine whether the token is correct

[0128] Verify the validity of the token and determine whether the tonken is expired

[0129] Verify the IP address, compare the IP address in the token with the current request IP address, and determine whether the IP address is consistent to prevent the link from being intercepted and forwarded.

[0130] Verify account information and obtain the account information of the accessing user.

[0131] After receiving the page request, the 5G message application calls the interface provided by the 5G message operation and maintenance platform to parse the token information, including the unique identity identifier, timestamp, expiration time, etc., and verifies the validity and timeliness of the token based on the parsed result, performs security verification and obtains the account information of the accessing user at the same time, completes the application's own security authentication work, and returns the display page to the user, which contains the web page data.

[0132] The application's subsequent request links must carry this token, and the 5G message security gateway will parse and verify the validity, timeliness and IP address of this token.

[0133] Optionally, the step 107 detects the web page data to determine the scene classification, including:

[0134] Identify text information and image information in the web page data;

[0135] If the text information contains sensitive words and SQL injection, or the image information contains illegal scenes, the scene is determined to be classified as a high risk level;

[0136] If the text information includes identity information, determining that the scenario is classified as a medium risk level;

[0137] If the text message contains a mobile phone number, determining that the scenario is classified as a low risk level;

[0138] If the text information does not contain any dangerous keywords, the scene is determined to be classified as a safe level.

[0139] In this embodiment, the BERT+CRF model architecture is used to identify keywords in web pages, and detect sensitive words, SQL injections, identity information, mobile phone numbers and other information.

[0140] The BERT+CRF model architecture follows a three-layer structure of word encoder, sequence encoder, and sequence decoder from bottom to top. The word encoder of the BERT+CRF model architecture uses WordPiece, the character position encoder uses sinusoidal position embedding (Postional Embedding) and sentence embedding (Segment Embedding), the sequence encoder uses the Transformer structure, and the sequence decoder uses the CRF model. The BERT+CRF model predicts a multi-classification problem for each word in the text. After passing through the BERT sequence encoder, each word has a vector representation. In order to predict the label corresponding to each word, a CRF sequence decoder is required to complete the conversion from the sequence vector to the corresponding predicted label. Finally, after the request message passes through the BERT+CRF model, keywords classified as sensitive words, SQL injection, identity information, and mobile phone numbers can be extracted.

[0141] In this embodiment, the ShuffleNet v2 model is used to classify the image content according to the scene. If an illegal scene is identified, it is determined to be a high risk level.

[0142] It is roughly divided into five scenarios:

[0143] Typical scenarios: emergency communication scenarios such as floods, earthquakes, and typhoons;

[0144] Major fault handling and on-site equipment emergency repair scene

[0145] Network equipment cutover on-site construction scenarios, home broadband installation and maintenance installation and disassembly scenarios;

[0146] Illegal scenes: illegal pictures;

[0147] Other irrelevant pictures: such as eating, shopping, etc.

[0148] Compared with the classic deep learning classification models ResNet and DenseNet, ShuffleNet v2 can improve the classification speed without reducing the classification accuracy. The following figure shows the two basic unit architectures of the ShuffleNet v2 network model. The Concat operation is used to achieve feature reuse. After concat, channel shuffle is used to mix features, thereby improving the speed of the model without losing feature information.

[0149] Figure 3 and Figure 4 A flowchart of a security gateway processing method based on 5G messages provided in an embodiment of the present application. Figure 3 For the generation and sending process of 5G messages, Figure 4 The process for users to access 5G messages, the specific steps are as described in the previous embodiment.

[0150] In order to implement the above embodiments, the present application also proposes a security gateway processing device based on 5G messages. Figure 5 A schematic diagram of the structure of a 5G message-based security gateway processing device provided in an embodiment of the present application. Figure 5 As shown, the device comprises:

[0151] The receiving module 510 is used to obtain the real access address of the first short link generated by the application party, and encrypt the first short link to obtain an encrypted address;

[0152] The encapsulation module 520 is used to encapsulate the encrypted address to obtain a second short link, and send the second short link to the 5G message application party;

[0153] A sending module 530, configured to receive the second short link sent by the 5G message application and forward it to a 5G message sending interface;

[0154] The parsing module 540 is used for parsing the second short link and obtaining a real access address in response to the user accessing the second short link, and performing routing information verification, validity verification and user authority verification on the real access address;

[0155] A token generation module 550 is used to generate a token for a second short link of a legitimate user, and send the token to an application corresponding to the real access address;

[0156] The token receiving module 560 is used to obtain the token sent by the application party and perform verification according to the information in the token;

[0157] The scene classification module 570 is used to obtain the web page data corresponding to the token that has passed the verification, and detect the web page data to determine the scene classification.

[0158] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.

[0159] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.

[0160] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.

[0161] The collection, storage, use, processing, transmission, provision and disclosure of user personal information involved in this application are in compliance with relevant laws and regulations and do not violate public order and good morals.

[0162] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.

[0163] The present application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, the present disclosure is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, the risk can be minimized by limiting data collection and deleting the data. In addition, when applicable, such personal information is de-identified to protect the privacy of the user.

[0164] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0165] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0166] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0167] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0168] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0169] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0170] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0171] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A security gateway processing method based on 5G messages, characterized in that: Applied to 5G message security gateway, including the following steps: Obtaining a real access address of a first short link generated by the application party, and encrypting the first short link to obtain an encrypted address; Encapsulate the encrypted address to obtain a second short link, and send the second short link to the 5G message application party; Receive the second short link sent by the 5G message application and forward it to the 5G message sending interface; In response to the user accessing the second short link, parsing the second short link and obtaining a real access address, and performing routing information verification, validity verification, and user authority verification on the real access address; Generate a token for the second short link of the legitimate user, and send the token to the application party corresponding to the real access address; Obtaining a token sent by the application party, and performing verification according to the information in the token; The web page data corresponding to the verified token is obtained, and the web page data is tested to determine the scene classification.

2. The method according to claim 1, characterized in that The step of obtaining the real access address of the first short link generated by the application party and encrypting the first short link to obtain the encrypted address includes: Obtaining the real access address of the first short link generated by the application party, matching the real access address with the routing configuration table of the platform, and verifying whether it complies with the routing configuration policy; The verified real access address is encrypted to obtain an encrypted address, and a validity period of the encrypted address is set.

3. The method according to claim 2, characterized in that The setting of the validity period of the encrypted address includes: Generate a sample set based on the user's historical message sending data, viewing data, and processing time data, and train a prediction model based on the sample set; Extract the message type, sending, viewing and other features of the encrypted address and input them into the trained prediction model, and obtain the prediction validity period; The validity period of the encrypted address is determined according to the predicted validity period.

4. The method according to claim 1, characterized in that The performing of routing information verification, validity verification and user authority verification on the real access address includes: Matching the real access address with the routing configuration table to verify whether it complies with the routing configuration policy; Obtaining the validity period of the real access address, and determining the validity of the second short link according to the validity period; The user corresponding to the valid second short link is obtained, and the legitimacy of the user is verified to determine the access rights of the legitimate user.

5. The method according to claim 4, characterized in that The determining the validity of the second short link according to the validity period includes: Compare the validity period with the current date, and if the current date has exceeded the validity period, determine that the second short link is expired, and generate an error message; If the current date is within the validity period, it is determined that the second short link is valid.

6. The method according to claim 5, characterized in that The obtaining of the user corresponding to the valid second short link, and verifying the legitimacy of the user to determine the access rights of the legitimate user include: Obtain the mobile phone number of the user corresponding to the valid second short link; Querying a preset blacklist according to the mobile phone number; Calling an account permission verification interface to determine whether the mobile phone number has permission to access the second short link; If the mobile phone number is not in the blacklist and the mobile phone number has the authority to access the second short link, the user is determined to be a legitimate user; otherwise, the user is determined to be an illegal user.

7. The method according to claim 6, characterized in that The second short link generation token for the legitimate user includes: account information, unique identity identifier, timestamp, expiration time, and request IP. The verification based on the information in the token includes: Determining the correctness of the token based on the unique identity identifier; Determining the timeliness of the token according to the expiration time; Compare the request IP in the token with the current request IP to determine consistency; Verify the account information and obtain the account information of the accessing user.

8. The method according to claim 7, characterized in that The detecting the web page data to determine the scene classification includes: Identify text information and image information in the web page data; If the text information contains sensitive words and SQL injection, or the image information contains illegal scenes, the scene is determined to be classified as a high risk level; If the text information includes identity information, determining that the scenario is classified as a medium risk level; If the text message contains a mobile phone number, determining that the scenario is classified as a low risk level; If the text information does not contain any dangerous keywords, the scene is determined to be classified as a safe level.

9. A security gateway processing device based on 5G messages, characterized in that: include: A receiving module, used to obtain a real access address of a first short link generated by an application party, and encrypt the first short link to obtain an encrypted address; An encapsulation module, used to encapsulate the encrypted address to obtain a second short link, and send the second short link to a 5G message application party; A sending module, used to receive the second short link sent by the 5G message application party and forward it to the 5G message sending interface; a parsing module, configured to, in response to a user accessing the second short link, parse the second short link and obtain a real access address, and perform routing information verification, validity verification, and user authority verification on the real access address; A token generation module, used to generate a token for a second short link of a legitimate user, and send the token to an application corresponding to the real access address; A token receiving module, used to obtain the token sent by the application party and perform verification according to the information in the token; The scene classification module is used to obtain the web page data corresponding to the token that has passed the verification, and detect the web page data to determine the scene classification.

10. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 8.