Model construction method, application white list screening method, storage medium and terminal

By building an application security judgment model and using the application's security feature values ​​to determine the security of the application, we solve the problem that existing technologies cannot effectively handle large-scale data and rapidly changing security threats, and achieve efficient and accurate application whitelist screening and security. Sexual judgment.

CN118536112APending Publication Date: 2024-08-23WUHAN ANTIY MOBILE SECURITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410703244.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing application whitelist screening methods cannot effectively handle large-scale data and rapidly changing security threats, and detection methods based on APK signature information may not fully capture the behavioral characteristics of malicious applications, resulting in incomplete and inaccurate detection results. .

Method used

By determining the key security features and optional security features of the application, the corresponding security feature values ​​are generated, and these feature values ​​are used to train the recommendation algorithm model and build an application security judgment model, which is used to judge the security of the application and realize the assessment of large-scale applications. Efficient security determination and whitelist screening.

Benefits of technology

It achieves efficient security determination of large-scale applications, achieves efficient and accurate whitelist screening, and can quickly adapt to changes in security threats, reducing computing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536112A
    Figure CN118536112A
Patent Text Reader

Abstract

The embodiment of the invention provides a model construction method, an application white list screening method, a storage medium and a terminal, and the method comprises the steps: determining the security features of a plurality of applications and the importance coefficient of each security feature through the key security features and / or selectable security features of the applications, and determining the security features of the applications according to the security features and the importance coefficient of each security feature; one or more security feature values of the plurality of applications and application security values of the plurality of applications are generated. And training by using the one or more security feature values of the plurality of applications and the plurality of application security values to obtain an application security judgment model. The application security value of the unknown application can be obtained according to the security feature of the unknown application and the application security judgment model, and whether the target application is the white list application or not can be judged according to the application security value. By applying the method, efficient security judgment on large-scale applications can be realized, application white list screening can be efficiently and accurately carried out, and changes of security threats can be quickly adapted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mobile network security technology, and in particular to a model building method, an application whitelist screening method, a storage medium and a terminal. Background Art

[0002] In the current field of computer network security technology, with the popularization of mobile applications, the security of mobile applications has received more and more attention. When it is necessary to make security judgments on a large number of applications and screen application whitelists, traditional application whitelist screening methods have the problem of being unable to effectively handle large-scale data and rapidly changing security threats.

[0003] At present, most of the existing application security detection methods based on APK signature information feedback combine SVM classification algorithm and heuristic rule learning to extract feature values, but this method may not be able to fully capture the various behavioral characteristics of malicious applications, resulting in incompleteness and inaccuracy of detection results. Some researchers have proposed the concept of malware genes and extracted software genes by analyzing the functional information fragments of malicious code. This method attempts to comprehensively analyze malicious code through functional information fragments, but the computational cost of the extraction method based on functional information fragments is high. Summary of the invention

[0004] The embodiment of the present invention provides a model construction method, an application whitelist screening method, a storage medium and a terminal, which trains a recommendation algorithm model through one or more security feature values ​​and application security values ​​of several applications to obtain an application security determination model. It can realize efficient security determination of large-scale applications, achieve efficient and accurate application whitelist screening, and quickly adapt to changes in security threats.

[0005] In a first aspect, an embodiment of the present invention provides a method for building an application security determination model, comprising:

[0006] Determining security features of a number of applications and the importance factor of each security feature, the security features including key security features and / or optional security features;

[0007] Generate one or more security feature values ​​according to the security feature of each application, and obtain the application security value of each application according to the one or more security feature values ​​and the importance coefficient of each security feature, thereby obtaining a plurality of application security values;

[0008] Using one or more security feature values ​​of the plurality of applications and the plurality of application security values ​​to train a preset recommendation algorithm model to obtain an application security determination model;

[0009] The key security features include at least one of the following: the distribution method of the application, the number of certificates with the same package name of the application, the certificate life cycle of the application, the number of package names of the application, and the activity of the application;

[0010] The optional security features include at least one of the following: a payment method of the application, a third-party library of the application, developer information of the application, and a user evaluation of the application.

[0011] In a second aspect, an embodiment of the present invention provides an application whitelist screening method, comprising:

[0012] Determining security features of a target application and importance coefficients of each security feature, wherein the security features include key security features and / or optional security features;

[0013] generating one or more security feature values ​​according to the security features of the target application;

[0014] Input one or more security feature values ​​of the target application into an application security determination model, obtain an application security value of the target application, and determine whether the target application is a whitelist application according to the application security value; wherein the application security determination model is obtained according to the above-mentioned application security determination model construction method;

[0015] The key security features include at least one of the following: the distribution method of the application, the number of certificates with the same package name of the application, the certificate life cycle of the application, the number of package names of the application, and the activity of the application;

[0016] The optional security features include at least one of the following: a payment method of the application, a third-party library of the application, developer information of the application, and a user evaluation of the application.

[0017] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method steps described in the first aspect or the method steps described in the second aspect are implemented.

[0018] In a fourth aspect, an embodiment of the present invention provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method steps described in the first aspect or the method steps described in the second aspect when executing the computer program.

[0019] The model building method, application whitelist screening method, storage medium and terminal provided by the embodiments of the present invention have the following technical effects:

[0020] The embodiment of the present invention determines the security features of several applications and the importance coefficient of each security feature through the key security features and / or optional security features of the applications, and generates one or more security feature values ​​of several applications and application security values ​​of several applications based on the security features and the importance coefficient of each security feature. An application security determination model is obtained by training using one or more security feature values ​​and several application security values ​​of several applications. The application security value of the unknown application can be obtained based on the security features of the unknown application and the application security determination model, and whether the target application is a whitelist application can be determined based on the application security value. The application of the above method can achieve efficient security determination of large-scale applications, achieve efficient and accurate application whitelist screening, and can quickly adapt to changes in security threats. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 A flow chart of a method for building an application security determination model provided by an embodiment of the present invention;

[0023] Figure 2 An optional safety feature verification flow chart provided by an embodiment of the present invention;

[0024] Figure 3 A flow chart of an application whitelist screening method provided by an embodiment of the present invention;

[0025] Figure 4 A schematic diagram of the structure of an application security determination model construction device provided by an embodiment of the present invention;

[0026] Figure 5 A schematic diagram of the structure of an application whitelist screening device provided by an embodiment of the present invention;

[0027] Figure 6 A block diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are only examples of devices and methods consistent with some aspects of the present invention as detailed in the attached claims.

[0030] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0031] In the current field of computer network security technology, with the popularization of mobile applications, the security of mobile applications has received more and more attention. When it is necessary to make security judgments on a large number of applications and screen application whitelists, traditional application whitelist screening methods have the problem of being unable to effectively handle large-scale data and rapidly changing security threats.

[0032] At present, most of the existing application security detection methods based on APK signature information feedback combine SVM classification algorithm and heuristic rule learning to extract feature values, but this method may not be able to fully capture the various behavioral characteristics of malicious applications, resulting in incompleteness and inaccuracy of detection results. Some researchers have proposed the concept of malware genes and extracted software genes by analyzing the functional information fragments of malicious code. This method attempts to comprehensively analyze malicious code through functional information fragments, but the computational cost of the extraction method based on functional information fragments is high.

[0033] In view of the above problems, the present invention provides a model construction method, an application whitelist screening method, a storage medium and a terminal. Below, the application security determination model construction method and the application whitelist screening method in the embodiments of the present invention will be described in more detail with reference to the accompanying drawings and embodiments.

[0034] Figure 1 A flow chart of a method for building an application security determination model provided by an embodiment of the present invention. Figure 1 As shown, the method of the embodiment of the present invention may include the following steps:

[0035] S101 , determining security features of several applications and an importance coefficient of each security feature, wherein the security features include key security features and / or optional security features.

[0036] In the embodiment of the present invention, the security of the application is judged by the characteristic information of the application, and the characteristic information of the application includes multiple aspects, among which some characteristic information may have a greater impact on the judgment of the security of the application, while some characteristic information may have a smaller impact on the judgment of the security of the application. Therefore, the characteristic information of the application can be divided into key security features and optional security features, among which the key security features are features that have a greater impact on the judgment of the security of the application, which can be specifically determined based on expert experience and analysis of previous application-related data. Optional security features are features that have a smaller impact on the judgment of the security of the application, and features other than the key security features in the characteristic information can be determined as optional security features.

[0037] Optionally, the key security features include at least one of the following: the distribution method of the application, the number of certificates with the same package name of the application, the certificate life cycle of the application, the number of package names of the application, and the user activity of the application.

[0038] Among them, the distribution method of the application refers to the distribution channel and listing method of the application to users. Generally, formal applications will be listed in formal application stores, such as Google Play, Huawei, Xiaomi, vivo, OPPO and other large manufacturers' application stores. Such application stores will conduct security tests on the applications before they are listed, which can guarantee the security of the applications to a large extent. In order to avoid being detected, informal applications generally do not choose to be listed in formal application stores, but distribute them through forums, Tieba and other places where users gather. Therefore, the distribution method of the application is a key feature to judge the security of the application.

[0039] The number of certificates with the same package name for an application, that is, the number of certificates under the corresponding package name of the application. Normal developers generally do not apply for many different certificates for the same application. If an application applies for many certificates, it is more likely that the application is an informal application. Each application will apply for a corresponding certificate, which is a key feature for judging the security of the application.

[0040] The certificate production cycle of the application, that is, the length of time the application certificate exists. The production cycle of the application is also an important indicator for measuring application security. The longer the application exists, the higher the security is. However, some newly launched formal applications also have the problem of short life span. Therefore, the security of the application can be judged based on the certificate life cycle of the application. Generally, formal applications will not frequently change the application certificate, while informal applications may frequently change the application certificate in order to evade supervision, resulting in a shorter application certificate life cycle. Therefore, the certificate life cycle of the application is a key feature for judging the security of the application.

[0041] The number of package names of an application, that is, the number of package names under an application name. The package name of an application can uniquely identify the application. Generally, the application name and package name of a formal application correspond one to one and will not be changed easily. In order to attract users, informal applications may use some application names similar to those of well-known applications, but in order to evade supervision, they will frequently change the package name. Therefore, the number of package names of an application is a key feature for judging the security of an application.

[0042] The user activity of an application refers to the user activity of the application, such as the number of users of the application and the monthly active users of the application. Generally, normal applications have corresponding users and high user activity. Informal applications generally only target a small number of target users and have low user activity. Therefore, the user activity of an application is a key feature for judging the security of the application.

[0043] Optionally, in addition to key security features, there are some other features that can affect the security of the application, and these features can be used as optional security features. Optional security features include at least one of the following: payment method of the application, third-party library of the application, developer information of the application, and user evaluation of the application.

[0044] Among them, the payment method of the application refers to the payment method and channel provided when the application needs payment. Most applications now have payment requirements, and when making payments, applications generally provide multiple payment channels, including official channels, third-party channels, and built-in channels. Official channels such as banks, if the payment method provided by the application is paid through official channels, it is usually easier to determine the legitimacy of the application. Because on official channels, developers need to pass a series of audits and certifications, and the payment methods will also be subject to corresponding supervision and audits. Third-party channels such as Alipay, WeChat and other third-party payment software provided by third parties, if the application uses third-party payment methods, although these payment methods themselves may be legal, it is necessary to further consider the security and compliance of the payment process. Some informal applications may use third-party payments to circumvent the review of official channels, so they need to be treated with caution. Built-in channels are payment systems built into the application itself, which do not rely on external payment channels. In this case, the legitimacy of the application itself needs to be more strictly audited to ensure the payment security and compliance of users. As can be seen from the above, the security of the application can also be judged to a certain extent by the payment method of the application.

[0045] The third-party library of an application is the third-party library called by the application during operation. Official or trusted third-party libraries are usually strictly reviewed and tested, which helps to improve the quality and credibility of the application. If the application uses unauthorized or unknown third-party libraries, this may cause some risks and legality issues. At the same time, some illegal applications may use unauthorized third-party libraries to circumvent official audits. Therefore, the security of the application can be judged to a certain extent through the third-party libraries of the application.

[0046] The developer information of the application, such as the name, type, contact information, etc. of the application developer. Formal applications will have clear developer information and can be obtained through public channels. In order to avoid being tracked, the developer information of informal applications may be unclear. Therefore, the security of the application can be judged to a certain extent through the developer of the application.

[0047] User evaluation of an application, that is, the user's opinion and attitude towards the application, can be reflected through user ratings and comments. Formal applications have a large user base and a good user experience, and generally have high user ratings and more positive user comments. Informal applications, on the other hand, have a small user base and bring risks to users. Generally, there are no user ratings or very low user ratings, and there is a high possibility of negative user comments. Therefore, the user evaluation of an application can be used to judge the security of the application to a certain extent.

[0048] Optionally, after determining one or more key security features and one or more optional security features, since each security feature has a different impact on the judgment of application security, it is also necessary to set a corresponding importance coefficient for each security feature. The importance coefficient can be set according to the degree of influence of each security feature on the judgment of application security. The greater the influence, the higher the importance coefficient can be set.

[0049] The overall impact of key security features is higher than that of optional security features, and a higher importance coefficient can be set for key security features as a whole. For example, if the distribution method of the application has a high impact, the importance coefficient can be set to 2, the importance coefficient of the number of certificates with the same package name of the application can be set to 1, the importance coefficient of the certificate life cycle of the application can be set to 3, the importance coefficient of the number of package names of the application can be set to 1, and the importance coefficient of the user activity of the application can be set to 3. The overall impact of optional security features is lower, and the importance coefficient can be set lower, such as 1 as a whole. Of course, the importance coefficient setting of each security feature can be considered according to the actual situation, and is not limited here.

[0050] Optionally, the importance coefficient is a method of expressing the influence of each security feature on judging the security of the application. The specific form of expression may not be limited to the importance coefficient, and may also be expressed in other ways, such as weight.

[0051] Based on any of the above optional embodiments, S102, one or more security feature values ​​of each application are generated according to the security feature of each application and the importance coefficient of each security feature, and an application security value of each application is generated, thereby obtaining a plurality of application security values.

[0052] In the embodiment of the present invention, it can be seen from the above that each security feature includes multiple situations, and different situations have different effects on judging the security of the application. Therefore, in order to better reflect the impact of each security feature situation on judging the security of the application and intuitively judge the security of the application, a security feature value corresponding to each security feature can be generated according to the situation of each security feature, and the application security value of the application can be generated in combination with the important coefficient of each security feature. The security of the application is judged according to the application security value of the application.

[0053] Optionally, as can be seen from the above, the security features of the application include key security features and / or optional security features, that is, the security features of the application include only key security features, only optional security features, and both key security features and optional security features.

[0054] Therefore, one or more security feature values ​​of each application are generated according to the security feature of each application and the importance coefficient of each security feature, and an application security value of each application is generated, thereby obtaining several application security values, specifically including the following situations.

[0055] In an optional embodiment, S102.1, generating one or more key security feature values ​​of each application according to the key security feature of each application as the one or more security feature values ​​of each application;

[0056] S102.2, performing weighted summation on the one or more security feature values ​​of each application and the importance coefficient of each security feature to obtain an application security value of each application, thereby obtaining a plurality of application security values.

[0057] Optionally, one or more key security feature values ​​of each application are generated according to the key security features of each application, and the one or more key security feature values ​​are used as one or more security feature values ​​of each application. Then, the one or more security feature values ​​of each application and the importance coefficient of each security feature are weighted and summed to obtain the application security value of each application. The one or more key security feature values ​​are generated by the following method.

[0058] Optionally, the first key security feature value can be generated according to the distribution method of the application. As can be seen from the above, the security of applications listed in regular application stores is more guaranteed. Therefore, a higher value can be assigned to applications listed in regular application stores, such as 10, while a lower value can be assigned to applications not listed in regular application stores, such as 0. Of course, the specific value can be determined according to the actual situation and is not limited here.

[0059] Optionally, a second key security feature value can be generated based on the number of certificates with the same package name of the application. As can be seen from the above, the more certificates with the same package name of the application, the lower the security. Therefore, a lower value can be assigned to applications with a large number of certificates with the same package name, such as -5 when the number of certificates with the same package name of the application is greater than or equal to 5, and 0 in other cases. Of course, the specific value can be determined according to the actual situation and is not limited here.

[0060] Optionally, the third key security feature value can be generated according to the certificate life cycle of the application. As can be seen from the above, the longer the certificate life cycle of the application, the higher the security of the application. Therefore, a higher value can be assigned to applications with longer certificate life cycles. For example, when the certificate life cycle of the application is greater than or equal to 30 days, the value is assigned to 10, and the value is assigned to 0 in other cases. Of course, the specific value can be determined according to the actual situation and is not limited here.

[0061] Optionally, the fourth key security feature value can be generated according to the number of package names of the application. As can be seen from the above, the more package names the application has, the lower the security. Therefore, a lower value can be assigned to applications with more package names, such as when the number of package names of the application is greater than or equal to 5, the value is -5, and the value is 0 in other cases. Of course, the specific value can be determined according to the actual situation and is not limited here.

[0062] Optionally, a fifth key security feature value can be generated based on the user activity of the application. As can be seen from the above, the higher the user activity of the application, the higher the security of the application. Therefore, higher values ​​can be given to applications with higher user activity, and user activity can be measured by user scale, daily user activity, monthly user activity, etc. Considering that the user scale will be affected by the user's survival time, the daily user activity or monthly user activity of the application can be selected to measure the user activity of the application. When the user activity is greater than or equal to 10,000, a value of 10 can be assigned. When the user activity is less than or equal to 1,000, a value of -2 can be assigned. The data between (100, 10,000) is divided and assigned according to the average. For example, when a user's activity is 5,000, the value is 3.9. Of course, the specific assignment can be determined according to the actual situation and is not limited here.

[0063] According to the above method, one or more key security feature values ​​of each application can be generated according to the key security features of each application. Then, the one or more security feature values ​​and the importance coefficient of each security feature are weighted and summed to obtain the application security value of each application. For example, for a certain application A, the distribution method of the application, the certificate life cycle of the application, and the user activity of the application are selected to generate the corresponding key security feature values. The first key security feature value generated is 10, the third key security feature value generated is 10, and the fifth key security feature value generated is 3.9. The corresponding importance coefficients are 2, 3, and 3, respectively. Then, the application security value of application A is 10*2+10*3+3.9*3=61.7.

[0064] In another optional embodiment, S102.1, generating one or more optional security feature values ​​of each application according to the optional security feature of each application as the one or more security feature values ​​of each application;

[0065] S102.2, performing weighted summation on the one or more security feature values ​​of each application and the importance coefficient of each security feature to obtain an application security value of each application, thereby obtaining a plurality of application security values.

[0066] Optionally, one or more optional security feature values ​​of each application are generated according to the optional security features of each application, and the one or more optional security feature values ​​are used as the one or more security feature values ​​of each application. Then, the one or more security feature values ​​of each application and the importance coefficient of each security feature are weighted and summed to obtain the application security value of each application. The one or more optional security feature values ​​are generated by the following method.

[0067] Optionally, the first optional security feature value can be generated according to the payment method of the application. As can be seen from the above, the application security through official channels is the highest, the third party payment is the second, and the built-in payment system is the lowest. And an application may have multiple payment methods at the same time, so the value of 2 can be assigned to the case of official channel payment, the value of 1 can be assigned to the case of no official channel payment but a third party payment, and the value of 0 can be assigned to the case of only built-in payment. Of course, the specific value can be determined according to the actual situation and is not limited here.

[0068] Optionally, a second optional security feature value can be generated based on the third-party library of the application. As can be seen from the above, applications that use official or trusted third-party libraries are more secure, and applications that use unauthorized or unknown third-party libraries are less secure. Therefore, when an application uses an official or trusted third-party library, a higher value can be given, and when an application uses an unauthorized or unknown third-party library, a lower value can be given. Since an application can use multiple third-party libraries, a value of 0.5 can be given each time the application uses an official or trusted third-party library, and the value can be accumulated. To avoid the value being too high, the upper limit of the accumulation can be set to 3. When an application uses each unauthorized or unknown third-party library, in order to avoid the risks brought by the third-party library, a value of -1 is given, and it can be accumulated without a lower limit. Of course, the specific value can be determined according to the actual situation and is not limited here.

[0069] Optionally, a third optional security feature value may be generated based on the developer information of the application. As can be seen from the above, applications with clear developer information are more secure. Therefore, a value of 3 may be assigned to applications with clear developer information, and a value of -1 may be assigned to applications without clear developer information. Of course, the specific value assignment may be determined based on actual conditions and is not limited here.

[0070] Optionally, a fourth optional security feature value may be generated based on user evaluation of the application. As can be seen from the above, a good user evaluation, such as a high user rating and a more positive user comment, is more secure. The value may be assigned based on the user evaluation of the application, and the value may be calculated based on the user rating and comment of the application, and the assignment method may be set, which is not limited here.

[0071] According to the above method, one or more optional security feature values ​​of each application can be generated according to the optional security features of each application. Then, the one or more security feature values ​​and the importance coefficient of each security feature are weighted and summed to obtain the application security value of each application. For example, for a certain application A, the payment method of the application, the third-party library of the application, and the developer information of the application are selected to generate the corresponding optional security feature value. The first optional security feature value generated is 2, the second optional security feature value generated is 3, and the third optional security feature value generated is 3. The corresponding importance coefficients are 1, 1, and 1, respectively. Then, the application security value of application A is 2*1+3*1+3*1=8.

[0072] In another optional embodiment, S102.1, generating one or more key security feature values ​​and one or more optional security feature values ​​of each application according to the key security features and the optional security features of each application as the one or more security feature values ​​of each application;

[0073] S102.2, performing weighted summation on the one or more security feature values ​​of each application and the importance coefficient of each security feature to obtain an application security value of each application, thereby obtaining a plurality of application security values.

[0074] Optionally, based on the key security features and optional security features of each application, one or more key security feature values ​​and one or more optional security feature values ​​are generated for each application, and the one or more key security feature values ​​and the one or more optional security feature values ​​are used as the one or more security feature values ​​of each application. Then, the one or more security feature values ​​of each application and the importance coefficient of each security feature are weighted and summed to obtain the application security value of each application. The method for generating one or more key security feature values ​​and one or more optional security feature values ​​can be referred to above and will not be repeated here.

[0075] However, there may be mutual influence between key security features and optional security features, such as a certain optional security feature will weaken the effect of a certain key security feature, or a certain key security feature will weaken the effect of a certain optional security feature. Therefore, when selecting key security features and optional security features as security features for an application at the same time, it is necessary to first test a certain type of security features to avoid the correlation between the two types of security features. Since key security features have a greater impact on judging the security of an application than optional security features, optional security features are tested based on key security features.

[0076] For the specific process, please refer to Figure 2 , Figure 2 An optional safety feature verification flow chart provided by an embodiment of the present invention.

[0077] S201, verifying the one or more optional security features according to the one or more key security features of the plurality of applications and the importance coefficient of each key security feature;

[0078] S202, filtering optional security features that fail to pass the inspection.

[0079] Optionally, as can be seen from the above, the optional security features are tested based on the key security features, so the one or more optional security features are tested according to one or more key security features of several applications and the importance coefficient of each key security feature; the optional security features that fail the test are filtered. The specific test steps include:

[0080] S201.1, performing weighted summation on one or more key security feature values ​​of each application and an importance coefficient of each key security feature to generate a first application security value of each application, thereby obtaining a plurality of first application security values;

[0081] S201.2, for any optional security feature, taking the sum of the product of the value of any optional security feature and the importance coefficient of each application and the first application security value of each application as the second application security value of each application, thereby obtaining a plurality of second application security values;

[0082] S201.3, performing a pairing check on the first application security values ​​and the second application security values. If the pairing check succeeds and the average value of the second application security values ​​is greater than the average value of the first application security values, it is determined that any of the optional security features has passed the check.

[0083] First, one or more key security feature values ​​of each application are generated according to the key security features of each application. The generation method can be referred to above and will not be repeated here. Then, the one or more key security feature values ​​of each application and the importance coefficient of each key security feature are weighted and summed to generate the first application security value of each application, thereby obtaining a plurality of first application security values.

[0084] Since each optional safety feature has a different impact on the key safety features, some optional safety features may have a positive impact on the key safety features, while some optional safety features may have a negative impact on the key safety features. If multiple optional safety features are tested at the same time, the actual impact of the optional safety features on the key safety features cannot be tested, so the optional safety features need to be tested one by one.

[0085] For any optional security feature, the value of any optional security feature of each application is generated according to the optional security feature of each application. The generation method can be referred to above and will not be repeated here. The product of the optional security feature value of each application and the important coefficient and the sum of the first application security value of each application are used as the second application security value of each application, thereby obtaining a plurality of second application security values.

[0086] Then, a pairing test is performed on a number of first application security values ​​and a number of second application security values. Optional pairing test methods include two-pair sample test, two-paired Permutation test, Person's correlation test, etc., which are not limited here. The degree of influence of any optional security feature on the key security feature can be obtained. If the degree of influence is large, it means that any optional security feature does not meet the consideration of the key security feature. Therefore, when a number of first application security values ​​and a number of second application security values ​​are paired, a confidence level can be obtained. If the confidence level is within the preset confidence interval, the pairing test is determined to be successful.

[0087] As can be seen from the above, the higher the application security value of the application, the higher the security of the application. In actual situations, we need to filter out secure applications as much as possible. Therefore, it is necessary to filter out optional security features that have a positive impact on key security features. The average value of several first application security values ​​and the average value of several second application security values ​​can be obtained. When the average value of several second application security values ​​is greater than the average value of several first application security values, it means that any optional security feature has a positive impact on the key security feature.

[0088] Therefore, a pairing check is performed on the first application security values ​​and the second application security values. If the pairing check succeeds and the average value of the second application security values ​​is greater than the average value of the first application security values, it is determined that any optional security feature has passed the test.

[0089] For example, for an application A, the distribution method of the application, the certificate life cycle of the application, and the user activity of the application are selected to generate corresponding key feature values. The generated first key security feature value is 10, the generated third key security feature value is 10, and the generated fifth key security feature value is 3.9, and the corresponding importance coefficients are 2, 3, and 3 respectively; the optional security features that have passed the inspection are the payment method of the application, the third-party library of the application, and the developer information of the application. The generated first optional security feature value is 2, the generated second optional security feature value is 3, and the generated third optional security feature value is 3. The corresponding importance coefficients are 1, 1, and 1 respectively. Then the application security value of application A is 10*2+10*3+3.9*3+2*1+3*1+3*1=69.7.

[0090] Based on any of the above optional embodiments, S103, a preset recommendation algorithm model is trained using one or more security feature values ​​of the several applications and the several application security values ​​to obtain an application security determination model.

[0091] In an embodiment of the present invention, after obtaining one or more security feature values ​​and several application security values ​​of several applications according to the above method, the one or more security feature values ​​and several application security values ​​of several applications are used to train a preset recommendation algorithm model to obtain an application security determination model. The application security determination model is used to obtain the application security value of the application. The specific steps include:

[0092] S103.1, judging the security attribute of each application according to the application security value of each application, thereby obtaining the security attributes of the plurality of applications; the security attributes include whitelist applications and non-whitelist applications;

[0093] S103.2, dividing the plurality of applications into a training set and a test set;

[0094] S103.3, training a preset recommendation algorithm model using one or more security feature values ​​and application security values ​​of each application in the training set to obtain an application security determination training model;

[0095] S103.4, inputting one or more security feature values ​​of each application in the test set into the application security determination training model, obtaining a determined application security value of each application in the test set, and determining a determined security attribute of each application in the test set according to the determined application security value;

[0096] S103.5, comparing the determined security attribute of each application in the test set with the security attribute of each application in the test set to obtain the accuracy of the application security determination training model;

[0097] S103.6, adjusting the parameters of the application security determination training model until the accuracy of the application security determination training model meets the conditions, thereby obtaining the application security determination model.

[0098] Optionally, the application security determination model is used to obtain the application security value of the application, but after obtaining the application security value of the application, it is used to determine the security of the application, that is, whether the application is a whitelist application or a non-whitelist application. Therefore, the quality of the application security determination model needs to be judged based on the accuracy of determining the application security through the application security value obtained by the model.

[0099] First, the security attributes of each application are determined based on the application security value of each application, thereby obtaining the security attributes of several applications; the security attributes include whitelist applications and non-whitelist applications. Applications with application security values ​​greater than or equal to a preset threshold can be determined as whitelist applications, and the preset threshold can be based on actual conditions, such as 20, 30, etc.

[0100] When training a model, there are generally training sets and test sets. The training set is used to train the model, and the test set is used to test the accuracy of the model in order to adjust the model. Therefore, several applications are divided into training sets and test sets. Then, one or more security feature values ​​and application security values ​​of each application in the training set are input into the preset recommendation algorithm model for training to obtain an application security judgment training model. The preset recommendation algorithm model can be an XGBoost model, a collaborative filtering model (CollaborativeFiltering), an integrated recommendation system model, a multi-armed bandit algorithm model (Multi-Armed Bandit Algorithms), etc.

[0101] Then, one or more security feature values ​​of each application in the test set are input into the application security determination training model to obtain the determined application security value of each application in the test set, and the determined security attribute of each application in the test set is determined according to the determined application security value. The determined security attribute of each application is compared with the actual security attribute of each application to obtain the accuracy of the application security determination training model; according to the accuracy, the parameters of the application security determination training model are adjusted until the accuracy of the application security determination training model meets the conditions, such as reaching more than 95%, and the application security determination model is obtained.

[0102] In summary, an embodiment of the present invention provides a method for constructing an application security determination model, which determines the security features of several applications and the importance coefficient of each security feature through the key security features and / or optional security features of the application, and generates one or more security feature values ​​of several applications and application security values ​​of several applications based on the security features and the importance coefficient of each security feature. The application security determination model is obtained by training with one or more security feature values ​​and several application security values ​​of several applications. The above method can be used to achieve efficient security determination of large-scale applications, achieve efficient and accurate application whitelist screening, and quickly adapt to changes in security threats.

[0103] After constructing the application security determination model through the above method, the application security value of a certain unknown application can be obtained through the model, and then it can be determined whether the unknown application is a whitelist application. The following is an embodiment of the application whitelist screening method provided by the present invention. Figure 3 A flow chart of an application whitelist screening method provided by an embodiment of the present invention. Figure 3 As shown, the method of the embodiment of the present invention may include the following steps:

[0104] S301, determining security features of a target application and an importance coefficient of each security feature, wherein the security features include key security features and / or optional security features.

[0105] In the embodiment of the present invention, firstly, the security features of the target application and the importance coefficient of each security feature are determined, and the target application is the application to be judged whether it is a whitelist application. Among them, the security features include key security features and / or optional security features.

[0106] Optionally, the key security features include at least one of the following: the distribution method of the application, the number of certificates with the same package name of the application, the certificate life cycle of the application, the number of package names of the application, and the user activity of the application.

[0107] Optionally, the optional security features include at least one of the following: a payment method of the application, a third-party library of the application, developer information of the application, and user evaluation of the application.

[0108] S302: Generate one or more security feature values ​​according to the security features of the target application.

[0109] Optionally, one or more security feature values ​​are then generated based on the security features of the target application. Since the security features of the application include key security features and / or optional security features, that is, the security features of the application include only key security features, only optional security features, and both key security features and optional security features. Therefore, one or more security feature values ​​for each application are generated based on the security features of each application, specifically including the following multiple situations.

[0110] generating one or more key security feature values ​​of the target application according to the key security features of the target application as the one or more security feature values ​​of the target application; or

[0111] generating one or more optional security feature values ​​of the target application according to the optional security features of the target application as the one or more security feature values ​​of the target application; or

[0112] According to the key security features and the optional security features of the target application, one or more key security feature values ​​and one or more optional security feature values ​​of the target application are generated as the one or more security feature values ​​of the target application.

[0113] In each case, the specific process of generating one or more security feature values ​​according to the security features of the target application can be referred to above and will not be repeated here.

[0114] Based on any of the above optional embodiments, S303, one or more security feature values ​​of the target application are input into an application security determination model to obtain an application security value of the target application, and whether the target application is a whitelist application is determined based on the application security value; wherein the application security determination model is obtained according to the above-mentioned application security determination model construction method.

[0115] Optionally, one or more security feature values ​​of the target application are input into the application security determination model to obtain the application security value of the target application, and then determine whether the target application is a whitelist application based on the application security value. It can be set that when the application security value is greater than or equal to a preset threshold, the target application is determined to be a whitelist application. The preset threshold can be based on actual conditions, such as 20, 30, etc.

[0116] In summary, the embodiment of the present invention provides an application whitelist screening method, which determines the security features of the target application through the key security features and / or optional security features of the target application, generates one or more security feature values ​​of the target application according to the security features, inputs the application security determination model, obtains the application security value of the target application, and then determines whether the target application is a whitelist application according to the application security value. The above method can be used to achieve efficient security determination of large-scale applications, achieve efficient and accurate application whitelist screening, and quickly adapt to changes in security threats.

[0117] The following are embodiments of the device of the present invention, which can be used to implement the method embodiments of the present invention. For details not disclosed in the device embodiments of the present invention, please refer to the method embodiments of the present invention.

[0118] See also Figure 4 , which is a structural diagram of an application security determination model building device provided in an embodiment of the present invention.

[0119] The application security determination model construction device 400 in the embodiment of the present invention includes: a security feature determination module 401 , a data generation module 402 and a model construction module 403 .

[0120] A security feature determination module, used to determine security features of several applications and an important coefficient of each security feature, wherein the security features include key security features and / or optional security features;

[0121] A data generation module, used to generate one or more security feature values ​​of each application according to the security feature of each application and the importance coefficient of each security feature, and generate an application security value of each application, thereby obtaining a plurality of application security values;

[0122] The model building module is used to train a preset recommendation algorithm model using one or more security feature values ​​of the several applications and the several application security values ​​to obtain an application security determination model.

[0123] It should be noted that the application security determination model construction device provided in the above embodiment only uses the division of the above functional modules as an example when executing the application security determination model construction method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the application security determination model construction device provided in the above embodiment and the application security determination model construction method embodiment belong to the same concept. Therefore, for details not disclosed in the embodiment of the device of the present invention, please refer to the embodiment of the application security determination model construction method of the present invention, which will not be repeated here.

[0124] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0125] See also Figure 5 , which is a structural diagram of an application whitelist screening device provided in an embodiment of the present invention.

[0126] The application whitelist screening device 500 in the embodiment of the present invention includes: a security feature determination module 501 , a security feature value generation module 502 and a whitelist application determination module 503 .

[0127] A security feature determination module, used to determine the security features of the target application and the importance coefficient of each security feature, wherein the security features include key security features and / or optional security features;

[0128] A security feature value generating module, used to generate one or more security feature values ​​according to the security features of the target application;

[0129] A whitelist application judgment module is used to input one or more security feature values ​​of the target application into an application security judgment model, obtain the application security value of the target application, and judge whether the target application is a whitelist application based on the application security value; wherein the application security judgment model is obtained according to the above-mentioned application security judgment model construction method.

[0130] It should be noted that the application whitelist screening device provided in the above embodiment only uses the division of the above functional modules as an example when executing the application whitelist screening method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the application whitelist screening device provided in the above embodiment belongs to the same concept as the application whitelist screening method embodiment. Therefore, for details not disclosed in the embodiment of the device of the present invention, please refer to the embodiment of the application whitelist screening method of the present invention, which will not be repeated here.

[0131] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0132] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method of any of the above embodiments are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0133] An embodiment of the present invention further provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the program.

[0134] Figure 6 A block diagram of a terminal provided by an embodiment of the present invention. Figure 6 An embodiment of the present invention provides a terminal 600, including: a processor (processor) 601, a communication interface (Communications Interface) 602, a memory (memory) 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604. The processor 601 can call the logic instructions in the memory 603 to execute the following method, including: determining the security features of several applications and the importance coefficient of each security feature, the security features including key security features and / or optional security features; generating one or more security feature values ​​of each application according to the security features of each application and the importance coefficient of each security feature, and generating an application security value of each application, thereby obtaining several application security values; using the one or more security feature values ​​of the several applications and the several application security values ​​to train a preset recommendation algorithm model to obtain an application security determination model; the key security features include at least one of the following: the distribution method of the application, the number of certificates with the same package name of the application, the certificate life cycle of the application, the number of package names of the application and the user activity of the application; the optional security features include at least one of the following: the payment method of the application, the third-party library of the application, the developer information of the application and the user evaluation of the application.

[0135] Or execute the following method, including: determining the security features of the target application and the importance coefficient of each security feature, the security features including key security features and / or optional security features; generating one or more security feature values ​​according to the security features of the target application; inputting the one or more security feature values ​​of the target application into an application security determination model, obtaining the application security value of the target application, and judging whether the target application is a whitelist application according to the application security value; wherein the application security determination model is obtained according to the above-mentioned application security determination model construction method; the key security features include at least one of the following: the distribution method of the application, the number of certificates with the same package name of the application, the certificate life cycle of the application, the number of package names of the application and the user activity of the application; the optional security features include at least one of the following: the payment method of the application, the third-party library of the application, the developer information of the application and the user evaluation of the application.

[0136] The terminal structure block diagram shown in the embodiment of the present invention does not constitute a limitation on the terminal 600. The terminal 600 may include more or fewer components than those shown in the figure, or combine certain components, or adopt a different component arrangement.

[0137] An embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: determining the security features of several applications and the importance coefficient of each security feature, the security features including key security features and / or optional security features; generating one or more security feature values ​​of each application according to the security features of each application and the importance coefficient of each security feature, and generating an application security value of each application, thereby obtaining several application security values; using the one or more security feature values ​​of the several applications and the several application security values ​​to train a preset recommendation algorithm model to obtain an application security determination model; the key security features include at least one of the following: the distribution method of the application, the number of certificates with the same package name of the application, the certificate life cycle of the application, the number of package names of the application, and the user activity of the application; the optional security features include at least one of the following: the payment method of the application, the third-party library of the application, the developer information of the application, and the user evaluation of the application. Or including: determining the security features of the target application and the importance coefficient of each security feature, the security features including key security features and / or optional security features; generating one or more security feature values ​​according to the security features of the target application; inputting the one or more security feature values ​​of the target application into an application security determination model to obtain the application security value of the target application, and judging whether the target application is a whitelist application according to the application security value; wherein the application security determination model is obtained according to the above-mentioned application security determination model construction method; the key security features include at least one of the following: the distribution method of the application, the number of certificates with the same package name of the application, the certificate life cycle of the application, the number of package names of the application and the user activity of the application; the optional security features include at least one of the following: the payment method of the application, the third-party library of the application, the developer information of the application and the user evaluation of the application.

[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for constructing an application security determination model, It is characterized in that include: Determining security features of a number of applications and the importance factor of each security feature, the security features including key security features and / or optional security features; Generating one or more security feature values ​​of each application according to the security feature of each application and the importance coefficient of each security feature, and generating an application security value of each application, thereby obtaining a plurality of application security values; Using one or more security feature values ​​of the plurality of applications and the plurality of application security values ​​to train a preset recommendation algorithm model to obtain an application security determination model; The key security features include at least one of the following: the distribution method of the application, the number of certificates with the same package name of the application, the certificate life cycle of the application, the number of package names of the application, and the user activity of the application; The optional security features include at least one of the following: a payment method of the application, a third-party library of the application, developer information of the application, and a user evaluation of the application.

2. The method according to claim 1, It is characterized in that The generating one or more security feature values ​​of each application according to the security feature of each application and the importance coefficient of each security feature includes: generating one or more key security feature values ​​of each application according to the key security feature of each application as the one or more security feature values ​​of each application; or generating one or more optional security feature values ​​of each application according to the optional security feature of each application as the one or more security feature values ​​of each application; or Generate one or more key security feature values ​​and one or more optional security feature values ​​of each application according to the key security feature and the optional security feature of each application as the one or more security feature values ​​of each application; The generating of the application security value of each application, thereby obtaining a plurality of application security values, includes: The one or more security feature values ​​of each application and the importance coefficient of each security feature are weightedly summed to obtain the application security value of each application, thereby obtaining a plurality of application security values.

3. The method according to claim 2, It is characterized in that The one or more key safety feature values ​​are generated by the following method, including: generating a first key security feature value according to a distribution method of the application; Generate a second key security feature value according to the number of certificates with the same package name of the application; generating a third key security feature value according to the certificate life cycle of the application; generating a fourth key security feature value according to the package name number of the application; generating a fifth key security feature value according to the user activity of the application; The one or more optional security feature values ​​are generated by the following method, including: generating a first optional security feature value according to a payment method of the application; Generate a second optional security feature value according to a third-party library of the application; generating a third optional security feature value according to the developer information of the application; A fourth optional security feature value is generated according to a user evaluation of the application.

4. The method according to claim 2 or 3, It is characterized in that Before generating one or more key security feature values ​​and one or more optional security feature values ​​of each application according to the key security features and optional security features of each application as the one or more security feature values ​​of each application, the method further includes: verifying the one or more optional safety features according to the one or more key safety features of the plurality of applications and the importance coefficient of each key safety feature; Filter out optional safety features that fail the inspection.

5. The method according to claim 4, It is characterized in that The verifying the one or more optional safety features according to the one or more key safety features of the plurality of applications and the importance coefficient of each key safety feature comprises: Performing a weighted summation of one or more key security feature values ​​of each application and an importance coefficient of each key security feature to generate a first application security value of each application, thereby obtaining a plurality of first application security values; For any optional security feature, taking the sum of the product of the value of any optional security feature and the importance coefficient of each application and the first application security value of each application as the second application security value of each application, thereby obtaining a plurality of second application security values; The first application security values ​​and the second application security values ​​are paired and checked. If the pairing check succeeds and an average value of the second application security values ​​is greater than an average value of the first application security values, it is determined that any optional security feature has passed the test.

6. The method according to any one of claims 4 to 5, It is characterized in that The step of training a preset recommendation algorithm model using one or more security feature values ​​of the plurality of applications and the plurality of application security values ​​to obtain an application security determination model includes: Determine the security attribute of each application according to the application security value of each application, thereby obtaining the security attributes of the plurality of applications; the security attributes include whitelist applications and non-whitelist applications; Dividing the plurality of applications into a training set and a test set; Using one or more security feature values ​​and application security values ​​of each application in the training set to train a preset recommendation algorithm model to obtain an application security determination training model; Inputting one or more security feature values ​​of each application in the test set into the application security determination training model, obtaining a determined application security value of each application in the test set, and determining a determined security attribute of each application in the test set according to the determined application security value; Comparing the determined security attribute of each application in the test set with the security attribute of each application in the test set to obtain the accuracy of the application security determination training model; The parameters of the application security determination training model are adjusted until the accuracy of the application security determination training model meets the requirements, thereby obtaining the application security determination model.

7. A method for screening application whitelists, It is characterized in that include: Determining security features of a target application and importance coefficients of each security feature, wherein the security features include key security features and / or optional security features; generating one or more security feature values ​​according to the security features of the target application; Inputting one or more security feature values ​​of the target application into an application security determination model, obtaining an application security value of the target application, and determining whether the target application is a whitelist application according to the application security value; wherein the application security determination model is obtained according to the method described in any one of claims 1 to 6; The key security features include at least one of the following: the distribution method of the application, the number of certificates with the same package name of the application, the certificate life cycle of the application, the number of package names of the application, and the user activity of the application; The optional security feature includes at least one of the following: a payment method of the application, a third-party library of the application, developer information of the application, and a user evaluation of the application.

8. The method according to claim 7, It is characterized in that The generating one or more security feature values ​​according to the security feature of the target application includes: generating one or more key security feature values ​​of the target application according to the key security features of the target application as the one or more security feature values ​​of the target application; or generating one or more optional security feature values ​​of the target application according to the optional security features of the target application as the one or more security feature values ​​of the target application; or According to the key security features and the optional security features of the target application, one or more key security feature values ​​and one or more optional security feature values ​​of the target application are generated as the one or more security feature values ​​of the target application.

9. A computer-readable storage medium having a computer program stored thereon, wherein the security feature is that when the computer program is executed by a processor, the method according to any one of claims 1 to 6 or the method according to any one of claims 7 to 8 is implemented.

10. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 6 or the method according to any one of claims 7 to 8 is implemented.