Application program detection method, device, equipment and storage medium

By comparing the application's call record with the preset malicious behavior library, and combining it with user authorization information, the malicious behavior of the application is accurately identified, which solves the problem of inaccurate detection in the existing technology and improves user privacy protection and application integration. Regular detection capabilities.

CN113672902BActive Publication Date: 2024-09-06GUAHAO (HANGZHOU) TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202111013803.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-31
Publication Date
2024-09-06
Estimated Expiration
2041-08-31

AI Technical Summary

Technical Problem

Existing technologies are difficult to accurately identify malicious behaviors when detecting applications, leading to the problem of leakage of user privacy information.

Method used

By receiving operation instructions, the application under test is controlled to call the function under test, its call record is obtained, and compared with the preset malicious behavior library to determine whether there is malicious information access behavior, and the compliance of the calling behavior is determined based on user authorization information.

Benefits of technology

It achieves more accurate detection of applications, protects user privacy, prevents information leakage, and provides an improvement basis for application non-compliance issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113672902B
    Figure CN113672902B
Patent Text Reader

Abstract

The present application provides an application detection method, device, equipment and storage medium, the method comprising: receiving an operation instruction for an application to be detected, the operation instruction carrying a function to be detected; controlling the application to be detected to call the function to be detected; obtaining a call record of the application to be detected for the function to be detected, the call record including a record of the application to be detected accessing user information; and detecting whether the application to be detected has malicious information access behavior based on the call record and a preset malicious behavior library of the function to be detected. The present application realizes the detection of malicious information access behavior or illegal calling of user authority behavior in an application, protects the user's personal privacy, and facilitates more accurate inspection and improvement of the application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of detection technology, and in particular to an application detection method, apparatus, device and storage medium. Background Art

[0002] In the existing technology, when checking the compliance of applications ("apps"), most of the research and development only focuses on malicious behaviors such as stealing funds, or only detects whether sensitive permissions are authorized manually in the application interface. With the development of information technology, many malicious applications that illegally call user permissions have emerged, resulting in information security issues such as easy leakage of user privacy information. Therefore, how to accurately detect whether an app has malicious behavior has become a problem that needs to be solved urgently. Summary of the invention

[0003] The present application provides an application detection method, apparatus, device and storage medium, which realizes the detection of malicious information access behavior or illegal call of user authority behavior in the application, protects the user's personal privacy, and facilitates more accurate inspection and improvement of the application.

[0004] A first aspect of an embodiment of the present application provides an application detection method, including: receiving an operation instruction for an application to be detected, the operation instruction carrying a function to be tested; controlling the application to be detected to call the function to be tested; obtaining a call record of the application to be detected for the function to be tested, the call record including an access record of the application to be detected to user information; and detecting whether the application to be detected has malicious information access behavior based on the call record and a preset malicious behavior library of the function to be tested.

[0005] In one embodiment, obtaining a call record of the function to be tested by the application to be tested includes obtaining call stack information of the function to be tested by the application to be tested, and using the call stack information as the call record.

[0006] In one embodiment, based on the call records and the preset malicious behavior library of the function to be tested, it is detected whether the application to be tested has malicious information access behavior, including: judging whether the access behavior of the application to be tested to user information in the call records is in the preset malicious behavior library; when the access behavior of the application to be tested to user information is in the preset malicious behavior library, it is determined that the calling behavior of the application to be tested to the function to be tested has malicious information access behavior.

[0007] In one embodiment, the application program detection method further includes receiving authorization information of a user for the application to be detected;

[0008] In one embodiment, based on the call records and the preset malicious behavior library of the function to be tested, it is detected whether the application to be tested has malicious information access behavior, and it also includes: when the access behavior of the application to be tested to user information is not in the preset malicious behavior library, it is determined based on the authorization information whether the access behavior of the application to be tested to user information is authorized; when the access behavior of the application to be tested to user information is not authorized, it is determined that the calling behavior of the application to be tested to the function to be tested has malicious information access behavior.

[0009] In one embodiment, after detecting whether the application to be tested has malicious information access behavior according to the call record and the preset malicious behavior library of the function to be tested, it also includes generating detection result information of the application to be tested and outputting the detection result information.

[0010] The second aspect of an embodiment of the present application provides an application detection device, including: a first receiving module, used to receive an operation instruction for an application to be detected, the operation instruction carrying a function to be detected; a control module, used to control the application to be detected to call the function to be detected; an acquisition module, used to obtain a call record of the application to be detected to the function to be detected, the call record including an access record of the application to be detected to user information; a detection module, used to detect whether the application to be detected has malicious information access behavior based on the call record and a preset malicious behavior library of the function to be detected.

[0011] In one embodiment, the acquisition module is used to acquire call stack information of the application to be tested for the function to be tested, and use the call stack information as a call record.

[0012] In one embodiment, the detection module is used to determine whether the access behavior of the application to be tested to user information in the call record is in a preset malicious behavior library; when the access behavior of the application to be tested to user information is in the preset malicious behavior library, it is determined that the calling behavior of the application to be tested to the function to be tested has malicious information access behavior.

[0013] In one embodiment, the application program detection device further includes a second receiving module, configured to receive authorization information of a user for the application to be detected.

[0014] In one embodiment, the detection module is also used to determine whether the access behavior of the application to be tested to user information is authorized based on the authorization information when the access behavior of the application to be tested to user information is not in the preset malicious behavior library; when the access behavior of the application to be tested to user information is not authorized, it is determined that the application to be tested has malicious information access behavior in its calling behavior of the function to be tested.

[0015] In one embodiment, the application detection device also includes an output module, which is used to generate detection result information of the application to be tested and output the detection result information after detecting whether the application to be tested has malicious information access behavior based on the call record and the preset malicious behavior library of the function to be tested.

[0016] A third aspect of an embodiment of the present application provides an electronic device, comprising a memory for storing a computer program; and a processor for executing the computer program to implement the method of the first aspect of an embodiment of the present application and any embodiment thereof to detect an application program.

[0017] The fourth aspect of an embodiment of the present application provides a non-transitory electronic device readable storage medium, including a program, which, when run by an electronic device, enables the electronic device to execute the application detection method of the first aspect of the embodiment of the present application and any embodiment thereof.

[0018] The application detection method, device, equipment and storage medium provided by the present application, when receiving an operation instruction for the application to be detected, controls the application to be detected to call the function to be detected and obtains the call record of the application to be detected for the function to be detected, the call record includes the access record of the application to be detected to the user information, and detects whether the application to be detected has malicious information access behavior based on the comparison of the call record with the preset malicious application library of the function to be detected. Compared with the prior art that detects whether the application is authorized to access personal information or detects malicious application behaviors such as stealing funds, this application can detect behaviors that protect user information security and prevent privacy leaks, more accurately detect whether the application has malicious behavior, and also provide a basis for improving the non-compliance issues of the application in the later stage. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings required for use in the embodiments of the present application are briefly introduced below.

[0020] Figure 1 A schematic diagram of the structure of an electronic device according to an embodiment of the present application;

[0021] Figure 2 A schematic diagram of a flow chart of an application program detection method according to an embodiment of the present application;

[0022] Figure 3 A schematic diagram of a flow chart of an application program detection method according to an embodiment of the present application;

[0023] Figure 4 A schematic diagram of the structure of an application program detection device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0025] Similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0026] like Figure 1 As shown, a first aspect of this embodiment provides an electronic device 1, including: at least one processor 11 and a memory 12, Figure 1 A processor is used as an example. The processor 11 and the memory 12 are connected via a bus 10. The memory 12 stores instructions that can be executed by the processor 11. The instructions are executed by the processor 11 so that the electronic device 1 can execute all or part of the process of the method in the following embodiment to detect the application.

[0027] In one embodiment, the electronic device 1 may be a mobile phone, a laptop computer, a desktop computer, or the like.

[0028] Please see Figure 2 , which is a flow chart of an application detection method according to an embodiment of the present application. A second aspect of the present application embodiment provides an application detection method, comprising:

[0029] S210: Receive an operation instruction for the application to be tested, where the operation instruction carries a function to be tested.

[0030] In this step, the application to be tested is the application that is tested for the permissions of accessing user information, calling behaviors, or other behaviors in the program, and then judged whether it is compliant. During the detection process, the electronic device receives an operation instruction, which requires to detect whether there is malicious behavior or judge whether the different types of behavior permissions called during the operation of a certain application are compliant. For example, when it is necessary to detect the permission of calling the phone, calling the microphone, or other calling permissions owned by a certain photo editing application, an operation instruction is issued to the electronic device. The function to be tested carried by the operation instruction refers to the phone function, microphone function, or other functions corresponding to the above-mentioned different permissions. The function to be tested can be one or more.

[0031] S220: Control the application to be tested to call the function to be tested.

[0032] In this step, the application to be tested is controlled to call the function to be tested, which means that when the electronic device receives the operation instruction, the application to be tested on the electronic device is controlled to start and call its own function to be tested according to the function to be tested carried in the operation instruction. For example, when a user needs to detect whether calling the camera function in a payment app is malicious, the detection instruction carries an instruction to turn on the camera to take pictures or videos. After receiving the instruction, the application is controlled to call the camera function, and then turn on the camera to take pictures. Among them, the operation instruction is not limited to a calling permission in the specified application. The operation instruction can also command the detected application to call its own multiple or even all permission behaviors, and use the corresponding related functions as the function to be tested.

[0033] S230: Obtaining a call record of the application to be tested to the function to be tested, wherein the call record includes a record of the application to be tested accessing user information.

[0034] In this step, the call record of the function to be tested by the application to be tested is obtained, and the call record includes at least the name of the function to be tested that is called, and the name of the function to be tested in the call record represents the access record of the application to be tested to the user information. For example, after calling the phone function of a chat application, the electronic device obtains the call record generated after the call, which includes at least the name of the function to be tested, such as the phone function and the contact information acquisition function, and also represents the call behavior during the phone call process or the access behavior of obtaining user information such as contact information after starting the chat application.

[0035] In one embodiment, obtaining the call record of the application to be tested to the function to be tested also includes obtaining the call stack information of the application to be tested to the function to be tested, and the call stack information is also used as the call record, that is, the call record can also include the call stack information, and the main function of the call stack information is to save the return address of the call. For example, when the above-mentioned chat application starts the phone call function, the process of executing the phone call is from the start function to the start function, to the interface display contact information function, and finally to the execution of the dial phone function, then the call stack information is the dial phone function-display function-start function-start function. In this step, the Hook technology can be used to automatically determine and hook the function to be tested as a phone call function, and prepare to execute the next step to determine whether the application to be tested has malicious information access behavior. At the same time, the call stack information is output as a call log and saved in the call record, so that after all the detections are completed, the user can trace back to the entire process of the application's malicious information access behavior through the record, and can also provide a basis for subsequent users to improve and file the application program for malicious behavior in the application.

[0036] S240: Detect whether the application to be tested has malicious information access behavior based on the call record and the preset malicious behavior library of the function to be tested.

[0037] In this step, the preset malicious behavior library is formulated according to the specific requirements of the relevant application management specifications issued by the management unit or department. For example, for photo editing applications, calling the microphone behavior or calling the text message behavior is not reasonable. In the case of functions not required for photo editing, there is a security risk of malicious access to personal information. Therefore, in the relevant application management specifications, calling the microphone behavior or calling the text message behavior will be defined as malicious information access behavior of photo editing applications, which will be pre-written into the preset malicious behavior library and packaged. With the continuous updating of the relevant application management specifications issued, the content in the preset malicious behavior library is also continuously updated, and the corresponding preset malicious behavior library data package is also continuously updated.

[0038] Among them, it is detected whether the application to be tested has malicious information access behavior, that is, it is determined whether the access behavior of the application to be tested to user information in the call record is in the preset malicious behavior library; in the above step S230, with reference to the content in the preset malicious behavior library, all possible malicious information access behaviors are automatically hooked through the Hook function to determine whether the access behavior of the application to be tested to user information is in the preset malicious behavior library. When the access behavior of the application to be tested to user information is in the preset malicious behavior library, it is determined that the calling behavior of the application to be tested to the function to be tested has malicious information access behavior. For example, in the operation of the photo editing application, the microphone function and the album function are hooked. In the case of a function not required for photo editing, the hooked microphone function happens to be the malicious information access behavior of the photo editing application defined in the preset malicious behavior library, that is, it is determined that the calling behavior of the application to be tested to the function to be tested has malicious information access behavior. When the access behavior of the application to be tested to user information is not in the preset malicious behavior library, for example, the above-mentioned album function is relative to the photo editing application, that is, it is determined that the calling behavior of the application to be tested to the function to be tested does not have malicious information access behavior.

[0039] In one embodiment, before the application detection begins, that is, before step S210, it may also include: after the application is developed, it is uploaded to the application platform. When the application needs to be detected based on whether there is malicious access behavior, the application platform defines it as an application to be tested. Different users download the application to be tested from the application platform to the electronic device, and control the startup of the application to be tested through the electronic device, and issue operation instructions to the application to be tested to start the detection.

[0040] Please see Figure 3 , which is a flow chart of an application detection method according to an embodiment of the present application, which can be Figure 1 The method is performed by the electronic device 1 shown in the figure, and comprises the following steps:

[0041] S310: Receive an operation instruction for the application to be tested, where the operation instruction carries a function to be tested.

[0042] S320: Control the application to be tested to call the function to be tested.

[0043] S330: Obtain the call record of the application to be tested to the function to be tested, where the call record includes the access record of the application to be tested to the user information.

[0044] Step S310 to step S330 are similar to step S210 to step S230 in the above embodiment. Please refer to the description in the above embodiment for details, which will not be repeated here.

[0045] S340: Receive the user's authorization information for the application to be inspected.

[0046] In this step, the electronic device automatically receives all the authorization information of the user when using the application to be tested. The authorization information is the request for authorization permission issued by the application to be tested to the user before the user uses the function in the application to be tested. For example, in a photo editing application, if the user wants to use the photo editing function to modify the photos in the album, the application will send a request for authorization permission to the user, asking "Do you allow the application to call the album related information?" The user confirms by clicking "Yes, I allow the call" to agree to the authorization, otherwise it means that the authorization is not agreed. When the application to be tested is tested, the authorization information corresponding to all functions in the application to be tested must be collected, and the electronic device stores the authorization information after receiving it, which provides a basis for determining whether the application to be tested has malicious information access behavior in calling the function to be tested.

[0047] S350: Determine whether the access behavior of the application to be checked to the user in the call record is in a preset malicious behavior library.

[0048] If it is determined that the access behavior of the application to be checked in the call record to the user is in the preset malicious behavior library, directly enter step S360; if it is determined that the access behavior of the application to be checked in the call record to the user is not in the preset malicious behavior library, enter step S351 for the next step of judgment.

[0049] S360: Determine whether the calling behavior of the application to be tested to the function to be tested has malicious information access behavior. Steps S350 and S360 are similar to the above-mentioned step S240. Therefore, for the explanation of the preset malicious behavior library and other contents, please refer to the relevant explanation in step S240, which will not be repeated here.

[0050] S351: Determine whether the access behavior of the application to be checked to the user information is authorized according to the authorization information. If so, proceed to step S361; if not, proceed to step S360.

[0051] S361: Determine that the calling behavior of the application to be tested to the function to be tested does not involve malicious information access behavior.

[0052] Referring to step S240 of the above embodiment, based on the call record and the preset malicious behavior library of the function to be tested, it is detected whether the application to be tested has malicious information access behavior. In this embodiment, after determining whether the access behavior of the application to be tested to the user in the call record is in the preset malicious behavior library, it also includes step S351: determining whether the access behavior of the application to be tested to the user information is authorized based on the authorization information.

[0053] When the access behavior of the application to be tested to the user is in the preset malicious behavior library, it is determined that the calling behavior of the application to be tested to the function to be tested has malicious information access behavior; when the access behavior of the application to be tested to user information is not in the preset malicious behavior library, it is also necessary to determine whether the access behavior of the application to be tested to user information is authorized based on the authorization information: when the access behavior of the application to be tested to user information is not authorized, it is also determined that the calling behavior of the application to be tested to the function to be tested has malicious information access behavior; when the access behavior of the application to be tested to user information is authorized, it is determined that the calling behavior of the application to be tested to the function to be tested does not have malicious information access behavior.

[0054] The significance of this step is that when the access behavior of the application to be tested to the user is not in the preset malicious behavior library, the application program still needs to be based on user authorization, that is, the access behavior to user information is designed with the user's consent as the premise, otherwise it will still be defined as malicious information access behavior.

[0055] S370: Generate detection result information of the application to be detected, and output the detection result information.

[0056] After step S360 and step S361, the electronic device will automatically generate detection result information of the application to be tested based on the detection results, and output the detection result information: if it is determined that the application to be tested has malicious information access behavior in calling the function to be tested, then the application is non-compliant; if it is determined that the application to be tested has no malicious information access behavior in calling the function to be tested, then the application is compliant.

[0057] In one embodiment, after step S370, the electronic device can package the detection results together with the call records and upload them to the application platform to bind them to the application. When other electronic devices download the application, the user can also learn whether the application is compliant through other electronic devices, or the user can also download the application and improve or review the non-compliant application based on the call records.

[0058] Please see Figure 4According to a third aspect of an embodiment of the present application, there is provided an application detection device, including: a first receiving module, for receiving an operation instruction for an application to be detected, the operation instruction carrying a function to be detected; a control module, for controlling the application to be detected to call the function to be detected; an acquisition module, for obtaining a call record of the application to be detected to the function to be detected, the call record including an access record of the application to be detected to user information; and a detection module, for detecting whether the application to be detected has malicious information access behavior according to the call record and a preset malicious behavior library of the function to be detected.

[0059] In one embodiment, the acquisition module is used to obtain the call stack information of the application to be tested for the function to be tested, and use the call stack information as a call record. The main function of the call stack information is to save the return address of the call.

[0060] In one embodiment, the detection module is used to determine whether the access behavior of the application to be tested to user information in the call record is in the preset malicious behavior library; when the access behavior of the application to be tested to user information is in the preset malicious behavior library, it is determined that the application to be tested has malicious information access behavior in its call behavior of the function to be tested. Before each detection of the application to be tested, the detection module is also used to detect whether its own preset malicious behavior library is the latest version. If it is not the latest version, the detection module will send an update message to the platform, download the latest version of the preset malicious behavior library data package and replace the original version, so as to judge whether the application to be tested has malicious information access behavior in its call behavior of the function to be tested according to the specific requirements of the latest relevant application management specifications issued by the Ministry of Industry and Information Technology, the Cyberspace Administration of China and other departments.

[0061] In one embodiment, the application program detection device further includes a second receiving module, and the second receiving module is used to receive the user's authorization information for the application to be detected.

[0062] In one embodiment, the detection module is further used to: when the access behavior of the application to be tested to the user information is not in the preset malicious behavior library, determine whether the access behavior of the application to be tested to the user information is authorized according to the authorization information. When the access behavior of the application to be tested to the user information is not authorized, determine that the calling behavior of the application to be tested to the function to be tested has malicious information access behavior.

[0063] In one embodiment, the application detection device further includes an output module, which is used to generate detection result information of the application to be detected after detecting whether the application to be detected has malicious information access behavior based on the call record and the preset malicious behavior library of the function to be detected, and output the detection result information. If it is determined that the calling behavior of the application to be detected to the function to be detected has malicious information access behavior, then the detection result information of the application being non-compliant is generated; if it is determined that the calling behavior of the application to be detected to the function to be detected has no malicious information access behavior, then the detection result information of the application being compliant is generated.

[0064] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned application detection method, and will not be repeated here.

[0065] In several embodiments provided in the present application, the disclosed device and method can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the device, method and computer program product according to the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0066] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0067] The fourth aspect of the embodiment of the present application provides a non-transient electronic device readable storage medium, including a program, which, when run by an electronic device, enables the electronic device to execute all or part of the process of the application detection method of the first aspect of the embodiment of the present application and any embodiment thereof. Among them, the storage medium can be a disk, an optical disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated: HDD) or a solid-state drive (Solid-State Drive, SSD), etc. The storage medium can also include a combination of the above-mentioned types of memory.

[0068] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0069] The application detection method, apparatus, device and storage medium provided in the present application, when receiving an operation instruction of the application to be detected, controls the application to be detected to call the function to be detected and obtains the call record of the application to be detected to the function to be detected, wherein the call record includes the access record of the application to be detected to user information, and detects whether the application to be detected has malicious information access behavior based on the comparison of the call record with the preset malicious application library of the function to be detected, which can effectively protect the user information security, prevent privacy leakage, more accurately detect whether the application has malicious behavior, and also provide a basis for improving the non-compliance issues of the application in the later stage.

[0070] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. An application detection method, characterized in that: include: Receive an operation instruction of the application to be tested, wherein the operation instruction carries a function to be tested; Controlling the application to be tested to call the function to be tested; Obtaining a call record of the application to be tested to the function to be tested, wherein the call record includes an access record of the application to be tested to user information; wherein the call record includes a name of the called function to be tested, and the name of the function to be tested is used to represent the access record of the application to be tested to user information; The obtaining of the call record of the function to be tested by the application to be tested includes: Obtaining the call stack information of the application to be tested for the function to be tested, and using the call stack information as the call record, including: judging and hooking the function to be tested in the call stack information through Hook technology, and outputting the call stack information as a call log, saving it in the call record, so as to trace the entire process of malicious information access behavior after the detection is completed; According to the call record and the preset malicious behavior library of the function to be tested, detect whether the application to be tested has malicious information access behavior, including: judging whether the access behavior of the application to be tested in the call record to user information is in the preset malicious behavior library; when the access behavior of the application to be tested to user information is in the preset malicious behavior library, determining that the calling behavior of the application to be tested to the function to be tested has malicious information access behavior; receiving the user's authorization information for the application to be tested; when the access behavior of the application to be tested to user information is not in the preset malicious behavior library, judging whether the access behavior of the application to be tested to user information is authorized according to the authorization information; when the access behavior of the application to be tested to user information is not authorized, determining that the calling behavior of the application to be tested to the function to be tested has malicious information access behavior.

2. The method according to claim 1, characterized in that After detecting whether the application to be tested has malicious information access behavior according to the call record and the preset malicious behavior library of the function to be tested, the method further includes: Generate detection result information of the application to be detected, and output the detection result information.

3. An application detection device, characterized in that: include: A first receiving module receives an operation instruction of the application to be tested, wherein the operation instruction carries a function to be tested; A control module, used for controlling the application to be tested to call the function to be tested; An acquisition module, used for acquiring a call record of the application to be tested to the function to be tested, wherein the call record includes an access record of the application to be tested to user information; wherein the call record includes a name of the called function to be tested, and the name of the function to be tested is used to represent the access record of the application to be tested to user information; The obtaining of the call record of the function to be tested by the application to be tested includes: Obtaining the call stack information of the application to be tested for the function to be tested, and using the call stack information as the call record, including: judging and hooking the function to be tested in the call stack information through Hook technology, and outputting the call stack information as a call log, saving it in the call record, so as to trace the entire process of malicious information access behavior after the detection is completed; A detection module, used to detect whether the application to be tested has malicious information access behavior based on the call record and a preset malicious behavior library of the function to be tested; A second receiving module, used to receive the user's authorization information for the application to be inspected; The detection module is used to: determine whether the access behavior of the application to be tested in the call record to the user information is in the preset malicious behavior library; when the access behavior of the application to be tested to the user information is in the preset malicious behavior library, determine that the calling behavior of the application to be tested to the function to be tested has malicious information access behavior; The detection module is also used to: when the access behavior of the application to be tested to user information is not in the preset malicious behavior library, determine whether the access behavior of the application to be tested to user information is authorized according to the authorization information; when the access behavior of the application to be tested to user information is not authorized, determine that the calling behavior of the application to be tested to the function to be tested contains malicious information access behavior.

4. An electronic device, characterized in that: The electronic device comprises: Memory for storing computer programs; A processor, configured to execute the computer program to implement the method according to claim 1 or 2.

5. A non-transitory electronic device readable storage medium, characterized in that: The invention comprises: a program, which, when executed by an electronic device, enables the electronic device to execute the method according to claim 1 or 2.

Citation Information

Patent Citations

  • Automatic detection method for Android malicious software

    CN103186740A

  • Android malicious code detection device and method based on dynamic activation and behavior monitoring

    CN104182688A

  • Web application program behavior extraction method and malicious behavior detection method

    CN105488398A

  • Android malware detection method based on function flow key point monitoring

    CN106845234A

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

    CN107506646A