Multi-application collusion detection method and device, computer equipment and medium
By crawling the application market, parsing AndroidManifest.xml and Classes.dex files, building Source and Sink libraries, performing taint analysis and data flow linking, the problem of data flow path tracking in multi-application collusion detection in the existing technology is solved. The complete problem achieves effective tracking of sensitive data flows and protection of user privacy.
Patent Information
- Application Number
- CN202410828688.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-29
AI Technical Summary
In the existing technology, detection methods based on chain collusion are difficult to track the data flow path when identifying collusion among multiple applications, resulting in potential security threats being ignored.
Obtain the application set by crawling the application market, parse the AndroidManifest.xml file to obtain entry point information, obtain the Classes.dex file to build the Source library and Sink library, perform taint analysis, establish a database and associate data flows, and realize the integration between multiple applications. Data flow linking and collusion detection.
Effectively track the transmission path of sensitive data among multiple applications, identify potential collusive applications, prevent data theft, and protect user privacy.
Smart Images

Figure CN118869178A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network privacy protection, and in particular to a multi-application collusion detection method, device, computer equipment and medium. Background Art
[0002] In today's society, smartphones have become an indispensable tool in our daily lives. As smartphone functionality continues to expand, the types of sensitive information users store on their smartphones are also increasing, including location information, contact data, pictures, text messages, etc. Currently, most mobile phone manufacturers focus their detection on the applications themselves, ignoring the potential threats to user privacy and security through collusion between applications. Collaboration between applications to achieve some hidden purpose is called application collusion. Developers can inadvertently (or for malicious purposes) use this strategy to disperse sensitive behaviors across different applications, making a single application appear benign during the detection process.
[0003] Collusion detection methods mainly focus on taint analysis technology, which is a method used to detect and analyze the flow of sensitive data within application programs. Such sensitive data can be user contact information, device serial number information, location information, etc. Taint analysis technology focuses on the flow path of data, that is, the path from the data input point to the data output point, and detects situations in which data may be modified or leaked during this process.
[0004] Although researchers have made some progress in detecting application collusion, existing research still has some limitations. For example, existing collusion detection mainly targets situations involving two applications, while ignoring situations that may involve three or more applications. When identifying chain-based collusion, current detection methods face the dilemma of difficulty in tracking data after it flows from the application in the chain to the outside. The incomplete tracking of the data flow path of the application in the chain may miss some potential security threats caused by application collusion and data aggregation. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a multi-application collusion detection method to solve the technical problem that the chain collusion detection method in the prior art has incomplete data flow path tracking of the applications in the chain. The method includes:
[0006] By crawling the application market, an application set including application categories and installation source files of various applications is obtained;
[0007] Parse the AndroidManifest.xml manifest file of each application in the application set to extract entry point related information;
[0008] Obtain the Classes.dex file of each application, obtain the entry point and exit point of each application based on the Classes.dex file, and build the Source library and the Sink library according to the entry point and the exit point;
[0009] Perform taint analysis based on the Source library and the Sink library to obtain the application's method of obtaining sensitive information and method of leaking sensitive information;
[0010] Building a database based on the entry point related information, the method for obtaining sensitive information, and the method for leaking sensitive information;
[0011] Associating the data in the database to link data flows between multiple applications;
[0012] Based on the data flow link, multi-application collusion detection is performed.
[0013] The embodiment of the present invention also provides a multi-application collusion detection device to solve the technical problem that the detection method based on chain collusion in the prior art has incomplete data flow path tracking of the applications in the chain, and aims to track the sensitive data flow when it is transmitted between multiple applications, prevent the applications from stealing user sensitive data through collusion, and effectively protect the user's privacy information. The device includes:
[0014] An application set acquisition module is used to acquire an application set including application categories and installation source files of various application programs by crawling the application market;
[0015] An entry point related information extraction module is used to parse the AndroidManifest.xml manifest file of each application in the application set to extract entry point related information;
[0016] Source library and Sink library construction module, used to obtain the Classes.dex file of each application, obtain the entry point and exit point of each application based on the Classes.dex file, and build the Source library and Sink library according to the entry point and exit point;
[0017] A taint analysis module, used to perform taint analysis based on the Source library and the Sink library to obtain a method for obtaining sensitive information and a method for leaking sensitive information of an application program;
[0018] A database construction module, used to construct a database based on the entry point related information, the method for obtaining sensitive information and the method for leaking sensitive information;
[0019] The association module is used to associate data in the database and link data flows between multiple applications;
[0020] A detection module is used to perform multi-application collusion detection based on the data flow link.
[0021] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned multi-application collusion detection methods when executing the computer program, so as to solve the technical problem of incomplete data flow path tracking of applications in the chain in the prior art based on chain collusion detection methods.
[0022] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program for executing any of the above-mentioned multi-application collusion detection methods, so as to solve the technical problem of incomplete data flow path tracking of applications in the chain in the prior art based on chain collusion detection methods.
[0023] Compared with the prior art, the beneficial effects achieved by at least one of the above technical solutions adopted in the embodiments of this specification include at least: obtaining an application set including application categories and various application installation source files by crawling the application market; parsing the AndroidManifest.xml manifest file of each application in the application set to extract entry point related information; obtaining the Classes.dex file of each application, obtaining the entry point and exit point of each application based on the Classes.dex file, and building the Source library and the Sink library according to the entry point and the exit point; performing taint analysis based on the Source library and the Sink library to obtain the application's method for obtaining sensitive information and the method for leaking sensitive information; building a database based on the entry point related information, the method for obtaining sensitive information and the method for leaking sensitive information; associating the data in the database to link the data flow between multiple applications; and performing multi-application collusion detection based on the data flow link. This application stores the data acquisition results in the database table, and can obtain sensitive data channels between multiple applications, as well as the data transmission methods and entry and exit point information used by them; any application that has a sensitive data channel between two or more applications will be marked as a potential collusion application. Therefore, by tracking the data flow of sensitive information indirectly obtained by applications in the chain (originating from the application at the head of the chain) until the leakage point, it is possible to track the sensitive data flow when it is transmitted between multiple applications, prevent applications from stealing user sensitive data through collusion, and effectively protect user privacy information. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 is a flow chart of a multi-application collusion detection method provided by an embodiment of the present invention;
[0026] Figure 2 is a schematic diagram of an application set provided by an embodiment of the present invention;
[0027] Figure 3 is a schematic diagram of application collusion provided by an embodiment of the present invention;
[0028] Figure 4 is a schematic diagram of multi-application collusion provided by an embodiment of the present invention;
[0029] Figure 5 is a framework diagram of a multi-application collusion detection framework method provided by an embodiment of the present invention;
[0030] Figure 6 is a structural block diagram of a computer device provided by an embodiment of the present invention;
[0031] Figure 7 It is a structural block diagram of a multi-application collusion detection device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0032] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0033] The following describes the implementation methods of the present application through specific specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and the features in the embodiments can be combined with each other in the absence of conflict. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.
[0034] In an embodiment of the present invention, a multi-application collusion detection method is provided, such as Figure 1 As shown, the method includes:
[0035] Step S101, crawling the application market to obtain an application set including application categories and installation source files of various application programs;
[0036] Step S102, parsing the AndroidManifest.xml manifest file of each application in the application set to extract entry point related information;
[0037] Step S103: Obtain the Classes.dex file of each application, obtain the entry point and exit point of each application based on the Classes.dex file, and build a Source library and a Sink library according to the entry point and the exit point;
[0038] Step S104: Perform taint analysis based on the Source library and the Sink library to obtain a method for obtaining sensitive information and a method for leaking sensitive information of the application program;
[0039] Step S105, constructing a database based on the entry point related information, the method for obtaining sensitive information and the method for leaking sensitive information;
[0040] Step S106, associating the data in the database to link data flows between multiple applications;
[0041] Step S107: Perform multi-application collusion detection based on the data flow link.
[0042] In this embodiment, by crawling relevant resources in the application market, the application set constructed provides basic data for detecting collusion between multiple applications. The content of the application set is as follows: Figure 2 As shown in the figure, it can be seen that the application set mainly includes the categories of application programs and the number of applications in each category.
[0043] In practice, collaboration between applications to achieve some hidden purpose is called application collusion, see Figure 3 , assuming that collusion occurs between the location and SMS applications. When the location application obtains location data, it will send this data to the SMS application that has no right to obtain location information. This process involves application collusion, which poses a problem for privacy protection.
[0044] There are three scenarios for multi-application collusion, see Figure 4 , the three scenarios specifically include:
[0045] Many-to-1 application collusion: Application A and Application B directly obtain different sensitive data and then leak their data to Application C.
[0046] 1-to-many application collusion: Application A directly obtains sensitive data and then leaks this data to applications B and C.
[0047] Chain collusion: After the first application in the chain obtains sensitive data, it first transfers the data to the application in the chain. Then the application in the chain transfers the processed sensitive data to the application at the end of the chain, forming a data transmission chain.
[0048] The method of the present application is based on chain collusion, tracking the data flow of sensitive information indirectly obtained by applications in the chain (from the chain head application) until it is leaked; the leakage point is also an exit point; we put the information involved in the exit point into the IAC (Inter-Application Communication) matching algorithm for iterative processing to achieve collusion detection based on potential chains.
[0049] In this embodiment, the data acquisition results are stored in the database table, and the sensitive data channels between multiple applications, as well as the data transmission methods and entry and exit point information they use, can be obtained; any application that has a sensitive data channel between two or more applications will be marked as a potential collusion application. Therefore, by tracking the data flow of sensitive information indirectly obtained by applications in the chain (from the chain head application) until the leakage point, it is possible to track the sensitive data flow when it is transmitted between multiple applications, prevent applications from stealing user sensitive data through collusion, and effectively protect user privacy information.
[0050] In one embodiment, parsing the AndroidManifest.xml manifest file of each application in the application set to extract entry point related information includes:
[0051] Identify the Activity component, Broadcast Receive component, Service component, and ContentProvider component in the AndroidManifest.xml manifest file of each application, and extract the value of the Export attribute in each of the components;
[0052] Based on the value of the Export attribute, information related to the entry point of each application is extracted.
[0053] In specific implementation, the AndroidManifest.xml manifest file of the application is the key configuration file of the application, which defines the package name of the application, permission requirements, Intent-filter, target SDK version and hardware and software requirements. This file is crucial for the Android operating system because it tells the operating system how to manage applications and how their components work together, ensuring that the application and its interactions with other applications are effectively handled. In order to reveal possible collusion between applications, it is necessary to determine which applications are capable of receiving sensitive information from other applications. This embodiment extracts the value of the Export attribute (True / False) from the Activity, Broadcast Receive and other components of the AndroidManifest.xml file. This value determines whether this component can be called by other applications. The Intent-filter in the component determines what types of Intents this component can receive.
[0054] In the Android application architecture, the core components include four types of components. Activity is responsible for providing a user interface for interaction. Each Activity corresponds to a single interface, allowing users to operate in real time. Service performs tasks in the background, such as file transfer or data processing. Even if the application is switched, the Service can still operate. Unlike Activity, it does not provide a user interface. Broadcast Receivers are mainly used to monitor system broadcasts, such as changes in charging status or network connections, and can filter and respond to broadcasts. ContentProvider provides a safe and consistent data sharing interface, allowing data to be shared across applications.
[0055] In one embodiment, the entry point related information includes permissions, entry class (Entryclass) and intent filter (Intent-filter).
[0056] In specific implementation, regarding step S103, each acquired application is decompiled, and each application will generate one or more Classes.dex files. Classes.dex contains all Java classes, methods and other information of the application. The Dalvik virtual machine can run the Android application by parsing and executing this file.
[0057] In one embodiment, the construction of the Source library and the Sink library according to the entry point and the exit point includes:
[0058] For the exit point, the code containing sensitive keywords is predefined as Source, and the code that can achieve communication between components is predefined as Sink;
[0059] For the entry point, an operation that can receive information sent by other components is predefined as a Source, and an operation that can send sensitive data out of the device is predefined as a Sink;
[0060] Based on the predefined information of Source and Sink, the Source library and the Sink library are constructed.
[0061] In specific implementation, the exit point and entry point have different requirements for the definition of Source and Sink. For the exit point, the code containing sensitive keywords such as "Location", "Telephony", "Bluetooth" is defined as Source. The code that enables communication between components, such as statements containing "Intent" and "Startactivity" fields, is defined as Sink. For the entry point, Source is defined as an operation that can receive information sent by other components, such as containing fields such as "GetResultData". Sink is defined as an operation that can send sensitive data out of the device, such as through "Internet" and "SMS".
[0062] In one embodiment, the performing taint analysis based on the Source library and the Sink library includes:
[0063] Based on the Source library and the Sink library, context-, field-, object-, and flow-sensitive taint analysis is performed on the data stream carrying sensitive information.
[0064] Furthermore, static analysis is performed to determine the properties of the ICC channel (Inter-Component Communication) and the intent of the ICC exit point.
[0065] There are differences in the definitions of Source and Sink in the two detection stages of entry point and exit point for collusion applications, which require additional screening. This embodiment constructs the Source library and the Sink library according to the needs of each stage, so as to accurately analyze the taint of the application and determine the leakage path of sensitive data. In addition, key attributes such as context sensitivity and taint propagation path length are determined, which have a direct impact on the effectiveness of accurately tracking data flows. A key point of collusion detection is to detect the communication channels between applications as comprehensively as possible, which is the practical basis for application collusion. This embodiment extracts information related to leakage such as exit point, entry point, and data type transferred from the obtained Classes.dex file. This information is closely related to the communication method based on Intent, which is considered to be a common means of collusion applications.
[0066] In one embodiment, the multi-application collusion detection based on the data stream link includes:
[0067] Based on the data flow link, a sensitive data transmission channel is obtained, and an entry point of an application in a chain of the sensitive data transmission channel receiving sensitive data of an application at the head of the chain is determined;
[0068] If the application in the chain receives sensitive data, processes it and then transmits the sensitive data, the data flow path is leaked as an entry point;
[0069] If the entry point is the same as the sensitive data inflow point, obtaining the entry point leakage in the application in the chain;
[0070] Obtaining a sensitive data leakage point based on the entry point leakage;
[0071] Matching and linking the exit point of the application in the chain with the corresponding sensitive data leakage point;
[0072] The IAC-related information associated with the matched linked exit points is iterated using two application collusion matching methods to detect potential collusion applications that meet the receiving requirements.
[0073] In the specific implementation, a database containing 46 tables is constructed to store the attribute data obtained from step S102 to step S104 and meet a large number of complex query requirements (in the data flow linking method, inner joins and left joins of tables); the data in each table is linked to realize the linking of data flows in different applications. The specific algorithm is as follows:
[0074]
[0075]
[0076] Table 1 Variable description
[0077]
[0078] The above specific process can be explained as follows: First, by checking the existing s c ,, we can determine a i Receive a h The sensitive data entry point e; secondly, if A i The sensitive data is received and then transmitted after processing. This data flow path is called e l ; Then, when e=e s When i e in l , and obtain e l e in k ; Next, the a obtained from the source code analysis i The t in the equation and the corresponding e k Finally, the IAC-related information such as Action, Category, Type, etc. associated with t is put into the matching method based on the collusion of two applications for iteration to detect potential collusion applications that meet the receiving requirements.
[0079] The method of the above embodiment can be summarized into 4 major steps, refer to Figure 5 ,The first step is to build the set of applications to be detected by crawling the application market (building the application set), the second step is metadata extraction (obtaining the manifest file, obtaining the intent filter and related information), the third step is source code analysis (obtaining the Classes.dex file, performing static analysis and taint analysis), and the fourth step is data processing (data storage and collusion detection).
[0080] The final collusion application detection effect of this application is shown in Table 2. The results show that the method of this application can detect potential collusion behaviors between different applications.
[0081] Table 2 Multi-application collusion detection results
[0082]
[0083] In this embodiment, a computer device is provided, such as Figure 6 As shown, it includes a memory 601, a processor 602, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, any of the above-mentioned multi-application collusion detection methods is implemented.
[0084] Specifically, the computer device may be a computer terminal, a server or a similar computing device.
[0085] In this embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program for executing any of the above-mentioned multi-application collusion detection methods.
[0086] Specifically, computer-readable storage media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable storage media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0087] Based on the same inventive concept, a multi-application collusion detection device is also provided in an embodiment of the present invention, as described in the following embodiment. Since the principle of solving the problem by the multi-application collusion detection device is similar to that of the multi-application collusion detection method, the implementation of the multi-application collusion detection device can refer to the implementation of the multi-application collusion detection method, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0088] Figure 7 is a structural block diagram of a multi-application collusion detection device according to an embodiment of the present invention. Figure 7 As shown, it includes: an application set acquisition module 701, an entry point related information extraction module 702, a Source library and a Sink library construction module 703, a taint analysis module 704, a database construction module 705, an association module 706 and a detection module 707. The structure is described below.
[0089] The application set acquisition module 701 is used to acquire an application set including application categories and installation source files of various application programs by crawling the application market;
[0090] An entry point related information extraction module 702 is used to parse the AndroidManifest.xml manifest file of each application in the application set to extract entry point related information;
[0091] Source library and Sink library construction module 703, used to obtain the Classes.dex file of each application, obtain the entry point and exit point of each application based on the Classes.dex file, and construct the Source library and Sink library according to the entry point and exit point;
[0092] The taint analysis module 704 is used to perform taint analysis based on the Source library and the Sink library to obtain the sensitive information acquisition method and sensitive information leakage method of the application program;
[0093] A database construction module 705, configured to construct a database based on the entry point related information, the method for obtaining sensitive information, and the method for leaking sensitive information;
[0094] An association module 706, used to associate the data in the database and link the data flows between multiple applications;
[0095] The detection module 707 is used to perform multi-application collusion detection based on the data flow link.
[0096] In one embodiment, the entry point related information extraction module 702 is further used to:
[0097] Identify the Activity component, Broadcast Receive component, Service component, and ContentProvider component in the AndroidManifest.xml manifest file of each application, and extract the value of the Export attribute in each of the components;
[0098] Based on the value of the Export attribute, information related to the entry point of each application is extracted.
[0099] In one embodiment, the entry point related information extraction module 702 is further used to:
[0100] The entry point related information includes permissions, entry classes and intent filters.
[0101] In one embodiment, the Source library and the Sink library construction module 703 are further used to:
[0102] For the exit point, the code containing sensitive keywords is predefined as Source, and the code that can achieve communication between components is predefined as Sink;
[0103] For the entry point, an operation that can receive information sent by other components is predefined as a Source, and an operation that can send sensitive data out of the device is predefined as a Sink;
[0104] Based on the predefined information of Source and Sink, the Source library and the Sink library are constructed.
[0105] In one embodiment, the stain analysis module 704 is further configured to:
[0106] Based on the Source library and the Sink library, context-, field-, object-, and flow-sensitive taint analysis is performed on the data stream carrying sensitive information.
[0107] In one embodiment, the detection module 707 is further configured to:
[0108] Based on the data flow link, a sensitive data transmission channel is obtained, and an entry point of an application in a chain of the sensitive data transmission channel receiving sensitive data of an application at the head of the chain is determined;
[0109] If the application in the chain receives sensitive data, processes it and then transmits the sensitive data, the data flow path is leaked as an entry point;
[0110] If the entry point is the same as the sensitive data inflow point, obtaining the entry point leakage in the application in the chain;
[0111] Obtaining a sensitive data leakage point based on the entry point leakage;
[0112] Matching and linking the exit point of the application in the chain with the corresponding sensitive data leakage point;
[0113] The IAC-related information associated with the matched linked exit points is iterated using two application collusion matching methods to detect potential collusion applications that meet the receiving requirements.
[0114] The embodiment of the present invention achieves the following technical effects: by crawling the application market, an application set including application categories and various application installation source files is obtained; the AndroidManifest.xml manifest file of each application in the application set is parsed to extract entry point related information; the Classes.dex file of each application is obtained, and the entry point and exit point of each application are obtained based on the Classes.dex file, and the Source library and the Sink library are constructed according to the entry point and the exit point; taint analysis is performed based on the Source library and the Sink library to obtain the application's method of obtaining sensitive information and the method of leaking sensitive information; a database is constructed based on the entry point related information, the method of obtaining sensitive information and the method of leaking sensitive information; the data in the database is associated to link the data flow between multiple applications; based on the data flow link, multi-application collusion detection is performed. The present application stores the data acquisition results in the database table, and can obtain sensitive data channels between multiple applications, as well as the data transmission methods and entry and exit point information used by them; any application that has a sensitive data channel between two or more applications will be marked as a potential collusion application. Therefore, by tracking the data flow of sensitive information indirectly obtained by applications in the chain (originating from the application at the head of the chain) until the leakage point, it is possible to track the sensitive data flow when it is transmitted between multiple applications, prevent applications from stealing user sensitive data through collusion, and effectively protect user privacy information.
[0115] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present invention are not limited to any specific combination of hardware and software.
[0116] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for detecting collusion among multiple applications, characterized in that: include: By crawling the application market, an application set including application categories and installation source files of various applications is obtained; Parse the AndroidManifest.xml manifest file of each application in the application set to extract entry point related information; Obtain the Classes.dex file of each application, obtain the entry point and exit point of each application based on the Classes.dex file, and build the Source library and Sink library according to the entry point and exit point; Perform taint analysis based on the Source library and the Sink library to obtain the application's method of obtaining sensitive information and method of leaking sensitive information; Building a database based on the entry point related information, the method for obtaining sensitive information, and the method for leaking sensitive information; Associating the data in the database to link data flows between multiple applications; Based on the data flow link, multi-application collusion detection is performed.
2. The multi-application collusion detection method according to claim 1, characterized in that: The parsing of the AndroidManifest.xml manifest file of each application in the application set to extract entry point related information includes: Identify the Activity component, Broadcast Receive component, Service component, and ContentProvider component in the AndroidManifest.xml manifest file of each application, and extract the value of the Export attribute in each of the components; Based on the value of the Export attribute, information related to the entry point of each application is extracted.
3. The multi-application collusion detection method according to claim 2, characterized in that: The entry point related information includes permissions, entry classes and intent filters.
4. The multi-application collusion detection method according to claim 1, characterized in that: The Source library and the Sink library are constructed according to the entry point and the exit point, including: For the exit point, the code containing sensitive keywords is predefined as Source, and the code that can achieve communication between components is predefined as Sink; For the entry point, an operation that can receive information sent by other components is predefined as a Source, and an operation that can send sensitive data out of the device is predefined as a Sink; Based on the predefined information of Source and Sink, the Source library and the Sink library are constructed.
5. The multi-application collusion detection method according to claim 1, characterized in that: The performing of taint analysis based on the Source library and the Sink library includes: Based on the Source library and the Sink library, context-, field-, object-, and flow-sensitive taint analysis is performed on the data stream carrying sensitive information.
6. The multi-application collusion detection method according to claim 1, characterized in that: The performing multi-application collusion detection based on the data stream link includes: Based on the data flow link, a sensitive data transmission channel is obtained, and an entry point of an application in a chain of the sensitive data transmission channel receiving sensitive data of an application at the head of the chain is determined; If the application in the chain receives sensitive data, processes it and then transmits the sensitive data, the data flow path is leaked as an entry point; If the entry point is the same as the sensitive data inflow point, obtaining the entry point leakage in the application in the chain; Obtaining a sensitive data leakage point based on the entry point leakage; Matching and linking the exit point of the application in the chain with the corresponding sensitive data leakage point; The IAC-related information associated with the matched linked exit points is iterated using two application collusion matching methods to detect potential collusion applications that meet the receiving requirements.
7. A multi-application collusion detection device, characterized in that: include: An application set acquisition module is used to acquire an application set including application categories and installation source files of various application programs by crawling the application market; An entry point related information extraction module is used to parse the AndroidManifest.xml manifest file of each application in the application set to extract entry point related information; Source library and Sink library construction module, used to obtain the Classes.dex file of each application, obtain the entry point and exit point of each application based on the Classes.dex file, and build the Source library and Sink library according to the entry point and exit point; A taint analysis module, used to perform taint analysis based on the Source library and the Sink library to obtain a method for obtaining sensitive information and a method for leaking sensitive information of an application program; A database construction module, used to construct a database based on the entry point related information, the method for obtaining sensitive information and the method for leaking sensitive information; An association module, used to associate the data in the database and link the data flows between multiple applications; A detection module is used to perform multi-application collusion detection based on the data flow link.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the multi-application collusion detection method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the multi-application collusion detection method according to any one of claims 1 to 6.
