Small program risk identification method and device

Through the risk identification method that combines the risk database and the terminal cloud, we identify and manage risks in mini programs, solve the problems of privacy security, quality control, compliance and transaction risks in mini program applications, and achieve efficient risk management and user Data Protection.

CN118673498AActive Publication Date: 2024-09-20ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410695079.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-20
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

With the expansion of the application scope of mini programs, payment platforms are faced with user privacy security risks, quality control risks, compliance risks, transaction risks, etc., and an effective risk identification method is needed to ensure platform security and user privacy.

Method used

By obtaining the identification information and page information of the target applet, the risk database is used to identify risks on the terminal side and in the cloud, and risk assessment is performed based on terminal and cloud resources to determine whether there are preset risks in the page information and take corresponding risk management measures.

Benefits of technology

It improves the efficiency and resource utilization of mini program risk identification, enhances user privacy and data security, and ensures the orderly operation and user experience of mini programs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673498A
    Figure CN118673498A
Patent Text Reader

Abstract

One or more embodiments of the invention disclose an applet risk identification method and device. The method comprises the following steps: firstly, acquiring first information for performing risk identification on a target applet, and if corresponding page information is found from a risk database based on the acquired first information, acquiring an end side risk identification result corresponding to the page information from the risk database, if the end side risk identification result indicates that a preset risk exists in the page information, performing risk identification on the page information based on the first information, obtaining a cloud risk identification result corresponding to the page information, and determining a risk identification result corresponding to the page information based on the cloud risk identification result, if the end side risk identification result corresponding to the page information is not obtained from the risk database, calling an unvisited page corresponding to the page information in a terminal operation environment required by operation of the target applet, capturing information of the unvisited page, and determining whether the page information has a preset risk or not.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of Internet risk control technology, and in particular to a method and device for identifying risks of mini-programs. Background Art

[0002] With the development of Internet technology, mini programs are being used more and more widely. The diversified ready-to-use services provided by mini programs (such as shopping, ordering meals, travel, etc.) can effectively improve the application scenarios of the payment platform where the mini program is located, increase user activity and residence time on the payment platform, and provide powerful digital tools and interfaces for the payment platform where the mini program is located.

[0003] Accordingly, as the application scope of mini programs becomes wider and wider, various risks based on mini programs are gradually increasing, such as user privacy and security risks, quality control risks, compliance risks, and transaction risks. As people pay more and more attention to their privacy data and the security risk management needs of the payment platforms where mini programs are located, it is necessary to provide a mini program risk identification method to take corresponding risk management measures for mini programs running on payment platforms. Summary of the invention

[0004] On the one hand, one or more embodiments of the present specification provide a program risk identification method, including: obtaining first information for risk identification of a target applet, the first information including identification information of the target applet and identification information of page information in the target applet. If the corresponding page information is found from the risk database based on the first information obtained, then the end-side risk identification result corresponding to the page information is obtained from the risk database, and the end-side risk identification result is the risk identification result determined by the terminal device where the target applet is located for the page information. If the end-side risk identification result indicates that there is a preset risk in the page information, then the page information is risk identified based on the first information, the cloud risk identification result corresponding to the page information is obtained, and the risk identification result corresponding to the page information is determined based on the cloud risk identification result. If the end-side risk identification result corresponding to the page information is not obtained from the risk database, the unvisited page corresponding to the page information in the terminal running environment required for the target applet to run is called, the information of the unvisited page is captured, and it is determined whether the page information has a preset risk.

[0005] On the other hand, one or more embodiments of the present specification provide a program risk identification device, including: an information acquisition module, which acquires first information for risk identification of a target applet, wherein the first information includes identification information of the target applet and identification information of page information in the target applet. A terminal-side risk identification result acquisition module, if the corresponding page information is found from the risk database based on the acquired first information, then acquires the terminal-side risk identification result corresponding to the page information from the risk database, wherein the terminal-side risk identification result is the risk identification result determined by the terminal device where the target applet is located for the page information. A first risk identification module, if the terminal-side risk identification result indicates that there is a preset risk in the page information, then performs risk identification on the page information based on the first information, acquires the cloud-side risk identification result corresponding to the page information, and determines the risk identification result corresponding to the page information based on the cloud-side risk identification result. A second risk identification module, if the terminal-side risk identification result corresponding to the page information is not acquired from the risk database, then calls the unvisited page corresponding to the page information in the terminal running environment required for the target applet to run, captures the information of the unvisited page, and determines whether there is a preset risk in the page information.

[0006] On the other hand, one or more embodiments of the present specification provide a program risk identification system, including: a terminal and a cloud server, wherein the terminal collects page information generated when a user accesses a target applet, performs terminal-side risk identification based on the page information, obtains a terminal-side risk identification result corresponding to the page information, performs privacy protection processing on the terminal-side risk identification result, the identification information of the target applet, and the identification information of the page information in the target applet, and sends the terminal-side risk identification result after the privacy protection processing, the identification information of the target applet, and the identification information of the page information in the target applet to a risk database; the cloud server obtains first information for performing risk identification on the target applet, the first information including the identification information of the target applet and the identification information of the page information in the target applet, if based on the obtained first information If the corresponding page information is found from the risk database, the end-side risk identification result corresponding to the page information is obtained from the risk database, and the end-side risk identification result is the risk identification result determined by the terminal device where the target applet is located for the page information. If the end-side risk identification result indicates that there is a preset risk in the page information, the page information is subjected to risk identification based on the first information, and the cloud-side risk identification result corresponding to the page information is obtained, and the risk identification result corresponding to the page information is determined based on the cloud-side risk identification result. If the end-side risk identification result corresponding to the page information is not obtained from the risk database, the unvisited page corresponding to the page information in the terminal running environment required for the target applet to run is called, the information of the unvisited page is captured, and it is determined whether the page information has a preset risk.

[0007] On the other hand, one or more embodiments of the present specification provide an electronic device, including: a processor; and a memory arranged to store computer executable instructions, when the executable instructions are executed, the processor can: obtain first information for risk identification of a target applet, the first information including identification information of the target applet and identification information of page information in the target applet. If the corresponding page information is found from the risk database based on the first information obtained, the end-side risk identification result corresponding to the page information is obtained from the risk database, and the end-side risk identification result is the risk identification result determined by the terminal device where the target applet is located for the page information. If the end-side risk identification result indicates that there is a preset risk in the page information, the page information is risk identified based on the first information, the cloud risk identification result corresponding to the page information is obtained, and the risk identification result corresponding to the page information is determined based on the cloud risk identification result. If the end-side risk identification result corresponding to the page information is not obtained from the risk database, the unvisited page corresponding to the page information in the terminal running environment required for the target applet to run is called, the information of the unvisited page is captured, and it is determined whether the page information has a preset risk.

[0008] On the other hand, one or more embodiments of the present specification provide a storage medium for storing a computer program, and the computer program can be executed by a processor to implement the following process: obtaining first information for risk identification of a target applet, the first information including identification information of the target applet and identification information of page information in the target applet. If the corresponding page information is found from the risk database based on the first information obtained, then the end-side risk identification result corresponding to the page information is obtained from the risk database, and the end-side risk identification result is the risk identification result determined by the terminal device where the target applet is located for the page information. If the end-side risk identification result indicates that there is a preset risk in the page information, then the page information is risk identified based on the first information, the cloud risk identification result corresponding to the page information is obtained, and the risk identification result corresponding to the page information is determined based on the cloud risk identification result. If the end-side risk identification result corresponding to the page information is not obtained from the risk database, the unvisited page corresponding to the page information in the terminal running environment required for the target applet to run is called, the information of the unvisited page is captured, and it is determined whether the page information has a preset risk. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in one or more embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0010] Figure 1 is a schematic flow chart of a method for identifying risks of a mini program according to an embodiment of this specification;

[0011] Figure 2 This is a schematic diagram of the implementation principle of a mini-program risk identification according to an embodiment of this specification;

[0012] Figure 3 This is a flowchart of the mini-program risk identification in practical application according to an embodiment of this specification;

[0013] Figure 4 is a schematic block diagram of a mini-program risk identification device according to an embodiment of this specification;

[0014] Figure 5 is a schematic block diagram of a mini-program risk identification system according to an embodiment of this specification;

[0015] Figure 6 It is a schematic block diagram of an electronic device according to an embodiment of the present specification. DETAILED DESCRIPTION

[0016] One or more embodiments of this specification provide a method and device for identifying risks of a mini-program.

[0017] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will be combined with the drawings in one or more embodiments of this specification to clearly and completely describe the technical solutions in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.

[0018] like Figure 1As shown, the embodiment of this specification provides a method for identifying risks of mini-programs. The execution subject of the method can be a server (such as a cloud server). The server can be an independent server or a server cluster composed of multiple servers. The server can be a backend server in the financial field or online shopping field, or a backend server of an application. The method can specifically include the following steps:

[0019] In step S102, first information for risk identification of a target mini-program is obtained, where the first information includes identification information of the target mini-program and identification information of page information in the target mini-program.

[0020] With the development of Internet payment platform business, the importance of mini programs has become increasingly prominent. For example, mini programs can enhance user stickiness, expand service ecology, realize commercial monetization channels, and enhance market competitiveness for payment platforms. The diverse ready-to-use services provided by mini programs (such as shopping, ordering meals, travel, etc.) can effectively improve the application scenarios of the payment platform where the mini program is located, increase the activity and stay time of users on the payment platform, and provide powerful digital tools and interfaces for the payment platform where the mini program is located, thereby helping the payment platform to achieve rapid development and digital transformation of online business. Therefore, mini programs are an indispensable part of the comprehensive service capabilities and market competition strategies of payment platforms.

[0021] Accordingly, as the application scope of mini programs becomes wider and wider, various risks based on mini programs are gradually increasing. The above risks include: user privacy and security risks (such as: illegal users steal user information or defraud users through malware or phishing programs), quality control risks (such as: with the rapid increase of mini program data, low-quality or infringing mini programs may affect the quality of the platform where the mini program is located), compliance risks (such as: based on the different legal and regulatory requirements for Internet finance and e-commerce in different geographical regions, mini programs must comply with local regulations, otherwise they may face risks such as fines and delisting), and transaction risks (such as: when trading goods or booking services on mini programs, there may be transaction disputes, refund issues or service quality issues, which will affect the user experience and the reputation of the platform). As people pay more and more attention to their own privacy data and the security risk management needs of the payment platform where the mini program is located, it is necessary to provide a mini program risk identification method to take corresponding risk management measures for the mini programs running on the payment platform, so as to reduce risks and maintain the orderly operation of the mini program.

[0022] Mini programs running on payment platforms belong to the private domain operation of the mini program main body. The information exposed based on the user's behavior (such as browsing behavior, clicking behavior, transaction behavior, etc.) and access operations within the mini program belongs to the privacy information of the user and the mini program main body. Through the payment platform to identify and control the risks of mini programs, the user's privacy data can be effectively protected. Among them, the page content in the mini program is exposed when it is opened by the user (presented to the client). Each time the user opens the page content, it is equivalent to the page being exposed to the user once. The page that the client has not opened is considered to be an unexposed page.

[0023] In the embodiments of this specification, the risk type of the mini program can be content risk, such as: the mini program contains content that violates laws and regulations, the mini program publishes infringing content, and the mini program publishes false advertisements, etc. It can also be empirical risk, such as the user's privacy and security risks, quality control risks, transaction risks, etc. as mentioned above.

[0024] The target mini program is the mini program for which risk identification is to be performed. The first information used for risk identification of the target mini program includes identification information of the target mini program and identification information of the page information in the target mini program, wherein the identification information of the target mini program may be the mini program ID, and the identification information of the page information in the target mini program may be the page ID of a specific page. In the embodiment of this specification, the level of risk control for the target mini program is the page level (that is, the risk unit is the page level). If any page in the target mini program is found to contain risk information, corresponding risk control measures are taken to suspend the service of the target mini program and make rectifications. Therefore, the focus of risk identification is to identify risks based on the page information of the mini program. Specifically, it can be determined whether the target mini program has preset risks based on each page information in the target mini program.

[0025] Page information refers to the specific content information of a page in the mini program. It can be text information in the page, interactive button icons, images and other information in the page, or images containing text content and other information.

[0026] In implementation, the method for obtaining the first information can be based on the data in the risk database, obtaining the first information according to a preset time period, thereby initiating a subsequent risk identification process (for example: daily inspection scenarios for mini-program risk identification), or the first information can be obtained based on a risk identification request sent by the terminal, thereby initiating a subsequent risk identification process (for example: the terminal sends a risk identification request to the risk database, and performs risk identification based on the data in the risk database, or the terminal sends a risk identification request to a cloud server). The embodiments of this specification do not limit this.

[0027] In step S104, if the corresponding page information is found from the risk database based on the first information obtained, the terminal-side risk identification result corresponding to the page information is obtained from the risk database. The terminal-side risk identification result is the risk identification result determined by the terminal device where the target applet is located for the page information.

[0028] Among them, the risk database stores the mapping relationship between historical page information and end-side risk identification results, which may specifically include: the identification information of the mini program, the identification information of each page information in the mini program, and the end-side risk identification result corresponding to each page information in each mini program. For example: Mini program A contains page information 1 and page information 2, then the risk database may include: identification information ID-A of mini program A, identification information ID-A-1 of page information 1 in mini program A, identification information ID-A-2 of page information 2 in mini program A, end-side risk identification result A1 of page information 1 in mini program A, and end-side risk identification result A2 of page information 2 in mini program A.

[0029] The first information obtained in the embodiments of this specification includes the identification information of the target mini-program and the identification information of the page information in the target mini-program. It is not necessary to obtain the original data of the target mini-program. What is stored in the risk database is the terminal-side recognition result of the mini-program and the identification information of the mini-program and the identification information of the page information in the mini-program corresponding to the terminal-side recognition result, rather than the original data related to the target mini-program. The first information can also be further processed for privacy protection before being stored. Therefore, the privacy security of the user can be effectively improved.

[0030] It should be noted that the end-side risk identification results in the risk database include both the end-side risk identification results with preset risks and the end-side risk identification results without preset risks. By searching for the corresponding page information from the settings of the risk database and performing risk identification based on the end-side risk identification results in the risk database, it is possible to avoid further risk identification of page information in the risk database that indicates that the page information does not have preset risks, avoid repeated identification, and thus greatly reduce the number of applets to be risk identified and their corresponding page information, which can effectively improve the efficiency of risk identification, save resources, and improve resource utilization.

[0031] If the page information of the target applet in step S102 is stored in the risk database, based on the mapping relationship between the historical page information in the risk database and the end-side risk identification result, the end-side risk identification result corresponding to the page information can be determined.

[0032] Among them, the end-side risk identification result is the risk identification result determined by the terminal device based on the page information, which can be understood as the first-level risk identification process of the mini program risk identification processing.

[0033] In step S106, if the end-side risk identification result indicates that there is a preset risk in the page information, risk identification is performed on the page information based on the first information, a cloud-side risk identification result corresponding to the page information is obtained, and a risk identification result corresponding to the page information is determined based on the cloud-side risk identification result.

[0034] If the end-side risk identification result indicates that there is a preset risk in the page information, the first-level risk identification result is that there is a preset risk, and the second-level risk identification process continues: risk identification is performed on the page information based on the first information, and the cloud-based risk identification result corresponding to the page information is obtained. If the end-side risk identification result indicates that there is no preset risk in the page information, the first-level risk identification result is that there is no preset risk, and the second-level risk identification process is refused.

[0035] If risk identification is performed on the page information based on the first information, and the cloud-based risk identification result corresponding to the page information is obtained (i.e., the second-level risk identification process is executed), then the risk identification result corresponding to the page information is determined based on the cloud-based risk identification result, i.e.: the cloud-based risk identification result is used as the risk identification result of the current page information in the target mini-program.

[0036] In implementation, the method of performing risk identification on the page information based on the first information and obtaining the cloud-based risk identification result corresponding to the page information can be based on risk identification experience, manually performing risk identification and determining the cloud-based risk identification result, or based on a preset risk identification algorithm, such as a statistical analysis algorithm or a machine learning algorithm such as logistic regression, etc., performing risk identification on the page information on a cloud server and determining the cloud-based risk identification result. It can also be based on a pre-trained risk identification model to perform risk identification on the page information and obtain the cloud-based risk identification result corresponding to the page information.

[0037] In step S108, if the terminal-side risk identification result corresponding to the page information is not obtained from the risk database, the unvisited page corresponding to the page information in the terminal running environment required for the target applet is called to capture the information of the unvisited page and determine whether the page information has a preset risk.

[0038] If the terminal-side risk identification result corresponding to the page information is not obtained from the risk database, it can be understood that the page information of the target applet in step S102 is not stored in the risk database, the page has not been exposed to the user terminal, and the page information is the page information of the page not visited by the user terminal. Then, according to step S108 of the embodiment of this specification, the unvisited page corresponding to the page information in the terminal running environment required for the running of the target applet is called, the information of the unvisited page is captured, and it is determined whether the page information has a preset risk.

[0039] In implementation, the terminal operating environment required for the target mini program to run can be an offline real-machine inspection operating environment, that is, the server (such as a cloud server) controls the test equipment (such as a test mobile phone) in the test room, runs a pre-written automated test script, and automatically opens the page information of the target mini program, thereby simulating the process of the target mini program being accessed on the client, that is, simulating the user-side behavior.

[0040] By calling the unvisited pages of the target mini-program, capturing the information of the unvisited pages (i.e., the page information of the unvisited pages), and determining whether the page information (i.e., the page information in the target mini-program in step S102) has a preset risk, it is possible to directly determine on the cloud server whether the current page information corresponding to the target mini-program has a preset risk.

[0041] An embodiment of the present specification provides a method for mini-program risk identification, which is applied to a cloud server. First, first information for risk identification of a target mini-program is obtained. Secondly, if corresponding page information is found in a risk database based on the first information obtained, an end-side risk identification result corresponding to the page information is obtained from the risk database. The end-side risk identification result is a risk identification result determined by a terminal device where the target mini-program is located for the page information. If the end-side risk identification result indicates that there is a preset risk in the page information, risk identification is performed on the page information based on the first information, and a cloud-based risk identification result corresponding to the page information is obtained. The risk identification result corresponding to the page information is determined based on the cloud-based risk identification result. Finally, if the end-side risk identification result corresponding to the page information is not obtained from the risk database, an unvisited page corresponding to the page information in the terminal running environment required for the target mini-program to run is called to capture information about the unvisited page to determine whether the page information has a preset risk. In this way, after obtaining the first information, by searching the end-side risk identification result corresponding to the page information from the risk database, and determining whether to further perform risk identification on the cloud server based on the end-side risk identification, it is possible to avoid performing risk identification on the page information in the risk database that indicates that the page information does not have a preset risk, thereby effectively improving the efficiency of risk identification and improving resource utilization. Moreover, the risk identification result in the embodiment of this specification is an identification result obtained by combining the end-side risk identification result and the cloud risk identification result. The end-side risk identification result comes from the terminal device. When the terminal device reports the risk identification result and its corresponding first information to the cloud server, it can better perform privacy protection processing on the user information running in the mini program (such as: IP address, device identification, browsing behavior and other sensitive data), thereby effectively improving data security. Moreover, by utilizing the end-side risk identification result, it is possible to fully utilize terminal resources, combine the terminal and the cloud, and avoid directly transmitting a large amount of information to the cloud server, thereby causing data processing pressure on the cloud server. Therefore, it is also possible to effectively improve resource utilization and improve the cloud server's real-time analysis and processing capabilities for risk data. By using the end-side risk identification results, the end-side risk identification process is performed every time the user accesses the mini program on the terminal, which can effectively improve the coverage of risk identification and thus improve data security. In addition, the embodiment of this specification calls the unvisited page corresponding to the page information in the terminal operating environment required for the target mini program to run, which can realize automatic risk identification on the cloud server, which is conducive to improving the efficiency of risk identification.

[0042] In the embodiment of this specification, the risk database in the above step S104 is set in the cloud server, which is used to store historical end-side risk identification results, identification information of the mini-program corresponding to the historical end-side risk identification results, and identification information of the page information in the mini-program.

[0043] The risk database is set up in the cloud server. After the terminal device where the target mini program is located performs risk identification on the target mini program, it obtains the terminal risk identification result, and transmits the terminal risk identification result and the identification information of the mini program corresponding to it and the identification information of the page information in the mini program to the cloud server after privacy protection processing. The risk database can temporarily store historical terminal-side risk identification results, the identification information of the mini program corresponding to the historical terminal-side risk identification results, and the identification information of the page information in the mini program.

[0044] In the embodiment of this specification, the processing of the above step S106 can be varied. An optional processing method is provided below. For details, please refer to the processing of the following steps S1062-S1068.

[0045] In step S1062, based on the first information, a page corresponding to the target applet is determined.

[0046] Based on the identification information of the target applet in the first information and the identification information of the page information in the target applet, a unique page (ie, the page corresponding to the target applet) can be determined.

[0047] In step S1064, a page corresponding to the target applet in the terminal running environment required for the target applet to run is called, and the page corresponding to the target applet is parsed and processed to extract page information of the page corresponding to the target applet.

[0048] The terminal operating environment required for the target applet to run here can refer to the offline real machine inspection operating environment in the above step S108. The difference between the two steps is that step S108 is based on the scenario where the terminal-side risk identification result corresponding to the page information is not obtained from the risk database (applicable to unvisited pages that have not been exposed to the user terminal), and step S1064 is based on the scenario where the terminal-side risk identification result corresponding to the page information exists in the risk database, and the risk identification result indicates that there is a preset risk in the page information (applicable to pages with preset risks that have been exposed to the user terminal).

[0049] Parse the page corresponding to the target mini-program, extract the page information of the page corresponding to the target mini-program, that is, capture the information of the page corresponding to the target mini-program. In implementation, the image screenshot information of the page corresponding to the target mini-program can be captured by a preset algorithm, and the image element analysis can be performed based on the captured image screenshot information to obtain the page information. It is also possible to first capture the image screenshot information of the page corresponding to the target mini-program through a pre-trained image parsing model, and then perform image element analysis based on the captured image screenshot information to obtain the page information. By parsing the page in step S1064, the page structure can be reconstructed, thereby providing more comprehensive information for subsequent risk identification and risk management, and improving the accuracy of risk identification.

[0050] The image analysis model can be obtained by performing model training based on historical image samples, historical page information corresponding to the historical image samples, and a preset first loss function.

[0051] In step S1066, the extracted page information is input into a pre-trained second risk identification model to obtain a cloud risk identification result of the page corresponding to the target mini-program. The second risk identification model is a model obtained by model training based on historical page information and a preset loss function.

[0052] The second risk identification model in the embodiment of this specification may adopt a classification model, and the preset loss function may adopt a cross entropy loss function. The second risk identification model can effectively improve the accuracy of risk identification.

[0053] In step S1068, the risk identification result corresponding to the page information is determined based on the cloud risk identification result.

[0054] In the embodiment of this specification, the second risk identification model in the above step S1066 can be determined according to the extracted page information. Depending on the page information, the second risk identification model can be a text recognition model, an image recognition model, a multimodal model based on text and images, or a combination of any two or three of the text recognition model, the image recognition model and the multimodal model.

[0055] In the embodiment of this specification, the page information in the above step S102 includes one or more of the text information, image information and page layout information of the page. Among them, the image information can be a screenshot image, an image composed of interactive button icons, or other visual images (such as: object images). The page layout information includes: page layout method (position, size, spacing, etc. of text and images), navigation design, overall visual hierarchy of the page, etc.

[0056] In an embodiment of the present specification, after determining the risk identification result corresponding to the page information based on the cloud risk identification result in the above step S106, step S110 may also be included: if the risk identification result corresponding to the page information indicates that there is a preset risk in the page information, then the historical end-side risk identification result corresponding to the page information in the risk database is updated based on the cloud risk identification result.

[0057] In implementation, if the risk identification result corresponding to the page information indicates that there is a preset risk in the page information, cloud risk identification is initiated, that is, risk identification is performed on the page information based on the first information, thereby obtaining a cloud risk identification result. In addition, the historical end-side risk identification result can also be updated based on the cloud risk identification result, thereby realizing data update of the risk database, automatically overwriting the historical end-side risk identification result corresponding to the previous timestamp, which is beneficial to improving the accuracy of the data stored in the risk database and improving the resource utilization of the risk database.

[0058] In the embodiment of this specification, after the above step S104, the following step S112 may be further included.

[0059] In step S112, if the end-side risk identification result indicates that there is no preset risk in the page information, risk identification of the page information is rejected, and a risk identification result corresponding to the page information is determined according to the end-side risk identification result.

[0060] If the historical end-side risk identification results in the risk database indicate that there is no preset risk in the page information, the second-level risk identification process is refused to be executed, and the risk identification result corresponding to the page information is determined based on the end-side risk identification results. It can be understood that if the historical end-side risk identification results in the risk database indicate that there is no preset risk in the page information, the risk identification result corresponding to the current page information remains unchanged, that is, it remains the historical end-side risk identification result. This method can save the resources of the cloud server used for risk identification, thereby improving resource utilization.

[0061] In the embodiment of the present specification, after the above step S108, the following steps S114 to S118 may also be included.

[0062] In step S114, a forensic request based on a target applet with a preset risk is received, wherein the forensic request includes identification information of a target page to be forensically collected and / or page information of the target page to be forensically collected.

[0063] The evidence collection request based on the target mini program with preset risks can be understood as the cloud server receiving a complaint event, or receiving an abnormal event such as an abnormal case, which triggers the risk identification process of the cloud server. The evidence collection request can be the screenshot information related to the complaint event (i.e. the page information of the target page to be collected), or the page identification information related to the complaint event.

[0064] In step S116, based on the identification information of the target page and / or the page information of the target page to be obtained, the target page in the terminal running environment required for the target applet to run is called to capture the information of the target page.

[0065] In step S118, the captured target page information is output as response information corresponding to the evidence collection request.

[0066] Through the above steps S114-S118, the forensic information of the target mini program is determined based on the identification information of the target page in the target mini program or the page information of the target page, thereby providing evidence for subsequent risk management and control, and improving the reliability of risk identification and risk management and data processing efficiency.

[0067] The processing of the above step S104 can be varied. An optional processing method is provided below. For details, please refer to the processing of the following steps S1042 to S1044.

[0068] In step S1042, if the first information is information obtained based on a trigger of a cloud server, corresponding page information is searched from the risk database based on the obtained first information.

[0069] The first information is information obtained based on the trigger of the cloud server, which can be understood as the business side in the cloud server triggering daily inspections or a new risk identification task.

[0070] In step S1044, if corresponding page information is found from the risk database based on the acquired first information, the terminal-side risk identification result corresponding to the page information is acquired from the risk database.

[0071] Furthermore, the processing of the above step S104 also includes the processing of the following steps S1046 - S1048 .

[0072] In step S1046, if the first information is information obtained based on a risk identification request generated based on the end-side risk identification result after privacy protection processing and the first information after privacy protection processing sent by the terminal, then based on the risk identification request, it is determined whether the end-side risk identification result indicates that there is a preset risk in the page information corresponding to the target mini-program.

[0073] If the target applet running on the user terminal device is identified by the risk identification device deployed on the terminal that there is a preset risk in the page information of the target applet, the terminal sends a risk identification request to the cloud server. The risk identification request includes the identification information of the target applet after privacy processing, the identification information of the page information in the target applet after privacy processing, and the corresponding terminal-side risk identification result after privacy processing (or the mapping relationship between the page information and the terminal-side risk identification result).

[0074] For the cloud server, after receiving the risk identification request sent by the terminal, it can obtain the identification information of the target mini program corresponding to the current terminal-side risk identification result and the identification information of the page information in the target mini program (ie, the first information) based on the risk identification request.

[0075] In implementation, the end-side risk identification result of the terminal can be obtained based on the preset first risk identification model. Specifically, the page information is input into the pre-trained first risk identification model, and the risk identification of the page information is performed to obtain the end-side risk identification result of the page corresponding to the target applet. The first risk identification model of the terminal is based on the same principle as the second risk identification model of the cloud server. Risk identification models of the same type but different capacities can be used. Usually, the first risk identification model deployed on the terminal has a smaller capacity (such as each first risk identification model is about 1M), which reduces resource usage and is conducive to improving user experience. The second risk identification model deployed on the cloud server has a larger capacity (such as each second risk identification model is about 1G), the model's risk identification performance is stronger, and the identification results are more accurate and reliable.

[0076] In the embodiment of this specification, in the process of obtaining the end-side risk identification result based on the first risk identification model, it can ensure that the user's privacy is respected and protected during the identification process, and the data related to the user's personal information (such as sensitive information such as address and telephone number) will be immediately identified and eliminated. If the end-side risk identification result is confirmed to have a preset risk, the relevant mini-program ID, page ID and end-side risk identification result need to be processed for privacy protection (for example, encrypted), and then the data processed for privacy protection will be transmitted to the cloud server.

[0077] In step S1048, if the end-side risk identification result indicates that there is a preset risk in the page information corresponding to the target mini-program, risk identification is performed on the page information based on the first information corresponding to the end-side risk identification result, and the cloud-side risk identification result corresponding to the page information is obtained, and the risk identification result corresponding to the page information is determined based on the cloud-side risk identification result.

[0078] In implementation, based on the first information corresponding to the end-side risk identification result, the page information is subjected to risk identification, and the cloud-side risk identification result corresponding to the page information is obtained. The processing of step S106 can be referred to and will not be repeated here.

[0079] In the embodiment of this specification, the processing of the above step S1048 can be varied. An optional processing method is provided below. For details, please refer to the processing of the following step A1.

[0080] In step A1, the page information is input into a pre-trained second risk identification model, and risk identification is performed on the page information to obtain a cloud risk identification result of the page corresponding to the target mini program.

[0081] The second risk identification model here has the same principle as the second risk identification model in step S1066, and will not be described again here.

[0082] In the embodiment of the present specification, in the risk identification process triggered based on the risk identification request of the terminal, after executing the above step S1046, the following steps S10410-S10412 may also be included.

[0083] In step S10410, if the end-side risk identification result indicates that there is no preset risk in the page information corresponding to the target mini-program, the risk identification of the page information corresponding to the target mini-program is refused, and based on the risk identification request, the end-side risk identification result after privacy protection processing and the first information after privacy protection processing are determined.

[0084] If the end-side risk identification result indicates that there is no preset risk in the page information corresponding to the target mini program, then the risk identification of the page information corresponding to the target mini program is rejected. It can be understood that if the end-side risk identification result indicates that there is no preset risk in the page information corresponding to the target mini program, the risk identification result corresponding to the page information is determined according to the end-side risk identification result. This method can avoid risk identification of end-side risk identification results that do not contain preset risks, thereby effectively improving the resource utilization of cloud servers.

[0085] In step S10412, based on the end-side risk identification result after privacy protection processing and the first information after privacy protection processing, the historical end-side risk identification result corresponding to the page information in the risk database is updated, and the cloud risk identification result has a higher priority than the end-side risk identification result.

[0086] It should be noted that in the embodiments of this specification, the priority of the cloud risk identification result is higher than the end-side risk identification result. If risk identification is started on the cloud server side, the risk identification result corresponding to the page information is determined based on the cloud risk identification result, and the risk database is updated according to the cloud risk identification result. If risk identification is not started on the cloud server side, the risk identification result corresponding to the page information is determined based on the end-side risk identification result, and the risk database is updated according to the end-side risk identification result (if the scenario is a daily inspection according to a preset time period, the end-side risk identification result in the risk database remains unchanged). Since the risk identification scale of the cloud server is larger, the method of giving priority to the cloud risk identification result over the end-side risk identification result can further improve the accuracy and reliability of the risk identification result.

[0087] The schematic diagram of the principle of mini program risk identification in the embodiments of this specification can be found in Figure 2 ,Depend on Figure 2 It can be seen that, taking the two application scenarios of terminal triggering and cloud server triggering as examples, the risk identification results in both application scenarios are stored in the risk database. Among them, the new submission business can be understood as a new risk identification task triggered based on the business side in the cloud server, the in-process inspection business can be understood as a risk identification task for daily inspections according to a preset time period, and the targeted URL inspection snapshot forensics business can be understood as a task for determining the forensic information of the target mini program based on the complaint case. When the user side (i.e., the client) of the full private domain page is exposed (the risk identification process triggered by the terminal risk identification request), the end-side risk identification process is started. The business side refers to the business side in the cloud server. After the business side obtains the first information, it provides a URL (Uniform Resource Locator) for the subsequent process, and then performs risk identification processing based on the URL. Since the risk database stores the end-side risk identification results (black samples) with preset risks and the end-side risk identification results (white samples) without preset risks, when the business side obtains the first information, it can directly search for the end-side risk identification results of the current page information from the risk data to determine its risk status.

[0088] The flowchart of the method in the embodiment of this specification in practical application can be found in Figure 3 , Figure 3 The process of risk identification of private-domain mini-programs combined with end-cloud is shown. When a user browses a mini-program page through a terminal (client), the page information of the page can be collected on the terminal, and the page can be assessed for risk using the risk identification algorithm model built into the terminal to detect whether there are potential risks such as content security, fraud, or illegal operations, and obtain end-side risk identification results. If the end-side risk identification result indicates the existence of a preset risk, the relevant mini-program ID and page ID will be reported to the cloud server (server). Subsequently, the cloud server conducts a real-machine inspection of the corresponding mini-program and its page information based on the reported mini-program ID and page ID, and reviews and confirms the risk. After confirming the risk, the relevant mini-program operator will accept the corresponding handling measures.

[0089] An embodiment of the present specification provides a method for mini-program risk identification, which is applied to a cloud server. First, first information for risk identification of a target mini-program is obtained. Secondly, if corresponding page information is found in a risk database based on the first information obtained, an end-side risk identification result corresponding to the page information is obtained from the risk database. The end-side risk identification result is a risk identification result determined by a terminal device where the target mini-program is located for the page information. If the end-side risk identification result indicates that there is a preset risk in the page information, risk identification is performed on the page information based on the first information, and a cloud-based risk identification result corresponding to the page information is obtained. The risk identification result corresponding to the page information is determined based on the cloud-based risk identification result. Finally, if the end-side risk identification result corresponding to the page information is not obtained from the risk database, an unvisited page corresponding to the page information in the terminal running environment required for the target mini-program to run is called to capture information about the unvisited page to determine whether the page information has a preset risk. In this way, after obtaining the first information, by searching the end-side risk identification result corresponding to the page information from the risk database, and determining whether to further perform risk identification on the cloud server based on the end-side risk identification, it is possible to avoid performing risk identification on the page information in the risk database that indicates that the page information does not have a preset risk, thereby effectively improving the efficiency of risk identification and improving resource utilization. Moreover, the risk identification result in the embodiment of this specification is an identification result obtained by combining the end-side risk identification result and the cloud risk identification result. The end-side risk identification result comes from the terminal device. When the terminal device reports the risk identification result and its corresponding first information to the cloud server, it can better perform privacy protection processing on the user information running in the mini program (such as: IP address, device identification, browsing behavior and other sensitive data), thereby effectively improving data security. Moreover, by utilizing the end-side risk identification result, it is possible to fully utilize terminal resources, combine the terminal and the cloud, and avoid directly transmitting a large amount of information to the cloud server, thereby causing data processing pressure on the cloud server. Therefore, it is also possible to effectively improve resource utilization and improve the cloud server's real-time analysis and processing capabilities for risk data. By using the end-side risk identification results, the end-side risk identification process is performed every time the user accesses the mini program on the terminal, which can effectively improve the coverage of risk identification and thus improve data security. In addition, the embodiment of this specification calls the unvisited page corresponding to the page information in the terminal operating environment required for the target mini program to run, which can realize automatic risk identification on the cloud server, which is conducive to improving the efficiency of risk identification.

[0090] In summary, specific embodiments of the present subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recorded in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing can be advantageous.

[0091] The above is a method for identifying mini-program risks provided by one or more embodiments of this specification. Based on the same idea, one or more embodiments of this specification also provide a mini-program risk identification device, such as Figure 4 shown.

[0092] The mini-program risk identification device includes: an information acquisition module 210, a terminal-side risk identification result acquisition module 220, a first risk identification module 230, and a second risk identification module 240, wherein:

[0093] The information acquisition module 210 acquires first information for risk identification of the target mini-program, wherein the first information includes identification information of the target mini-program and identification information of page information in the target mini-program;

[0094] The terminal-side risk identification result acquisition module 220, if the corresponding page information is found in the risk database based on the acquired first information, acquires the terminal-side risk identification result corresponding to the page information from the risk database, where the terminal-side risk identification result is the risk identification result determined by the terminal device where the target applet is located for the page information;

[0095] The first risk identification module 230 performs risk identification on the page information based on the first information, obtains a cloud risk identification result corresponding to the page information, and determines a risk identification result corresponding to the page information based on the cloud risk identification result, if the end-side risk identification result indicates that the page information has a preset risk;

[0096] The second risk identification module 240, if the terminal-side risk identification result corresponding to the page information is not obtained from the risk database, calls the unvisited page corresponding to the page information in the terminal running environment required for the target applet to run, captures the information of the unvisited page, and determines whether the page information has a preset risk.

[0097] In the embodiment of this specification, the first risk identification module 230 includes:

[0098] A page determination unit, which determines a page corresponding to the target applet based on the first information;

[0099] The parsing processing unit calls the page corresponding to the target applet in the terminal running environment required for the target applet to run, and parses the page corresponding to the target applet to extract page information of the page corresponding to the target applet;

[0100] The cloud risk identification result acquisition unit inputs the extracted page information into a pre-trained second risk identification model to obtain a cloud risk identification result of the page corresponding to the target mini program, wherein the second risk identification model is a model obtained by model training based on historical page information and a preset loss function;

[0101] The risk identification result determination unit determines the risk identification result corresponding to the page information based on the cloud risk identification result.

[0102] In the embodiment of the present specification, the second risk identification model of the cloud-side risk identification result acquisition unit includes one or more of a text recognition model, an image recognition model, and a multimodal model based on text and images.

[0103] In the embodiment of the present specification, the page information in the information acquisition module 210 includes one or more of the text information, image information and page layout information of the page.

[0104] In an embodiment of the present specification, the mini-program risk identification device also includes an update module. If the risk identification result corresponding to the page information indicates that there is a preset risk in the page information, the historical end-side risk identification result corresponding to the page information in the risk database is updated based on the cloud risk identification result.

[0105] In the embodiment of the present specification, the mini-program risk identification device further includes: a forensics module, which outputs corresponding response information based on the forensics request of the template mini-program with preset risks. The forensics module includes:

[0106] A forensic request receiving unit, receiving a forensic request based on a target applet with a preset risk, wherein the forensic request includes identification information of a target page to be forensically collected and / or page information of the target page to be forensically collected;

[0107] The evidence collection unit calls the target page in the terminal running environment required for the target applet to run based on the identification information of the target page and / or the page information of the target page to be collected, and captures the information of the target page;

[0108] The output unit outputs the captured target page information as response information corresponding to the evidence collection request.

[0109] In the embodiment of the present specification, the first risk identification module 230 refuses to perform risk identification on the page information if the end-side risk identification result indicates that there is no preset risk in the page information, and determines the risk identification result corresponding to the page information according to the end-side risk identification result.

[0110] In the embodiment of this specification, the terminal side risk identification result acquisition module 220 includes:

[0111] a page information search unit, which searches for corresponding page information from a risk database based on the first information obtained, if the first information is information obtained based on a trigger of a cloud server;

[0112] The terminal-side risk identification result acquisition unit acquires the terminal-side risk identification result corresponding to the page information from the risk database if the corresponding page information is found from the risk database based on the acquired first information.

[0113] Corresponding to the terminal-side risk identification result acquisition module 220, the mini-program risk identification device further includes: a judgment module, if the first information is information obtained based on a risk identification request generated based on the terminal-side risk identification result after privacy protection processing and the first information after privacy protection processing, then judging based on the risk identification request whether the terminal-side risk identification result indicates that there is a preset risk in the page information corresponding to the target mini-program;

[0114] The first risk identification module 230, if the end-side risk identification result indicates that there is a preset risk in the page information corresponding to the target mini-program, then based on the first information corresponding to the end-side risk identification result, the page information is subjected to risk identification, the cloud-side risk identification result corresponding to the page information is obtained, and the risk identification result corresponding to the page information is determined based on the cloud-side risk identification result.

[0115] In the embodiment of the present specification, the first risk identification module 230 refuses to perform risk identification on the page information corresponding to the target mini-program if the end-side risk identification result indicates that there is no preset risk in the page information corresponding to the target mini-program, and determines the end-side risk identification result after privacy protection processing and the first information after privacy protection processing based on the risk identification request; the update module updates the historical end-side risk identification result corresponding to the page information in the risk database based on the end-side risk identification result after privacy protection processing and the first information after privacy protection processing, and the priority of the cloud risk identification result is higher than the end-side risk identification result.

[0116] An embodiment of the present specification provides a mini-program risk identification device, which first obtains first information for risk identification of a target mini-program through an information acquisition module. Secondly, if the corresponding page information is found from the risk database based on the first information obtained, the end-side risk identification result corresponding to the page information is obtained from the risk database through the end-side risk identification result acquisition module. The end-side risk identification result is a risk identification result determined by the terminal device where the target mini-program is located for the page information. If the end-side risk identification result indicates that there is a preset risk in the page information, the page information is risk identified based on the first information through the first risk identification module, and the cloud risk identification result corresponding to the page information is obtained, and the risk identification result corresponding to the page information is determined based on the cloud risk identification result. Finally, if the end-side risk identification result corresponding to the page information is not obtained from the risk database, the unvisited page corresponding to the page information in the terminal running environment required for the target mini-program to run is called based on the second risk identification module, the information of the unvisited page is captured, and it is determined whether the page information has a preset risk. In this way, after obtaining the first information, by searching the end-side risk identification result corresponding to the page information from the risk database, and determining whether to further perform risk identification on the cloud server based on the end-side risk identification, it is possible to avoid performing risk identification on the page information in the risk database that indicates that the page information does not have a preset risk, thereby effectively improving the efficiency of risk identification and improving resource utilization. Moreover, the risk identification result in the embodiment of this specification is an identification result obtained by combining the end-side risk identification result and the cloud risk identification result. The end-side risk identification result comes from the terminal device. When the terminal device reports the risk identification result and its corresponding first information to the cloud server, it can better perform privacy protection processing on the user information running in the mini program (such as: IP address, device identification, browsing behavior and other sensitive data), thereby effectively improving data security. Moreover, by utilizing the end-side risk identification result, it is possible to fully utilize terminal resources, combine the terminal and the cloud, and avoid directly transmitting a large amount of information to the cloud server, thereby causing data processing pressure on the cloud server. Therefore, it is also possible to effectively improve resource utilization and improve the cloud server's real-time analysis and processing capabilities for risk data. By using the end-side risk identification results, the end-side risk identification process is performed every time the user accesses the mini program on the terminal, which can effectively improve the coverage of risk identification and thus improve data security. In addition, the embodiment of this specification calls the unvisited page corresponding to the page information in the terminal operating environment required for the target mini program to run, which can realize automatic risk identification on the cloud server, which is conducive to improving the efficiency of risk identification.

[0117] Those skilled in the art should understand that the above-mentioned mini-program risk identification device can be used to implement the mini-program risk identification method described above, and the detailed description therein should be similar to the description in the previous method part. To avoid tediousness, it will not be repeated here.

[0118] One or more embodiments of this specification also provide a mini-program risk identification system, such as Figure 5 shown.

[0119] The mini-program risk identification system includes: a terminal 310 and a cloud server 320, wherein:

[0120] Terminal 310 collects page information generated during the user's access to the target mini program, performs terminal-side risk identification based on the page information, obtains the terminal-side risk identification result corresponding to the page information, performs privacy protection processing on the terminal-side risk identification result, the identification information of the target mini program, and the identification information of the page information in the target mini program, and sends the terminal-side risk identification result, the identification information of the target mini program, and the identification information of the page information in the target mini program after the privacy protection processing to the risk database;

[0121] The cloud server 320 obtains first information for risk identification of the target mini-program, the first information includes identification information of the target mini-program and identification information of the page information in the target mini-program. If the corresponding page information is found from the risk database based on the first information obtained, the terminal-side risk identification result corresponding to the page information is obtained from the risk database. The terminal-side risk identification result is a risk identification result determined by the terminal device where the target mini-program is located for the page information. If the terminal-side risk identification result indicates that there is a preset risk in the page information, the page information is risk identified based on the first information, and the cloud-side risk identification result corresponding to the page information is obtained. The risk identification result corresponding to the page information is determined based on the cloud-side risk identification result. If the terminal-side risk identification result corresponding to the page information is not obtained from the risk database, the unvisited page corresponding to the page information in the terminal running environment required for the target mini-program to run is called, the information of the unvisited page is captured, and it is determined whether the page information has a preset risk.

[0122] In the embodiment of this specification, the terminal generates a risk identification request based on the terminal-side risk identification result after privacy protection processing, the identification information of the target applet, and the identification information of the page information in the target applet, and sends the risk identification request to the cloud server;

[0123] The cloud server obtains first information for risk identification of the target mini program based on a risk identification request, where the risk identification request is a request generated by the terminal based on the terminal-side risk identification result after the privacy protection processing and the first information after the privacy protection processing;

[0124] The cloud server determines, based on the risk identification request, whether the end-side risk identification result indicates that there is a preset risk in the page information corresponding to the target mini-program. If the end-side risk identification result indicates that there is a preset risk in the page information corresponding to the target mini-program, the cloud server performs risk identification on the page information based on the first information corresponding to the end-side risk identification result, obtains the cloud-side risk identification result corresponding to the page information, and determines the risk identification result corresponding to the page information based on the cloud-side risk identification result.

[0125] Based on the same idea, one or more embodiments of this specification also provide an electronic device, such as Figure 6 As shown. The electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors 401 and memory 402, and the memory 402 may store one or more storage applications or data. Among them, the memory 402 can be a short-term storage or a persistent storage. The application stored in the memory 402 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the electronic device. Furthermore, the processor 401 can be configured to communicate with the memory 402 to execute a series of computer executable instructions in the memory 402 on the electronic device. The electronic device may also include one or more power supplies 403, one or more wired or wireless network interfaces 404, one or more input and output interfaces 405, and one or more keyboards 406.

[0126] Specifically in this embodiment, the electronic device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the electronic device, and the one or more programs are configured to be executed by one or more processors, including the following computer executable instructions:

[0127] Acquire first information for risk identification of a target mini-program, the first information including identification information of the target mini-program and identification information of page information in the target mini-program;

[0128] If the corresponding page information is found in the risk database based on the first information obtained, then the terminal-side risk identification result corresponding to the page information is obtained from the risk database, where the terminal-side risk identification result is a risk identification result determined by the terminal device where the target applet is located for the page information;

[0129] If the end-side risk identification result indicates that there is a preset risk in the page information, risk identification is performed on the page information based on the first information, a cloud-side risk identification result corresponding to the page information is obtained, and a risk identification result corresponding to the page information is determined based on the cloud-side risk identification result;

[0130] If the terminal-side risk identification result corresponding to the page information is not obtained from the risk database, the unvisited page corresponding to the page information in the terminal running environment required for the target applet is called to capture the information of the unvisited page and determine whether the page information has a preset risk.

[0131] One or more embodiments of the present specification provide a storage medium, the storage medium is used to store computer executable instructions, and the executable instructions implement the following process when executed by a processor:

[0132] Acquire first information for risk identification of a target mini-program, the first information including identification information of the target mini-program and identification information of page information in the target mini-program;

[0133] If the corresponding page information is found in the risk database based on the first information obtained, then the terminal-side risk identification result corresponding to the page information is obtained from the risk database, where the terminal-side risk identification result is a risk identification result determined by the terminal device where the target applet is located for the page information;

[0134] If the end-side risk identification result indicates that there is a preset risk in the page information, risk identification is performed on the page information based on the first information, a cloud-side risk identification result corresponding to the page information is obtained, and a risk identification result corresponding to the page information is determined based on the cloud-side risk identification result;

[0135] If the terminal-side risk identification result corresponding to the page information is not obtained from the risk database, the unvisited page corresponding to the page information in the terminal running environment required for the target applet is called to capture the information of the unvisited page and determine whether the page information has a preset risk.

[0136] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0137] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0138] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0139] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0140] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0141] It should be understood by those skilled in the art that one or more embodiments of the present specification may be provided as a method, system, or computer program product. Therefore, one or more embodiments of the present specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, one or more embodiments of the present specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0142] One or more embodiments of the present specification are described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0143] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0144] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0145] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0146] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0147] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0148] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0149] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0150] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0151] The above description is only one or more embodiments of this specification and is not intended to limit this application. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification should be included in the scope of the claims of one or more embodiments of this specification.

Claims

1. A method for identifying risks of a mini program, applied to a cloud server, comprising: Acquire first information for risk identification of a target mini-program, wherein the first information includes identification information of the target mini-program and identification information of page information in the target mini-program; If the corresponding page information is found in the risk database based on the first information obtained, then the terminal-side risk identification result corresponding to the page information is obtained from the risk database, where the terminal-side risk identification result is a risk identification result determined by the terminal device where the target applet is located for the page information; If the end-side risk identification result indicates that there is a preset risk in the page information, risk identification is performed on the page information based on the first information, a cloud-side risk identification result corresponding to the page information is obtained, and a risk identification result corresponding to the page information is determined based on the cloud-side risk identification result; If the terminal-side risk identification result corresponding to the page information is not obtained from the risk database, the unvisited page corresponding to the page information in the terminal running environment required for the target applet to run is called, the information of the unvisited page is captured, and it is determined whether the page information has a preset risk.

2. According to the method of claim 1, the risk database is set in a cloud server, and is used to store historical end-side risk identification results, identification information of the mini-program corresponding to the historical end-side risk identification results, and identification information of page information in the mini-program, and based on the first information, the risk identification of the page information is performed, the cloud risk identification result corresponding to the page information is obtained, and the risk identification result corresponding to the page information is determined based on the cloud risk identification result, including: Based on the first information, determine a page corresponding to the target mini-program; Calling a page corresponding to the target applet in the terminal running environment required for the target applet to run, parsing the page corresponding to the target applet, and extracting page information of the page corresponding to the target applet; Input the extracted page information into a pre-trained second risk identification model to obtain a cloud risk identification result of the page corresponding to the target mini program, wherein the second risk identification model is a model obtained by model training based on historical page information and a preset loss function; A risk identification result corresponding to the page information is determined based on the cloud risk identification result.

3. According to the method of claim 2, the second risk identification model comprises one or more of a text recognition model, an image recognition model, and a multimodal model based on text and images; The page information includes one or more of text information, image information and page layout information of the page.

4. The method according to claim 1, further comprising: Receiving a forensic request based on a target applet with a preset risk, wherein the forensic request includes identification information of a target page to be forensically collected and / or page information of the target page to be forensically collected; Based on the identification information of the target page and / or the page information of the target page to be obtained, calling the target page in the terminal running environment required for the target applet to run, and capturing the information of the target page; The captured target page information is output as response information corresponding to the evidence collection request.

5. According to the method of claim 1, after determining the risk identification result corresponding to the page information based on the cloud risk identification result, the method further comprises: If the risk identification result corresponding to the page information indicates that there is a preset risk in the page information, the historical terminal-side risk identification result corresponding to the page information in the risk database is updated based on the cloud-side risk identification result.

6. The method according to claim 1, further comprising: If the end-side risk identification result indicates that there is no preset risk in the page information, risk identification of the page information is rejected, and a risk identification result corresponding to the page information is determined according to the end-side risk identification result.

7. The method according to claim 1, if the corresponding page information is found from the risk database based on the acquired first information, obtaining the terminal-side risk identification result corresponding to the page information from the risk database comprises: If the first information is information obtained based on a trigger of a cloud server, searching for corresponding page information from a risk database based on the obtained first information; If corresponding page information is found from the risk database based on the acquired first information, then acquiring a terminal-side risk identification result corresponding to the page information from the risk database; The method further comprises: If the first information is information obtained based on a risk identification request generated based on the end-side risk identification result after the privacy protection processing and the first information after the privacy protection processing and sent by the terminal, then judging based on the risk identification request whether the end-side risk identification result indicates that there is a preset risk in the page information corresponding to the target mini-program; If the end-side risk identification result indicates that there is a preset risk in the page information corresponding to the target mini-program, risk identification is performed on the page information based on the first information corresponding to the end-side risk identification result, the cloud-side risk identification result corresponding to the page information is obtained, and the risk identification result corresponding to the page information is determined based on the cloud-side risk identification result.

8. The method according to claim 7, further comprising: If the end-side risk identification result indicates that there is no preset risk in the page information corresponding to the target mini-program, refuse to perform risk identification on the page information corresponding to the target mini-program, and determine the end-side risk identification result after privacy protection processing and the first information after privacy protection processing based on the risk identification request; Based on the end-side risk identification result after the privacy protection processing and the first information after the privacy protection processing, the historical end-side risk identification result corresponding to the page information in the risk database is updated, and the priority of the cloud risk identification result is higher than the end-side risk identification result.

9. A mini-program risk identification device, the device comprising: An information acquisition module, which acquires first information for risk identification of a target mini-program, wherein the first information includes identification information of the target mini-program and identification information of page information in the target mini-program; A terminal-side risk identification result acquisition module, if corresponding page information is found from the risk database based on the acquired first information, then acquires a terminal-side risk identification result corresponding to the page information from the risk database, wherein the terminal-side risk identification result is a risk identification result determined by the terminal device where the target applet is located for the page information; a first risk identification module, which, if the end-side risk identification result indicates that there is a preset risk in the page information, performs risk identification on the page information based on the first information, obtains a cloud-side risk identification result corresponding to the page information, and determines a risk identification result corresponding to the page information based on the cloud-side risk identification result; The second risk identification module, if the terminal-side risk identification result corresponding to the page information is not obtained from the risk database, calls the unvisited page corresponding to the page information in the terminal running environment required for the target applet to run, captures the information of the unvisited page, and determines whether the page information has a preset risk.

10. A mini program risk identification system, comprising a terminal and a cloud server, wherein: The terminal collects page information generated during a user's access to a target mini-program, performs terminal-side risk identification based on the page information, obtains a terminal-side risk identification result corresponding to the page information, performs privacy protection processing on the terminal-side risk identification result, identification information of the target mini-program, and identification information of the page information in the target mini-program, and sends the terminal-side risk identification result, identification information of the target mini-program, and identification information of the page information in the target mini-program after the privacy protection processing to a risk database; The cloud server obtains first information for risk identification of the target mini-program, the first information including identification information of the target mini-program and identification information of page information in the target mini-program. If the corresponding page information is found from the risk database based on the first information obtained, the terminal-side risk identification result corresponding to the page information is obtained from the risk database, and the terminal-side risk identification result is a risk identification result determined by the terminal device where the target mini-program is located for the page information. If the terminal-side risk identification result indicates that there is a preset risk in the page information, the page information is risk identified based on the first information, and the cloud-side risk identification result corresponding to the page information is obtained, and the risk identification result corresponding to the page information is determined based on the cloud-side risk identification result. If the terminal-side risk identification result corresponding to the page information is not obtained from the risk database, the unvisited page corresponding to the page information in the terminal running environment required for the target mini-program to run is called, the information of the unvisited page is captured, and it is determined whether the page information has a preset risk.

11. The system according to claim 10, wherein the terminal generates a risk identification request based on the terminal-side risk identification result after the privacy protection processing, the identification information of the target mini program, and the identification information of the page information in the target mini program, and sends the risk identification request to the cloud server; The cloud server obtains first information for risk identification of the target mini-program based on the risk identification request, wherein the risk identification request is a request generated by the terminal based on the terminal-side risk identification result after the privacy protection processing and the first information after the privacy protection processing; The cloud server determines, based on the risk identification request, whether the end-side risk identification result indicates that there is a preset risk in the page information corresponding to the target mini-program; if the end-side risk identification result indicates that there is a preset risk in the page information corresponding to the target mini-program, then based on the first information corresponding to the end-side risk identification result, the cloud server performs risk identification on the page information, obtains the cloud-side risk identification result corresponding to the page information, and determines the risk identification result corresponding to the page information based on the cloud-side risk identification result.

12. An electronic device comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Acquire first information for risk identification of a target mini-program, wherein the first information includes identification information of the target mini-program and identification information of page information in the target mini-program; If the corresponding page information is found in the risk database based on the first information obtained, then the terminal-side risk identification result corresponding to the page information is obtained from the risk database, where the terminal-side risk identification result is a risk identification result determined by the terminal device where the target applet is located for the page information; If the end-side risk identification result indicates that there is a preset risk in the page information, risk identification is performed on the page information based on the first information, a cloud-side risk identification result corresponding to the page information is obtained, and a risk identification result corresponding to the page information is determined based on the cloud-side risk identification result; If the terminal-side risk identification result corresponding to the page information is not obtained from the risk database, the unvisited page corresponding to the page information in the terminal running environment required for the target applet to run is called, the information of the unvisited page is captured, and it is determined whether the page information has a preset risk.

Citation Information

Patent Citations

  • Applet risk identification method and device

    CN112148603A

  • Risk content identification method, device and system for user privacy data

    CN112149404A

  • Risk detection method, device and equipment for applet

    CN113568841A

  • Interaction message processing method and apparatus, computer device, and storage medium

    US20210266287A1