Information processing method, device and medium
By conducting static code analysis and testing on application packages and comparing permission data to identify risk permissions, the problem of inaccurate application security detection in the existing technology is solved, automated risk assessment and risk level calculation are realized, and detection accuracy is improved. sex.
Patent Information
- Application Number
- CN202110214879.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-02-22
AI Technical Summary
The existing technology lacks effective methods to accurately and automatically detect the security of applications, especially permission usage, resulting in the inability to effectively identify risky permissions existing in applications.
Through static code analysis and testing of the application package, obtain permission analysis data and test data, compare the two to determine the risk results of permission usage, and calculate the risk level and number of privacy permissions when risk permissions exist, and display the risk results.
It realizes automated application permission usage risk detection, saves labor costs, improves detection accuracy, can accurately identify applied and unused permissions and used unapplied permissions, and helps assess the risk level of applications.
Smart Images

Figure CN112817868B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to information processing technology, and in particular to an information processing method for terminal applications and a device for executing the method. Background Art
[0002] At present, as people use smart terminals more and more, the security of various applications installed on smart terminals has attracted more and more attention. Moreover, with the increasing attention of the public to the protection of personal information and the continuous strengthening of national supervision, ensuring application privacy compliance is becoming an issue that must be considered by application developers and operators.
[0003] In view of this, when manufacturers list applications in the application store, they need to test the security of each application. However, the existing technology lacks effective methods to accurately and automatically test the security of applications, such as which permissions the application uses, whether there are permissions that have been applied for but not used, and permissions that have been used but not applied for. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides an information processing method, device and medium.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an information processing method, the method comprising:
[0006] Performing static code analysis on an application package of an application to obtain permission analysis data of the application;
[0007] Testing the application package to obtain permission test data of the application;
[0008] Based on the permission analysis data and the permission test data, a permission usage risk result of the application is determined.
[0009] The permission analysis data includes an application permission set and a first usage permission set of the application, and the permission test data includes a second usage permission set of the application.
[0010] Wherein, determining the permission usage risk result of the application based on the permission analysis data and the permission test data includes:
[0011] Based on the first usage permission set and the second usage permission set, acquiring a third usage permission set of the application;
[0012] The permission usage risk result is determined based on the third usage permission set and the application permission set.
[0013] The determining the permission usage risk result based on the third usage permission set and the application permission set includes:
[0014] Based on the third set of usage permissions and the set of application permissions, determining whether there is a risk permission, wherein the risk permission includes applying for unused permissions and using unapplied permissions;
[0015] When the risk authority exists, determining the authority usage risk result includes the existence of risk.
[0016] Wherein, when the risk authority exists, the method further includes:
[0017] Obtain the amount of risk authority;
[0018] Obtaining the number of privacy permissions included in the risk permissions;
[0019] A risk level of the application is determined based on the number of risk permissions and the number of privacy permissions.
[0020] Wherein, the method further comprises:
[0021] The permission usage risk result is displayed on a display interface.
[0022] The step of testing the application package includes:
[0023] Monkey testing is performed on the application package.
[0024] According to a second aspect of an embodiment of the present disclosure, there is provided an information processing device, the device comprising:
[0025] An analysis module, configured to perform static code analysis on an application package of an application to obtain permission analysis data of the application;
[0026] A testing module is configured to test the application package and obtain permission test data of the application;
[0027] The determination module is configured to determine the permission usage risk result of the application based on the permission analysis data and the permission test data.
[0028] The permission analysis data includes an application permission set and a first usage permission set of the application, and the permission test data includes a second usage permission set of the application.
[0029] Wherein, the determining module is further configured to:
[0030] Based on the first usage permission set and the second usage permission set, acquiring a third usage permission set of the application;
[0031] The permission usage risk result is determined based on the third usage permission set and the application permission set.
[0032] Wherein, the determining module is further configured to:
[0033] Based on the third set of usage permissions and the set of application permissions, determining whether there is a risk permission, wherein the risk permission includes applying for unused permissions and using unapplied permissions;
[0034] When the risk authority exists, determining the authority usage risk result includes the existence of risk.
[0035] Wherein, when the risk authority exists, the determination module is further configured to:
[0036] Obtain the amount of risk authority;
[0037] Obtaining the number of privacy permissions included in the risk permissions;
[0038] A risk level of the application is determined based on the number of risk permissions and the number of privacy permissions.
[0039] Wherein, the device further comprises:
[0040] The display module is configured to display the permission usage risk result on a display interface.
[0041] Wherein, the test module is also configured as:
[0042] Monkey testing is performed on the application package.
[0043] According to a third aspect of an embodiment of the present disclosure, there is provided an information processing device, including:
[0044] processor;
[0045] a memory for storing processor-executable instructions;
[0046] The processor is configured to implement the following steps when executing the executable instructions:
[0047] Performing static code analysis on an application package of an application to obtain permission analysis data of the application;
[0048] Testing the application package to obtain permission test data of the application;
[0049] Based on the permission analysis data and the permission test data, a permission usage risk result of the application is determined.
[0050] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a device, the device is enabled to perform an information processing method, the method comprising:
[0051] Performing static code analysis on an application package of an application to obtain permission analysis data of the application;
[0052] Testing the application package to obtain permission test data of the application;
[0053] Based on the permission analysis data and the permission test data, a permission usage risk result of the application is determined.
[0054] The present disclosure provides an information processing method, which performs static code analysis on an application package of an application to obtain permission analysis data of the application, and tests the application package to obtain permission test data of the application. The permission analysis data and permission test data are compared to determine the permission usage risk results of the application. Here, the static code analysis and testing of the application package are performed automatically, thereby saving labor costs and improving accuracy. Through this method, the permission usage risk of the application can be automatically determined, solving the problem that a single means of identifying the permission usage risk of the application is not accurate enough.
[0055] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0057] Figure 1 The invention is a flowchart of an information processing method according to an exemplary embodiment.
[0058] Figure 2 The invention is a flowchart of an information processing method according to an exemplary embodiment.
[0059] Figure 3 The invention is a block diagram of an information processing device according to an exemplary embodiment.
[0060] Figure 4 It is a block diagram of a device according to an exemplary embodiment.
[0061] Figure 5 It is a block diagram of a device according to an exemplary embodiment. DETAILED DESCRIPTION
[0062] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0063] With the public's increasing concern about personal information protection and the continuous strengthening of national supervision, ensuring application privacy compliance is becoming an issue that all application developers and operators must consider. Therefore, when manufacturers list applications in the application store, they need to test the security of each application. Testing the security of applications includes testing whether the application infringes on user privacy (for example, the application's usage permissions are not compliant, that is, using privacy permissions), testing whether the application has applied for permissions but not used, and / or used permissions but did not apply for them, etc.
[0064] The present disclosure provides an information processing method for detecting the security of each application, including: performing static code analysis on the application package of the application, obtaining the permission analysis data of the application, and testing the application package at the same time to obtain the permission test data of the application. Compare the permission analysis data and the permission test data to determine the permission usage risk results of the application. Here, the static code analysis and testing of the application package are performed automatically, thereby saving labor costs and improving accuracy. Through this method, the permission usage risk of the application can be automatically determined, solving the problem that a single means of identifying the permission usage risk of the application is not accurate enough.
[0065] This method can be used by application developers to perform risk assessment on applications, or by application store managers to perform risk assessment on applications placed in the store.
[0066] Figure 1 is a flowchart of an information processing method according to an exemplary embodiment. Figure 1 As shown, the method comprises the following steps:
[0067] Step 101, performing static code analysis on an application package of an application to obtain permission analysis data of the application;
[0068] Step 102, testing the application package to obtain permission test data of the application;
[0069] Step 103: Determine the permission usage risk result of the application based on the permission analysis data and the permission test data.
[0070] In step 101 and step 102, static code analysis is performed on the application package of the application to obtain permission analysis data; the application package is tested to simulate real application scenarios to obtain permission test data. The static code analysis here is, for example, to decompress the application package, decompile the decompressed package, obtain the source code, scan the source code, and obtain the usage permission by identifying the statement that calls the usage permission. For example, after static code analysis is performed on the package of a social application, the permission analysis data obtained includes the application permission and usage permission of the social application. The test of the application package can be performed on a platform that automatically executes scripts, such as the Jenkins platform. Static code analysis and tests that simulate real application scenarios can be performed simultaneously or one after another, and the order of execution is not restricted when they are performed one after another.
[0071] In step 103, based on the permission analysis data and permission test data, determine which permissions the application has applied for and which permissions the application uses during use by the user. The application permissions here are, for example, access to the address book, access to the photo album, access to the microphone, obtaining location information, etc. Then, based on these applied permissions and used permissions, determine whether there are unused permissions applied for and unapplied permissions used, thereby determining the permission use risk results of the application.
[0072] In this method, when testing the application package to simulate the real application scenario, the application scenario can be randomly selected and simulated multiple times to obtain more complete permission test data. By comparing the permission analysis data and the permission test data, it is determined whether there are unused permissions and unapplied permissions, thereby determining the permission use risk results of the application. Since the static code analysis and testing here are performed automatically, it can save labor costs and improve the accuracy of the permission use risk analysis of the application.
[0073] In an optional implementation manner, the permission analysis data includes an application permission set and a first usage permission set of the application, and the permission test data includes a second usage permission set of the application.
[0074] Perform static code analysis on the application package, and the obtained permission analysis data includes the permissions applied for when the application is installed (i.e., the application permission set), and the permissions used after installation (i.e., the first usage permission set). As mentioned above, the static code analysis here is an analysis of the code of the program package, which is a static analysis. The usage permissions obtained through static code analysis are the permissions used when the application package is installed and run on the terminal. Test the application package, and the obtained permission test data includes the permissions used during the test (i.e., the second usage permission set). It should be noted that the set used here does not constitute a limitation on the number of permissions, and the set may include multiple permissions or one permission.
[0075] Here, static code analysis and testing of the application package are used to obtain the permissions applied for by the application and the permissions used by the application for subsequent permission comparison.
[0076] In an optional implementation manner, determining the permission usage risk result of the application based on the permission analysis data and the permission test data includes:
[0077] Based on the first usage permission set and the second usage permission set, acquiring a third usage permission set of the application;
[0078] The permission usage risk result is determined based on the third usage permission set and the application permission set.
[0079] The third usage permission set can be obtained by taking the union of the first usage permission set and the second usage permission set. For example, the first usage permission set includes permissions A, B, C, D, and E, and the second usage permission set includes permissions C, D, E, F, G, and H, then the third usage permission set includes permissions A, B, C, D, E, F, G, and H. By taking the union of the first usage permission set and the second usage permission set, more complete usage permission data can be obtained to obtain more reliable analysis results.
[0080] In an optional implementation manner, the determining the permission usage risk result based on the third usage permission set and the application permission set includes:
[0081] Based on the third set of usage permissions and the set of application permissions, determining whether there is a risk permission, wherein the risk permission includes applying for unused permissions and using unapplied permissions;
[0082] When the risk authority exists, determining the authority usage risk result includes the existence of risk.
[0083] As an example in the above implementation, assuming that the third usage permission set includes permissions A, B, C, D, E, F, G, H, and the application permission set includes permissions B, C, F, G, I, J, K, then there are risk permissions A, D, E, H, I, J, K. Among them, the applied for unused permissions include permissions I, J, K, and the used unapplied permissions include permissions A, D, E, H. That is, when the permissions in the third usage permission set are not included in the application permission set, it is determined that there is use of unapplied permissions; when the permissions in the application permission set are not included in the third usage permission set, it is determined that there is application for unused permissions. Therefore, when the third usage permission set and the application permission set are not completely consistent, it is determined that there are risk permissions.
[0084] When it is determined by comparing the third usage permission set with the application permission set that there are applied-for but unused permissions and / or used permissions that are not applied for, it is determined that there are risky permissions in the permission usage risk result.
[0085] In an optional implementation manner, when the risk authority exists, the method further includes:
[0086] Obtain the amount of risk authority;
[0087] Obtaining the number of privacy permissions included in the risk permissions;
[0088] A risk level of the application is determined based on the number of risk permissions and the number of privacy permissions.
[0089] In order to provide more information about the risks of using application permissions, the risk level of the application can also be determined. Specifically, when there are risk permissions, the number of risk permissions is obtained, that is, the total number of applied for unused permissions and used unapplied permissions. And it is also necessary to obtain the number of privacy permissions in the risk permissions, where privacy permissions can be determined according to the default settings (for example, positioning, phone book, etc.), or can be customized by the detection personnel. When the number of risk permissions is large and the privacy permissions contained therein are also large, the risk level of the application is determined to be high; when the number of risk permissions is large but does not include privacy permissions, the risk level of the application is determined to be medium; when the number of risk permissions is small and does not include privacy permissions, the risk level of the application is determined to be low.
[0090] It should be noted that this is only an example of determining the risk level. The specific method of determining the risk level can be set by the inspection personnel according to the specific situation of the application, and will not be repeated here.
[0091] In an optional embodiment, the method further comprises:
[0092] The permission usage risk result is displayed on a display interface.
[0093] After determining the risk result of the permission usage of the application, the permission usage risk result can be displayed on the webpage so that the tester can easily obtain the test result about the permission usage of the application. The display method can be set by the tester himself or by the default method.
[0094] Of course, when displaying the permission usage risk results, the risk level of the application can also be displayed at the same time so that the inspector can determine the specific measures that need to be taken.
[0095] In an optional implementation manner, the testing the application package includes:
[0096] Monkey testing is performed on the application package.
[0097] Monkey testing refers to testing the system under test with irregular instructions or operations, which can achieve random repeated testing of software. Therefore, using Monkey testing can achieve testing of application packages in simulated real application scenarios to obtain more accurate test results.
[0098] The following describes a specific embodiment of the present disclosure in conjunction with a specific application scenario. Figure 2 As shown, this embodiment includes the following steps:
[0099] Step 201, installing the application package of the application on the Jenkins platform.
[0100] Step 202, after the program package is installed on the Jenkins platform, a Monkey test is performed on the application package to obtain permission test data of the application. For example, the permissions used by the application during the test include permissions A, B, C, D, and E.
[0101] Step 203: Perform static code analysis on the application package.
[0102] Step 204, obtaining permission analysis data of static code analysis, for example, the usage permissions obtained by analyzing the source code of the program package include permissions C, D, E, F, G, H, and the application permissions include permissions B, C, F, G, I, J, K.
[0103] Step 205, merge the usage permissions obtained through static code analysis and Monkey testing to obtain total usage permissions: permissions A, B, C, D, E, F, G, H.
[0104] Step 206, compare the total usage permissions with the applied permissions, where the total usage permissions are: permissions A, B, C, D, E, F, G, H, and the applied permissions are: permissions B, C, F, G, I, J, K. Therefore, the permissions used but not applied for are: permissions A, D, E, H, and the permissions applied for but not used are: permissions I, J, K, and then the risk permissions A, D, E, H, I, J, K are obtained.
[0105] Step 207 , determining that the risk permissions do not include privacy permissions, and determining that the risk level of the application is medium.
[0106] Step 208: Display on the display interface that the application has risks during use and the risk level is medium.
[0107] The present disclosure also provides an information processing device, such as Figure 3 As shown, the device comprises:
[0108] The analysis module 301 is configured to perform static code analysis on an application package of an application to obtain permission analysis data of the application;
[0109] The testing module 302 is configured to test the application package and obtain permission test data of the application;
[0110] The determination module 303 is configured to determine the permission usage risk result of the application based on the permission analysis data and the permission test data.
[0111] In an optional implementation manner, the permission analysis data includes an application permission set and a first usage permission set of the application, and the permission test data includes a second usage permission set of the application.
[0112] In an optional implementation manner, the determining module 303 is further configured to:
[0113] Based on the first usage permission set and the second usage permission set, acquiring a third usage permission set of the application;
[0114] The permission usage risk result is determined based on the third usage permission set and the application permission set.
[0115] In an optional implementation manner, the determining module 303 is further configured to:
[0116] Based on the third set of usage permissions and the set of application permissions, determining whether there is a risk permission, wherein the risk permission includes applying for unused permissions and using unapplied permissions;
[0117] When the risk authority exists, determining the authority usage risk result includes the existence of risk.
[0118] In an optional implementation manner, when the risk authority exists, the determination module 303 is further configured to:
[0119] Obtain the amount of risk authority;
[0120] Obtaining the number of privacy permissions included in the risk permissions;
[0121] A risk level of the application is determined based on the number of risk permissions and the number of privacy permissions.
[0122] In an optional embodiment, the device further comprises:
[0123] The display module is configured to display the permission usage risk result on a display interface.
[0124] In an optional implementation manner, the testing module 302 is further configured to:
[0125] Monkey testing is performed on the application package.
[0126] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0127] The present disclosure provides an information processing method and device, which performs static code analysis on the application package of the application to obtain the permission analysis data of the application, and tests the application package to obtain the permission test data of the application. The permission analysis data and the permission test data are compared to determine the permission usage risk results of the application. Here, the static code analysis and testing of the application package are performed automatically, which can save labor costs and improve accuracy. Through this method, the permission usage risk of the application can be automatically determined, which solves the problem that a single means of identifying the permission usage risk of the application is not accurate enough.
[0128] Figure 4 is a block diagram of an information processing device 400 according to an exemplary embodiment.
[0129] Reference Figure 4 , the device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .
[0130] The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.
[0131] The memory 404 is configured to store various types of data to support operations on the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0132] The power component 406 provides power to the various components of the device 400. The power component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 400.
[0133] The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0134] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the device 400 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.
[0135] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0136] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the device 400. For example, the sensor assembly 414 can detect the open / closed state of the device 400, the relative positioning of components, such as the display and keypad of the device 400, and the sensor assembly 414 can also detect the position change of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration / deceleration of the device 400, and the temperature change of the device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0137] The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and other devices. The device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0138] In an exemplary embodiment, the apparatus 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.
[0139] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the instructions can be executed by a processor 420 of the device 400 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0140] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute an information processing method, the method comprising: performing static code analysis on an application package of an application to obtain permission analysis data of the application; testing the application package to obtain permission test data of the application; and determining a permission usage risk result of the application based on the permission analysis data and the permission test data.
[0141] Figure 5 is a block diagram of an information processing device 500 according to an exemplary embodiment. For example, the device 500 may be provided as a server. Figure 5 , the device 500 includes a processing component 522, which further includes one or more processors, and a memory resource represented by a memory 532, for storing instructions executable by the processing component 522, such as an application. The application stored in the memory 532 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 522 is configured to execute instructions to perform the above method: perform static code analysis on an application package of an application to obtain permission analysis data of the application; perform testing on the application package to obtain permission test data of the application; and determine the permission use risk result of the application based on the permission analysis data and the permission test data.
[0142] The device 500 may also include a power supply component 526 configured to perform power management of the device 500, a wired or wireless network interface 550 configured to connect the device 500 to a network, and an input / output (I / O) interface 558. The device 500 may operate based on an operating system stored in the memory 532, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.
[0143] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0144] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. An information processing method, characterized in that: The method comprises: Performing static code analysis on an application package of an application to obtain permission analysis data of the application; Testing the application package to obtain permission test data of the application; Determining a permission usage risk result of the application based on the permission analysis data and the permission test data; The permission analysis data includes the application permission set and the first usage permission set of the application, and the permission test data includes the second usage permission set of the application; The determining the permission usage risk result of the application based on the permission analysis data and the permission test data includes: Based on the first usage permission set and the second usage permission set, acquiring a third usage permission set of the application, wherein the third usage permission is obtained by taking the union of the first usage permission set and the second usage permission set; Determining the permission usage risk result based on the third usage permission set and the application permission set; The determining the permission usage risk result based on the third usage permission set and the application permission set includes: Based on the third set of usage permissions and the set of application permissions, determining whether there is a risk permission, wherein the risk permission includes applying for unused permissions and using unapplied permissions; When the risk authority exists, determining the authority usage risk result includes the existence of risk.
2. The method according to claim 1, characterized in that When the risk authority exists, the method further includes: Obtain the amount of risk authority; Obtaining the number of privacy permissions included in the risk permissions; A risk level of the application is determined based on the number of risk permissions and the number of privacy permissions.
3. The method according to claim 1, characterized in that The method further comprises: The permission usage risk result is displayed on a display interface.
4. The method according to claim 1, characterized in that The testing of the application package includes: Monkey testing is performed on the application package.
5. An information processing device, characterized in that: The device comprises: An analysis module, configured to perform static code analysis on an application package of an application to obtain permission analysis data of the application; A testing module is configured to test the application package and obtain permission test data of the application; a determination module, configured to determine a permission usage risk result of the application based on the permission analysis data and the permission test data; The permission analysis data includes the application permission set and the first usage permission set of the application, and the permission test data includes the second usage permission set of the application; The determining module is further configured to: Based on the first usage permission set and the second usage permission set, acquiring a third usage permission set of the application, wherein the third usage permission is obtained by taking the union of the first usage permission set and the second usage permission set; Determining the permission usage risk result based on the third usage permission set and the application permission set; The determining module is further configured to: Based on the third set of usage permissions and the set of application permissions, determining whether there is a risk permission, wherein the risk permission includes applying for unused permissions and using unapplied permissions; When the risk authority exists, determining the authority usage risk result includes the existence of risk.
6. The device according to claim 5, characterized in that When the risk authority exists, the determination module is further configured to: Obtain the amount of risk authority; Obtaining the number of privacy permissions included in the risk permissions; A risk level of the application is determined based on the number of risk permissions and the number of privacy permissions.
7. The device according to claim 5, characterized in that The device also includes: The display module is configured to display the permission usage risk result on a display interface.
8. The device according to claim 5, characterized in that The test module is also configured to: Monkey testing is performed on the application package.
9. An information processing device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the following steps when executing the executable instructions: Performing static code analysis on an application package of an application to obtain permission analysis data of the application; Testing the application package to obtain permission test data of the application; Determining a permission usage risk result of the application based on the permission analysis data and the permission test data; The permission analysis data includes the application permission set and the first usage permission set of the application, and the permission test data includes the second usage permission set of the application; The determining the permission usage risk result of the application based on the permission analysis data and the permission test data includes: Based on the first usage permission set and the second usage permission set, acquiring a third usage permission set of the application, wherein the third usage permission is obtained by taking the union of the first usage permission set and the second usage permission set; Determining the permission usage risk result based on the third usage permission set and the application permission set; The determining the permission usage risk result based on the third usage permission set and the application permission set includes: Based on the third set of usage permissions and the set of application permissions, determining whether there is a risk permission, wherein the risk permission includes applying for unused permissions and using unapplied permissions; When the risk authority exists, determining the authority usage risk result includes the existence of risk.
10. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device, enables the device to perform an information processing method, the method comprising: Performing static code analysis on an application package of an application to obtain permission analysis data of the application; Testing the application package to obtain permission test data of the application; Determining a permission usage risk result of the application based on the permission analysis data and the permission test data; The permission analysis data includes the application permission set and the first usage permission set of the application, and the permission test data includes the second usage permission set of the application; The determining the permission usage risk result of the application based on the permission analysis data and the permission test data includes: Based on the first usage permission set and the second usage permission set, acquiring a third usage permission set of the application, wherein the third usage permission is obtained by taking the union of the first usage permission set and the second usage permission set; Determining the permission usage risk result based on the third usage permission set and the application permission set; The determining the permission usage risk result based on the third usage permission set and the application permission set includes: Based on the third set of usage permissions and the set of application permissions, determining whether there is a risk permission, wherein the risk permission includes applying for unused permissions and using unapplied permissions; When the risk authority exists, determining the authority usage risk result includes the existence of risk.
Citation Information
Patent Citations
Page authority testing method and device, computer device and storage medium
CN110096431A
Information processing method and device, test terminal, test platform and storage medium
CN110535865A
Permission testing method and device for application program, and terminal equipment
CN111639021A
Closed-loop system incorporating risk analytic algorithm
US20190188797A1
