Mini-program detection method and device
Through multi-dimensional detection of mini programs, combined with interface and source code analysis, the problem of privacy protection of mini programs has been solved, timely discovery and management of violations have been achieved, and the effect of privacy protection has been improved.
Patent Information
- Application Number
- CN202111582667.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-12-22
AI Technical Summary
Existing technologies are difficult to effectively detect and prevent violations of mini programs in providing private information, making it difficult to protect user privacy.
By obtaining the data to be detected associated with the mini program, the detection strategy is determined based on the data type, the front-end interface and the back-end source code are combined for detection, and the image detection model and detection knowledge map are used to analyze the behavioral logic of the mini program to achieve detection processing from multiple dimensions. .
It achieves accurate detection of small programs, reduces privacy risks, improves the standardization and compliance of business scenarios, and ensures the security of user privacy.
Smart Images

Figure CN114328203B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of compliance data management technology, and in particular to a method and device for detecting mini-programs. Background Art
[0002] With the development of computer technology, mini programs have gradually become an important infrastructure of the mobile Internet, and more and more user-related mobile Internet services are running on mini programs. Mini programs allow users to directly use the capabilities of other apps on platform apps, attracting more and more users. However, the privacy protection of users on mini programs has become a major problem that currently troubles users. Many users hope to be able to choose whether to provide privacy information or whether to provide real user information while using mini programs normally. In contrast, some illegal mini programs will also use abnormal means to obtain user privacy information, so there is an urgent need for an effective solution to solve the above problems. Summary of the invention
[0003] In view of this, the embodiments of this specification provide a method for detecting a small program. This specification also relates to a small program detection device, a computing device, a computer-readable storage medium and a computer program to solve the technical defects existing in the prior art.
[0004] According to a first aspect of an embodiment of this specification, a method for detecting a mini-program is provided, including:
[0005] Get the data to be tested associated with the mini program;
[0006] Determining a detection strategy based on the data type of the data to be detected;
[0007] The data to be detected is processed according to the detection strategy, and the detection result of the mini-program is determined according to the processing result.
[0008] Optionally, the step of obtaining the data to be detected associated with the mini program includes:
[0009] The mini program is loaded into a simulation module for processing, and a plurality of interface screenshots output by the simulation module are obtained; wherein the interface screenshots are screenshots of the business service interface provided by the mini program to the user;
[0010] The multiple interface screenshots are integrated to obtain the data to be detected associated with the mini-program.
[0011] Optionally, the determining of the detection strategy based on the data type of the data to be detected includes:
[0012] Parsing the data to be detected to obtain the multiple interface screenshots;
[0013] Determining, according to the multiple interface screenshots, that the data to be detected is of image data type;
[0014] A screenshot detection strategy corresponding to the image data type is read as the detection strategy.
[0015] Optionally, processing the data to be detected according to the detection strategy, and determining the detection result of the mini-program according to the processing result, includes:
[0016] Determine an image detection model according to the screenshot detection strategy;
[0017] Inputting the multiple interface screenshots into the image detection model for detection respectively, and obtaining detection information of each interface screenshot among the multiple interface screenshots;
[0018] The detection result of the mini program is determined based on the detection information of each interface screenshot.
[0019] Optionally, the image detection model is used to determine the screenshot type of the interface screenshot, and determine baseline screenshot information based on the screenshot type; the screenshot information to be detected contained in the interface screenshot is detected through the baseline screenshot information, and the detection information of the interface screenshot is obtained and output according to the detection result.
[0020] Optionally, the step of obtaining the data to be detected associated with the mini program includes:
[0021] Obtaining source code corresponding to the mini-program, and constructing a syntax tree structure corresponding to the mini-program based on the source code;
[0022] Extracting data flow information and control flow information from the syntax tree structure to construct a detection knowledge graph corresponding to the mini-program;
[0023] The relationships and entities contained in the detection knowledge graph are used as the data to be detected associated with the mini-program.
[0024] Optionally, the determining of the detection strategy based on the data type of the data to be detected includes:
[0025] Parsing the data to be detected to obtain entities and relationships contained in the detection knowledge graph;
[0026] Determining that the data to be detected is a graph data type according to the entities and relationships contained in the detection knowledge graph;
[0027] A source code detection strategy corresponding to the graph data type is read as the detection strategy.
[0028] Optionally, processing the data to be detected according to the detection strategy, and determining the detection result of the mini-program according to the processing result, includes:
[0029] Extracting entities and relationships contained in the detection knowledge graph, and determining the behavioral logical relationship of the mini program based on the entities and relationships;
[0030] Detect the behavior logic relationship based on the source code detection strategy to obtain behavior logic information;
[0031] The detection result of the applet is determined based on the behavior logic information.
[0032] Optionally, the behavior logic relationship includes at least one of the following:
[0033] Attribute interaction logic relationship, page interaction logic relationship, user interaction logic relationship;
[0034] Accordingly, the behavior logic information includes at least one of the following:
[0035] Attribute behavior logic information, page behavior logic information, user behavior logic information.
[0036] Optionally, determining the detection result of the mini-program based on the behavior logic information includes:
[0037] Receiving a detection instruction submitted by a deployer of the mini program;
[0038] Determining behavior detection information according to the detection instruction, and filtering the behavior logic information based on the behavior detection information;
[0039] The target behavior logic information is determined according to the screening result, and the detection result of the mini program is determined based on the target behavior logic information.
[0040] Optionally, after the step of determining the detection result of the mini-program according to the processing result is executed, the method further includes:
[0041] In the case where the detection result is abnormal, reading the program score corresponding to the mini program and determining the abnormality level of the mini program;
[0042] The program points are updated based on the abnormality level, and a reminder message is sent to the service provider of the mini program according to the update result.
[0043] According to a second aspect of the embodiments of this specification, there is provided a mini-program detection device, including:
[0044] An acquisition module, configured to acquire the to-be-detected data associated with the mini-program;
[0045] A determination module, configured to determine a detection strategy based on the data type of the data to be detected;
[0046] The processing module is configured to process the data to be detected according to the detection strategy, and determine the detection result of the mini program according to the processing result.
[0047] According to a third aspect of an embodiment of this specification, a computing device is provided, including:
[0048] Memory and processor;
[0049] The memory is used to store computer executable instructions, and the processor is used to implement the steps of the applet detection method when executing the computer executable instructions.
[0050] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the applet detection method are implemented.
[0051] According to a fifth aspect of the embodiments of this specification, a computer program is provided, which, when executed in a computer, causes the computer to execute the steps of the applet detection method.
[0052] The mini-program detection method provided in this specification, after obtaining the data to be detected associated with the mini-program, in order to achieve accurate detection of the mini-program and avoid the mini-program from violating regulations, can determine the detection strategy based on the data type of the data to be detected. In other words, different types of data to be detected will correspond to different detection strategies to achieve detection processing from multiple dimensions. Finally, the data to be detected will be processed according to the detection strategy, and the detection result of the mini-program can be determined based on the processing result, so that the business party of the application program that hosts the mini-program can govern the mini-program in a timely manner according to the detection results, reduce the privacy risks brought by the mini-program, and improve the standardization of business scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a schematic diagram of a mini-program detection method provided in an embodiment of this specification;
[0054] Figure 2 is a flow chart of a mini-program detection method provided in an embodiment of this specification;
[0055] Figure 3 is a flow chart of another applet detection method provided in an embodiment of this specification;
[0056] Figure 4 is a processing flow chart of a mini program detection method applied to a shopping mini program provided in an embodiment of this specification;
[0057] Figure 5is a schematic diagram of a mini program detection method applied to a shopping mini program provided in an embodiment of this specification;
[0058] Figure 6 It is a structural diagram of a small program detection device provided in an embodiment of this specification;
[0059] Figure 7 It is a structural block diagram of a computing device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0060] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.
[0061] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0062] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0063] In this specification, a mini-program detection method is provided. This specification also relates to a mini-program detection device, a computing device, a computer-readable storage medium and a computer program, which are described in detail one by one in the following embodiments.
[0064] In actual applications, as the business capabilities of the business platform deepen, more mini-programs will be added, and the review of mini-programs has become an urgent problem to be solved. If it is conducted through manual review, the human resources investment is too large, and the review standards are unstable, which can easily lead to the omission of mini-programs with privacy risks. As for automated machine review, since mini-programs involve many types of privacy risks, it is difficult to complete the review through simple rule matching. Therefore, an effective solution is urgently needed to solve the problem of mini-program detection.
[0065] See also Figure 1 The schematic diagram of the mini program detection method shown in the figure shows that after obtaining the data to be detected associated with the mini program, in order to accurately detect the mini program and avoid the mini program from violating regulations, the detection strategy can be determined based on the data type of the data to be detected. In other words, different types of data to be detected can correspond to different detection strategies to achieve detection processing from multiple dimensions. Finally, the detection data is processed according to the detection strategy, and the detection result of the mini program can be determined according to the processing result, so that the business party of the application program that carries the mini program can timely manage the mini program according to the detection result, reduce the privacy risks brought by the mini program, and improve the standardization of business scenarios. In other words, when it is necessary to detect the mini program, the detection at the front-end display level and the detection at the back-end source code level can be combined to achieve comprehensive detection of the mini program, which can not only achieve comprehensive coverage detection, but also accurately analyze the privacy risks of the mini program from the underlying behavior logic, thereby ensuring the accuracy of detection.
[0066] Figure 2 A flowchart of a mini-program detection method provided according to an embodiment of this specification is shown, which specifically includes the following steps:
[0067] Step S202, obtaining the data to be detected associated with the mini program.
[0068] Specifically, the mini program refers to a mini program carried in a target application provided by a business platform, which can provide corresponding services to users, such as games, navigation, shopping, inquiries, etc., and this embodiment does not make any limitations here; accordingly, the data to be detected specifically refers to data associated with the mini program to be detected, including but not limited to the interactive interface involved in the mini program, that is, all interfaces displayed to users in the mini program; or the source code involved in the mini program, that is, the underlying code that supports the operation of the mini program; subsequently, by detecting from the front-end interactive interface and / or the back-end source code, the detection and processing of the mini program can be completed to analyze whether the mini program has privacy risks.
[0069] In actual applications, as a mini-program that is settled in the business platform by a third party, the business platform not only needs to detect the mini-program before going online, but also needs to ensure that there is no privacy risk in the mini-program after detection before it can be officially put on the shelves and used by users; therefore, the accuracy of mini-program detection is an important means to determine risk management. The mini-program detection method provided in this embodiment realizes that after obtaining the data to be detected associated with the mini-program, since the data to be detected corresponds to data related to the front-end interface and / or data related to the back-end source code, the purpose of detection can be achieved from the front-end interface detection and / or the back-end source code detection, so as to improve the detection accuracy and reduce the privacy risks brought by the mini-program.
[0070] In the specific implementation, in order to be able to detect all the mini-programs involved in the business platform, the privacy middle station corresponding to the business platform can use the odps data self-inspection to periodically extract the target inspection mini-program list, and flow the mini-programs included in the list into the detection link, and detect them through the detection method provided in this embodiment, so as to facilitate the business platform to manage the mini-programs and reach the service provider corresponding to the mini-programs for management. In actual applications, when the business platform detects the mini-programs, it can detect one or more mini-programs at the same time. This embodiment only describes the detection process of one mini-program. The detection process of multiple mini-programs can refer to the same or corresponding description content of this embodiment, and no excessive elaboration is made here.
[0071] Furthermore, when the data to be detected is data related to the front-end interface corresponding to the mini program, since there are many interfaces corresponding to the mini program, in order to ensure the comprehensiveness of the detection, it is necessary to collect all interfaces to complete the detection. In this embodiment, the specific implementation method is as follows:
[0072] The mini program is loaded into a simulation module for processing to obtain multiple interface screenshots output by the simulation module; wherein the interface screenshots are screenshots of the business service interface provided by the mini program to users; the multiple interface screenshots are integrated to obtain the data to be detected associated with the mini program.
[0073] Specifically, the simulation module refers to a module that can perform real machine simulation. That is, after the mini program is loaded into the module, the actual application scenario of the terminal using the mini program can be simulated to realize interface capture of all interfaces involved in the mini program to obtain multiple interface screenshots output by the simulation module; the interface screenshots are the screenshots corresponding to all interfaces displayed to users in the mini program.
[0074] Based on this, when it is necessary to detect the mini program from the front-end interface, the mini program can be loaded into a simulation module with real machine simulation capabilities for processing, so that the simulation module can capture all interfaces involved in the mini program and output them. At this time, multiple interface screenshots can be integrated as the data to be detected associated with the mini program, so that the mini program can be detected in the interface dimension.
[0075] For example, when the business platform needs to perform privacy risk detection on the navigation applet, the applet can be input into the real machine simulation module for processing. The applet can be run through the real machine simulation module to obtain and output each interface screenshot associated with the applet. Finally, all the obtained interface screenshots can be integrated as the data to be tested for the navigation applet, so as to be used for subsequent testing of the navigation applet in the interface dimension.
[0076] In summary, by collecting interface screenshots as the data to be tested through the simulation module, it is possible to test the mini program in the interface dimension, which is convenient for subsequent front-end analysis of whether the mini program has privacy risks. It can effectively ensure the accuracy of detection and improve the standardization of business scenarios.
[0077] Step S204: determining a detection strategy based on the data type of the data to be detected.
[0078] Specifically, after the data to be detected is determined as above, since different types of data require different detection strategies to implement detection and processing operations, after the data to be detected is determined, the data type of the data to be detected can be determined first, and then the detection strategy corresponding to the data type can be determined based on this, so as to complete the detection and processing operation by executing the detection strategy in the future. If the data to be detected is a screenshot corresponding to the front-end interface, a strategy for detecting the screenshot can be selected to complete the detection and processing of the mini program; or if the data to be detected is the source code corresponding to the back-end, a strategy for detecting the source code can be selected to complete the detection and processing of the mini program.
[0079] Furthermore, when the data to be detected is a plurality of screenshots of interfaces corresponding to the mini-program, in order to complete the detection and processing operation from the front end, the screenshot detection strategy can be selected as the detection strategy to complete the subsequent detection and processing operation. In this embodiment, the specific implementation method is as follows:
[0080] The data to be detected is parsed to obtain the multiple interface screenshots; the data to be detected is determined to be an image data type according to the multiple interface screenshots; and a screenshot detection strategy corresponding to the image data type is read as the detection strategy.
[0081] Specifically, after obtaining the data to be detected, in order to accurately detect the mini program, the data to be detected can be analyzed to obtain multiple interface screenshots. At this time, it is determined that the mini program needs to be analyzed from the front end. Then, based on the multiple interface screenshots, it is determined that the data to be detected is an image data type. Then, the screenshot detection strategy corresponding to the image data type is read as the detection strategy, so that the mini program can be tested for privacy risks by analyzing the interface screenshots.
[0082] It should be noted that privacy risk detection of mini programs specifically refers to detecting whether the mini programs have behaviors of obtaining user privacy data by abnormal means, and / or collecting other privacy data except the privacy data authorized by the user.
[0083] Continuing with the above example, after obtaining multiple interface screenshots corresponding to the navigation applet through the real machine simulation module, it is determined that it is necessary to analyze from the front end whether there is a privacy risk in the navigation applet. Then, based on the multiple interface screenshots, it is determined that the data to be detected is an image data type, and the screenshot detection strategy is directly read for subsequent privacy risk detection of the navigation applet.
[0084] In summary, when the data to be detected is of the image data type, selecting the screenshot detection strategy for subsequent detection and processing operations can not only complete the risk detection of the mini program from the front end, but also reduce the risk of privacy data leakage, thereby effectively improving the standardization of mini program management.
[0085] Step S206: Process the data to be detected according to the detection strategy, and determine the detection result of the mini program according to the processing result.
[0086] Specifically, after the detection strategy for detecting the mini program is determined as described above, the data to be detected can be further detected according to the detection strategy to implement subsequent governance based on the detection results.
[0087] In actual applications, when the data to be detected is of image data type, in order to analyze whether the mini program has privacy risks from the front end, the code analysis tool can be used to parse the interface structure and interface labels, and focus on recording the interactive controls on the interface, such as input boxes, buttons, tarbars, etc., and record the back-end code locations corresponding to the interactive controls, as well as the text or images contained in the interface, so as to detect the mini program from the interface dimension.
[0088] Furthermore, when detecting the mini program through the screenshot detection strategy, in order to improve the detection accuracy and detection efficiency, it can be implemented in combination with the model. In this embodiment, the specific implementation method is as follows:
[0089] Determine an image detection model according to the screenshot detection strategy; input the multiple interface screenshots into the image detection model for detection respectively to obtain detection information of each interface screenshot among the multiple interface screenshots; determine the detection result of the mini program based on the detection information of each interface screenshot.
[0090] Specifically, the image detection model refers to a model that detects multiple interface screenshots and can analyze whether the multiple interface screenshots contain other privacy data except the privacy data used by the mini program; that is, the image detection model is used to determine the screenshot type of the interface screenshot, and determine the baseline screenshot information based on the screenshot type; the screenshot information to be detected contained in the interface screenshot is detected through the baseline screenshot information, and the detection information of the interface screenshot is obtained and output according to the detection result.
[0091] Based on this, when it is determined that the data to be detected is multiple interface screenshots, the image detection model can be determined according to the screenshot detection strategy. Then, each interface screenshot is input into the image detection model for processing to obtain the detection information output by the model for each interface screenshot. Finally, the detection results of the mini program can be created based on the detection information, thereby analyzing the privacy risks of the mini program from the front end.
[0092] During specific implementation, when the image detection model detects each interface screenshot, it actually determines the screenshot type of the interface screenshot, and then selects the baseline screenshot information corresponding to the screenshot type and the screenshot information to be detected to determine the detection information corresponding to the interface screenshot. Through the detection information, it can be determined whether the interface screenshot has excessive collection of user privacy data, thereby reflecting the privacy risk of the mini program.
[0093] Among them, the screenshot information to be detected specifically refers to the content information displayed in the interface screenshot, and / or the code information corresponding to the interactive controls in the interface screenshot, which is used to analyze whether the mini program has excessive collection of user privacy data.
[0094] Continuing with the above example, after obtaining the navigation applet, multiple interface screenshots corresponding to the navigation applet are respectively input into the image detection model for processing. According to the model processing results, it is determined that the navigation applet will obtain the user's location information and identity information. At this time, according to the model output results, the detection result of the applet is determined to use the user's location information and identity information, so as to facilitate the subsequent adjustment of the applet according to the detection result of the navigation applet.
[0095] In summary, by using model prediction to detect the interface-related data of the mini program and analyzing the detection results of the mini program, it is possible to complete the detection of privacy risks from multiple dimensions, avoid excessive collection of user privacy data by the mini program, and improve the compliance of business scenarios.
[0096] In addition, after determining the detection results of the Mini Program, in order to timely manage the Mini Programs that have entered the business platform and improve the compliance intention of the Mini Program service provider, a points system can be used for management and control. In this embodiment, the specific implementation method is as follows:
[0097] In the case where the detection result is abnormal, reading the program score corresponding to the mini program and determining the abnormality level of the mini program;
[0098] The program points are updated based on the abnormality level, and a reminder message is sent to the service provider of the mini program according to the update result.
[0099] Specifically, program points refer to the credit points corresponding to the Mini Program on the business platform. The higher the program points, the better the compliance of the Mini Program. Conversely, the lower the program points of the Mini Program, the more likely it is that the Mini Program has violated the regulations. By controlling the program points of the Mini Program, the exposure rate of the Mini Program can be limited. Correspondingly, the exception level refers to the level of governance of the Mini Program. The higher the exception level, the more serious the violation of the Mini Program and the more serious the problem of leaking user privacy data. Correspondingly, the reminder information refers to the reminder information after the Mini Program has been governed.
[0100] Based on this, after the mini program is detected, if it is determined that the detection result of the mini program is abnormal, the program points of the mini program and the abnormal level of the mini program can be read, and then the program points are updated based on the abnormal level, and the update is to reduce the program points value; after the program points of the mini program are completely updated, a reminder message can be sent to the service provider of the mini program according to the update result to remind the service provider of the mini program to make timely adjustments to the mini program. In actual applications, the reminder message can be set according to actual needs, and this embodiment does not make any limitation here.
[0101] Continuing with the above example, after determining the detection results corresponding to the navigation applet, it is determined that the navigation applet will read the user's location information and identity information. Identity information is not information that must be used by the navigation applet, so it is determined that the navigation applet has excessively collected user information. At this time, the program score of the applet is S1, and the abnormality level is 2. Then, the program score of the navigation applet is updated to S2 (S2<S1) according to the abnormality level. At the same time, it is determined that the abnormality level of the navigation applet is high, so the applet can be temporarily removed from the shelves, and a reminder message is sent to the service provider of the navigation applet to inform the service provider to rectify the applet in time.
[0102] In summary, by using program points to manage and control mini programs and thereby control the exposure rate of mini programs, it can encourage service providers to actively maintain the adjustments of mini programs and improve the compliance of business scenarios.
[0103] The mini-program detection method provided in this specification, after obtaining the data to be detected associated with the mini-program, in order to achieve accurate detection of the mini-program and avoid the mini-program from violating regulations, can determine the detection strategy based on the data type of the data to be detected. In other words, different types of data to be detected will correspond to different detection strategies, so as to achieve detection processing from multiple dimensions. Finally, the data to be detected is processed according to the detection strategy, and the detection result of the mini-program can be determined based on the processing result, so that the business party of the application program that hosts the mini-program can govern the mini-program in a timely manner according to the detection results, reduce the privacy risks brought by the mini-program, and improve the standardization of business scenarios.
[0104] Figure 3 A flowchart of another mini-program detection method provided according to an embodiment of this specification is shown, which specifically includes the following steps:
[0105] Step S302, obtaining the source code corresponding to the mini-program, and constructing a syntax tree structure corresponding to the mini-program based on the source code.
[0106] Step S304, extracting the data flow information and control flow information in the syntax tree structure to construct a detection knowledge graph corresponding to the mini program.
[0107] Step S306: Use the relationships and entities contained in the detection knowledge graph as the data to be detected associated with the mini-program.
[0108] The mini-program detection method provided in this embodiment describes the back-end source code corresponding to the mini-program, and is used to detect whether the mini-program has privacy risks from the back-end. It should be noted that the content not described in detail in this embodiment can be referred to the above embodiment, and this embodiment does not make any limitation here.
[0109] Based on this, when the data to be detected is the source code corresponding to the mini program, it means that it is necessary to detect the privacy risks of the mini program's backend, and analyze the mini program's backend behavior logic from the source code to detect whether the mini program has any abnormal means of collecting user privacy data, thereby achieving accurate detection of the mini program.
[0110] Furthermore, when the mini program is detected through the bottom layer, it means that it is necessary to obtain the source code of the mini program to construct the data to be detected corresponding to the mini program for subsequent detection of the mini program. In this embodiment, the specific implementation is as follows: after obtaining the source code corresponding to the mini program, the syntax tree structure corresponding to the mini program can be constructed based on the source code, that is, the intrinsic connection between the bottom-level source codes of the mini program is represented by the syntax tree structure to facilitate the analysis of the mini program; secondly, the data flow information and control flow information in the syntax tree structure are extracted to construct the detection knowledge graph corresponding to the mini program, wherein the data flow information specifically refers to the information corresponding to the data flow involved in the operation of the mini program; the control flow information specifically refers to the information corresponding to the data flow involved after the mini program responds to the user's touch command; accordingly, the detection knowledge graph specifically refers to a graph constructed by combining the control flow information and the data flow information, through which various behavioral logics of the mini program can be analyzed, such as authorization, network interaction, privacy acquisition, transactions and other behaviors, so as to facilitate the detection of the mini program on this basis.
[0111] Since the detection knowledge graph can reflect the behavioral logic of the mini program, the relationships and entities in the detection knowledge graph can be extracted as the data to be detected associated with the mini program, so as to facilitate the subsequent detection of the mini program based on this and detect whether the mini program has privacy risks.
[0112] For example, when it is necessary to perform risk detection on a food ordering app, the source code corresponding to the food ordering app can be read and used as input to parse it into a syntax tree. The data flow information and control flow information contained in the syntax tree are then extracted and stored in the knowledge graph. Finally, the entities and relationships contained in the knowledge graph are selected as the data to be detected corresponding to the food ordering app, so as to be used for subsequent detection of the app from the source code dimension.
[0113] In summary, by constructing the data to be tested of the mini-program based on the source code, privacy risk detection can be implemented from the bottom layer of the mini-program. This can not only improve the detection accuracy, but also reflect the behavior logic of the mini-program from the source code dimension, which can effectively ensure the completeness of the mini-program detection.
[0114] Step S308, parsing the data to be detected to obtain entities and relationships contained in the detection knowledge graph.
[0115] Step S310: determining that the data to be detected is a graph data type according to the entities and relationships contained in the detection knowledge graph.
[0116] Step S312, reading a source code detection strategy corresponding to the graph data type as the detection strategy.
[0117] Specifically, after obtaining the data to be tested corresponding to the mini program, in order to accurately detect the mini program, the data to be tested can be analyzed to obtain the entities and relationships contained in the detection knowledge graph. At this time, it is determined that the mini program needs to be analyzed from the back end. Then, the data to be tested is determined to be a graph data type based on the entities and relationships contained in the detection knowledge graph. Then, the source code detection strategy corresponding to the graph data type is read as the detection strategy, so that the mini program can be tested for privacy risks by analyzing the logical relationship between the source codes.
[0118] It should be noted that the privacy risk detection of mini programs from the source code dimension refers to detecting whether the mini program has the behavior of continuously requesting authorization to obtain private data, and / or detecting whether the mini program has the behavior of obtaining private data without authorization, etc. In other words, when detecting the mini program from the underlying source code, the logical relationship between the source codes will be analyzed to determine whether there is any behavior of collecting user private data by abnormal means, so as to achieve the purpose of privacy risk detection.
[0119] In summary, by using source code detection strategies to detect mini programs, we can not only achieve the purpose of detection in the source code dimension, but also improve the accuracy of detection, thereby effectively improving the standardization of business scenarios.
[0120] Step S314, extracting entities and relationships contained in the detection knowledge graph, and determining the behavioral logical relationships of the mini program based on the entities and relationships.
[0121] Step S316: Detect the behavior logic relationship based on the source code detection strategy to obtain behavior logic information.
[0122] Specifically, the behavioral logic relationship refers to the authorization relationship, network interaction relationship, privacy acquisition relationship or transaction relationship existing in the source code corresponding to the Mini Program; correspondingly, the behavioral logic information refers to the information reflecting whether various behavioral logic relationships are abnormal.
[0123] Based on this, the behavior logic relationship includes but is not limited to the attribute interaction logic relationship, the page interaction logic relationship, and the user interaction logic relationship; accordingly, the behavior logic information includes but is not limited to the attribute behavior logic information, the page behavior logic information, and the user behavior logic information. Among them, the attribute interaction logic relationship specifically refers to the logic relationship for obtaining authorization or network interaction in the source code corresponding to the mini program; the page interaction logic relationship specifically refers to the logic relationship for active interaction with the user in the source code corresponding to the mini program; the user interaction logic relationship specifically refers to the logic relationship actively driven by the user in the source code corresponding to the mini program; accordingly, the attribute behavior logic information specifically refers to whether the attribute interaction logic relationship is abnormal or not; the page behavior logic information specifically refers to whether the page behavior logic relationship is abnormal or not; the user behavior logic information specifically refers to whether the user behavior logic relationship is abnormal or not.
[0124] Furthermore, after obtaining the data to be tested, the entities and relationships contained in the test knowledge graph can be extracted, and the behavioral logical relationship of the mini program can be constructed based on the entities and relationships. It should be noted that the behavioral logical relationship covers all logical relationships before the mini program source code; then the source code detection strategy is used to detect the behavioral logical relationship to obtain the behavioral logic information, so as to facilitate the subsequent analysis of the mini program detection results based on the behavioral logic information, that is, to detect whether the mini program has privacy risks.
[0125] Continuing with the above example, after obtaining the detection knowledge graph corresponding to the ordering applet, the entities and relationships corresponding to the ordering applet can be extracted from the graph, and the behavioral logic relationships corresponding to the applet {authorization behavior logic, network interaction behavior logic relationship, privacy acquisition behavior logic relationship, transaction behavior logic relationship} can be determined based on the entities and relationships. Then, the behavioral logic relationships are detected using the source code detection strategy to detect the applet in the source code dimension. According to the detection results, it is determined that the authorization behavior logic relationship is abnormal, indicating that the applet has abnormal behavior when requesting authorization, so as to facilitate the subsequent determination of the detection results of the applet.
[0126] In summary, by detecting the behavioral logical relationship of the mini program by detecting the source code, we can analyze whether the mini program has privacy risks based on the logical relationship between the source codes, thereby achieving risk detection of the mini program and effectively improving the detection accuracy.
[0127] Step S318, determining the detection result of the mini program based on the behavior logic information.
[0128] Specifically, after determining the behavioral logic information as described above, the detection result of the mini program can be determined based on the behavioral logic information, thereby ensuring the standardization of the business scenario and facilitating the management of the mini program based on the detection result of the mini program.
[0129] Furthermore, when performing risk detection on the mini program from the source code dimension, since there are many source codes corresponding to the mini program, and the behavior logic relationship not only has the logic relationship corresponding to privacy acquisition, but also has the logic relationship supporting the operation of the mini program, in order to be able to detect the privacy risks of the mini program, it is necessary to achieve the purpose of detection based on the relevant logical relationship of privacy risks. In this embodiment, the specific implementation method is as follows:
[0130] Receive a detection instruction submitted by the deployer of the mini program; determine behavior detection information according to the detection instruction, and filter the behavior logic information based on the behavior detection information; determine target behavior logic information according to the filtering result, and determine the detection result of the mini program based on the target behavior logic information.
[0131] Specifically, the detection instruction refers to the instruction submitted by the deployer of the mini program in the business platform, and the behavioral logic relationship that needs to be detected can be determined based on the instruction; the corresponding target behavioral logic information refers to the behavioral logic information corresponding to the behavioral logic relationship that needs to be detected.
[0132] Based on this, after receiving the detection instructions submitted by the deployer, the behavior detection information can be determined according to the detection instructions, and the detected behavior logic information can be filtered based on the behavior detection information, and the target behavior logic information can be determined based on the filtering results, so as to facilitate the subsequent determination of the detection results of the mini program based on the target behavior logic information.
[0133] Continuing with the above example, after detecting the behavioral logic relationships corresponding to the mini program {authorization behavioral logic, network interaction behavioral logic, privacy acquisition behavioral logic, transaction behavioral logic} through the source code detection strategy, the behavioral logic information corresponding to each behavioral logic relationship will be obtained; based on this, since the privacy acquisition behavioral logic relationship and the authorization behavioral logic relationship will involve the user's privacy data, the behavioral logic information corresponding to the authorization behavioral logic relationship and the behavioral logic information corresponding to the privacy acquisition behavioral logic relationship can be read according to the detection instructions of the ordering mini program. Based on the behavioral logic information, it is determined that the ordering mini program will repeatedly pop up the authorization behavior of obtaining the user's address on the basis that the user does not authorize the collection of location information. At this time, it is determined that there is an abnormality in the authorization behavioral logic relationship, and it can be used as the detection result of the ordering mini program.
[0134] In summary, by determining the detection results of the mini program according to the needs of the deployer, it is possible to more intuitively reflect the privacy risks of the mini program, improve the management and control efficiency of the mini program, and ensure the standardization of business scenarios.
[0135] It should be noted that when conducting privacy risk detection on mini programs, it can be completed simultaneously on the front-end and the back-end. That is to say, while the mini program can be detected through screenshots of the interface involved on the front-end, it can also be detected through the source code involved on the back-end to improve the detection accuracy.
[0136] The mini-program detection method provided in this specification, after obtaining the data to be detected associated with the mini-program, in order to achieve accurate detection of the mini-program and avoid the mini-program from violating regulations, can determine the detection strategy based on the data type of the data to be detected. In other words, different types of data to be detected will correspond to different detection strategies, so as to achieve detection processing from multiple dimensions. Finally, the data to be detected is processed according to the detection strategy, and the detection result of the mini-program can be determined based on the processing result, so that the business party of the application program that hosts the mini-program can govern the mini-program in a timely manner according to the detection results, reduce the privacy risks brought by the mini-program, and improve the standardization of business scenarios.
[0137] The following combination Figure 4 , taking the application of the mini program detection method provided in this specification in a shopping mini program as an example, the mini program detection method is further described. Among them, Figure 4 A processing flow chart of a mini program detection method applied to a shopping mini program provided in an embodiment of this specification is shown, which specifically includes the following steps:
[0138] Step S402, determining the shopping applet to be detected.
[0139] Step S404, loading the shopping applet into the simulation module for processing, and obtaining multiple interface screenshots as data to be detected.
[0140] Step S406: determining that the data to be detected is an image data type according to the plurality of interface screenshots, and reading a screenshot detection strategy corresponding to the image data type.
[0141] Step S408, determining an image detection model according to the screenshot detection strategy.
[0142] Step S410: Input the multiple interface screenshots into the image detection model for detection to obtain detection information of each interface screenshot.
[0143] Step S412, obtaining the source code corresponding to the shopping applet, and constructing the syntax tree corresponding to the shopping applet based on the source code.
[0144] Step S414, extract the data flow information and control flow information in the syntax tree to construct a detection knowledge graph corresponding to the shopping applet.
[0145] Step S416, detecting the relationships and entities contained in the knowledge graph as the data to be detected associated with the shopping mini program.
[0146] Step S418, determine that the data to be detected is a graph data type based on the entities and relationships contained in the detection knowledge graph, and read the source code detection strategy corresponding to the graph data type.
[0147] Step S420, extract and detect entities and relationships contained in the knowledge graph, and determine the behavioral logical relationships of the shopping applet based on the entities and relationships.
[0148] Step S422: Detect the behavior logic relationship based on the source code detection strategy to obtain behavior logic information.
[0149] Step S424, determining the detection result of the shopping applet based on the behavior logic information and the detection information.
[0150] Step S426, when the detection result is abnormal, read the program points corresponding to the shopping mini program and determine the abnormality level of the shopping mini program.
[0151] Step S428, update the program points based on the abnormality level, and send a reminder message to the service provider of the shopping mini program according to the update result.
[0152] See also Figure 5 As shown in the schematic diagram, the shopping mini-program detection method provided in this embodiment realizes the combination of source code and interface screenshots during detection, analyzes the file structure, AST syntax tree, function / variable, control flow and data flow of the shopping mini-program through the JS code engine, and analyzes the page layout, page display, user interaction behavior, page jump, authorization behavior, network behavior, information acquisition behavior, and transaction behavior of the shopping mini-program through the mini-program engine, so as to realize the detection of the mini-program by the joint front-end and back-end, avoid the occurrence of privacy authorization by abnormal means {circular authorization, excessive authorization, authorization without exit, etc.}, ensure data security {plain text display, plain text transmission, information with check, etc.}, and reduce risks {fraud, cheating, etc.}.
[0153] To summarize, when it is necessary to detect a mini program, you can combine the front-end display level detection and the back-end source code level detection to achieve comprehensive detection of the mini program. This can not only achieve comprehensive coverage detection, but also accurately analyze the privacy risks of the mini program from the underlying behavioral logic, thereby ensuring detection accuracy.
[0154] Corresponding to the above method embodiment, this specification also provides an embodiment of a mini-program detection device. Figure 6 FIG. 1 shows a schematic diagram of the structure of a small program detection device provided in an embodiment of this specification. Figure 6 As shown, the device comprises:
[0155] The acquisition module 602 is configured to acquire the to-be-detected data associated with the mini-program;
[0156] A determination module 604 is configured to determine a detection strategy based on the data type of the data to be detected;
[0157] The processing module 606 is configured to process the data to be detected according to the detection strategy, and determine the detection result of the mini-program according to the processing result.
[0158] In an optional embodiment, the acquisition module 602 is further configured to:
[0159] The mini program is loaded into a simulation module for processing to obtain multiple interface screenshots output by the simulation module; wherein the interface screenshots are screenshots of the business service interface provided by the mini program to users; the multiple interface screenshots are integrated to obtain the data to be detected associated with the mini program.
[0160] In an optional embodiment, the determining module 604 is further configured to:
[0161] The data to be detected is parsed to obtain the multiple interface screenshots; the data to be detected is determined to be an image data type according to the multiple interface screenshots; and a screenshot detection strategy corresponding to the image data type is read as the detection strategy.
[0162] In an optional embodiment, the processing module 606 is further configured to:
[0163] Determine an image detection model according to the screenshot detection strategy; input the multiple interface screenshots into the image detection model for detection respectively to obtain detection information of each interface screenshot among the multiple interface screenshots; determine the detection result of the mini program based on the detection information of each interface screenshot.
[0164] In an optional embodiment, the image detection model is used to determine the screenshot type of the interface screenshot, and determine the baseline screenshot information based on the screenshot type; the screenshot information to be detected contained in the interface screenshot is detected through the baseline screenshot information, and the detection information of the interface screenshot is obtained and output according to the detection result.
[0165] In an optional embodiment, the acquisition module 602 is further configured to:
[0166] Obtain the source code corresponding to the mini-program, and construct a syntax tree structure corresponding to the mini-program based on the source code; extract the data flow information and control flow information in the syntax tree structure to construct a detection knowledge graph corresponding to the mini-program; and use the relationships and entities contained in the detection knowledge graph as the data to be detected associated with the mini-program.
[0167] In an optional embodiment, the determining module 604 is further configured to:
[0168] Parse the data to be detected to obtain entities and relationships contained in the detection knowledge graph; determine that the data to be detected is a graph data type based on the entities and relationships contained in the detection knowledge graph; read the source code detection strategy corresponding to the graph data type as the detection strategy.
[0169] In an optional embodiment, the processing module 606 is further configured to:
[0170] Extract the entities and relationships contained in the detection knowledge graph, and determine the behavioral logic relationships of the mini-program based on the entities and relationships; detect the behavioral logic relationships based on the source code detection strategy to obtain behavioral logic information; determine the detection result of the mini-program based on the behavioral logic information.
[0171] In an optional embodiment, the behavior logic relationship includes at least one of the following: attribute interaction logic relationship, page interaction logic relationship, and user interaction logic relationship; correspondingly, the behavior logic information includes at least one of the following: attribute behavior logic information, page behavior logic information, and user behavior logic information.
[0172] In an optional embodiment, the processing module 606 is further configured to:
[0173] Receive a detection instruction submitted by the deployer of the mini program; determine behavior detection information according to the detection instruction, and filter the behavior logic information based on the behavior detection information; determine target behavior logic information according to the filtering result, and determine the detection result of the mini program based on the target behavior logic information.
[0174] In an optional embodiment, the mini-program detection device further includes:
[0175] a reminder module, configured to read the program points corresponding to the mini program and determine the abnormality level of the mini program when the detection result is abnormal;
[0176] The program points are updated based on the abnormality level, and a reminder message is sent to the service provider of the mini program according to the update result.
[0177] The mini-program detection method provided in this specification, after obtaining the data to be detected associated with the mini-program, in order to achieve accurate detection of the mini-program and avoid the mini-program from violating regulations, can determine the detection strategy based on the data type of the data to be detected. In other words, different types of data to be detected will correspond to different detection strategies, so as to achieve detection processing from multiple dimensions. Finally, the data to be detected is processed according to the detection strategy, and the detection result of the mini-program can be determined based on the processing result, so that the business party of the application program that hosts the mini-program can govern the mini-program in a timely manner according to the detection results, reduce the privacy risks brought by the mini-program, and improve the standardization of business scenarios.
[0178] The above is a schematic scheme of a mini-program detection device of this embodiment. It should be noted that the technical scheme of the mini-program detection device and the technical scheme of the mini-program detection method described above belong to the same concept. For details not described in detail in the technical scheme of the mini-program detection device, please refer to the description of the technical scheme of the mini-program detection method described above.
[0179] Figure 7 The structure block diagram of a computing device 700 provided according to an embodiment of the present specification is shown. The components of the computing device 700 include but are not limited to a memory 710 and a processor 720. The processor 720 is connected to the memory 710 via a bus 730, and the database 750 is used to store data.
[0180] The computing device 700 also includes an access device 740 that enables the computing device 700 to communicate via one or more networks 760. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 740 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.
[0181] In one embodiment of the present specification, the above components of the computing device 700 and Figure 7 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 7 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0182] The computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 700 may also be a mobile or stationary server.
[0183] The processor 720 is used to execute the following computer executable instructions:
[0184] Get the data to be tested associated with the mini program;
[0185] Determining a detection strategy based on the data type of the data to be detected;
[0186] The data to be detected is processed according to the detection strategy, and the detection result of the mini-program is determined according to the processing result.
[0187] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned mini-program detection method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be found in the description of the technical scheme of the above-mentioned mini-program detection method.
[0188] An embodiment of the present specification further provides a computer-readable storage medium storing computer instructions, which are used when executed by a processor to:
[0189] Get the data to be tested associated with the mini program;
[0190] Determining a detection strategy based on the data type of the data to be detected;
[0191] The data to be detected is processed according to the detection strategy, and the detection result of the mini-program is determined according to the processing result.
[0192] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above-mentioned applet detection method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be found in the description of the technical scheme of the above-mentioned applet detection method.
[0193] An embodiment of the present specification also provides a computer program, which, when executed in a computer, causes the computer to execute the steps of the applet detection method.
[0194] The above is a schematic scheme of a computer program of this embodiment. It should be noted that the technical scheme of the computer program and the above-mentioned small program detection method belong to the same concept, and the details not described in detail in the technical scheme of the computer program can be found in the description of the technical scheme of the above-mentioned small program detection method.
[0195] 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.
[0196] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0197] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that this specification is not limited by the order of the actions described, because according to this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this specification.
[0198] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0199] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is limited only by the claims and their full scope and equivalents.
Claims
1. A method for detecting a mini program, comprising: Get the data to be tested associated with the mini program; Determine a detection strategy based on the data type of the data to be detected, wherein the detection strategy includes a screenshot detection strategy and / or a source code detection strategy, the screenshot detection strategy is used to determine an image detection model, the image detection model is used to determine the screenshot type of the interface screenshot, and determine the baseline screenshot information based on the screenshot type, the baseline screenshot information is used to detect the screenshot information to be detected contained in the interface screenshot; the source code detection strategy is used to detect the behavior logic relationship and obtain the behavior logic information, the behavior logic information is used to determine the detection result of the source code dimension of the mini program; The data to be detected is processed according to the detection strategy, and the detection result of the mini-program is determined according to the processing result.
2. According to the mini program detection method of claim 1, the step of obtaining the data to be detected associated with the mini program comprises: The mini program is loaded into a simulation module for processing, and a plurality of interface screenshots output by the simulation module are obtained; wherein the interface screenshots are screenshots of the business service interface provided by the mini program to the user; The multiple interface screenshots are integrated to obtain the data to be detected associated with the mini-program.
3. The mini-program detection method according to claim 2, wherein the step of determining the detection strategy based on the data type of the data to be detected comprises: Parsing the data to be detected to obtain the multiple interface screenshots; Determining, according to the multiple interface screenshots, that the data to be detected is of image data type; A screenshot detection strategy corresponding to the image data type is read as the detection strategy.
4. The mini-program detection method according to claim 3, wherein the step of processing the data to be detected according to the detection strategy and determining the mini-program detection result according to the processing result comprises: Determine an image detection model according to the screenshot detection strategy; Inputting the multiple interface screenshots into the image detection model for detection respectively, and obtaining detection information of each interface screenshot among the multiple interface screenshots; The detection result of the mini program is determined based on the detection information of each interface screenshot.
5. According to the mini-program detection method of claim 4, the image detection model is used to determine the screenshot type of the interface screenshot, and determine the baseline screenshot information based on the screenshot type; the screenshot information to be detected contained in the interface screenshot is detected through the baseline screenshot information, and the detection information of the interface screenshot is obtained and output according to the detection result.
6. According to the mini program detection method of claim 1, the step of obtaining the data to be detected associated with the mini program comprises: Obtaining source code corresponding to the mini-program, and constructing a syntax tree structure corresponding to the mini-program based on the source code; Extracting data flow information and control flow information from the syntax tree structure to construct a detection knowledge graph corresponding to the mini-program; The relationships and entities contained in the detection knowledge graph are used as the data to be detected associated with the mini-program.
7. The mini-program detection method according to claim 6, wherein the step of determining the detection strategy based on the data type of the data to be detected comprises: Parsing the data to be detected to obtain entities and relationships contained in the detection knowledge graph; Determining that the data to be detected is a graph data type according to the entities and relationships contained in the detection knowledge graph; A source code detection strategy corresponding to the graph data type is read as the detection strategy.
8. The mini-program detection method according to claim 7, wherein the processing of the data to be detected according to the detection strategy and determining the detection result of the mini-program according to the processing result comprises: Extracting entities and relationships contained in the detection knowledge graph, and determining the behavioral logical relationship of the mini program based on the entities and relationships; Detecting the behavior logic relationship based on the source code detection strategy to obtain behavior logic information; The detection result of the applet is determined based on the behavior logic information.
9. According to the mini-program detection method of claim 8, the behavior logic relationship includes at least one of the following: Attribute interaction logic relationship, page interaction logic relationship, user interaction logic relationship; Accordingly, the behavior logic information includes at least one of the following: Attribute behavior logic information, page behavior logic information, user behavior logic information.
10. The mini-program detection method according to claim 8, wherein determining the mini-program detection result based on the behavior logic information comprises: Receiving a detection instruction submitted by a deployer of the mini program; Determining behavior detection information according to the detection instruction, and filtering the behavior logic information based on the behavior detection information; The target behavior logic information is determined according to the screening result, and the detection result of the mini program is determined based on the target behavior logic information.
11. The mini program detection method according to any one of claims 1 to 10, after the step of determining the mini program detection result according to the processing result is performed, further comprising: In the case where the detection result is abnormal, reading the program score corresponding to the mini program and determining the abnormality level of the mini program; The program points are updated based on the abnormality level, and a reminder message is sent to the service provider of the mini program according to the update result.
12. A mini-program detection device, comprising: An acquisition module, configured to acquire the to-be-detected data associated with the mini-program; A determination module is configured to determine a detection strategy based on the data type of the data to be detected, wherein the detection strategy includes a screenshot detection strategy and / or a source code detection strategy, the screenshot detection strategy is used to determine an image detection model, the image detection model is used to determine the screenshot type of the interface screenshot, and determine the baseline screenshot information based on the screenshot type, the baseline screenshot information is used to detect the screenshot information to be detected contained in the interface screenshot; the source code detection strategy is used to detect the behavior logic relationship and obtain the behavior logic information, and the behavior logic information is used to determine the detection result of the source code dimension of the mini program; The processing module is configured to process the data to be detected according to the detection strategy, and determine the detection result of the mini program according to the processing result.
13. A computing device comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the steps of the method described in any one of claims 1 to 11.
14. A computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 11.
