Application security verification method and device, computer equipment and storage medium

By obtaining and quantifying the sensitive permissions and interface information of applications, classifying and calculating security verification results, it solves the problem of low verification accuracy in traditional methods and achieves more efficient and accurate application security verification.

CN118709187AInactive Publication Date: 2024-09-27BANK OF CHINA
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410659540.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional application security verification methods monitor running logs during operation, which has the problem of low verification accuracy and is difficult to effectively detect application security vulnerabilities.

Method used

By obtaining the sensitive permission set and sensitive interface set of the target application, classify them, obtain the application category, quantify frequent permissions and interface information, calculate sensitive values, determine the security verification results, and improve the pertinence and accuracy of the verification.

Benefits of technology

It improves the accuracy of application security verification, makes the verification more targeted, and can promptly discover application security vulnerabilities and take corresponding protective measures to enhance application security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709187A
    Figure CN118709187A
Patent Text Reader

Abstract

The invention relates to an application security verification method and device, computer equipment, a storage medium and a computer program product. The method comprises the steps of obtaining a target sensitive permission set and a target sensitive interface set corresponding to a target application; based on the target sensitive permission set and the target sensitive interface set, classifying the target application to obtain an application category corresponding to the target application; acquiring a frequent sensitive permission set and a frequent sensitive interface set corresponding to the application category; obtaining a sensitive permission value corresponding to the target application based on the frequent sensitive permission set and the target sensitive permission set, and obtaining a sensitive interface value corresponding to the target application based on the frequent sensitive interface set and the target sensitive interface set; and determining a security verification result corresponding to the target application based on the sensitive permission value and the sensitive interface value. The method belongs to the technical field of artificial intelligence, and the verification accuracy can be improved by adopting the method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an application security verification method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] With the development of mobile Internet, a large number of application software have been developed and applied to user terminals. However, user terminals store a large amount of user information. In order to ensure the security of user information, when the application is installed or during the operation of the application, it is necessary to perform security checks on the application to determine whether the application has security vulnerabilities, and take corresponding protective measures in time when security vulnerabilities occur.

[0003] Traditional technology determines the security of an application by monitoring the operation logs generated during the operation of the application and analyzing whether there are abnormal operation records in the operation logs. However, this technology has the problem of low verification accuracy. Summary of the invention

[0004] Based on this, it is necessary to provide an application security verification method, device, computer equipment, computer-readable storage medium and computer program product that can improve verification accuracy in response to the above technical problems.

[0005] The present application provides an application security verification method. The method comprises:

[0006] Obtain the target sensitive permission set and target sensitive interface set corresponding to the target application;

[0007] Based on the target sensitive permission set and the target sensitive interface set, the target application is classified to obtain the application category corresponding to the target application;

[0008] Get the frequently sensitive permission set and frequently sensitive interface set corresponding to the application category;

[0009] Based on the frequent sensitive permission set and the target sensitive permission set, the sensitive permission value corresponding to the target application is obtained; based on the frequent sensitive interface set and the target sensitive interface set, the sensitive interface value corresponding to the target application is obtained;

[0010] Based on the sensitive permission value and sensitive interface value, determine the security verification result corresponding to the target application.

[0011] The present application also provides an application security verification device. The device comprises:

[0012] An application information acquisition module is used to obtain a target sensitive permission set and a target sensitive interface set corresponding to a target application;

[0013] An application category determination module, used to classify the target application based on the target sensitive permission set and the target sensitive interface set, and obtain the application category corresponding to the target application;

[0014] A frequent information set acquisition module is used to obtain a frequent sensitive permission set and a frequent sensitive interface set corresponding to an application category;

[0015] A sensitive value determination module, used to obtain the sensitive permission value corresponding to the target application based on the frequent sensitive permission set and the target sensitive permission set, and to obtain the sensitive interface value corresponding to the target application based on the frequent sensitive interface set and the target sensitive interface set;

[0016] The verification result determination module is used to determine the security verification result corresponding to the target application based on the sensitive permission value and the sensitive interface value.

[0017] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned application security verification method when executing the computer program.

[0018] A computer-readable storage medium stores a computer program, which implements the steps of the above-mentioned application security verification method when executed by a processor.

[0019] A computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned application security verification method are implemented.

[0020] The above-mentioned application security verification method, device, computer equipment, storage medium and computer program product obtain the target sensitive permission set and target sensitive interface set corresponding to the target application. Based on the target sensitive permission set and the target sensitive interface set, the target application is classified to obtain the application category corresponding to the target application. Then the frequent sensitive permission set and the frequent sensitive interface set corresponding to the application category are obtained. Based on the frequent sensitive permission set and the target sensitive permission set, the sensitive permission value corresponding to the target application is obtained, and based on the frequent sensitive interface set and the target sensitive interface set, the sensitive interface value corresponding to the target application is obtained. Finally, based on the sensitive permission value and the sensitive interface value, the security verification result corresponding to the target application is determined. In this way, the application category to which the target application belongs is determined based on the sensitive permission information and sensitive interface information corresponding to the target application, and then based on the frequent sensitive permission set and the frequent sensitive interface set corresponding to the application category, the sensitive permission information and sensitive interface information of the target application are quantified to obtain the sensitive permission value and sensitive interface value corresponding to the target application, and finally the security verification result corresponding to the target application is determined based on the sensitive permission value and the sensitive interface value corresponding to the target application, which can make the application security verification more targeted, thereby effectively improving the accuracy of the application security verification. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 An application environment diagram of an application security verification method in an embodiment;

[0022] Figure 2 A schematic diagram of a flow chart of a security verification method applied in an embodiment;

[0023] Figure 3 A schematic diagram of a process for determining a frequent information set corresponding to an application category in one embodiment;

[0024] Figure 4 A schematic diagram of a flow chart of applying a security verification method in another embodiment;

[0025] Figure 5 A structural block diagram of a safety verification device applied in one embodiment;

[0026] Figure 6 is an internal structure diagram of a computer device in one embodiment;

[0027] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0029] The application security verification method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart TVs, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers. The terminal 102 and the server 104 can be directly or indirectly connected via wired or wireless communication, and this application is not limited here.

[0030] Both the terminal and the server can be used independently to execute the application security verification method provided in the embodiments of the present application.

[0031] For example, the terminal obtains the target sensitive permission set and target sensitive interface set corresponding to the target application. Based on the target sensitive permission set and the target sensitive interface set, the terminal classifies the target application and obtains the application category corresponding to the target application. The terminal obtains the frequent sensitive permission set and the frequent sensitive interface set corresponding to the application category. Based on the frequent sensitive permission set and the target sensitive permission set, the terminal obtains the sensitive permission value corresponding to the target application, and based on the frequent sensitive interface set and the target sensitive interface set, obtains the sensitive interface value corresponding to the target application. Based on the sensitive permission value and the sensitive interface value, the terminal determines the security verification result corresponding to the target application.

[0032] The terminal and the server can also be used together to execute the application security verification method provided in the embodiments of the present application.

[0033] For example, the terminal sends an application security verification request to the server, and the application security verification request carries the target sensitive permission set and target sensitive interface set corresponding to the target application. The server classifies the target application based on the target sensitive permission set and the target sensitive interface set, and obtains the application category corresponding to the target application. The server obtains the frequent sensitive permission set and the frequent sensitive interface set corresponding to the application category. The server obtains the sensitive permission value corresponding to the target application based on the frequent sensitive permission set and the target sensitive permission set, and obtains the sensitive interface value corresponding to the target application based on the frequent sensitive interface set and the target sensitive interface set. The server determines the security verification result corresponding to the target application based on the sensitive permission value and the sensitive interface value, and sends the security verification result to the terminal. The terminal can display the security verification result, and can also take corresponding application security protection measures based on the security verification result.

[0034] In one embodiment, Figure 2 As shown, an application security verification method is provided, and the method is applied to a computer device as an example for explanation. The computer device can be a terminal or a server, and the method can be executed by the terminal or the server itself alone, or through the interaction between the terminal and the server. The application security verification method includes the following steps:

[0035] Step S202, obtaining a target sensitive permission set and a target sensitive interface set corresponding to the target application.

[0036] Among them, the target application refers to the application that needs to be verified for application security. Sensitive permissions refer to application permissions that involve accessing or collecting user personal information. Sensitive interfaces refer to application programming interfaces that involve accessing or collecting user personal information. The target sensitive permission set refers to the set of authorized sensitive permissions that can be used by the target application. The target sensitive interface refers to the set of sensitive interfaces called by the target application.

[0037] Exemplarily, during the installation process of the target application or the operation process of the target application, the computer device collects the sensitive permission information and sensitive interface information corresponding to the target application to obtain the target sensitive permission set and target sensitive interface set corresponding to the target application. For example, with the authorization of the target application, the executable program code corresponding to the target application can be decompiled, the program code can be converted into a more readable format, and the sensitive permission information and sensitive interface information corresponding to the target application can be collected from the decompiled code information.

[0038] Step S204: classify the target application based on the target sensitive permission set and the target sensitive interface set to obtain an application category corresponding to the target application.

[0039] The application category corresponding to the target application refers to the application category to which the target application belongs. For example, the application category may include enterprise office, learning and education, consulting and reading, and social categories.

[0040] Exemplarily, the computer device analyzes and processes each sensitive permission included in a target sensitive permission set corresponding to the target application and each sensitive interface included in a target sensitive interface set corresponding to the target application to obtain an application category corresponding to the target application.

[0041] In one embodiment, the computer device can compare each sensitive permission in the target sensitive permission set corresponding to the target application with each sensitive permission in the reference sensitive permission set corresponding to each application category, and obtain the sensitive permission similarity between the target application and each application category. Compare each sensitive interface in the target sensitive interface set corresponding to the target application with each sensitive interface in the reference sensitive interface set corresponding to each application category, and obtain the sensitive interface similarity between the target application and each application category. Among them, the reference sensitive permission set corresponding to the application category refers to a set of sensitive permissions frequently used by the application program corresponding to the application category, and the reference sensitive interface set corresponding to the application category refers to a set of sensitive interfaces frequently used by the application program corresponding to the application category. The sensitive permission similarity and sensitive interface similarity between the target application and the same application category are integrated to obtain the application similarity between the target application and each application category, and the application category corresponding to the maximum application similarity is determined as the application category corresponding to the target application.

[0042] Step S206, obtaining a frequently-sensitive permission set and a frequently-sensitive interface set corresponding to the application category.

[0043] Among them, the frequently used sensitive permission set refers to the sensitive permission subset that appears frequently in the sensitive permission set corresponding to each application sample belonging to the same application category, that is, the sensitive permission subset that appears more frequently than the preset frequency. The frequently used sensitive interface set refers to the sensitive interface subset that appears frequently in the sensitive interface set corresponding to each application sample belonging to the same application category, that is, the sensitive interface subset that appears more frequently than the preset frequency.

[0044] Exemplarily, the computer device obtains each application sample corresponding to the application category to which the target application belongs, collects the sensitive permission set and sensitive interface set corresponding to each application sample, counts the sensitive permissions respectively included in the sensitive permission set corresponding to each application sample, obtains the frequent sensitive permission set corresponding to the application category to which the target application belongs, counts the sensitive interfaces included in the sensitive interface set corresponding to each application sample, and obtains the frequent sensitive interface set corresponding to the application category to which the target application belongs.

[0045] Step S208, based on the frequent sensitive permission set and the target sensitive permission set, obtain the sensitive permission value corresponding to the target application, based on the frequent sensitive interface set and the target sensitive interface set, obtain the sensitive interface value corresponding to the target application.

[0046] The sensitive permission value refers to the value used to characterize the authorization of the sensitive permission of the target application. The sensitive interface value refers to the value used to characterize the usage of the sensitive interface of the target application.

[0047] Exemplarily, the computer device determines the permission weights corresponding to each sensitive permission in the target sensitive permission set based on the frequent sensitive permission set corresponding to the application category to which the target application belongs, and obtains the sensitive permission value corresponding to the target application based on the permission weights corresponding to each sensitive permission. Based on the frequent sensitive interface set corresponding to the application category to which the target application belongs, the computer device determines the interface weights corresponding to each sensitive interface in the target sensitive interface set, and obtains the sensitive interface value corresponding to the target application based on the interface weights corresponding to each sensitive interface.

[0048] In one embodiment, each sensitive permission is assigned an initial permission score, which can characterize the degree to which the sensitive permission involves user personal information, and is positively correlated with the degree to which the sensitive permission involves user personal information. Each sensitive interface is assigned an initial interface score, which can characterize the degree to which the sensitive interface involves user personal information, and is positively correlated with the degree to which the sensitive interface involves user personal information. Based on the frequent sensitive permission set, the permission weights corresponding to each sensitive permission in the target sensitive permission set are determined, and the initial permission scores corresponding to the sensitive permissions are adjusted based on the permission weights of the sensitive permissions to obtain the target permission scores corresponding to each sensitive permission. The target permission scores corresponding to each sensitive permission are merged to obtain the sensitive permission value corresponding to the target application. Based on the frequent sensitive interface set, the interface weights corresponding to each sensitive interface in the target sensitive interface set are determined, and the initial interface scores corresponding to the sensitive interfaces are adjusted based on the interface weights of the sensitive interfaces to obtain the target interface scores corresponding to each sensitive interface. The target interface scores corresponding to each sensitive interface are merged to obtain the sensitive interface value corresponding to the target application.

[0049] Step S210, determining a security verification result corresponding to the target application based on the sensitive permission value and the sensitive interface value.

[0050] The security verification result refers to the verification result obtained by performing application security verification on the target application.

[0051] Exemplarily, the computer device obtains the sensitive permission threshold and sensitive interface threshold corresponding to the application category to which the target application belongs, compares the sensitive permission value with the sensitive permission threshold, and compares the sensitive interface value with the sensitive interface value, and obtains the security verification result corresponding to the target application based on the comparison result corresponding to the sensitive permission value and the comparison result corresponding to the sensitive interface value.

[0052] In the above-mentioned application security verification method, the target sensitive permission set and target sensitive interface set corresponding to the target application are obtained. Based on the target sensitive permission set and the target sensitive interface set, the target application is classified to obtain the application category corresponding to the target application. Then the frequent sensitive permission set and the frequent sensitive interface set corresponding to the application category are obtained. Based on the frequent sensitive permission set and the target sensitive permission set, the sensitive permission value corresponding to the target application is obtained, and based on the frequent sensitive interface set and the target sensitive interface set, the sensitive interface value corresponding to the target application is obtained. Finally, based on the sensitive permission value and the sensitive interface value, the security verification result corresponding to the target application is determined. It can be seen that this method belongs to the field of artificial intelligence technology, and the application category to which the target application belongs is determined based on the sensitive permission information and sensitive interface information corresponding to the target application, and then based on the frequent sensitive permission set and the frequent sensitive interface set corresponding to the application category, the sensitive permission information and sensitive interface information of the target application are quantified to obtain the sensitive permission value and sensitive interface value corresponding to the target application, and finally the security verification result corresponding to the target application is determined based on the sensitive permission value and the sensitive interface value corresponding to the target application, which can make the application security verification more targeted, thereby effectively improving the accuracy of the application security verification.

[0053] In one embodiment, based on the target sensitive permission set and the target sensitive interface set, the target application is classified to obtain the application category corresponding to the target application, including:

[0054] The permission feature vector corresponding to the target application is extracted based on the target sensitive permission set, and the interface feature vector corresponding to the target application is extracted based on the target sensitive interface set; the permission feature vector and the interface feature vector are input into the application classification model to obtain the application category corresponding to the target application; the application classification model is trained based on the permission feature vectors and interface feature vectors corresponding to multiple application samples, and the application categories corresponding to each application sample.

[0055] The permission feature vector refers to the feature vector obtained by extracting the features of the target sensitive permission set, which is used to characterize the sensitive permission authorization of the target application. The interface feature vector refers to the feature vector obtained by extracting the features of the target sensitive interface set, which is used to characterize the sensitive interface usage of the target application.

[0056] The application classification model refers to a classification model used to predict the application category of an application. The input data of the model is the permission feature vector and interface feature vector corresponding to the application. The output data of the model is the application category corresponding to the application. The training samples of the model are the permission feature vector and interface feature vector corresponding to the application sample. The sample label is the application category corresponding to the application sample. The application sample refers to an application with a known application category.

[0057] Exemplarily, the computer device performs feature extraction on the target sensitive permission set to obtain a permission feature vector corresponding to the target application, and performs feature extraction on the target sensitive interface set to obtain an interface feature vector corresponding to the target application. The permission feature vector and the interface feature vector corresponding to the target application are input into the application classification model. The application classification model outputs the application category corresponding to the target application.

[0058] In one embodiment, a computer device obtains application samples of multiple known application categories, obtains sensitive interface sets and sensitive permission sets corresponding to each application sample, performs feature extraction on the sensitive interface set and sensitive permission set, and obtains permission feature vectors and interface feature vectors corresponding to each application sample. The permission feature vectors and interface feature vectors corresponding to the application samples are used as training samples, and the application categories corresponding to the application samples are used as sample labels. Based on each training sample and the sample labels corresponding to each training sample, a training set corresponding to an application classification model is obtained. The application classification model is supervisedly trained using the training set corresponding to the application classification model to obtain a trained application classification model.

[0059] In the above embodiment, by obtaining a training application classification model and inputting the permission feature vector and interface feature vector corresponding to the target application into the application classification model, the application category corresponding to the target application can be obtained quickly and accurately, which can effectively improve the efficiency and accuracy of application security verification.

[0060] In one embodiment, extracting a permission feature vector corresponding to a target application based on a target sensitive permission set, and extracting an interface feature vector corresponding to a target application based on a target sensitive interface set include:

[0061] Obtain a reference sensitive permission set and a reference sensitive interface set; compare the target sensitive permission set with the reference sensitive permission set to obtain a permission feature vector corresponding to the target application; compare the target sensitive interface set with the reference sensitive interface set to obtain an interface feature vector corresponding to the target application.

[0062] The reference sensitive permission set refers to a set of sensitive permissions that an application can apply for, and the reference sensitive interface set refers to a set of sensitive interfaces that an application can use.

[0063] Exemplarily, a computer device obtains a reference sensitive permission set and a reference sensitive interface set. The target sensitive permission set is compared with the reference sensitive permission set, and based on the difference between the reference sensitive permission set and the target sensitive permission set, a permission feature vector corresponding to the target application is generated. The target sensitive interface set is compared with the reference sensitive interface set, and based on the difference between the reference sensitive interface set and the target sensitive interface set, an interface feature vector corresponding to the target application is generated. For example, when the reference sensitive permission set is {permission A, permission B, permission C, permission D, permission E}, and the target sensitive permission set is {permission A, permission B, permission E}, since permissions A, B, and E appear in the target sensitive permission set, the permission feature vector corresponding to the target application is (1, 1, 0, 0, 1), and when the reference sensitive interface set is {interface A, interface B, interface C, interface D, interface E}, and the target sensitive interface set is {interface A, interface B, interface D}, since interfaces A, interface B, and interface D appear in the target sensitive interface set, the interface feature vector corresponding to the target application is (1, 1, 0, 1, 0).

[0064] In the above embodiment, the permission feature vector corresponding to the target application is obtained based on the difference between the target sensitive permission set and the reference sensitive permission set, and the interface feature vector corresponding to the target application is obtained based on the difference between the target sensitive interface set and the reference sensitive interface set. The permission feature vector and interface feature vector corresponding to the target application can be determined quickly and accurately, thereby improving the efficiency and accuracy of feature extraction.

[0065] In one embodiment, Figure 3 As shown, obtaining the frequently sensitive permission set and frequently sensitive interface set corresponding to the application category includes:

[0066] Step S302, obtaining an initial sensitive permission set and an initial sensitive interface set corresponding to the application category, and obtaining a combined quantity.

[0067] Step S304, taking the initial sensitive permission set as the current sensitive permission set, taking the initial sensitive interface set as the current sensitive interface set, taking each sensitive permission in the current sensitive permission set as the current sensitive permission subset, and taking each sensitive interface in the current sensitive interface set as the current sensitive interface subset.

[0068] Among them, the initial sensitive permission set refers to a combination of sensitive permission sets corresponding to each application sample corresponding to the same application category. For example, when a certain application category corresponds to two application samples, namely application sample A and application sample B, the sensitive permission set corresponding to application sample A is {permission a, permission b, permission c}, and the sensitive permission set corresponding to application sample B is {permission a, permission b}, and the initial sensitive permission set corresponding to the application category is {{permission a, permission b, permission c}, {permission a, permission b}}. The initial sensitive interface set refers to a combination of sensitive interface sets corresponding to each application sample corresponding to the same application category. For example, when a certain application category corresponds to two application samples, namely application sample A and application sample B, the sensitive interface set corresponding to application sample A is {interface a, interface b, interface c}, and the sensitive permission set corresponding to application sample B is {interface a, interface b}, and the initial sensitive permission set corresponding to the application category is {{interface a, interface b, interface c}, {interface a, interface b}}.

[0069] The number of merges is used to indicate the preset number of merges of each current sensitive permission subset contained in the updated sensitive permission set, and each current sensitive interface subset contained in the updated sensitive interface set, indicating the number of current sensitive permission subsets or current sensitive interface subsets merged each time, that is, the number of current sensitive permission subsets contained in the merged sensitive permission subset combination, and the number of current sensitive interface subsets contained in the merged sensitive interface subset combination. For example, when the number of merges is 2, the updated sensitive permission set contains the current sensitive permission subset A, the current sensitive permission subset B, and the current sensitive permission subset C. Based on the number of merges, each sensitive permission subset is merged, that is, each current sensitive permission subset is merged in pairs, and the obtained sensitive permission subset combinations are {A, B}, {A, C}, and {B, C} respectively.

[0070] Exemplarily, the computer device obtains the sensitive permission set and sensitive interface set corresponding to each application sample corresponding to the application category to which the target application belongs, obtains the initial sensitive permission set corresponding to the application category to which the target application belongs based on the sensitive permission set corresponding to each application sample, and obtains the initial sensitive interface set corresponding to the application category to which the target application belongs based on the sensitive interface set corresponding to each application sample. Obtain the merged quantity. The initial sensitive permission set is used as the current sensitive permission set, the initial sensitive interface set is used as the current sensitive interface set, the sensitive permissions in the current sensitive permission set are used as the current sensitive permission subset, and the sensitive interfaces in the current sensitive interface set are used as the current sensitive interface subset.

[0071] Step S306, counting the occurrence frequencies of each current sensitive permission subset in the current sensitive permission set in the initial sensitive permission set, counting the occurrence frequencies of each current sensitive interface subset in the current sensitive interface set in the initial sensitive interface set, filtering the current sensitive permission subsets whose occurrence frequencies are less than the first preset frequency from the current sensitive permission set to obtain an updated sensitive permission set, filtering the current sensitive interface subsets whose occurrence frequencies are less than the second preset frequency from the current sensitive interface set to obtain an updated sensitive interface set.

[0072] The frequency of occurrence of the current sensitive permission subset refers to the frequency of occurrence of the current sensitive permission subset in each sensitive permission set included in the initial sensitive permission set. The frequency of occurrence of the current sensitive interface subset refers to the frequency of occurrence of the current sensitive interface subset in each sensitive interface set included in the initial sensitive interface set.

[0073] The first preset frequency refers to a preset value used to distinguish whether the current sensitive permission subset appears frequently in the initial sensitive permission set. The second preset frequency refers to a preset value used to distinguish whether the current sensitive interface subset appears frequently in the initial sensitive interface set. The updated sensitive permission set refers to the sensitive permission set obtained after filtering the current sensitive permission subset in the current sensitive permission set, and the current sensitive permission subsets in the updated sensitive permission set are all frequently appearing permission subsets. The updated sensitive interface set refers to the sensitive interface set obtained after filtering the current sensitive interface subset in the current sensitive interface set, and the current sensitive interface subsets in the updated sensitive interface set are all frequently appearing interface subsets.

[0074] Exemplarily, the computer device compares a single current sensitive permission subset in the current sensitive permission set with each sensitive permission set included in the initial sensitive permission set, determines the number of sensitive permission sets that include the current sensitive permission subset, and obtains the frequency of occurrence corresponding to the current sensitive permission subset based on the number of sensitive permission sets that include the current sensitive permission subset and the total number of sensitive permission sets included in the initial sensitive permission set. Based on the same method, the frequency of occurrence corresponding to each other current sensitive permission subset is obtained, thereby obtaining the frequency of occurrence corresponding to each current sensitive permission subset in the current sensitive permission set.

[0075] The computer device compares a single current sensitive interface subset in the current sensitive interface set with each sensitive interface set included in the initial sensitive interface set, determines the number of sensitive interface sets including the current sensitive interface subset, and obtains the occurrence frequency corresponding to the current sensitive interface subset based on the number of sensitive interface sets including the current sensitive interface subset and the total number of sensitive interface sets included in the initial sensitive interface set. Based on the same method, the occurrence frequencies corresponding to each other current sensitive interface subset are obtained, thereby obtaining the occurrence frequencies corresponding to each current sensitive interface subset in the current sensitive interface set.

[0076] The computer device filters the current sensitive permission subsets whose appearance frequency in the current sensitive permission set is less than the first preset frequency, and obtains the updated sensitive permission set based on the remaining current sensitive permission subsets. The current sensitive interface subsets whose appearance frequency in the current sensitive interface set is less than the second preset frequency are filtered, and the updated sensitive interface set is obtained based on the remaining current sensitive interface subsets.

[0077] Step S308, based on the merged number, each current sensitive permission subset included in the updated sensitive permission set is merged to obtain multiple sensitive permission subset combinations, and an intermediate sensitive permission set is obtained based on each sensitive permission subset combination; based on the merged number, each current sensitive interface subset included in the updated sensitive interface set is merged to obtain multiple sensitive interface subset combinations, and an intermediate sensitive interface set is obtained based on each sensitive interface subset combination.

[0078] The sensitive permission subset combination refers to a set of sensitive permissions obtained by merging each current sensitive permission subset based on the merged quantity. The intermediate sensitive permission set refers to a set containing each sensitive permission subset combination. For example, when the three current sensitive permission subsets included in the updated sensitive permission are A={sensitive permission a, sensitive permission b, sensitive permission e}, B={sensitive permission b, sensitive permission c}, and C={sensitive permission c, sensitive permission f}, and the merge quantity is 2, the sensitive permission subset combinations obtained by merging the current sensitive permission subsets based on the merge quantity are {A,B}={sensitive permission a, sensitive permission b, sensitive permission c, sensitive permission e}, {A,C}={sensitive permission a, sensitive permission b, sensitive permission c, sensitive permission e, sensitive permission f}, and {B,C}={sensitive permission b, sensitive permission c, sensitive permission f}, and the intermediate sensitive interface set obtained based on the combination of each sensitive permission subset is {{sensitive permission a, sensitive permission b, sensitive permission c, sensitive permission e}, {sensitive permission a, sensitive permission b, sensitive permission c, sensitive permission e, sensitive permission f}, {sensitive permission b, sensitive permission c, sensitive permission f}}

[0079] The sensitive interface subset combination refers to a set of sensitive interfaces obtained by merging each current sensitive interface subset based on the merging quantity. The intermediate sensitive interface set refers to a set including each sensitive interface subset combination.

[0080] Exemplarily, the computer device randomly obtains a merged number of current sensitive permission subsets from the updated sensitive permission set, and merges the obtained current sensitive permission subsets to obtain a corresponding sensitive permission subset combination, and repeats this step until all different sensitive permission subset combinations corresponding to the updated sensitive permission set are obtained. An intermediate sensitive permission set is obtained based on each sensitive permission subset combination. A randomly obtained merged number of current sensitive interface subsets is obtained from the updated sensitive interface set, and merges the obtained current sensitive interface subsets to obtain a corresponding sensitive interface subset combination, and repeats this step until all different sensitive interface subset combinations corresponding to the updated sensitive interface set are obtained. An intermediate sensitive interface set is obtained based on each sensitive interface subset combination.

[0081] Step S310, combining the sensitive permission subsets as the current sensitive permission subset, combining the sensitive interface subsets as the current sensitive interface subset, using the intermediate sensitive permission set as the current sensitive permission set, and using the intermediate sensitive interface set as the current sensitive interface set.

[0082] Step S312, returning to the step of counting the occurrence frequencies of each current sensitive permission subset in the initial sensitive permission set, until the end condition is met, and obtaining the frequent sensitive permission set and the frequent sensitive interface set corresponding to the application category.

[0083] Exemplarily, the computer device uses the combination of sensitive permission subsets as the current sensitive permission subset, uses the combination of sensitive interface subsets as the current sensitive interface subset, uses the intermediate sensitive permission set as the current sensitive permission set, and uses the intermediate sensitive interface set as the current sensitive interface set. Return the step of counting the frequency of occurrence of each current sensitive permission subset in the initial sensitive permission set until the current sensitive permission set contains only one current sensitive permission subset and the current sensitive interface set contains only one current sensitive interface subset, and uses the current sensitive permission set as the frequent sensitive permission set corresponding to the application category to which the target application belongs, and uses the current sensitive interface set as the frequent sensitive interface set corresponding to the application category to which the target application belongs.

[0084] In the above embodiment, the current sensitive permission set and the current sensitive interface set corresponding to the application category to which the target application belongs are obtained. The current sensitive permission subsets in the current sensitive permission set whose frequency of appearance is less than the first preset frequency are filtered to obtain an updated sensitive permission set, and then the current sensitive permission subsets in the updated sensitive permission set are merged to obtain an intermediate sensitive permission subset. The intermediate sensitive permission subset is used as the current sensitive permission set, and the step of filtering the current sensitive permission subsets in the current sensitive permission set whose frequency of appearance is less than the first preset frequency is returned to execute until the frequent sensitive permission set corresponding to the application type to which the target application belongs is obtained. In this way, by filtering and combining the sensitive permission subsets in the sensitive permission set layer by layer, the frequent sensitive permission set corresponding to the target application can be obtained quickly and accurately, and by filtering and combining the sensitive interface subsets in the sensitive interface set layer by layer, the frequent sensitive interface set corresponding to the target application can be obtained quickly and accurately.

[0085] In one embodiment, based on the frequent sensitive permission set and the target sensitive permission set, the sensitive permission value corresponding to the target application is obtained, and based on the frequent sensitive interface set and the target sensitive interface set, the sensitive interface value corresponding to the target application is obtained, including:

[0086] The target sensitive permission set is divided into a normal sensitive permission set and an abnormal sensitive permission set based on the frequent sensitive permission set, and the target sensitive permission set is divided into a normal sensitive interface set and an abnormal sensitive interface set based on the frequent sensitive interface set; based on the permission weights corresponding to the normal sensitive permissions and the abnormal sensitive permissions, the normal sensitive permission set and the abnormal sensitive permission set are merged to obtain the sensitive permission value corresponding to the target application; the permission weight corresponding to the normal sensitive permission is less than the permission weight corresponding to the abnormal sensitive permission; based on the interface weights corresponding to the normal sensitive interface and the abnormal sensitive interface, the normal sensitive interface set and the abnormal sensitive interface set are merged to obtain the sensitive interface value corresponding to the target application; the interface weight corresponding to the normal sensitive interface is less than the interface weight corresponding to the abnormal sensitive interface.

[0087] Among them, normal sensitive permissions refer to sensitive permissions belonging to the frequent sensitive permission set. Normal sensitive permission set refers to the set of sensitive permissions belonging to the frequent sensitive permission set. Abnormal sensitive permissions refer to sensitive permissions that do not belong to the frequent sensitive permission set. Abnormal sensitive permission set refers to the set of sensitive permissions that do not belong to the frequent sensitive permission set in the target sensitive permission set. Normal sensitive interface refers to a sensitive interface belonging to the frequent sensitive interface set. Normal sensitive interface set refers to the set of sensitive interfaces belonging to the frequent sensitive interface set. Abnormal sensitive interface refers to a sensitive interface that does not belong to the frequent sensitive interface set. Abnormal sensitive interface set refers to the set of sensitive interfaces that do not belong to the frequent sensitive interface set in the target sensitive interface set.

[0088] The permission weight corresponding to normal sensitive permissions refers to the weight value preset for normal sensitive permissions. The permission weight corresponding to abnormal sensitive permissions refers to the weight value preset for abnormal sensitive permissions. The interface weight corresponding to normal sensitive interfaces refers to the weight value preset for normal sensitive interfaces. The interface weight corresponding to abnormal sensitive interfaces refers to the weight value preset for abnormal sensitive interfaces. The permission weight is positively correlated with the degree of impact of sensitive permissions on user information security, and the interface weight is positively correlated with the degree of impact of sensitive interfaces on user information security.

[0089] Exemplarily, the computer device obtains a normal sensitive permission set based on the sensitive permissions in the target sensitive permission set that belong to the frequent sensitive permission set, and obtains an abnormal sensitive permission set based on the sensitive permissions in the target sensitive permission set that do not belong to the frequent sensitive permission set. A normal sensitive interface set is obtained based on the sensitive interfaces in the target sensitive interface set that belong to the frequent sensitive interface set, and an abnormal sensitive interface set is obtained based on the sensitive interfaces in the target sensitive interface set that do not belong to the frequent sensitive interface set.

[0090] The computer device obtains the permission weights corresponding to normal sensitive permissions and abnormal sensitive permissions. Based on the permission weight corresponding to the normal sensitive permission set, the initial permission scores corresponding to each normal sensitive permission in the normal sensitive permission set are adjusted. Based on the permission weight corresponding to the abnormal sensitive permission set, the initial permission scores corresponding to each abnormal sensitive permission in the abnormal sensitive permission set are adjusted to obtain the target permission scores corresponding to each sensitive permission in the target sensitive permission set. The target permission scores corresponding to each sensitive permission in the target sensitive permission set are integrated to obtain the sensitive permission value corresponding to the target application. Based on the interface weight corresponding to the normal sensitive interface set, the initial interface scores corresponding to each normal sensitive interface in the normal sensitive interface set are adjusted. Based on the interface weight corresponding to the abnormal sensitive interface set, the initial interface scores corresponding to each abnormal sensitive interface in the abnormal sensitive interface set are adjusted to obtain the target interface scores corresponding to each sensitive interface in the target sensitive interface set. The target interface scores corresponding to each sensitive interface in the target sensitive interface set are integrated to obtain the sensitive interface value corresponding to the target application.

[0091] In the above embodiment, the target sensitive permission set can be accurately divided into a normal sensitive permission set and an abnormal sensitive permission set based on the frequent sensitive permission set corresponding to the application category to which the target application belongs. Then, the normal sensitive permission set and the abnormal sensitive permission set are merged based on the permission weights corresponding to the normal sensitive permission and the abnormal sensitive permission, respectively. Since the permission weight corresponding to the normal sensitive permission is less than the permission weight corresponding to the abnormal sensitive permission, the calculated sensitive permission value corresponding to the target application can be made more accurate. Similarly, the target sensitive interface set can be accurately divided into a normal sensitive interface set and an abnormal sensitive interface set based on the frequent sensitive interface set corresponding to the application category to which the target application belongs. Then, the normal sensitive interface set and the abnormal sensitive interface set are merged based on the interface weights corresponding to the normal sensitive interface and the abnormal sensitive interface, respectively. Since the interface weight corresponding to the normal sensitive interface is less than the interface weight corresponding to the abnormal sensitive interface, the calculated sensitive interface value corresponding to the target application can be made more accurate.

[0092] In one embodiment, based on the sensitive permission value and the sensitive interface value, determining the security verification result corresponding to the target application includes:

[0093] When the sensitive permission value is less than the sensitive permission threshold corresponding to the application category, the security verification result corresponding to the target application is determined to be a safe state; when the sensitive permission value is greater than or equal to the sensitive permission threshold, and the sensitive interface value is less than the sensitive interface threshold corresponding to the application category, the security verification result corresponding to the target application is determined to be a first abnormal state; when the sensitive permission value is greater than or equal to the sensitive permission threshold, and the sensitive interface value is greater than or equal to the sensitive interface threshold corresponding to the application category, the security verification result corresponding to the target application is determined to be a second abnormal state; the degree of abnormality of the first abnormal state is less than the degree of abnormality of the second abnormal state.

[0094] Among them, the sensitive permission threshold corresponding to the application category refers to the preset sensitive permission value used to determine whether the application belonging to the application category is in a safe state. The sensitive interface threshold corresponding to the application category refers to the preset sensitive interface value used to determine what kind of abnormal state the application belonging to the application category is in when the sensitive permission value corresponding to the application is greater than or equal to the sensitive permission threshold. The first abnormal state means that the sensitive permissions applied for by the target application have exceeded the security range corresponding to the application category, but malicious operations have not been performed through the sensitive interface, that is, the target application is in a dangerous state. The second abnormal state means that the sensitive permissions applied for by the target application have exceeded the security range corresponding to the application category, and the called sensitive interface also exceeds the security range corresponding to the application category, that is, the target application has performed malicious operations through the sensitive interface in a dangerous state.

[0095] Exemplarily, when the sensitive permission value is less than the sensitive permission threshold corresponding to the application category to which the target application belongs, the security check result corresponding to the target application is determined to be a safe state, that is, the target application is in a safe state. When the sensitive permission value is greater than or equal to the sensitive permission threshold, the sensitive interface value is further compared with the sensitive interface threshold corresponding to the application category to which the target application belongs. When the sensitive permission value is greater than or equal to the sensitive permission threshold, and the sensitive interface value is less than the sensitive interface threshold, the security check result corresponding to the target application is determined to be a first abnormal state, that is, the sensitive permission applied for by the target application has exceeded the security range corresponding to the application category, but malicious operations have not yet been performed through the sensitive interface. When the sensitive permission value is greater than or equal to the sensitive permission threshold, and the sensitive interface value is greater than or equal to the sensitive interface threshold corresponding to the application category, the security check result corresponding to the target application is determined to be a second abnormal state, that is, the sensitive permission applied for by the target application has exceeded the security range corresponding to the application category, and the called sensitive interface has also exceeded the security range corresponding to the application category, that is, the target application has performed malicious operations through the sensitive interface in a dangerous state.

[0096] In one embodiment, when the security check result corresponding to the target application is the first abnormal state, a danger prompt is sent to the user to inform the user that the application may have dangerous operations. When the security check result corresponding to the target application is the second abnormal state, a forced alarm is issued and the target application is terminated, and an abnormal description information is sent to the user. When an abnormal situation occurs in the application, corresponding protective measures are taken in a timely manner, thereby improving the safety of application operation.

[0097] In the above embodiment, the security status of the application corresponding to the target application is first preliminarily determined by the sensitive permission value corresponding to the target application. When the sensitive permission value is greater than or equal to the sensitive permission threshold, the security status of the target application is further determined according to the sensitive interface value corresponding to the target application. By comparing the sensitive permission value and the sensitive interface value in sequence, the security status of the target application can be quickly and accurately divided into three security levels, namely, the safe state, the first abnormal state, and the second abnormal state, thereby achieving accurate division of the application security status and improving the accuracy of the application security verification. Taking corresponding protective measures for different abnormal situations can effectively improve the security of the application.

[0098] In a specific embodiment, the application security verification method of the present application can be applied to a user terminal to perform security verification on an application being installed or running on the user terminal. Figure 4 As shown, the application security verification method includes the following steps:

[0099] 1. Determine the application category

[0100] The user terminal obtains an application sample library, decompiles each application sample in the sample library, extracts features and preprocesses the decompiled code information, and obtains the permission feature information and interface feature information corresponding to each application sample. A training sample set is generated based on the permission feature information and interface feature information corresponding to each application sample, a training label set is generated based on the application type corresponding to each application sample, and a classification model is trained based on the training sample set and the training label set until the model converges to obtain a trained classification model.

[0101] The user terminal decompiles the application to be detected to obtain the code information corresponding to the application to be detected, extracts the sensitive permission set and the sensitive interface set from the code information corresponding to the application to be detected, and then performs feature extraction and preprocessing on the code information corresponding to the application to be detected, and inputs the extracted permission feature information and interface feature information corresponding to the application to be detected into the classification model to obtain the application category corresponding to the application to be detected.

[0102] 2. Calculate sensitive permission values ​​and sensitive interface values

[0103] The user terminal obtains the frequent sensitive permission set and the frequent sensitive interface set corresponding to the application category to which the application to be detected belongs. Based on the sensitive permission set and the frequent sensitive permission set corresponding to the application to be detected, the sensitive permission value corresponding to the application to be detected is calculated. Based on the sensitive interface set and the frequent sensitive interface set corresponding to the application to be detected, the sensitive interface value corresponding to the application to be detected is calculated.

[0104] 3. Determine the safety verification results

[0105] The user terminal obtains the sensitive permission threshold and sensitive interface threshold corresponding to the application category to which the application to be detected belongs. When the sensitive permission value corresponding to the application to be detected is less than the sensitive permission threshold, the security verification result corresponding to the application to be detected is determined to be normal. When the sensitive permission value corresponding to the application to be detected is greater than or equal to the sensitive permission threshold, and the sensitive interface value is less than the sensitive interface threshold, the security verification result corresponding to the application to be detected is determined to be dangerous. When the sensitive permission value corresponding to the application to be detected is greater than or equal to the sensitive permission threshold, and the sensitive interface value is greater than or equal to the sensitive interface threshold, the security verification result corresponding to the application to be detected is determined to be malicious.

[0106] In the above embodiment, the application category corresponding to the application to be detected is determined based on the sensitive permission information and sensitive interface information corresponding to the application to be detected, and then the sensitive permission information of the program corresponding to the application to be detected is quantified into a sensitive permission value according to the frequent sensitive permission set corresponding to the application category, and the sensitive interface information corresponding to the application to be detected is quantified into a sensitive interface value according to the frequent sensitive interface set corresponding to the application category. Finally, the security verification result corresponding to the application to be detected is determined according to the sensitive permission threshold and sensitive interface threshold corresponding to the application category to which the application to be detected belongs, as well as the sensitive permission value and sensitive interface value corresponding to the application to be detected, which can effectively improve the efficiency and accuracy of application security verification.

[0107] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0108] Based on the same inventive concept, the embodiment of the present application also provides an application security verification device for implementing the above-mentioned application security verification method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more application security verification device embodiments provided below can refer to the limitations of the application security verification method above, and will not be repeated here.

[0109] In one embodiment, Figure 5 As shown, an application security verification device is provided, including: an application information acquisition module 502, an application category determination module 504, a frequent information set acquisition module 506, a sensitive value determination module 508 and a verification result determination module 510, wherein:

[0110] The application information acquisition module 502 is used to obtain a target sensitive permission set and a target sensitive interface set corresponding to a target application.

[0111] The application category determination module 504 is used to classify the target application based on the target sensitive permission set and the target sensitive interface set to obtain the application category corresponding to the target application.

[0112] The frequent information set acquisition module 506 is used to acquire the frequent sensitive permission set and the frequent sensitive interface set corresponding to the application category.

[0113] The sensitive value determination module 508 is used to obtain the sensitive permission value corresponding to the target application based on the frequent sensitive permission set and the target sensitive permission set, and to obtain the sensitive interface value corresponding to the target application based on the frequent sensitive interface set and the target sensitive interface set.

[0114] The verification result determination module 510 is used to determine the security verification result corresponding to the target application based on the sensitive permission value and the sensitive interface value.

[0115] In one embodiment, the application category determination module 504 is further configured to:

[0116] The permission feature vector corresponding to the target application is extracted based on the target sensitive permission set, and the interface feature vector corresponding to the target application is extracted based on the target sensitive interface set; the permission feature vector and the interface feature vector are input into the application classification model to obtain the application category corresponding to the target application; the application classification model is trained based on the permission feature vectors and interface feature vectors corresponding to multiple application samples, and the application categories corresponding to each application sample.

[0117] In one embodiment, the application category determination module 504 is further configured to:

[0118] Obtain a reference sensitive permission set and a reference sensitive interface set; compare the target sensitive permission set with the reference sensitive permission set to obtain a permission feature vector corresponding to the target application; compare the target sensitive interface set with the reference sensitive interface set to obtain an interface feature vector corresponding to the target application.

[0119] In one embodiment, the frequent information set acquisition module 506 is further used to:

[0120] Obtain the initial sensitive permission set and initial sensitive interface set corresponding to the application category, and obtain the merged quantity; use the initial sensitive permission set as the current sensitive permission set, use the initial sensitive interface set as the current sensitive interface set, use each sensitive permission in the current sensitive permission set as the current sensitive permission subset, and use each sensitive interface in the current sensitive interface set as the current sensitive interface subset; count the occurrence frequencies of each current sensitive permission subset in the current sensitive permission set in the initial sensitive permission set, count the occurrence frequencies of each current sensitive interface subset in the current sensitive interface set in the initial sensitive interface set, filter the current sensitive permission subset whose occurrence frequency is less than the first preset frequency from the current sensitive permission set, and obtain the updated sensitive permission set; filter the current sensitive interface subset whose occurrence frequency is less than the second preset frequency from the current sensitive interface set, and obtain the updated sensitive interface set; Based on the number of merges, each current sensitive permission subset contained in the updated sensitive permission set is merged to obtain multiple sensitive permission subset combinations, and an intermediate sensitive permission set is obtained based on each sensitive permission subset combination; based on the number of merges, each current sensitive interface subset contained in the updated sensitive interface set is merged to obtain multiple sensitive interface subset combinations, and an intermediate sensitive interface set is obtained based on each sensitive interface subset combination; the sensitive permission subset combination is used as the current sensitive permission subset, the sensitive interface subset combination is used as the current sensitive interface subset, the intermediate sensitive permission set is used as the current sensitive permission set, and the intermediate sensitive interface set is used as the current sensitive interface set; return to count the corresponding occurrence frequencies of each current sensitive permission subset in the current sensitive permission set in the initial sensitive permission set, and execute until the end condition is met to obtain a frequent sensitive permission set and a frequent sensitive interface set corresponding to the application category.

[0121] In one embodiment, the sensitivity value determination module 508 is further configured to:

[0122] The target sensitive permission set is divided into a normal sensitive permission set and an abnormal sensitive permission set based on the frequent sensitive permission set, and the target sensitive permission set is divided into a normal sensitive interface set and an abnormal sensitive interface set based on the frequent sensitive interface set; based on the permission weights corresponding to the normal sensitive permissions and the abnormal sensitive permissions, the normal sensitive permission set and the abnormal sensitive permission set are merged to obtain the sensitive permission value corresponding to the target application; the permission weight corresponding to the normal sensitive permission is less than the permission weight corresponding to the abnormal sensitive permission; based on the interface weights corresponding to the normal sensitive interface and the abnormal sensitive interface, the normal sensitive interface set and the abnormal sensitive interface set are merged to obtain the sensitive interface value corresponding to the target application; the interface weight corresponding to the normal sensitive interface is less than the interface weight corresponding to the abnormal sensitive interface.

[0123] In one embodiment, the verification result determination module 510 is further configured to:

[0124] When the sensitive permission value is less than the sensitive permission threshold corresponding to the application category, the security verification result corresponding to the target application is determined to be a safe state; when the sensitive permission value is greater than or equal to the sensitive permission threshold, and the sensitive interface value is less than the sensitive interface threshold corresponding to the application category, the security verification result corresponding to the target application is determined to be a first abnormal state; when the sensitive permission value is greater than or equal to the sensitive permission threshold, and the sensitive interface value is greater than or equal to the sensitive interface threshold corresponding to the application category, the security verification result corresponding to the target application is determined to be a second abnormal state; the degree of abnormality of the first abnormal state is less than the degree of abnormality of the second abnormal state.

[0125] The above-mentioned application security verification device determines the application category to which the target application belongs based on the sensitive permission information and sensitive interface information corresponding to the target application, and then quantifies the sensitive permission information and sensitive interface information of the target application based on the frequent sensitive permission set and frequent sensitive interface set corresponding to the application category, thereby obtaining the sensitive permission value and sensitive interface value corresponding to the target application, and finally determines the security verification result corresponding to the target application based on the sensitive permission value and sensitive interface value corresponding to the target application, which can make the application security verification more targeted, thereby effectively improving the accuracy of the application security verification.

[0126] Each module in the above-mentioned application security verification device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0127] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as a target sensitive permission set and a target sensitive interface set. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an application security verification method is implemented.

[0128] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an application security verification method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0129] Those skilled in the art will understand that Figure 6 , 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0130] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0131] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0132] In one embodiment, a computer program product or computer program is provided, the computer product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.

[0133] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0134] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0135] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0136] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An application security verification method, characterized in that: The method comprises: Obtain the target sensitive permission set and target sensitive interface set corresponding to the target application; Based on the target sensitive permission set and the target sensitive interface set, classify the target application to obtain an application category corresponding to the target application; Obtaining a frequently sensitive permission set and a frequently sensitive interface set corresponding to the application category; Based on the frequent sensitive permission set and the target sensitive permission set, obtain the sensitive permission value corresponding to the target application, and based on the frequent sensitive interface set and the target sensitive interface set, obtain the sensitive interface value corresponding to the target application; Based on the sensitive permission value and the sensitive interface value, a security verification result corresponding to the target application is determined.

2. The method according to claim 1, characterized in that The classifying the target application based on the target sensitive permission set and the target sensitive interface set to obtain the application category corresponding to the target application includes: Extracting the permission feature vector corresponding to the target application based on the target sensitive permission set, and extracting the interface feature vector corresponding to the target application based on the target sensitive interface set; The permission feature vector and the interface feature vector are input into an application classification model to obtain an application category corresponding to the target application; the application classification model is trained based on the permission feature vectors and interface feature vectors corresponding to multiple application samples, and the application categories corresponding to each application sample.

3. The method according to claim 2, characterized in that The step of extracting the permission feature vector corresponding to the target application based on the target sensitive permission set, and extracting the interface feature vector corresponding to the target application based on the target sensitive interface set, includes: Get reference sensitive permission set and reference sensitive interface set; Comparing the target sensitive permission set with the reference sensitive permission set to obtain a permission feature vector corresponding to the target application; The target sensitive interface set is compared with the reference sensitive interface set to obtain an interface feature vector corresponding to the target application.

4. The method according to claim 1, characterized in that: The obtaining of the frequent sensitive permission set and the frequent sensitive interface set corresponding to the application category includes: Obtaining an initial sensitive permission set and an initial sensitive interface set corresponding to the application category, and obtaining a combined quantity; The initial sensitive permission set is used as the current sensitive permission set, the initial sensitive interface set is used as the current sensitive interface set, each sensitive permission in the current sensitive permission set is used as the current sensitive permission subset, and each sensitive interface in the current sensitive interface set is used as the current sensitive interface subset; Counting the occurrence frequencies of each current sensitive permission subset in the current sensitive permission set and each current sensitive interface subset in the initial sensitive interface set, filtering the current sensitive permission subsets whose occurrence frequencies are less than a first preset frequency from the current sensitive permission set to obtain an updated sensitive permission set, and filtering the current sensitive interface subsets whose occurrence frequencies are less than a second preset frequency from the current sensitive interface set to obtain an updated sensitive interface set; Based on the merged number, each current sensitive permission subset included in the updated sensitive permission set is merged to obtain multiple sensitive permission subset combinations, and an intermediate sensitive permission set is obtained based on each sensitive permission subset combination; based on the merged number, each current sensitive interface subset included in the updated sensitive interface set is merged to obtain multiple sensitive interface subset combinations, and an intermediate sensitive interface set is obtained based on each sensitive interface subset combination; Combine the sensitive permission subsets as the current sensitive permission subset, combine the sensitive interface subsets as the current sensitive interface subset, take the intermediate sensitive permission set as the current sensitive permission set, and take the intermediate sensitive interface set as the current sensitive interface set; The step of counting the occurrence frequencies of each current sensitive permission subset in the current sensitive permission set in the initial sensitive permission set is returned and executed until the end condition is met, thereby obtaining a frequent sensitive permission set and a frequent sensitive interface set corresponding to the application category.

5. The method according to claim 1, characterized in that The obtaining, based on the frequent sensitive permission set and the target sensitive permission set, a sensitive permission value corresponding to the target application, and the obtaining, based on the frequent sensitive interface set and the target sensitive interface set, a sensitive interface value corresponding to the target application, comprises: Dividing the target sensitive permission set into a normal sensitive permission set and an abnormal sensitive permission set based on the frequent sensitive permission set, and dividing the target sensitive permission set into a normal sensitive interface set and an abnormal sensitive interface set based on the frequent sensitive interface set; Based on the permission weights corresponding to the normal sensitive permission and the abnormal sensitive permission, respectively, the normal sensitive permission set and the abnormal sensitive permission set are merged to obtain the sensitive permission value corresponding to the target application; the permission weight corresponding to the normal sensitive permission is less than the permission weight corresponding to the abnormal sensitive permission; Based on the interface weights corresponding to the normal sensitive interface and the abnormal sensitive interface respectively, the normal sensitive interface set and the abnormal sensitive interface set are merged to obtain the sensitive interface value corresponding to the target application; the interface weight corresponding to the normal sensitive interface is less than the interface weight corresponding to the abnormal sensitive interface.

6. The method according to claim 1, characterized in that The determining, based on the sensitive permission value and the sensitive interface value, a security verification result corresponding to the target application includes: When the sensitive permission value is less than the sensitive permission threshold corresponding to the application category, determining that the security verification result corresponding to the target application is a safe state; When the sensitive permission value is greater than or equal to the sensitive permission threshold, and the sensitive interface value is less than the sensitive interface threshold corresponding to the application category, determining that the security verification result corresponding to the target application is a first abnormal state; When the sensitive permission value is greater than or equal to the sensitive permission threshold, and the sensitive interface value is greater than or equal to the sensitive interface threshold corresponding to the application category, it is determined that the security verification result corresponding to the target application is a second abnormal state; the abnormality degree of the first abnormal state is less than the abnormality degree of the second abnormal state.

7. An application security verification device, characterized in that: The device comprises: An application information acquisition module is used to obtain a target sensitive permission set and a target sensitive interface set corresponding to a target application; An application category determination module, used to classify the target application based on the target sensitive permission set and the target sensitive interface set, and obtain an application category corresponding to the target application; A frequent information set acquisition module, used to acquire a frequent sensitive permission set and a frequent sensitive interface set corresponding to the application category; A sensitive value determination module, configured to obtain a sensitive permission value corresponding to the target application based on the frequent sensitive permission set and the target sensitive permission set, and to obtain a sensitive interface value corresponding to the target application based on the frequent sensitive interface set and the target sensitive interface set; A verification result determination module is used to determine the security verification result corresponding to the target application based on the sensitive permission value and the sensitive interface value.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Detection method and apparatus of malicious application, and computer readable storage medium

    CN107506646A

  • Feature matching-based Android platform malicious software detection method

    CN108171057A

  • Android malicious application detection method and system integrating frequent item set and random forest algorithm

    CN109753800A

  • Application process detection processing method, system and device and computer equipment

    CN117951682A