Application process detection processing method, system, device and computer equipment
By detecting the call characteristics of sensitive interfaces in the application process and comparing them with benchmark characteristics, insecure operations are blocked, solving the problem of malicious processes being undetectable and improving application security.
Patent Information
- Application Number
- CN202211271612.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-18
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-10-18
AI Technical Summary
In existing technologies, malicious processes cannot be effectively detected by blacklists by injecting code, which affects the security of application operation.
By detecting the call operations of sensitive interfaces during the execution of the target application's process, the interface call characteristics are obtained and compared with the baseline characteristics. If the operation does not belong to the type of safe call, the process's call to the sensitive interface is blocked.
It improves the accuracy of application process detection, ensures the security of application operation, and prevents malicious behavior.
Smart Images

Figure CN117951682B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to an application process detection and processing method, system, device, computer equipment, storage medium, and computer program product. Background Technology
[0002] With the development of computer technology, various computer applications have become widely used, affecting all aspects of life, work, and entertainment. When applications run on computer devices, they often implement their functions through execution processes. Malicious processes can steal files, privacy information, account details, and other data, compromising the security of application operation.
[0003] Currently, process security detection typically involves pre-setting a blacklist of processes and taking appropriate action against those on the blacklist, such as terminating their execution, to ensure application security. However, if malicious code is injected into a process, it cannot be effectively detected using a blacklist, thus compromising application security. Summary of the Invention
[0004] Therefore, it is necessary to provide an application process detection and processing method, system, device, computer equipment, computer-readable storage medium, and computer program product that can improve the accuracy of application process detection and ensure the safe operation of applications, in order to address the above-mentioned technical problems.
[0005] Firstly, this application provides an application process detection and processing method. The method includes:
[0006] When the target application process meets the detection triggering conditions, the process will detect the call operations of the target application process to sensitive interfaces during the running process to obtain the interface call characteristics of sensitive interfaces.
[0007] Obtain the baseline features associated with the target application; the baseline features are obtained by aggregating the security call data generated by the target application's process making security calls to sensitive interfaces.
[0008] The features of the interface call are compared with the baseline features to obtain the feature comparison results;
[0009] When the feature comparison result indicates that the call operation is not a safe call operation type, the call operation of the sensitive interface is blocked for the process of the target application.
[0010] Secondly, this application also provides an application process detection and processing system, the system comprising:
[0011] The terminal is used to detect the calls to sensitive interfaces made by the process of the target application during its operation when the detection trigger conditions are met, and to obtain the interface call characteristics of the sensitive interfaces.
[0012] The server is used to obtain baseline features associated with the target application; the baseline features are obtained by aggregating the security call data generated by the target application's process making security calls to sensitive interfaces; the interface call features are compared with the baseline features to obtain the feature comparison results;
[0013] The terminal is also used to block calls to sensitive interfaces from the target application's process when the feature comparison result indicates that the call operation is not a safe call type.
[0014] Thirdly, this application also provides an application process detection and processing device. The device includes:
[0015] The interface call feature acquisition module is used to detect the call operations of the target application process to sensitive interfaces during the running process when the detection trigger conditions are met, and to obtain the interface call features of sensitive interfaces.
[0016] The baseline feature acquisition module is used to acquire baseline features associated with the target application. The baseline features are obtained by aggregating security call data generated by the process of the target application making security calls to sensitive interfaces.
[0017] The feature comparison module is used to compare the features called by the interface with the benchmark features to obtain the feature comparison results;
[0018] The blocking module is used to block calls to sensitive interfaces by the process of the target application when the feature comparison result indicates that the call operation is not a safe call type.
[0019] Fourthly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0020] When the target application process meets the detection triggering conditions, the process will detect the call operations of the target application process to sensitive interfaces during the running process to obtain the interface call characteristics of sensitive interfaces.
[0021] Obtain the baseline features associated with the target application; the baseline features are obtained by aggregating the security call data generated by the target application's process making security calls to sensitive interfaces.
[0022] The features of the interface call are compared with the baseline features to obtain the feature comparison results;
[0023] When the feature comparison result indicates that the call operation is not a safe call operation type, the call operation of the sensitive interface is blocked for the process of the target application.
[0024] Fifthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0025] When the target application process meets the detection triggering conditions, the process will detect the call operations of the target application process to sensitive interfaces during the running process to obtain the interface call characteristics of sensitive interfaces.
[0026] Obtain the baseline features associated with the target application; the baseline features are obtained by aggregating the security call data generated by the target application's process making security calls to sensitive interfaces.
[0027] The features of the interface call are compared with the baseline features to obtain the feature comparison results;
[0028] When the feature comparison result indicates that the call operation is not a safe call operation type, the call operation of the sensitive interface is blocked for the process of the target application.
[0029] Sixthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0030] When the target application process meets the detection triggering conditions, the process will detect the call operations of the target application process to sensitive interfaces during the running process to obtain the interface call characteristics of sensitive interfaces.
[0031] Obtain the baseline features associated with the target application; the baseline features are obtained by aggregating the security call data generated by the target application's process making security calls to sensitive interfaces.
[0032] The features of the interface call are compared with the baseline features to obtain the feature comparison results;
[0033] When the feature comparison result indicates that the call operation is not a safe call operation type, the call operation of the sensitive interface is blocked for the process of the target application.
[0034] The aforementioned application process detection and processing methods, systems, devices, computer equipment, storage media, and computer program products, when the target application process meets the detection trigger conditions, detect the call operations of the target application process to sensitive interfaces during its operation, obtain the interface call characteristics of sensitive interfaces, and compare the interface call characteristics with the baseline characteristics associated with the target application. The baseline characteristics are obtained by aggregating the security call data generated by the target application process's secure calls to sensitive interfaces. When the feature comparison result indicates that the call operation does not belong to the type of secure call operation, the call operation of the target application process to sensitive interfaces is blocked. By comparing the interface call characteristics of the target application process to sensitive interfaces during its operation with the baseline characteristics during secure calls, the actual call behavior of the target application process to sensitive interfaces can be detected, improving the accuracy of application process detection and thus ensuring the operational security of the application. Attached Figure Description
[0035] Figure 1 This is an application environment diagram of the process detection and processing method in one embodiment;
[0036] Figure 2 This is a flowchart illustrating the application of a process detection processing method in one embodiment;
[0037] Figure 3 This is a flowchart illustrating the process of detecting the triggering of a call operation in one embodiment;
[0038] Figure 4 This is a schematic diagram of the interface for configuring access policies in one embodiment;
[0039] Figure 5 This is a schematic diagram of the resource configuration interface in one embodiment;
[0040] Figure 6 This is a schematic diagram of the device executing the process detection and processing method in one embodiment;
[0041] Figure 7 This is a schematic block diagram illustrating network resource access in one embodiment;
[0042] Figure 8 This is a flowchart illustrating the application of the process detection processing method in another embodiment;
[0043] Figure 9 This is a schematic diagram illustrating how API combinations form application baseline features in one embodiment;
[0044] Figure 10 This is a schematic diagram illustrating the trend of application version feature changes in one embodiment;
[0045] Figure 11This is a block diagram of the application process detection and processing system in one embodiment;
[0046] Figure 12 This is a structural block diagram of an application process detection processing device in one embodiment;
[0047] Figure 13 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0048] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0049] The application process detection and processing method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store data that server 104 needs to process. The data storage system can be integrated onto server 104 or placed on the cloud or other servers. A target application, such as a social application, can run on terminal 102. When terminal 102 detects that the process of the target application meets the detection trigger conditions, terminal 102 detects the call operations of the target application process to sensitive interfaces during operation, obtaining interface call characteristics. Terminal 102 can send the obtained interface call characteristics to server 104. Server 104 can compare the interface call characteristics with the baseline characteristics associated with the target application. The baseline characteristics are obtained by aggregating the secure call data generated by the target application process's secure calls to sensitive interfaces. When the feature comparison result indicates that the call operation does not belong to the secure call operation type, server 104 can send a processing instruction to terminal 102, so that terminal 102 can block the call operations of the target application process to sensitive interfaces.
[0050] In addition, the application process detection and processing method provided in this application embodiment can also be implemented by the terminal 102 or the server 104 separately. For example, after the terminal 102 obtains the interface call characteristics, the terminal 102 can directly compare the interface call characteristics with the baseline characteristics associated with the target application, and if the feature comparison result indicates that the call operation does not belong to the operation type of safe call, the call operation of the sensitive interface of the target application process can be blocked.
[0051] The terminal 102 can be, but is not limited to, various desktop computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, and smart in-vehicle systems. Portable wearable devices can include smartwatches, smart bracelets, and head-mounted devices. The server 104 can be implemented using a standalone server or a server cluster consisting of multiple servers.
[0052] In one embodiment, such as Figure 2 As shown, an application process detection and processing method is provided. This method is executed by a computer device, specifically by a terminal or server alone, or by both a terminal and a server. In this embodiment, the method is applied to... Figure 1 Taking the terminal in the example, the explanation includes the following steps:
[0053] Step 202: When the process of the target application meets the detection triggering condition, the process of the target application calls to sensitive interfaces during its operation is detected to obtain the interface call characteristics of sensitive interfaces.
[0054] In this context, "application" refers to an application running on a computer device, which can include various types of applications such as social media, news, video, music, and utility applications. "Target application" refers to the application targeted by the application process detection and processing method. Detection trigger conditions are used to determine whether to perform security checks on the target application. These conditions can be set according to actual needs; for example, they can be set when the target application starts or accesses target resources, thus triggering security checks on the target application. A process is an instance of a running program; an application implements its functions by running one or more processes. During operation, an application's process needs to call various interfaces for data communication and processing, such as calling APIs (Application Program Interfaces) to access a set of routines or to obtain data or services from other systems. Sensitive interfaces are those highly relevant to the application's operational security; malicious operations triggered on sensitive interfaces are more easily detected.
[0055] Sensitive interfaces can be determined from various interfaces based on actual needs. For example, corresponding sensitive interfaces can be set according to the configuration of the application's runtime platform. A call operation refers to the operation performed by a process during runtime by calling an interface to perform corresponding processing. For example, if application A needs to obtain data from application B during its runtime, the process of application A can obtain the required data from application B by calling the interface provided by application B. Interface call characteristics refer to the operational characteristics reflected by the application process's call operations to sensitive interfaces. For example, interface call characteristics can be obtained based on the call frequency of the call operations. Interface call characteristics can be extracted based on the application process's call operations to sensitive interfaces. The specific form of interface call characteristics can be set according to actual needs. For example, different sensitive interfaces can correspond to different forms of interface call characteristics. For example, for interface a, its call operation characteristics can be represented by the call frequency, so the call operations can be statistically analyzed to obtain the interface call characteristics for interface a. For interface b, its call operation characteristics can be represented by the call order with other interfaces, so the call order between interface b and other interfaces can be determined based on the call operations to obtain the interface call characteristics for interface b.
[0056] Specifically, the target application can run on the terminal, and the target application runs at least one process on the terminal. When the terminal detects that the process of the target application meets the detection trigger condition, such as when the process of the target application triggers access to the target resource, the terminal can detect the call operations of the target application process to sensitive interfaces during its operation. For example, the terminal can pay attention to the call operations of the target application process to sensitive interfaces, record the call operation data, and generate interface call characteristics of sensitive interfaces based on the call operation data.
[0057] Step 204: Obtain the baseline features associated with the target application; the baseline features are obtained by aggregating the security call data generated by the process of the target application making security calls to sensitive interfaces.
[0058] The baseline features are obtained by aggregating security call data generated when the target application's processes make secure calls to sensitive interfaces. In other words, the baseline features reflect the characteristics of the target application's processes when making secure calls to sensitive interfaces. Security call data is generated when the target application's processes make secure calls to sensitive interfaces. By aggregating this data, baseline features associated with the target application can be constructed. Baseline features are application-dependent; different applications can correspond to different baseline features. Baseline features are also related to the application's runtime environment; that is, the application-associated baseline features can differ under different runtime environments. Furthermore, different versions of the application can also correspond to different baseline features.
[0059] Specifically, the terminal obtains the baseline characteristics associated with the target application. Specifically, it can query the baseline characteristics of the target application based on the application identifier. These baseline characteristics can be pre-aggregated from the security call data generated by the target application, and an association relationship can be established between the baseline characteristics and the target application. Based on this association relationship, the baseline characteristics associated with the target application can be determined.
[0060] Step 206: Compare the interface call features with the baseline features to obtain the feature comparison results.
[0061] Feature comparison refers to comparing API call features with baseline features to determine the deviation between the two. The feature comparison results reflect the differences between the API call features and the baseline features.
[0062] Specifically, the terminal can perform feature comparison between the interface call features and the benchmark features. In practice, the terminal can perform similarity matching between the interface call features and the benchmark features, that is, it can calculate the feature similarity between the interface call features and the benchmark features, thereby obtaining the feature comparison results.
[0063] Step 208: When the feature comparison result indicates that the call operation does not belong to the type of safe call operation, the call operation of the sensitive interface of the target application process is blocked.
[0064] The feature comparison result indicates that the call operation does not belong to the type of secure call, meaning there is a significant difference between the interface call characteristics and the baseline characteristics. The target application's currently running process's call operation to the sensitive interface deviates from the secure call operation, posing a security risk; in other words, the current call operation does not belong to the type of secure call. Blocking refers to preventing the target application's process from calling the sensitive interface, such as directly stopping the process's execution or blocking the process's calls to the sensitive interface. The specific blocking processing method can be flexibly configured according to actual needs.
[0065] Specifically, when the feature comparison result indicates that the call operation does not belong to the type of safe call operation, the terminal blocks the call operation of the sensitive interface of the target application process. Specifically, it can directly stop the process from running, or block the process from calling the sensitive interface, thereby preventing the target application from engaging in malicious behavior and ensuring the application's operational security.
[0066] In the aforementioned application process detection method, when the target application process meets the detection trigger condition, the system detects the process's calls to sensitive interfaces during runtime, obtaining interface call characteristics. These characteristics are then compared with baseline characteristics associated with the target application. The baseline characteristics are aggregated from the security call data generated by the target application process's secure calls to sensitive interfaces. If the feature comparison result indicates that the call operation does not belong to the secure call operation type, the system blocks the target application process's calls to sensitive interfaces. By comparing the interface call characteristics of the target application process to sensitive interfaces during runtime with the baseline characteristics during secure calls, the system can detect the actual call behavior of the target application process to sensitive interfaces, improving the accuracy of application process detection and thus ensuring application security.
[0067] In one embodiment, such as Figure 3 As shown, the detection process is triggered by the call operations of the target application's process. Specifically, when the target application's process meets the detection trigger condition, the process detects the call operations of the target application's process to sensitive interfaces during runtime, obtaining the interface call characteristics of sensitive interfaces, including:
[0068] Step 302: When the target application's process starts, query historical access data.
[0069] Historical access data includes access records of various applications running on the terminal to resources. Specifically, when the terminal detects the startup of a target application's process, it indicates that the target application is executing a corresponding task by starting the process, and the terminal can query historical access data. In specific applications, a historical access database can be set up to store historical access data of various applications on the terminal.
[0070] Step 304: If the historical access data contains access records of the target application process for the target resource, inject an interface call detector into the target application process.
[0071] The target resource can be a network resource or a local resource, and can specifically include various forms of resources such as text, images, audio, and video. In practical applications, the target resource can be a resource in a zero-trust network, meaning that each access to the target resource requires access verification. The interface call detector is used to detect the interface call operations of the target application's process. The interface call detector can include a piece of executable code. By injecting the interface call detector into the target application's process, it can detect the call operations of the target application's process during its execution, thereby achieving the detection of the target application's process.
[0072] Specifically, the terminal can query historical access data to check for any access records of the target application's process to the target resource, thus determining whether the target application has accessed the target resource. If the historical access data contains access records of the target application's process to the target resource, it indicates that the target application's process has accessed the target resource. Therefore, the target application's process may access the target resource again after starting, requiring timely detection of the target application's process. The terminal can inject an interface call detector into the target application's process to detect the target application's process through the interface call detector.
[0073] In practical applications, historical access data can also include statistical information on resource access by various applications. Based on this statistical information, it can be determined whether the target application's process will trigger access to the target resource after startup, thereby determining whether the target application's process needs to be monitored. For example, based on the historical access records of application A for target resource Y, if it is found that application A's access time for target resource Y falls within the working hours of weekdays, then when the target application's process starts, the terminal can determine whether to monitor the target application's process based on the current time. If the current time is a non-working day, it can be determined that the target application's process has started and will not trigger access to the target resource, and the terminal can perform monitoring without calling the detector through the injection interface.
[0074] Step 306: Using an interface call detector, detect the call operations of sensitive interfaces during the operation of the target application process to obtain the interface call characteristics of sensitive interfaces.
[0075] Specifically, the interface call detector can be implemented through a piece of executable code, such as .dll code. The interface call detector can detect the calling behavior of the target application process during its operation and obtain the interface call characteristics of the target application process to sensitive interfaces.
[0076] Specifically, after the terminal injects an interface call detector into the process of the target application, the interface call detector can perform detection operations. During the operation of the target application's process, it detects the process's call operations to sensitive interfaces, collects call operation data, and forms interface call characteristics of sensitive interfaces based on the call operation data.
[0077] In this embodiment, when the process of the target application starts and there is an access record of the target application process for the target resource, it indicates that the process of the target application may trigger access to the target resource. The terminal can detect the call behavior by injecting an interface call detector into the process of the target application, and can detect the process of the target application in a timely manner to ensure detection efficiency.
[0078] In one embodiment, the application process detection processing method further includes: when there is no access record of the target application process for the target resource in the historical access data, and the target application process triggers access to the target resource, injecting an interface call detector into the target application process; when the interface call detector is successfully injected into the target application process, updating the historical access data with the generated access record of the target application process for the target resource.
[0079] Specifically, the terminal can query historical access data to check for any access records of the target application's process to the target resource, thus determining whether the target application has accessed the target resource. If no access records for the target application's process are found in the historical access data, it indicates that the target application's process has not accessed the target resource. Therefore, the target application's process may not access the target resource even after it starts, and the terminal can continue to monitor the target application's process. When the terminal detects that the target application's process has triggered access to the target resource, it indicates that the target application's process may need to call an interface related to the target resource. The terminal successfully injects an interface call detector into the target application's process to monitor the process in a timely manner. The terminal can check the injection result of the interface call detector. When the interface call detector is successfully injected into the target application's process, it indicates that the interface call detector can perform operational behavior detection normally. The terminal generates access records for the target application's process to the target resource, which can be generated based on access time, access scope, and application information. The terminal can update the access records of the target application's process to the target resource in the historical access data, so that when the target application's process starts, it can promptly call the detector through the injection interface to detect the calling behavior of the target application's process.
[0080] In this embodiment, when the process of the target application triggers access to the target resource, the terminal injects an interface call detector to detect the calling behavior of the target application process. After the interface call detector is successfully injected into the process of the target application, the access record of the target application process to the target resource is updated to the historical access data. This ensures that the access of the target application process to the target resource can be detected in a timely manner, which helps to improve the efficiency of security detection and ensures the operational security of the application.
[0081] In one embodiment, the application process detection method further includes: when the process of the target application triggers access to the target resource, performing a detector probe on the process of the target application; when the probe result indicates that the interface call detector has not been injected into the process of the target application, injecting the interface call detector into the process of the target application again.
[0082] In this context, detector detection refers to checking whether an interface call detector has been injected into the process of a target application. For example, the terminal can detect the runtime data of the target application's process to determine whether there is activity data of an interface call detector within the target application's process. If the runtime data of the target application's process does not include activity data of the interface call detector, it indicates that there is no interface call detector activity within the target application's process, and the terminal can inject the interface call detector.
[0083] Specifically, the terminal can detect access to the target application's process. When it detects that the target application's process has triggered access to the target resource, meaning the target application's process needs to access the target resource, the terminal can perform a detector probe on the target application's process. Specifically, it can probe whether an interface call detector exists in the target application's process. If the detector probe result indicates that an interface call detector has not been injected into the target application's process, meaning that the injection of an interface call detector was missed or failed, the terminal will then perform the interface call detector injection process again for the target application's process.
[0084] In this embodiment, when the process of the target application triggers access to the target resource, the terminal performs a detector to probe the process of the target application. If the interface call detector is not injected into the process of the target application, it is injected again to ensure that when the process of the target application accesses the target resource, the calling behavior of the process can be detected by the interface call detector, which can improve the accuracy of application process detection and thus ensure the application's operational security.
[0085] In one embodiment, detecting the calls to sensitive interfaces by the process of a target application during runtime to obtain interface call characteristics of the sensitive interfaces includes: obtaining a list of sensitive interfaces configured for the runtime environment of the target application; determining the interfaces called by the process of the target application during runtime; and when the called interface belongs to a sensitive interface in the list of sensitive interfaces, detecting the calls to the sensitive interfaces by the process of the target application to obtain interface call characteristics of the sensitive interfaces.
[0086] The runtime environment refers to the environment in which the target application runs, specifically including the target's system platform. The sensitive interface list records all sensitive interfaces that need to be detected. Different sensitive interface lists can be configured for different runtime environments, meaning that call behavior detection can be performed on different sensitive interfaces for different runtime environments.
[0087] Specifically, the terminal can obtain a list of sensitive interfaces, and can determine the target application's runtime environment, such as its operating system platform. Based on this environment, the terminal determines the corresponding list of sensitive interfaces. This list can be pre-configured for different runtime environments, allowing for different lists of sensitive interfaces for different environments. The terminal identifies the interfaces called by the target application's process during runtime and matches these calls against the sensitive interface list to determine if the application's process has called any of its sensitive interfaces. If a called interface is found to be a sensitive interface in the list, the terminal can detect these calls, such as by injecting an interface call detector to identify the call characteristics of the sensitive interfaces.
[0088] In this embodiment, the terminal determines a list of sensitive interfaces based on the operating environment of the target application. When the process of the target application calls a sensitive interface in the list, the terminal detects the call operation of the target application process to the sensitive interface. This enables targeted detection of sensitive interface call behavior under different operating environments, improving the accuracy of application process detection and ensuring the operational security of the application.
[0089] In one embodiment, detecting the call operations of a process of a target application to a sensitive interface to obtain the interface call characteristics of the sensitive interface includes: detecting the call operations of a process of a target application to a sensitive interface to obtain interface call detection data; obtaining call characteristic filtering conditions; and filtering the interface call detection data through the call characteristic filtering conditions to obtain the interface call characteristics of the sensitive interface.
[0090] Interface call detection data refers to the data generated by the target application's processes when calling sensitive interfaces. Specifically, this data can include various types of information such as operation parameters, call time, and call results. Interface call detection data can be used to describe the target application's processes' calls to sensitive interfaces. Call feature filtering conditions are used to filter the interface call detection data to obtain data that accurately represents the characteristics of the interface calls. Call feature filtering conditions can be related to the type of sensitive interface; different sensitive interfaces can have different call feature filtering conditions set.
[0091] Specifically, the terminal detects the calls to sensitive interfaces made by the target application's process. For example, an interface call detector injected into the process can be used to detect these calls and obtain interface call detection data. The terminal then obtains call feature filtering conditions related to sensitive interfaces. Based on the sensitive interfaces called by the target application's process, the terminal can identify the corresponding sensitive interfaces. Finally, the terminal uses these call feature filtering conditions to filter the interface call detection data, obtaining the interface call features of the sensitive interfaces.
[0092] In this embodiment, the terminal can filter the detected interface call detection data through pre-set call feature filtering conditions to obtain the interface call features of sensitive interfaces. This can ensure that the interface call features can accurately express the characteristics of the process's call behavior to sensitive interfaces. Application process detection based on interface call features is beneficial to improving the accuracy of application process detection, thereby ensuring the application's operational security.
[0093] In one embodiment, comparing the interface call features with the baseline features to obtain the feature comparison result includes: determining the feature comparison item; the feature comparison item includes at least one of the following: interface call type, interface call statistics, interface call order, or interface call parameters; comparing the interface call features with the respective feature comparison items in the baseline features to obtain feature deviation data; and obtaining the feature comparison result based on the feature deviation data and the feature deviation judgment condition.
[0094] The feature comparison items are the feature items that need to be compared among the interface call features. Interface call type refers to the type of interface called by the process; interface call statistics refer to the statistical information obtained by analyzing the process's call behavior; interface call order refers to the order in which the process calls various interfaces; and interface call parameters refer to the call parameters when the process calls the interface. Feature deviation data is the comparison result obtained by comparing the interface call features with the baseline features according to the feature comparison items. Feature deviation data reflects the differences between the interface call features and the baseline features in terms of feature comparison items. Feature deviation judgment conditions are used to determine the deviation results between the interface call features and the baseline features. For example, if the feature deviation data shows a large difference between the interface call features and the baseline features, then according to the feature deviation judgment conditions, it can be determined that the process's call operation is significantly different from a safe call, and the process's call operation is considered not a safe call, posing a security risk, requiring action to ensure the safe operation of the application.
[0095] Specifically, the terminal determines feature comparison items, which include at least one of the following: interface call type, interface call statistics, interface call order, or interface call parameters. Feature comparison items can be application-type related; that is, different feature comparison items can be set for different types of applications. Feature comparison items can also be sensitive interfaces; different feature comparison items can be set for different sensitive interfaces called by a process. In specific applications, the terminal can determine feature comparison items based on the application type of the target application or based on the sensitive interfaces called by the target application. The terminal performs feature comparisons between the interface call features and their respective feature comparison items in the baseline features. In specific implementations, the terminal can determine the interface call sub-features that need to be compared from the interface call features according to the feature comparison items. The terminal determines the baseline sub-features from the baseline features according to the feature comparison items. The terminal performs feature matching between the interface call sub-features and the baseline sub-features, such as performing similarity calculations, to obtain feature deviation data.
[0096] The terminal acquires feature deviation judgment conditions, which can be set for feature comparison items, target applications, or sensitive interfaces. These conditions are used to judge feature deviation data to determine whether a process's call operation belongs to a safe call type, thus obtaining the feature comparison result. In specific applications, feature deviation data can include the feature similarity corresponding to each feature comparison item. The feature deviation judgment condition can then be a similarity threshold. By analyzing the relationship between feature similarity and the similarity threshold, the process call operation is judged, and the feature comparison result is obtained.
[0097] In this embodiment, by calling at least one of the following feature comparison items—interface type, interface call statistics, interface call order, or interface call parameters—the interface call features are compared with the baseline features. The feature deviation data obtained from the feature comparison is then used to determine the operation type through feature deviation judgment conditions. This allows for flexible feature comparison from multiple dimensions, which helps improve the accuracy of application process detection and thus ensures the safe operation of the application.
[0098] In one embodiment, when the feature comparison result indicates that the call operation is not a secure call operation type, blocking the call operation of the sensitive interface for the process of the target application includes: when the feature comparison result indicates that the call operation is not a secure call operation type, determining the blocking method for the process of the target application; and blocking the call operation of the sensitive interface for the process of the target application according to the blocking method; wherein the blocking method includes at least one of stopping the execution of the process of the target application, blocking the process of the target application from accessing the target resource, or isolating the network.
[0099] Stopping the target application's process means directly terminating the target application's process; blocking the target application's process from accessing the target resource means blocking the process from accessing the target resource; and isolating the network means disconnecting the network channel. Different blocking methods can be used for different types of applications, different types of sensitive interfaces, different target resources, and different operating environments. In other words, the blocking method is related to at least one of the following: application type, sensitive interface type, target resource, or operating environment.
[0100] Specifically, if the feature comparison result indicates that the call operation is not a secure call type, it suggests that allowing the process to continue making interface calls poses a security risk and the process may engage in malicious behavior. In this case, the terminal determines the blocking method for the target application's process. In specific implementations, the terminal can determine at least one of the following: application type, sensitive interface type, target resource, or runtime environment, and then determine the blocking method accordingly. The terminal blocks the sensitive interface call operations of the target application's process according to the determined blocking method. For example, the terminal can stop the target application's process from running, block the target application's process from accessing the target resource, or isolate the network, thereby achieving the blocking of the target application's process.
[0101] In this embodiment, the terminal blocks the process's calls to sensitive interfaces based on a determined blocking method, thereby promptly blocking abnormal calling behavior of the process and ensuring the application's operational security.
[0102] In one embodiment, obtaining the baseline features associated with the target application includes: obtaining process feature information of the target application's process; determining the application identifier of the target application based on the process feature information; and querying the baseline features associated with the target application based on the application identifier.
[0103] Process characteristic information refers to process information related to the target application's process. This information allows for accurate identification of the target application and its process. Process characteristic information can include various details, such as, but not limited to, the absolute path of the executable file, the executable file's hash information, and copyright information. The application identifier identifies the target application. Depending on the required granularity, the application identifier can identify only the application type; alternatively, it can identify different versions of the application—different versions of the same application can correspond to different application identifiers.
[0104] Specifically, the terminal can obtain process characteristic information of the target application's process. This process characteristic information can be collected by the terminal during the execution of the target application's process. Based on this process characteristic information, the terminal determines the application identifier of the target application. The process characteristic information can include multiple dimensions, allowing for accurate identification of the target application and thus its application identifier. Based on the target application's application identifier, the terminal queries the baseline characteristics associated with the target application. The correspondence between baseline characteristics and application identifiers can be established after aggregating baseline characteristics for the application. This mapping relationship allows for the querying of the baseline characteristics associated with the target application based on its application identifier.
[0105] In this embodiment, the terminal determines the application identifier of the target application based on the process feature information of the target application's process. By querying the application identifier, the terminal obtains the baseline features associated with the target application. The terminal can accurately identify the target application using the process feature information, thereby obtaining the baseline features associated with the target application. This allows for feature comparison based on the baseline features, which helps improve the processing efficiency of application detection.
[0106] In one embodiment, the application process detection processing method further includes: when at least one of the following conditions is met, namely, the process of the target application starts or the process of the target application triggers access to the target resource, collecting process characteristic information of the target application process; and storing the process characteristic information in a cache.
[0107] Specifically, the terminal can collect process characteristic information of the target application's process when the characteristic information collection conditions are met, and store the collected process characteristic information in a cache so as to determine the application identifier of the target application using the process characteristic information. The characteristic information collection conditions can be set according to actual needs, such as including at least one of the following: the target application's process starts or the target application's process triggers access to the target resource.
[0108] Specifically, when the target application's process starts, the terminal can collect process characteristic information of the target application's process. When the target application's process triggers access to the target resource, the terminal can also collect process characteristic information of the target application's process. The terminal stores the collected process characteristic information in a cache.
[0109] Furthermore, the process characteristic information of the target application is obtained, including: obtaining the process characteristic information of the target application from the cache.
[0110] Specifically, when it is necessary to determine the baseline characteristics of a target application, the terminal retrieves the process characteristic information of the target application from the cache, and determines the application identifier of the target application based on the process characteristic information, so as to query the baseline characteristics associated with the target application through the application identifier. In addition, when the termination of the target application process is detected, that is, when the target application process ends, the terminal can release the cache and clear the process characteristic information in the cache.
[0111] In this embodiment, storing process feature information in a cache can improve the efficiency of obtaining process feature information, which is beneficial to improving the efficiency of obtaining baseline features, thereby improving the processing efficiency of application detection.
[0112] In one embodiment, the application process detection and processing method further includes: acquiring the generated security call data during the process of the target application making a security call to a sensitive interface; dividing the security call data according to the interface category to obtain category security call data associated with each interface category; and combining the category security call data according to the interface call feature aggregation conditions to obtain the baseline features associated with the target application.
[0113] Among them, secure call data refers to the data generated when the target application's process makes secure calls to sensitive interfaces. Interface category refers to the category of the sensitive interface called by the target application's process. Category-based secure call data corresponds to the interface category. Interface call feature aggregation conditions are pre-set processing conditions for combining category-based secure call data to achieve feature aggregation. For example, interface call feature aggregation conditions may include the combined category, the number of combinations, and the order of combinations.
[0114] Specifically, the terminal can acquire security call data generated during the process of a target application making secure calls to sensitive interfaces. For example, it can collect data through an injected interface call detector. The terminal determines the interface category of the called sensitive interface, divides the security call data according to the interface category, and obtains category-specific security call data associated with each interface category. The terminal obtains the interface call feature aggregation conditions and combines the category-specific security call data according to the aggregation dimensions specified by the interface call feature aggregation conditions to form the baseline features associated with the target application.
[0115] In this embodiment, the terminal combines the category security call data associated with each interface category according to the interface call feature aggregation conditions to obtain the baseline features associated with the target application, thereby accurately reflecting the characteristics of the target application's process in the security call process through the baseline features.
[0116] In one embodiment, according to the interface call feature aggregation conditions, the category security call data is combined to obtain the baseline features associated with the target application, including: determining the process feature information of the target application's process; combining the category security call data according to the interface call feature aggregation conditions to obtain at least one interface call combination feature; and associating the at least one interface call combination feature with the process feature information to obtain the baseline features associated with the target application.
[0117] Among them, process feature information refers to process information related to the target application's process. This information allows for accurate identification of the target application and its processes. Process feature information can include various components, such as, but not limited to, the absolute path of the process's executable file, the executable file's hash information, and copyright information. Interface call composition features are formed by combining category-specific security call data according to interface call feature aggregation conditions. These features can be used to express the characteristics of the target application's process during secure calls.
[0118] Specifically, the terminal determines the process characteristic information of the target application's process, which can be obtained by reading pre-collected process characteristic information from the cache. The terminal combines category security call data according to interface call feature aggregation conditions to obtain at least one interface call combination feature. In specific implementations, a certain amount of data from different categories of category security call data can be combined to form interface call combination features. For example, if the number of categories is 3-5 and it is necessary to combine security call data from different categories, the terminal can select 3, 4, or 5 different categories of category security call data to combine to obtain interface call combination features, which enhances the expressive power of the interface call combination features. The terminal associates the interface call combination features with process characteristic information to establish a correlation between the target application and the baseline features.
[0119] In this embodiment, the terminal combines category security call data according to the interface call feature aggregation conditions, and associates at least one obtained interface call combination feature with the process feature information of the target application's process to obtain a baseline feature associated with the target application. The process feature information can be used to establish the association between the target application and the baseline feature.
[0120] In one embodiment, at least one interface call combination feature is associated with process feature information to obtain a baseline feature associated with the target application, including: determining the version identifier of the target application based on the process feature information; associating the interface call combination features belonging to the same version identifier with the process feature information to obtain the version baseline feature of each version identifier; and filtering based on the version baseline feature of each version identifier to obtain the baseline feature associated with the target application.
[0121] The version identifier identifies the application version of the target application. Processes of different application versions may exhibit different calling behaviors when invoking interfaces. The version baseline characteristics are derived from the combined characteristics of interface calls for the same version and can reflect the calling behavior characteristics of the corresponding application version.
[0122] Specifically, the terminal determines the version identifier of the target application based on process feature information and associates the interface call combination features of the same version identifier with the process feature information to obtain the version baseline features for each version identifier. The interface call combination features include features of different application versions. These features are categorized by the version identifier of the target application, allowing the association of interface call combination features of the same application version with process feature information to form the version baseline features for each version identifier. The terminal can then filter these version baseline features to obtain the baseline features associated with the target application. In specific applications, the terminal can determine the distribution of each version baseline feature and determine the baseline features based on this distribution. For example, the terminal can use the most frequently occurring version baseline feature as the baseline feature for the target application. Alternatively, the terminal can directly use all baseline features as the baseline features for the target application.
[0123] In this embodiment, the terminal associates the combined features of interface calls with process feature information belonging to the same version identifier to obtain the version baseline features of each version identifier. Based on the version baseline features of each version identifier, the terminal filters to obtain the baseline features associated with the target application. This makes the baseline features refer to the application version, which is conducive to the aggregation of baseline features and thus improves the expressive power of the baseline features. Based on the baseline features, accurate application security detection can be achieved.
[0124] In one embodiment, the application process detection and processing method further includes: when the process of the target application triggers access to the target resource, obtaining the access request parameters associated with the target application according to the access verification conditions; generating an access ticket based on the access request parameters; performing access verification through the access ticket request; and when the access verification is successful and the call operation to the sensitive interface does not trigger blocking processing, accessing the target resource is permitted.
[0125] Access verification conditions are the constraints on the data that need to be verified when a target application process accesses a target resource. Different target resources can correspond to different access verification conditions. Access request parameters are the parameters that the target application needs to verify when accessing the target resource. Access tickets are the credentials used by the target application to access the target resource. Access verification through access tickets ensures the legitimacy of the access.
[0126] Specifically, when a process of the target application triggers access to the target resource, indicating that the process of the target application needs to access the target resource, the terminal can determine the access verification conditions, which can be determined based on the target resource. The terminal obtains the access request parameters associated with the target application according to the access verification conditions. These parameters may include, but are not limited to, the source IP or domain name, source port, destination IP or domain name, destination port, and the process ID (PID) of the application. The terminal generates an access ticket based on the access request parameters and uses the access ticket to perform access verification. If the access verification is successful and the call to the sensitive interface does not trigger blocking processing, the terminal supports the target application process's access to the target resource, thereby enabling the target application process to obtain the target resource for appropriate processing.
[0127] In this embodiment, access verification is performed using an access ticket generated from the access request parameters. Access to the target resource is performed only when the access verification is successful, which ensures the legitimacy of the access to the target resource and thus ensures the security of the access to the target resource.
[0128] In one embodiment, the application process detection processing method further includes: displaying an access policy configuration area for the target application, and obtaining access policy configuration information of the target application through the access policy configuration area; displaying a resource access configuration area for the target resource, and obtaining resource access configuration information of the target resource through the resource access configuration area; and generating access verification conditions based on the access policy configuration information and the access policy configuration information.
[0129] The access policy configuration area is used to configure access policies for applications, and the access policy configuration information is the access policy configured for the target application. The resource access configuration area is used to configure resource access, and the resource access configuration information is the access requirements for the target resource. Specifically, when configuring access verification conditions, the terminal can display the access policy configuration area for the target application, which can include various access policy configuration items. The terminal obtains the access policy configuration information for the target application through this area. The terminal can also display the resource access configuration area for the target resource, which can display various resource access configuration items. The terminal obtains the resource access configuration information for the target resource through this area. Based on the obtained access policy configuration information, the terminal generates access verification conditions. When the application triggers access to the target resource, access verification processing is performed according to these conditions to ensure access security.
[0130] In this embodiment, access verification conditions are generated based on the configured access policy configuration information. When the application triggers access to the target resource, access verification processing is performed based on the access verification conditions to ensure access security.
[0131] This application also provides an application scenario in which the above-described application process detection and processing method is applied. Specifically, the application process detection and processing method is applied in this scenario as follows:
[0132] In scenarios where deciding whether to allow an application to access enterprise resources, existing technologies typically employ a combination of application process blacklisting and post-event asynchronous hash verification. When an entity accesses enterprise resources through an application process, it needs to request a network access ticket from a server-side or client-side security component. During ticket request, an access proxy or traffic hijacking component collects traffic characteristics, device information, and the hash value of the application process's executable file, sending this data to the client-side security component or relevant server-side interface that issued the network access ticket. After filtering through a locally cached application process blacklist, applications on the blacklist send a response denying network access; otherwise, they respond normally, allowing access. This approach primarily considers that high-risk processes are far fewer than normal application processes, and long-term blacklist maintenance can filter out most malicious processes. Applications not on the blacklist are mostly harmless, unknown applications, and temporarily allowing them will not pose a significant threat to system security. Furthermore, user experience is considered, minimizing the latency of ticket request and response. After allowing unknown applications to run, the terminal collects more detailed characteristic information about the application process, including copyright and process digital signature information, and sends it to the server. This information is then sent to a threat intelligence cloud service to check for potential risks. This is a detection scheme that uses a pre-emptive blacklist cached locally on the server or device side and a post-event asynchronous processing method of submitting application characteristics for inspection. This scheme has two main shortcomings. First, terminals have various malicious code or module injection methods, such as QueueUserAPC, cross-process memory writing, cross-process memory attribute modification, remote thread injection, and window callback modification, to perform process injection operations, attaching themselves to legitimate processes to commit malicious acts. These methods are difficult to detect using traditional methods combining hash blacklist filtering and asynchronous inspection. QueueUserAPC refers to adding an APC (Asynchronous Procedure Call) object to the APC queue of a specified thread. Second, both blacklist filtering and asynchronous inspection are post-event detection methods and cannot identify processes with unknown legitimate status or malicious behavior that deviates from normal behavior during enterprise resource access. An endpoint access proxy is an endpoint agent deployed on a controlled device to initiate secure access. It is responsible for initiating requests for trusted authentication of the access subject. Once the identity is verified, an encrypted access connection can be established with the access gateway. It is also the point of enforcement of access control policies.
[0133] Based on this, the application process detection and processing method provided in this embodiment, compared with the existing detection scheme that uses pre-filtering and local caching of blacklists on the server or device side and asynchronous processing of application characteristics after the fact, associates the application process with the API characteristics executed by the application process within a certain time window during enterprise resource access. Furthermore, it uses a voting algorithm to resolve API call differences between different versions of application processes, aggregating the interface call behavior of application processes of the same version to form a baseline feature. In the terminal zero-trust network architecture, the API behavior of application processes is detected in real time, and application processes that deviate from the baseline are automatically handled. The behavioral characteristics are analyzed and incorporated into subsequent detection processes. This embodiment can improve the detection accuracy of trusted applications in the zero-trust network architecture, and can promptly detect and handle malicious behaviors that deviate from normal operations during enterprise resource access, such as processes suspected of being abnormal but whose legal status is unknown, or normal processes. This enhances the proactive countermeasure capability against APT (Advanced Persistent Threat) threats, reduces the risk of zero-day infection of enterprise devices, and improves risk perception capabilities and enterprise office security. Among them, trusted applications are granted trust by the management end, and the terminal can access the application carrier of the internal business system, including the application name, application MD5, signature information, etc.
[0134] Specifically, the application process detection and processing method provided in this embodiment can be applied to a zero-trust security management system to ensure an efficient and stable remote collaborative office experience and promote the application of zero-trust technology in the digital industry. In a specific application, such as Figure 4 The image shows the configuration page for internet application access policies on the web console. On this page, users can configure internet application access policies, including various settings such as policy name, blocked access list, blocked resource list, and terminal matching conditions. Figure 5 As shown, in the configuration interface for internet application resources, users can set various configuration items for internet application resources, including resource name, resource category, domain name, port, resource group, and protocol type. By configuring internet application access policies and internet application resources, the secure operation of internet applications can be ensured.
[0135] The application process detection and processing method provided in this embodiment can be implemented through a security service client. For example... Figure 6As shown, the security client acts as a zero-trust network security service provider. Through a zero-trust proxy and access gateway, it provides a unified entry point for access subjects to request resources from objects via the network. The security service client provides authentication for this unified entry point. Only network requests that pass authentication can be forwarded by the zero-trust proxy to the access gateway, which then proxies access to the actual business system. An access subject refers to the person, device, or application that initiates access to internal network business resources within the network; it is a digital entity composed of a single or combined element such as a person, device, or application. An access object refers to the party being accessed within the network, i.e., the enterprise's internal network business resources, including applications, systems (development and testing environments, operation and maintenance environments, production environments, etc.), data, interfaces, and functions.
[0136] Furthermore, such as Figure 7 As shown, for a zero-trust network access system on a PC (Personal Computer), the core modules mainly include a secure client, a secure server, an access proxy, and a smart gateway. The secure client is a secure agent installed on employee work devices, responsible for verifying the trusted identity of users on the device, verifying the trustworthiness of the device and applications; it can also request unknown processes to be submitted for inspection by the server. The access proxy intercepts device traffic through a TUN / TAP virtual network interface card, and after authentication by the secure client, forwards the request to the smart gateway; if authentication fails, it either connects directly or disconnects. The smart gateway is deployed at the entry point of enterprise applications and data resources, responsible for verifying, authorizing, and forwarding each session request accessing enterprise resources. The secure server uses a policy control engine to perform secure scheduling of business traffic, authorizing at the person-device-software-application granularity. Specifically, the identity verification module verifies the user's identity, the device trust module verifies the device's hardware information and security status, and the application detection module detects the security of application processes, such as vulnerabilities and viruses / Trojans. The server periodically sends files to the threat intelligence cloud service or cloud antivirus server for inspection. If malicious processes are identified, the server notifies the client to perform asynchronous blocking operations.
[0137] During application access on the terminal, the accessing entity initiates an access request for the accessed object through the application. The security client intercepts the network request through an access proxy. The access proxy then sends an authentication request to the security client, requesting credentials (i.e., a ticket) for the current network request. Request parameters include the source IP or domain name, source port, destination IP or domain name, destination port, and the process ID (PID) of the application. The security client collects process characteristics such as the MD5 hash, process path, last modified time, copyright information, and signature information from the process PID sent by the access proxy. These, along with the source IP or domain name, source port, destination IP or domain name, and destination port of the network request transmitted by the access proxy, are used to request a ticket from the security server. Specifically, the process is sent for inspection, and a ticket exchange is performed with the security server. If the request is successful, the security client sends the ticket, the maximum number of times the ticket can be used, and the ticket's validity period as a response to the access proxy. The access proxy first initiates an HTTPS request to the smart gateway, including a network request credential (ticket) passed from the security client in the Authorization header field. This credential is authorization information issued by the security server for a single network request, identifying its authorization status. Upon receiving the request, the smart gateway parses the ticket from the header field and verifies it with the security server. If verification is successful, a connection is established between the smart gateway and the access proxy. The access proxy then sends the original network request to the smart gateway, which forwards it to the corresponding business server, proxying the actual application network access. If the smart gateway fails to verify the ticket, the connection between the access proxy and the access gateway is interrupted. For traffic from applications outside the zero-trust policy accessing specific sites, the access proxy can directly initiate a network access request to the target business server to achieve direct access. In a zero-trust network access architecture, when an application initiates a network access request to a site, the full-traffic proxy intercepts the traffic and initiates a network access to the target site through the full-traffic proxy—that is, a direct connection access. The full-traffic proxy then sends the target site's network response to the application. This access mode is called direct access.
[0138] The proxy client intercepts device traffic via a TUN / TAP virtual network interface card (NIC). If the zero-trust access control policy determines it's a proxy access type, the proxy client requests a network access ticket from the security client. The security client then requests a ticket from the security server. Upon successful ticket acquisition, the security client sends the ticket response to the access proxy. The access proxy then sends the actual network access traffic to the smart gateway via the physical NIC, where the smart gateway proxies the actual business access. In a zero-trust network access architecture, when an application initiates a network access request to a site, the full-traffic proxy intercepts the traffic and forwards it to the smart gateway. The smart gateway then proxies the access to the target business site. After access, the smart gateway sends the target site's network response to the full-traffic proxy, which forwards the response to the application. This access mode is called proxy access. If the zero-trust access control policy determines it's a direct access type, the access proxy intercepts the original network access traffic and directly accesses and responds to the corresponding target business site via the physical NIC, achieving direct access. Zero-trust access control policies consist of information about user-accessible processes (trusted applications) and accessible business sites (reachable zones). With authorized permissions, a user can access any reachable zone through any trusted application. The granularity of zero-trust access control policies is based on logged-in users, allowing for different zero-trust policies to be formulated for different logged-in users. Reachable zones refer to the list of internal sites set up by the enterprise that end users can access through the zero-trust network.
[0139] Furthermore, Advanced Persistent Threats (APTs) are characterized by well-organized attackers, high stealth, strong targeting, and long duration. They typically utilize customized malware, zero-day vulnerabilities, or related escape techniques to bypass traditional file-based defense and detection devices such as IPC (Inter-Process Communication), firewalls, and AV (AntiVirus) software. They target unknown vulnerabilities in the system and known vulnerabilities that have not been patched in a timely manner. After successfully compromising the device, attackers perform process injection operations through various methods such as QueueUserAPC (Asyncroneus Procedure Call), cross-process memory writing, cross-process memory attribute modification, remote thread injection, and modification of window callbacks. This allows them to inject malicious code or modules into legitimate applications, possess legitimate processes to commit malicious acts, impersonate legitimate identities to steal data, and illegally access corporate resources.
[0140] Existing technologies primarily focus on pre-emptive blacklist filtering and post-event asynchronous source tracing, failing to address the issue of malicious code or modules injecting into normal application processes. They also cannot identify malicious behavior deviating from normal processes during enterprise resource access, particularly those processes with suspected abnormalities but unknown legal status. This embodiment addresses this by associating application processes with the API characteristics executed within a specific time window during enterprise resource access. A voting algorithm resolves API call differences between different application versions, aggregating interface call behaviors of application processes of the same version to form a baseline characteristic. In a zero-trust network architecture, the API behavior of application processes is monitored in real-time. Processes deviating from the baseline are automatically handled, and their behavioral characteristics are analyzed and incorporated into subsequent detection processes. This reduces the risk of zero-day infection of enterprise devices, improves risk awareness, and enhances the security of the zero-trust network architecture and enterprise office security.
[0141] Specifically, in the application process detection method provided in this embodiment, the security client component writes a security module responsible for detecting a specified list of APIs to a designated directory on the terminal during installation. Attackers are adept at injecting into legitimate or trusted application processes through various injection techniques to conceal their malicious behavior. Due to the large number of modules in the terminal environment—for example, on the Windows platform, there are hundreds of system modules, and each module exports over a thousand API interfaces and COM (Cluster Communication port, serial communication port) interfaces, including dozens of subcategories such as network, system service, permission, and document. Detecting all these categories of APIs in an application process would result in a massive amount of logs, which is completely unnecessary. This embodiment mainly records whether the application process has triggered sensitive API operations or deviated from the baseline API call behavior. Therefore, it only detects APIs that attackers might exploit for sensitive operations. Furthermore, detecting APIs that trigger sensitive operations in an application process does not necessarily indicate malicious behavior; it could be an interface call triggered by the application process's own normal logic.
[0142] The list of sensitive APIs is configured by the administrator on the management terminal, and the policy is issued to the terminal. The security client installs the full module to receive, parse, and update the detection list. This includes classes for obtaining process information (e.g., libc::proc_pidinfo, proc_listpids on macOS), keylogging classes (NSEvent addGlobalMonitorForEvents, CGEventTapCreate, etc.), clipboard operations (NSPasteboard.general on macOS), full screen screenshot operations (CGWindowListCreateImage), querying system core count (processorCount), obtaining network connection information (proc_pidfdinfo), file operation classes (NSMetadataQuery on macOS, DeleteFile on Windows), obtaining process paths (libc::proc_pidpath, etc.), obtaining system information classes (GetSystemInfo, GetUserName, GetComputeName, etc. on Windows), and token operation classes (OpenProcessToken, DuplicateTokenEx, etc. on Windows). Different system platforms can be configured with different lists of detection APIs, which are configured, updated and distributed by the enterprise administrator. After receiving the list, the endpoint security module is responsible for parsing and executing it, and reporting the records of specific application process APIs triggered by the endpoint to the server.
[0143] The secure client performs continuous sensitive API checks on application processes accessing enterprise resources via a zero-trust network architecture. All application process characteristics accessing enterprise resources through the zero-trust network architecture on the terminal, including application version information, copyright information, digital signature chain, executable file hash, and absolute path of the executable file, are recorded by the secure client and stored in the terminal's persistent database. The secure client's driver layer uses `PsSetCreateProcessNotifyRoutine` to set callbacks for process startup and exit, completing the detection of all process creation and exit within the device. When a process starts, its characteristic information, including the absolute path of the executable file, the executable file's hash information, and copyright information, is collected and stored in a cache. The cache is cleared when the process exits to accelerate the efficiency of process characteristic information retrieval. Upon process startup, the client queries the terminal's persistent database to check if there is a corresponding enterprise resource access history record for that process's characteristics. If it exists, the security client performs the injection operation of the security module (.dll executable file), that is, injects the security module into the application process. The security module can act as an interface call detector to detect the target application process's calls to sensitive interfaces during runtime. If it does not exist, the injection operation is performed when the application process initiates access to enterprise resources. Data persistence is the collective term for converting in-memory data structures or object models into relational models, XML (Extensible Markup Language), JSON (JavaScript Object Notation), binary streams, etc., as well as converting storage models into in-memory data models. A persistence library is a storage medium for the content converted from in-memory data structures or object models, such as relational models, XML, JSON, and binary streams, stored in local disk files or data files on the device. It can be implemented using encrypted files, embedded databases, etc.
[0144] When a process initiates access to enterprise resources, it needs to send a ticket request to the ticket module of the security client via an access proxy. The ticket module then sends a ticket request to the server. Upon receiving the ticket request from the access proxy, the ticket module of the security client first collects the process's characteristic information based on the process ID of the application process sent by the access proxy. Specifically, querying the process characteristic cache information maintained by the driver layer can improve query efficiency. Next, it checks whether the process is already stored in the persistent database. If it is, it checks whether the security module has been injected into the process. If not, it performs security module injection for the process. If the persistent database does not contain a record of the process, it performs security module injection for the process and inserts the process information into the persistent database. Through these operations, application processes accessing enterprise resources via the zero-trust network are automatically injected with the security module upon startup, and injection is checked when requesting a network access ticket. If injection fails, it is performed again. For application processes that do not access enterprise resources via the zero-trust network, security module injection is performed only on their first access to enterprise resources via the zero-trust network.
[0145] Furthermore, such as Figure 8 As shown, a security module is injected into the application process accessing enterprise resources for process detection. This security module performs sensitive API detection according to sensitive API rules, including various categories of APIs such as system information retrieval, keylogging, and token manipulation. The APIs detected by the security module injected into the application process are not all reported to the server. Instead, API trigger records are extracted according to the API extraction rules issued by the server before being reported to the server for further processing. The API extraction rules include the time window for extracting API operations (whether it records API records from the application process's startup to shutdown, or API records within a period before and after enterprise resource access), the combination relationship of API calls (the order of API calls), the frequency (sent to the server for subsequent statistics), and API trigger record deduplication rules. Through these operations, continuous sensitive API detection is performed on the application process accessing enterprise resources, and the API operations, corresponding process versions, and other characteristic information are reported to the server.
[0146] After receiving API detection requests from the terminal, the server analyzes the patterns of sensitive API triggers, grouping similar APIs into several API combinations and associating them with specific applications. Upon receiving API trigger records from the terminal, the server establishes associations between specific application types and these API combinations based on the terminal's reported structure. For example... Figure 9As shown, a, b, c...f, etc., all refer to the subclasses to which the API belongs, such as the TOKEN operation class, the system information retrieval class, the keyboard operation class, etc. Figure 9 The numbers in the table represent the API IDs within their respective subcategories. Different IDs represent different APIs within the same category. For example, API_a1 and API_a3 represent different interfaces within the same category, while API_e1 and API_f5 represent different interfaces from different categories. A single API combination consists of APIs from different categories, generated by terminal extraction rules. It may include the order in which APIs are called or a set relationship indicating high frequency. Specifically, it may not include the order, only the set relationship. If several APIs frequently appear together, the order is not fixed. The set relationship is used to represent common characteristics of interface calls.
[0147] For scenarios involving iterative evolution of application process versions of the same type and the resulting regular changes in APIs, a voting algorithm based on data reported by the terminal application software is adopted to aggregate the interface call behavior of application processes of the same version, forming baseline characteristics. The server associates specific application types with several API combinations, using the version number as an important identifier and a key attribute of the specific application. If an application process does not have an explicit version number, the hash of its executable file is used instead. Different application versions have different API call characteristics; some applications with different version numbers trigger completely different API call characteristics. Therefore, it is necessary to adjust the association between APIs and applications accordingly for the iteration of the same application process version. Generally, such as... Figure 10 As an application iterates, lower versions are upgraded to higher versions, leading to a decline in lower-version applications and a gradual increase in higher-version applications. Consequently, certain API combinations associated with the application may gradually disappear, new API combinations may be added, or specific interfaces may be added or removed from API combinations. Using algorithms such as Moore's Voting, the server calculates the API characteristics that trigger a majority of APIs for a particular application within the enterprise. If the application characteristics are distributed across multiple versions, and no single version exhibits an overwhelming advantage, the server uses the API characteristics corresponding to each version number as multiple baseline characteristics for that application type. It then queries the corresponding baseline characteristics based on the application version to determine if there is any deviation. If a specific version of an application dominates within the enterprise, the API characteristics corresponding to that version are used as the baseline characteristics.
[0148] In a zero-trust network architecture on the endpoint, API behavior of application processes can be detected in real time, and processes deviating from the baseline can be automatically handled. After the endpoint security module is injected into the target process, it detects the sensitive API behavior of the application process in real time. If an API trigger record deviates from the baseline characteristics, and the server sends the known baseline characteristics to the endpoint, the endpoint can query the baseline characteristics based on the application's version number. If the process exhibits interface call behavior that deviates from the sensitive API characteristics, the execution of the process will be automatically stopped or the application's access to enterprise resources will be blocked according to the handling rules. For example, the issuance of network access tickets can be prohibited, or access can be blocked directly by the access proxy. In addition, the endpoint can also only be responsible for detection and reporting of API trigger records, while the server detects whether scenarios deviating from the baseline characteristics occur. If a deviation is detected, the server sends instructions to the endpoint to perform process blocking or endpoint network isolation operations.
[0149] Furthermore, the rules for determining whether an application process's API deviates from the baseline characteristics are defined by the server and can be executed by either the server or the client. The rules for determining the baseline characteristics can take various forms, primarily including the minimum scope that must be covered, API records that should not appear, the frequency of related API triggers, the order of specific API calls, and related parameters, etc.
[0150] The minimum scope that must be covered represents a range of APIs that the application process will definitely call. For example, when the application process accesses enterprise resources, there will definitely be a combination of a1, c4 and e3. If the API trigger record of a certain application process only contains some of these items and does not include all of them, it is considered that there is a baseline deviation. The deviation parameter can be configured in the rules. If the actual deviation value is greater than the parameter, it is considered that there is a baseline deviation; otherwise, it will not be dealt with within the allowed range.
[0151] The API records that will not appear are determined based on the application's type (instant messaging software, security management software, office software, etc.), usage scope (the scenarios and purposes in which the application is used), and data analysis of long-term monitoring results of the application's process APIs for a specific version. This determines the operations that the application will not access. API records that will not appear are generally sensitive configuration operations, such as privilege escalation, obtaining system information, or reading the memory of third-party processes. If an application accesses these types of APIs that are not expected to be called, there is reason to believe that the application deviates from the baseline and poses a certain security risk.
[0152] The frequency of relevant API triggers is determined by statistically analyzing the API call records of the application process over a relatively long period, extracting the call frequency of certain representative interfaces as a baseline. If, within certain observation periods, the application exhibits API calls with a frequency exceeding expectations, such as multiple privilege escalations or network port probing, it is considered a deviation from the baseline.
[0153] The order and related parameters of specific API calls indicate the relative order of API calls and whether the parameter values of certain API calls meet expectations. This rule is relatively strict and suitable for scenarios where the application's execution logic and call parameters are fully understood, which is significantly different from other rules (treating the execution logic of third-party applications as a black box). This type of rule works well for in-house developed software. Multiple standard execution points can be pre-embedded. Under normal execution conditions without third-party interference, the data detected by the expected detection module should match the pre-embedded call order and API call parameters. If the call parameters or the relative order of specific APIs deviate from the expected values, it is considered that the application is at risk of being modified by a third party or injected with malicious code.
[0154] In practical applications, if the server executes the logic to determine whether the API of a certain application process deviates from the baseline characteristics, the client is only responsible for reporting the trigger record of the specific application process to the server and receiving the instructions issued by the server to block or isolate the process from the network, without interfering with the application during the process's access to the network; if it is the latter case, the client can perform operations to prohibit the process from running or block access based on the rules issued by the server.
[0155] The application process detection and processing method provided in this embodiment associates the application process with the API characteristics executed within a certain time window during enterprise resource access, aggregating the interface call behavior of application processes of the same version to form a baseline feature. The API behavior of application processes is detected in real time on the terminal, and application processes deviating from the baseline are automatically handled, their behavioral characteristics are analyzed, and incorporated into subsequent detection processes. This embodiment can significantly improve the accuracy of trusted application detection in zero-trust network architectures, and can promptly detect and handle malicious behaviors that deviate from normal operations during enterprise resource access by processes suspected of being abnormal but whose legitimate status is unknown, or normal processes. This enhances the proactive countermeasures against advanced persistent threats (APTs), reduces the risk of zero-day infection of enterprise devices, improves risk perception capabilities and enterprise office security, and enhances the availability and security of zero-trust network control systems.
[0156] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0157] Based on the same inventive concept, this application also provides an application process detection and processing system for implementing the application process detection and processing method described above. The solution provided by this system is similar to the implementation scheme described in the above method; therefore, the specific limitations of one or more application process detection and processing system embodiments provided below can be found in the limitations of the application process detection and processing method described above, and will not be repeated here.
[0158] In one embodiment, such as Figure 11 As shown, an application process detection and processing system 1100 is provided, including: a terminal 1102 and a server 1104, wherein:
[0159] Terminal 1102 is used to detect the call operations of the target application process to sensitive interfaces during its operation when the process meets the detection trigger conditions, and to obtain the interface call characteristics of the sensitive interfaces.
[0160] Server 1104 is used to obtain baseline features associated with the target application. The baseline features are obtained by aggregating the security call data generated by the process of the target application making security calls to sensitive interfaces. The interface call features are compared with the baseline features to obtain the feature comparison results.
[0161] Terminal 1102 is also used to block the call operation of sensitive interfaces of the target application process when the feature comparison result indicates that the call operation does not belong to the type of safe call operation.
[0162] Based on the same inventive concept, this application also provides an application process detection and processing apparatus for implementing the application process detection and processing method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more application process detection and processing apparatus embodiments provided below can be found in the limitations of the application process detection and processing method described above, and will not be repeated here.
[0163] In one embodiment, such as Figure 12 As shown, an application process detection and processing device 1200 is provided, including: an interface call feature acquisition module 1202, a baseline feature acquisition module 1204, a feature comparison module 1206, and a blocking processing module 1208, wherein:
[0164] The interface call feature acquisition module 1202 is used to detect the call operations of the target application process to sensitive interfaces during the running process when the detection trigger condition is met, and to obtain the interface call features of sensitive interfaces.
[0165] The baseline feature acquisition module 1204 is used to acquire baseline features associated with the target application; the baseline features are obtained by aggregating the security call data generated by the process of the target application making security calls to sensitive interfaces.
[0166] The feature comparison module 1206 is used to compare the features called by the interface with the benchmark features to obtain the feature comparison results.
[0167] The blocking processing module 1208 is used to block the call operations of sensitive interfaces of the target application process when the feature comparison result indicates that the call operation does not belong to the type of safe call operation.
[0168] In one embodiment, the interface call feature acquisition module 1202 is further configured to query historical access data when the process of the target application starts; if there are access records of the target application process for the target resource in the historical access data, inject an interface call detector into the process of the target application; and through the interface call detector, detect the call operations of the target application process to sensitive interfaces during the running process to obtain the interface call features of sensitive interfaces.
[0169] In one embodiment, the interface call feature acquisition module 1202 is further configured to inject an interface call detector into the process of the target application when there is no access record of the target application process for the target resource in the historical access data, and the process of the target application triggers access to the target resource; when the interface call detector is successfully injected into the process of the target application, the generated access record of the target application process for the target resource is updated to the historical access data.
[0170] In one embodiment, the interface call feature acquisition module 1202 is further configured to perform a detector probe on the process of the target application when the process of the target application triggers access to the target resource; and when the probe result indicates that the interface call detector has not been injected into the process of the target application, inject the interface call detector into the process of the target application again.
[0171] In one embodiment, the interface call feature acquisition module 1202 is further configured to acquire a list of sensitive interfaces configured for the runtime environment of the target application; determine the interfaces called by the process of the target application during runtime; when the called interface belongs to a sensitive interface in the sensitive interface list, detect the call operation of the process of the target application on the sensitive interface to obtain the interface call feature of the sensitive interface.
[0172] In one embodiment, the interface call feature acquisition module 1202 is further configured to detect the call operations of sensitive interfaces for the process of the target application to obtain interface call detection data; obtain call feature filtering conditions; and filter the interface call detection data through the call feature filtering conditions to obtain the interface call features of sensitive interfaces.
[0173] In one embodiment, the feature comparison module 1206 is further configured to determine feature comparison items; the feature comparison items include at least one of the following: interface call type, interface call statistics, interface call order, or interface call parameters; the interface call features are compared with the respective feature comparison items in the baseline features to obtain feature deviation data; and the feature comparison result is obtained based on the feature deviation data and the feature deviation judgment conditions.
[0174] In one embodiment, the blocking processing module 1208 is further configured to determine the blocking method for the process of the target application when the feature comparison result indicates that the call operation does not belong to the operation type of secure call; and to block the call operation of the sensitive interface by the process of the target application according to the blocking method; wherein the blocking method includes at least one of stopping the operation of the process of the target application, blocking the process of the target application from accessing the target resource, or isolating the network.
[0175] In one embodiment, the baseline feature acquisition module 1204 is further configured to acquire process feature information of the process of the target application; determine the application identifier of the target application based on the process feature information; and query the baseline features associated with the target application based on the application identifier.
[0176] In one embodiment, the baseline feature acquisition module 1204 is further configured to: collect process feature information of the target application process when at least one of the following conditions is met: the target application process starts or the target application process triggers access to the target resource; store the process feature information in a cache; and retrieve the target application process feature information from the cache.
[0177] In one embodiment, the system further includes a baseline feature generation module, which is used to acquire the generated security call data during the process of the target application making secure calls to sensitive interfaces; divide the security call data according to the interface category to obtain category security call data associated with each interface category; and combine the category security call data according to the interface call feature aggregation conditions to obtain the baseline features associated with the target application.
[0178] In one embodiment, the baseline feature generation module is further configured to determine the process feature information of the target application's process; combine the category security call data according to the interface call feature aggregation conditions to obtain at least one interface call combination feature; and associate the at least one interface call combination feature with the process feature information to obtain the baseline feature associated with the target application.
[0179] In one embodiment, the baseline feature generation module is further configured to determine the version identifier of the target application based on process feature information; associate the combined features of interface calls belonging to the same version identifier with the process feature information to obtain the version baseline features of each version identifier; and filter based on the version baseline features of each version identifier to obtain the baseline features associated with the target application.
[0180] In one embodiment, the system further includes an access verification module, which is used to obtain access request parameters associated with the target application according to access verification conditions when the process of the target application triggers access to the target resource; generate an access ticket based on the access request parameters; perform access verification through the access ticket request; and access the target resource when the access verification is successful and the call operation to the sensitive interface does not trigger blocking processing.
[0181] In one embodiment, the system further includes a verification condition generation module, configured to display an access policy configuration area for the target application, obtain access policy configuration information of the target application through the access policy configuration area; display a resource access configuration area for the target resource, obtain resource access configuration information of the target resource through the resource access configuration area; and generate access verification conditions based on the access policy configuration information and the access policy configuration information.
[0182] Each module in the aforementioned application process detection and processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0183] In one embodiment, a computer device is provided, which may be a server or a terminal, and its internal structure diagram may be as follows: Figure 13As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores baseline characteristic data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements an application process detection and processing method.
[0184] Those skilled in the art will understand that Figure 13 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0185] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0186] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0187] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0188] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0189] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0190] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0191] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. An application process detection and processing method, characterized in that, The method includes: When the process of the target application meets the detection triggering condition, the call operations of the target application process to sensitive interfaces during the running process are detected to obtain the interface call characteristics of the sensitive interfaces. During the process of the target application making a secure call to the sensitive interface, the generated secure call data is obtained; The secure call data is divided according to the interface category to obtain the category secure call data associated with each interface category; Based on the interface call feature aggregation conditions, the category security call data are combined to obtain the baseline features associated with the target application; The interface call features are compared with the baseline features to obtain the feature comparison results. When the feature comparison result indicates that the call operation does not belong to the type of secure call operation, the call operation of the sensitive interface is blocked for the process of the target application.
2. The method according to claim 1, characterized in that, When the process of the target application meets the detection triggering condition, the process detects the call operations of the target application process to sensitive interfaces during its operation to obtain the interface call characteristics of the sensitive interfaces, including: When the target application's process starts, query historical access data; If the historical access data contains access records of the target application's process for the target resource, an interface call detector is injected into the target application's process. The interface call detector detects the calls to sensitive interfaces made by the process of the target application during its operation, thereby obtaining the interface call characteristics of the sensitive interfaces.
3. The method according to claim 2, characterized in that, The method further includes: If there is no access record of the target application process for the target resource in the historical access data, and the target application process triggers access to the target resource, the interface call detector is injected into the target application process. When the interface call detector is successfully injected into the process of the target application, the access records of the target application process to the target resource are updated in the historical access data.
4. The method according to claim 2, characterized in that, The method further includes: When the process of the target application triggers access to the target resource, the process of the target application is detected by a detector; If the detection result of the detector indicates that the interface call detector has not been injected into the process of the target application, the interface call detector will be injected into the process of the target application again.
5. The method according to claim 1, characterized in that, The process of the target application detects calls to sensitive interfaces during its operation to obtain interface call characteristics of the sensitive interfaces, including: Obtain a list of sensitive interfaces configured for the runtime environment of the target application; Identify the interfaces called by the process of the target application during its execution; When the called interface belongs to the sensitive interface in the sensitive interface list, the call operation of the sensitive interface by the process of the target application is detected to obtain the interface call characteristics of the sensitive interface.
6. The method according to claim 5, characterized in that, The detection of calls to the sensitive interface by the process of the target application to obtain the interface call characteristics of the sensitive interface includes: The process of the target application is used to detect the call operations of the sensitive interface, and interface call detection data is obtained. Retrieve the feature filtering conditions; The interface call detection data is filtered using the call feature filtering conditions to obtain the interface call features of the sensitive interface.
7. The method according to claim 1, characterized in that, The step of comparing the interface call features with the benchmark features to obtain the feature comparison result includes: Determine the feature comparison items; the feature comparison items include at least one of the following: interface type, interface call statistics, interface call order, or interface call parameters; The interface call features are compared with the respective feature comparison items in the benchmark features to obtain feature deviation data. Based on the feature deviation data and feature deviation judgment conditions, the feature comparison results are obtained.
8. The method according to claim 1, characterized in that, When the feature comparison result indicates that the call operation does not belong to the type of secure call, the call operation of the sensitive interface is blocked for the process of the target application, including: When the feature comparison result indicates that the call operation does not belong to the type of secure call operation, the blocking method for the process of the target application is determined; According to the blocking method, the call operations of the sensitive interface by the process of the target application are blocked. The blocking method includes at least one of stopping the execution of the target application's process, blocking the target application's process from accessing the target resource, or isolating the network.
9. The method according to claim 1, characterized in that, The step of obtaining the baseline features associated with the target application includes: Obtain process characteristic information of the target application's process; The application identifier of the target application is determined based on the process feature information; Based on the application identifier, the baseline features associated with the target application are retrieved.
10. The method according to claim 9, characterized in that, The method further includes: When at least one of the following conditions is met: the process of the target application starts, or the process of the target application triggers access to the target resource, process characteristic information of the process of the target application is collected. The process feature information is stored in a cache; The step of obtaining the process characteristic information of the target application includes: Retrieve the process characteristic information of the target application from the cache.
11. The method according to claim 1, characterized in that, The step of combining the category security call data according to the interface call feature aggregation conditions to obtain the baseline features associated with the target application includes: Determine the process characteristic information of the target application's process; Based on the interface call feature aggregation conditions, the category security call data are combined to obtain at least one interface call combination feature; By associating the combined features of the at least one interface call with the process feature information, a baseline feature associated with the target application is obtained.
12. The method according to claim 11, characterized in that, The step of associating the at least one interface call combination feature with the process feature information to obtain a baseline feature associated with the target application includes: The version identifier of the target application is determined based on the process characteristic information; The interface call combination features belonging to the same version identifier are associated with the process feature information to obtain the version base features of each version identifier. The baseline features associated with the target application are obtained by filtering based on the version baseline features of each version identifier.
13. The method according to any one of claims 1 to 12, characterized in that, The method further includes: When the process of the target application triggers access to the target resource, the access request parameters associated with the target application are obtained according to the access verification conditions. Generate an access ticket based on the access request parameters; Access is verified through the access ticket request. If the access verification is successful and the call to the sensitive interface does not trigger blocking, access to the target resource is granted.
14. The method according to claim 13, characterized in that, The method further includes: Display the access policy configuration area for the target application, and obtain the access policy configuration information of the target application through the access policy configuration area; Display the resource access configuration area for the target resource, and obtain the resource access configuration information of the target resource through the resource access configuration area; The access verification conditions are generated based on the access policy configuration information and the resource access configuration information.
15. An application process detection and processing system, characterized in that, The system includes: The terminal is used to detect the call operations of the target application process to sensitive interfaces during the running process when the detection trigger condition is met, and to obtain the interface call characteristics of the sensitive interfaces. The server is used to acquire the generated security call data during the process of the target application making a security call to the sensitive interface; divide the security call data according to the interface category to obtain category security call data associated with each interface category; combine the category security call data according to the interface call feature aggregation conditions to obtain the baseline feature associated with the target application; and compare the interface call feature with the baseline feature to obtain the feature comparison result. The terminal is further configured to block the call operation of the sensitive interface for the process of the target application when the feature comparison result indicates that the call operation does not belong to the type of safe call operation.
16. The application process detection and processing system according to claim 15, characterized in that, The terminal is also used to query historical access data when the process of the target application starts; if the historical access data contains access records of the target application process for the target resource, inject an interface call detector into the process of the target application; and through the interface call detector, detect the call operations of the target application process to sensitive interfaces during the operation of the process, and obtain the interface call characteristics of the sensitive interfaces.
17. The application process detection and processing system according to claim 16, characterized in that, The terminal is further configured to inject the interface call detector into the process of the target application when there is no access record of the target application process for the target resource in the historical access data, and the process of the target application triggers access to the target resource; when the interface call detector is successfully injected into the process of the target application, the generated access record of the target application process for the target resource is updated to the historical access data.
18. The application process detection and processing system according to claim 16, characterized in that, The terminal is also used to detect the process of the target application when the process of the target application triggers access to the target resource; If the detection result of the detector indicates that the interface call detector has not been injected into the process of the target application, the interface call detector will be injected into the process of the target application again.
19. The application process detection and processing system according to claim 15, characterized in that, The terminal is also used to obtain a list of sensitive interfaces configured for the runtime environment of the target application; determine the interfaces called by the process of the target application during its operation; when the called interface belongs to a sensitive interface in the list of sensitive interfaces, detect the calling operation of the process of the target application on the sensitive interface to obtain the interface calling characteristics of the sensitive interface.
20. The application process detection and processing system according to claim 19, characterized in that, The terminal is also used to detect the call operations of the sensitive interface by the process of the target application, obtain interface call detection data, and acquire call feature filtering conditions; The interface call detection data is filtered using the call feature filtering conditions to obtain the interface call features of the sensitive interface.
21. The application process detection and processing system according to claim 15, characterized in that, The server is also used to determine feature comparison items; the feature comparison items include at least one of the following: interface call type, interface call statistics, interface call order, or interface call parameters; the interface call features are compared with the respective feature comparison items in the baseline features to obtain feature deviation data; based on the feature deviation data and feature deviation judgment conditions, the feature comparison result is obtained.
22. The application process detection and processing system according to claim 15, characterized in that, The terminal is further configured to determine a blocking method for the process of the target application when the feature comparison result indicates that the call operation does not belong to the operation type of secure call; and to block the call operation of the sensitive interface by the process of the target application according to the blocking method; wherein the blocking method includes at least one of stopping the operation of the process of the target application, blocking the process of the target application from accessing the target resource, or isolating the network.
23. The application process detection and processing system according to claim 15, characterized in that, The server is also used to obtain process characteristic information of the target application's process; The application identifier of the target application is determined based on the process feature information; the baseline features associated with the target application are retrieved based on the application identifier.
24. The application process detection and processing system according to claim 23, characterized in that, The terminal is also used to collect process characteristic information of the target application's process when at least one of the following conditions is met: the process of the target application starts or the process of the target application triggers access to the target resource. The process feature information is stored in a cache; the process feature information of the target application is retrieved from the cache.
25. The application process detection and processing system according to claim 15, characterized in that, The server is also used to determine the process characteristic information of the target application's process; combine the category security call data according to the interface call feature aggregation conditions to obtain at least one interface call combination feature; and associate the at least one interface call combination feature with the process characteristic information to obtain a baseline feature associated with the target application.
26. The application process detection and processing system according to claim 25, characterized in that, The server is also configured to determine the version identifier of the target application based on the process feature information; associate the interface call combination features belonging to the same version identifier with the process feature information to obtain the version baseline features of each version identifier; and filter based on the version baseline features of each version identifier to obtain the baseline features associated with the target application.
27. The application process detection and processing system according to any one of claims 15 to 26, characterized in that, The terminal is also configured to, when the process of the target application triggers access to the target resource, obtain access request parameters associated with the target application according to the access verification conditions; generate an access ticket based on the access request parameters; perform access verification through the access ticket request; and when the access verification is successful and the call operation to the sensitive interface does not trigger blocking processing, access is granted to the target resource.
28. The application process detection and processing system according to claim 27, characterized in that, The terminal is also configured to display an access policy configuration area for the target application, and obtain access policy configuration information for the target application through the access policy configuration area; display a resource access configuration area for the target resource, and obtain resource access configuration information for the target resource through the resource access configuration area; and generate the access verification conditions based on the access policy configuration information and the resource access configuration information.
29. An application process detection and processing device, characterized in that, The device includes: The interface call feature acquisition module is used to detect the call operations of the target application process to sensitive interfaces during the running process when the detection trigger condition is met, and to obtain the interface call features of the sensitive interfaces. The baseline feature generation module is used to acquire the generated security call data during the process of the target application making a security call to the sensitive interface; divide the security call data according to the interface category to obtain the category security call data associated with each interface category; and combine the category security call data according to the interface call feature aggregation conditions to obtain the baseline feature associated with the target application. The feature comparison module is used to compare the interface call features with the benchmark features to obtain the feature comparison results. The blocking processing module is used to block the call operation of the sensitive interface by the process of the target application when the feature comparison result indicates that the call operation does not belong to the operation type of safe call.
30. The application process detection and processing device according to claim 29, characterized in that, The interface call feature acquisition module is further configured to query historical access data when the process of the target application starts; if the historical access data contains access records of the target application process for the target resource, inject an interface call detector into the process of the target application; and through the interface call detector, detect the call operations of the target application process to sensitive interfaces during operation to obtain the interface call features of the sensitive interfaces.
31. The application process detection and processing device according to claim 30, characterized in that, The interface call feature acquisition module is further configured to inject the interface call detector into the process of the target application when there is no access record of the target application process for the target resource in the historical access data, and the process of the target application triggers access to the target resource; when the interface call detector is successfully injected into the process of the target application, the generated access record of the target application process for the target resource is updated to the historical access data.
32. The application process detection and processing device according to claim 30, characterized in that, The interface call feature acquisition module is further configured to perform detector detection on the process of the target application when the process of the target application triggers access to the target resource; and if the detection result of the detector indicates that the interface call detector has not been injected into the process of the target application, the interface call detector is injected into the process of the target application again.
33. The application process detection and processing device according to claim 29, characterized in that, The interface call feature acquisition module is further configured to obtain a list of sensitive interfaces configured for the runtime environment of the target application; determine the interfaces called by the process of the target application during runtime; when the called interface belongs to a sensitive interface in the list of sensitive interfaces, detect the call operation of the process of the target application to the sensitive interface, and obtain the interface call feature of the sensitive interface.
34. The application process detection and processing device according to claim 33, characterized in that, The interface call feature acquisition module is also used to detect the call operations of the sensitive interface for the process of the target application, obtain interface call detection data, and obtain call feature filtering conditions; The interface call detection data is filtered using the call feature filtering conditions to obtain the interface call features of the sensitive interface.
35. The application process detection and processing device according to claim 29, characterized in that, The feature comparison module is also used to determine feature comparison items; the feature comparison items include at least one of the following: interface call type, interface call statistics, interface call order, or interface call parameters; the interface call features are compared with the respective feature comparison items in the baseline features to obtain feature deviation data; based on the feature deviation data and the feature deviation judgment conditions, the feature comparison result is obtained.
36. The application process detection and processing device according to claim 29, characterized in that, The blocking processing module is further configured to determine the blocking method for the process of the target application when the feature comparison result indicates that the call operation does not belong to the operation type of secure call; and to block the call operation of the sensitive interface by the process of the target application according to the blocking method; wherein the blocking method includes at least one of stopping the operation of the process of the target application, blocking the process of the target application from accessing the target resource, or isolating the network.
37. The application process detection and processing device according to claim 29, characterized in that, The baseline feature generation module is also used to obtain process feature information of the target application's process; The application identifier of the target application is determined based on the process feature information; the baseline features associated with the target application are retrieved based on the application identifier.
38. The application process detection and processing device according to claim 37, characterized in that, The baseline feature generation module is also used to collect process feature information of the target application's process when at least one of the following conditions is met: the process of the target application starts up, or the process of the target application triggers access to the target resource. The process feature information is stored in a cache; the process feature information of the target application is retrieved from the cache.
39. The application process detection and processing device according to claim 29, characterized in that, The baseline feature generation module is also used to determine the process feature information of the target application's process; combine the category security call data according to the interface call feature aggregation conditions to obtain at least one interface call combination feature; and associate the at least one interface call combination feature with the process feature information to obtain a baseline feature associated with the target application.
40. The application process detection and processing device according to claim 39, characterized in that, The baseline feature generation module is further configured to determine the version identifier of the target application based on the process feature information; associate the interface call combination features belonging to the same version identifier with the process feature information to obtain the version baseline features of each version identifier; and filter based on the version baseline features of each version identifier to obtain the baseline features associated with the target application.
41. The application process detection and processing apparatus according to any one of claims 29 to 40, characterized in that, The device further includes an access verification module, which is used to obtain access request parameters associated with the target application according to access verification conditions when the process of the target application triggers access to the target resource; generate an access ticket based on the access request parameters; perform access verification through the access ticket request; and when the access verification is successful and the call operation to the sensitive interface does not trigger blocking processing, access is granted to the target resource.
42. The application process detection and processing device according to claim 41, characterized in that, The device further includes a verification condition generation module, configured to display an access policy configuration area for the target application, obtain access policy configuration information of the target application through the access policy configuration area; display a resource access configuration area for the target resource, obtain resource access configuration information of the target resource through the resource access configuration area; and generate the access verification condition based on the access policy configuration information and the resource access configuration information.
43. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 14.
44. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 14.
45. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Control method and system of restricted access in Android application multi-running environment
CN108932427A
Defense method and device of application program and readable medium
CN109492391A
