Data processing method and device, electronic equipment, storage medium and program product
By building a device security detection method, determining the process characteristic information of the target process and processing components and processes that do not conform to the policy based on the component security policy, the problem of rough equipment security detection and long disposal cycle in the existing technology is solved, and the security and Detection efficiency.
Patent Information
- Application Number
- CN202310522406.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-09
- Publication Date
- 2024-11-12
AI Technical Summary
The existing technology has rough detection methods and poor results in equipment safety detection, which leads to a long disposal cycle of high-risk software, which cannot prevent risks in time, leading to poor security.
By determining the process characteristic information of the target process in the requesting device, a correspondence between components and processes is constructed, and security detection is carried out based on preconfigured component security policies to deal with components and processes that do not comply with the policy.
It improves the accuracy and disposal efficiency of security detection, ensures the security and reliability of resource access, optimizes the disposal cycle, and can respond quickly to the detection results.
Smart Images

Figure CN118944899A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to technical fields such as cloud technology and cloud security, and the present application relates to a data processing method, device, electronic device, storage medium and program product. Background Art
[0002] In some scenarios, the security protection of network resources not only focuses on the security of the network resource transmission in the network, but also on the security of the requesting device that requests access to the network resource. As for the security of the device, the focus is mainly on the security protection of the software in the device.
[0003] In the related technology, the installed software is mainly detected to see whether it is high-risk software, illegal software, etc., and the software that is hit is uninstalled.
[0004] However, the above method only detects from the software level, the detection method is rough and the effect is poor; and the method of uninstalling high-risk software has a long disposal cycle and cannot prevent risks in time; resulting in poor security of the above processing method. Summary of the invention
[0005] The present application provides a data processing method, device, electronic device, storage medium and program product, which can solve the problem of poor security in related technologies. The technical solution is as follows:
[0006] In one aspect, a data processing method is provided, the method comprising:
[0007] In response to receiving a security detection instruction for a requesting device, determining process characteristic information of at least one target process running in the requesting device, the process characteristic information at least including components loaded by the corresponding target process when running;
[0008] Based on the process characteristic information corresponding to the at least one target process, construct a corresponding relationship between at least one component and the target process corresponding to each component;
[0009] Perform security detection on each component based on a preconfigured component security policy to obtain detection results of each component, wherein the detection result of each component indicates whether it complies with a determination rule corresponding to each component in the component security policy, wherein the component security policy includes a plurality of determination rules for detecting whether a component is secure;
[0010] Based on the detection result of each component and the corresponding relationship, the target process corresponding to each component in the corresponding relationship is processed.
[0011] In another aspect, a data processing device is provided, the device comprising:
[0012] A determination module, configured to determine, in response to receiving a security detection instruction for a requesting device, process characteristic information of at least one target process running in the requesting device, wherein the process characteristic information at least includes components loaded by the corresponding target process when it is running;
[0013] A construction module, configured to construct a corresponding relationship between at least one component and the target process corresponding to each component based on the process characteristic information corresponding to the at least one target process;
[0014] A detection module, used to perform security detection on each component based on a preconfigured component security policy to obtain detection results of each component, wherein the detection result of each component indicates whether it complies with a determination rule corresponding to each component in the component security policy, wherein the component security policy includes a plurality of determination rules for detecting whether a component is safe;
[0015] The processing module is used to process the target process corresponding to each component in the corresponding relationship based on the detection result of each component and the corresponding relationship.
[0016] In a possible implementation, the process characteristic information further includes storage paths of various components loaded by the corresponding target process, and the device further includes:
[0017] An execution data acquisition module, used to acquire the execution data of each component based on the storage path of each component;
[0018] The detection module, when performing security detection on each component based on the pre-configured component security policy and obtaining the detection result of each component, is specifically used to:
[0019] Determining at least one determination rule corresponding to each component in the component security policy;
[0020] For each component, based on at least one determination rule corresponding to each component and the execution data of each component, a security check is performed on each component to obtain a check result of each component.
[0021] In a possible implementation, the detection module, when determining at least one determination rule corresponding to each component in the component security policy, is specifically used for any of the following:
[0022] Based on the correspondence between each candidate component and the determination rule in the component security policy, obtaining at least one determination rule corresponding to each component from the component security policy;
[0023] Obtaining a correspondence between each candidate application and a determination rule in the component security policy, and obtaining at least one determination rule corresponding to each component from the component security policy based on the application corresponding to each component;
[0024] The correspondence between each candidate address and the determination rule in the component security policy is obtained, and based on the resource access address corresponding to each component, at least one determination rule corresponding to each component is obtained from the component security policy.
[0025] In a possible implementation, the detection module, when performing security detection on each component based on at least one determination rule corresponding to each component and the execution data of each component to obtain the detection result of each component, is specifically used to:
[0026] Based on at least one determination rule and a combination logic relationship corresponding to each component, the determination rules corresponding to each component are combined to obtain a safety determination condition corresponding to each component;
[0027] The execution data of each component is matched with the corresponding security determination condition, and the detection result of each component is obtained based on the matching result.
[0028] In a possible implementation, for any component, the execution data of any component includes at least one of the following:
[0029] Information about the executable file of any of the components;
[0030] A digital signature of any of the components;
[0031] The local signature verification result of any of the components;
[0032] The information of the executable file of any component includes at least one of the following:
[0033] Description information of the executable file;
[0034] the version number of the executable file;
[0035] Copyright information of the executable file;
[0036] The last modification time of the executable file;
[0037] The size of the executable file.
[0038] In a possible implementation, the determination module, in response to receiving a security detection instruction for a requesting device, determines process feature information of at least one target process running in the requesting device, specifically performs any of the following:
[0039] In response to the target application being started, if it is detected that at least one access request to the target network resource is initiated in the requesting device, determining process characteristic information of the target process corresponding to the at least one access request;
[0040] In response to the target application being started, process characteristic information of each target process running in the global environment of the requesting device is determined.
[0041] In a possible implementation, the device further includes a feature information acquisition module, and the process information acquisition module, when acquiring a method for acquiring process feature information of at least one target process, is specifically configured to:
[0042] Obtain the process ID and storage path of each target process from the kernel layer of the requesting device;
[0043] Based on the process identifier and storage path of each target process, process characteristic information of each target process is obtained from the user layer of the requesting device.
[0044] In a possible implementation, the processing module, when processing the target process corresponding to each component in the corresponding relationship based on the detection result of each component and the corresponding relationship, is specifically configured to:
[0045] For each component, based on the correspondence between the at least one constructed component and the target process, determine the target process corresponding to each component;
[0046] Determine an associated process of the target process corresponding to each component, wherein the associated process includes at least one of a parent process of the target process, a child process, a process that creates the target process, or a matching process whose process feature information matches the target process;
[0047] Based on the detection result of each component and the processing method of the associated process, the target process corresponding to each component is processed.
[0048] On the other hand, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the above-mentioned data processing method.
[0049] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned data processing method is implemented.
[0050] On the other hand, a computer program product is provided, comprising a computer program, wherein the computer program implements the above data processing method when executed by a processor.
[0051] The beneficial effects of the technical solution provided by the embodiment of the present application are:
[0052] The data processing method provided by the present application determines the process characteristic information of at least one target process running in the requesting device to establish a correspondence between at least one component and the target process corresponding to each component; and performs security detection on each component based on a component security policy to obtain a detection result of each component, wherein the component security policy includes a plurality of determination rules for detecting whether a component is safe; and then processes the target process corresponding to the component based on the detection result of each component, performs security detection on the component using the component security policy, and processes the related processes thereby, refines the detection of the software to the granularity of the component loaded by the process, and can quickly locate the application process through the constructed correspondence, so as to quickly respond to the detection result of the component to process the corresponding process, and can effectively optimize the problems of long disposal cycle and untimely response in related technologies; improves the accuracy of security detection and the efficiency of disposal, and ensures the security and reliability of resource access. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.
[0054] Figure 1 A schematic diagram of an implementation environment for implementing a data processing method provided in an embodiment of the present application;
[0055] Figure 2 A flowchart of a data processing method provided in an embodiment of the present application;
[0056] Figure 3 A schematic diagram of a data processing method system architecture provided in an embodiment of the present application;
[0057] Figure 4 A page schematic diagram of a target application provided in an embodiment of the present application;
[0058] Figure 5 A simplified diagram of a system for accessing enterprise resources provided in an embodiment of the present application;
[0059] Figure 6 A schematic diagram of a system architecture for accessing enterprise resources provided in an embodiment of the present application;
[0060] Figure 7 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;
[0061] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0063] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said", and "the" used herein may also include plural forms. The terms "include" and "comprise" used in the embodiments of the present application mean that the corresponding features can be implemented as the presented features, information, data, steps, and operations, but do not exclude the implementation as other features, information, data, steps, operations, etc. supported by the technical field.
[0064] It can be understood that in the specific implementation of the present application, any user-related data such as process feature information, component execution data, digital signatures, user login information, etc., when the above embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0065] First, several terms that may be involved in this application are introduced and explained:
[0066] Zero Trust Access Control Policy: It consists of process information (trusted applications) that users can use and accessible business sites (accessible areas). When permissions are enabled, users can access any accessible area through any trusted application. The granularity of the Zero Trust Access Control Policy is the logged-in user, allowing different Zero Trust policies to be formulated for different logged-in users.
[0067] Trusted application: The terminal can access the application carrier of the internal business system with the trust granted by the management end, including the application name, application MD5, signature information, etc.
[0068] Reachable zone: The endpoint can access a list of internal sites set by the enterprise through the zero-trust network.
[0069] Component security policy: It can include multiple decision rules for component security detection. For example, a set of rules for enterprise terminal management issued by the administrator on the management side. It includes patch repair, zero-trust network management, security reinforcement strategy, etc.
[0070] Software supply chain attack: refers to taking advantage of the trust relationship between software vendors and end users to hijack or tamper with legitimate software during its normal dissemination or upgrade process, bypassing inspections to achieve illegal attack purposes. This includes source code contamination, development tool contamination, reserved backdoors, etc. This application can ensure the security of processes and software on the requesting device from a component perspective in a fine-grained manner.
[0071] Access subject: In the network, the party that initiates access, the person / device / application that accesses intranet business resources, is a digital entity composed of a single person, device, application, etc. or a combination of these factors.
[0072] Access object: The party being accessed in the network, that is, the enterprise's intranet business resources, including applications, systems (development and testing environment, operation and maintenance environment, production environment, etc.), data, interfaces, functions, etc.
[0073] Figure 1 is a schematic diagram of an implementation environment of a data processing method provided in an embodiment of the present application, such as Figure 1 As shown, the implementation environment includes: a request device 11, a server 12 and a resource server 13. The request device 11 is configured with a target application, and the server 12 is the background server of the target application. The resource server 13 is used to provide network resources accessed by the request device 11; for example, the resource server 13 can be an enterprise server for providing network resources within an enterprise. The target application can provide a function for managing access to the network resources of the resource server 13. For example, the request device 11 can be used as an access subject, and the resource server 13 can be used as an access object. The request device 11 can access the internal website of the enterprise, access the internal system of the enterprise, etc. through the server 12 and the resource server 13, and can achieve secure access to the internal network resources of the enterprise through the target application.
[0074] The requesting device 11 can execute the access process to the network resources by running the process. The server 12 can perform security detection on the components mounted by the process of the requesting device 11, process the processes corresponding to the components that do not comply with the security policy, such as controlling the process to exit, and can also process the applications or access requests corresponding to the components that do not comply with the security policy, such as interrupting the access request and preventing the access request from being re-initiated.
[0075] In a possible scenario, in addition to the target application pre-configured on the request device 11, other applications may also be configured; the other applications may be applications that support initiating access requests, for example, the other application program may be a trusted application authorized by the management end corresponding to the resource server 13; for example, the other application program may be in the form of an enterprise self-developed application, or a terminal command line interface, a terminal third-party tool, etc. When the request device 11 initiates an access request to the network resources of the resource server 13 through other applications, it runs the corresponding process. In addition, the request device 11 can also manage the running process through the target application, such as sending the process information of the process to the server 12, and the server 12 can determine the component mounted by the process based on the process information of the process, and perform security detection on the component based on the pre-configured component security policy. The component security policy can be used to measure whether the component has risks from the granularity of the component. By determining the component that does not comply with the component security policy, the process where the component is located, the corresponding access request, and even the application that initiates the access request can be located, and then its process, access request or related session, application, etc. are processed to ensure the security of the process of accessing network resources, thereby ensuring the cloud security of network resources.
[0076] It should be noted that the server 12 or resource server 13 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server or server cluster that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, and big data and artificial intelligence platforms. The request device 11 can be a terminal, which can be a smart phone, tablet computer, laptop computer, digital broadcast receiver, desktop computer, vehicle-mounted terminal (such as vehicle-mounted navigation terminal, vehicle-mounted computer, etc.), smart speaker, smart watch, etc. The terminal and the server can be directly or indirectly connected through wired or wireless communication, and can also be determined based on the actual application scenario requirements, which is not limited here.
[0077] Figure 2 The flowchart of a data processing method provided in the embodiment of the present application is shown in FIG. The execution subject of the method may be an electronic device. Figure 2 As shown, the method includes the following steps 201-204.
[0078] Step 201: In response to receiving a security detection instruction for a requesting device, the electronic device determines process feature information of at least one target process running in the requesting device.
[0079] The process characteristic information at least includes the components loaded by the corresponding target process when it is running. The process characteristic information can characterize the component loading status of the target process when it is running; illustratively, the process characteristic information at least includes the storage path of the components loaded by the target process. The security detection instruction is used to instruct to perform a security detection on at least one target process running in the requesting device.
[0080] In one possible manner, the requesting device may associate and store the characteristic information of each running process in the kernel layer and the user layer. Accordingly, the method for obtaining the process characteristic information of the at least one target process includes: obtaining the process identifier and storage path of each target process from the kernel layer of the requesting device; and obtaining the process characteristic information of each target process from the user layer of the requesting device based on the process identifier and storage path of each target process.
[0081] Exemplarily, in the requesting device, the creation and exit of the process can be monitored at the kernel layer (Ring0 layer). When a newly created target process is detected, the process identifier and storage path of the target process can be stored at the kernel layer, and the process feature information of the target process can be stored at the user layer (Ring3 layer).
[0082] It should be noted that in the kernel layer, notification messages of dynamic creation and exit of each process can be obtained through pre-configured callback functions. For example, PsSetCreateProcessNotifyRoutineEx (API interface function provided by WDK) can be used in the kernel layer to monitor the creation and exit process of the process to achieve dynamic real-time perception of each process in the requesting device. Among them, when it is detected that any target process in the requesting device is created, the process identification and storage path of the newly created target process can be obtained in the kernel layer through the callback function. The process identification information can be the process PID. In addition, other creation information of the target process when it is created can also be obtained, such as the parent process and child process of the target process, and the process information of creating the target process.
[0083] For example, the characteristic information of the target process can be obtained by using the parameter of the PPS_CREATE_NOTIFY_INFO type of the callback function, and the obtained characteristic information may include but is not limited to: the storage path of the component loaded by the target process, the storage path of the executable file of the loaded component, the parent process PID of the target process, the process PID of the process that creates the target process, the storage path of the target process, the thread ID that creates the target process, the file object of the executable file of the target process, the storage path of the executable file of the target process, the command line parameters created by the target process, the status of the target process creation (which can control the process to be allowed to be created), etc. Similarly, when it is detected that a process is about to exit, the process PID of the process that is about to exit can be obtained according to the HANDLE type parameter of the callback function, and the process body of the process that is about to exit can be obtained according to the PEPROCESS type parameter of the callback function.
[0084] Among them, a dynamic process cache is configured in both the kernel layer and the user layer. The requesting device can store the PID and storage path of the target process in the dynamic process cache of the kernel layer; and store the process characteristic information of the corresponding target process in the dynamic process cache of the user layer. For example, in the kernel layer, the PID and storage path of each target process can be stored by constructing a bidirectional linked list. The bidirectional linked list includes multiple nodes, each node corresponds to a target process, and can store the PID and storage path of the target process currently created and not exited in the requesting device. When a process is created in the requesting device, the node corresponding to the newly created process is added to the bidirectional linked list, and when the process exits, the node corresponding to the exited process is deleted from the bidirectional linked list. For example, the bidirectional linked list can be a LIST_ENTRY bidirectional linked list structure using the Windows kernel. The process characteristic information corresponding to the target process of each node is stored in the dynamic process cache of the user layer.
[0085] Exemplarily, a target application is pre-configured in the requesting device. When the requesting device starts the target application, the target application can be used to perform security detection on the target process in the requesting device.
[0086] When the target application is just started, the dynamic process cache is empty. By dynamically adding and deleting nodes, the dynamic process cache of the kernel layer and the user layer can be updated in real time based on the callback notification of process creation and exit, as well as the characteristic information of the process. While adding and deleting (when the process exits) the linked list nodes in the dynamic process cache of the kernel layer, the process characteristic information corresponding to the process PID and the storage path is sent to the user-mode process of the target application in the Ring3 layer. The Ring3 layer obtains the information of the newly created process. The client of the target application uses the API interfaces such as CreateToolhelp32Snapshot and Module32First in the Ring3 layer based on the process PID and storage path to obtain the absolute path of each component mounted by the process. By introducing the dynamic process cache, the efficiency of searching for process characteristic information based on the process PID and storage path can be effectively improved.
[0087] In one possible way, the electronic device may detect the access process of the specified network resource, and the at least one target process may be the process corresponding to the access request to the target network resource. In another possible way, the electronic device may also detect all processes running in the requesting device. Accordingly, step 201 may include the following two situations:
[0088] Case 1: In response to the start of the target application, if it is detected that at least one access request to the target network resource is initiated in the requesting device, the process characteristic information of the target process corresponding to the at least one access request is determined.
[0089] Exemplarily, the target network resource may be Figure 1 The network resources of the source server 13, for example, the electronic device detects the session process of accessing the enterprise's internal network resources to ensure the security of the enterprise's internal network resources.
[0090] Case 2: In response to the target application being started, process characteristic information of each target process running in the global environment of the requesting device is determined.
[0091] Exemplarily, each process in the global environment of the requesting device that is in operation can be used as the target process to be detected. It should be noted that in addition to detecting the resource access process, all application processes that are currently in operation can also be detected, which can further ensure the security of access to the target network resources.
[0092] Step 202: The electronic device constructs a correspondence between at least one component and the target process corresponding to each component based on the process feature information corresponding to the at least one target process.
[0093] The electronic device can traverse each component loaded by each target process when it is running, and count the target processes corresponding to each component to build a corresponding relationship between the component and each target process corresponding to the component. For example, the electronic device can associate and store the characteristic information of each component and the target process that loads the component.
[0094] In one example, the process characteristic information may also include the application corresponding to the process, and the electronic device may also construct a correspondence between each component and the target process and application corresponding to each component based on the process characteristic information corresponding to the target process. For example, the electronic device may associate and store the characteristic information of each component and the target process that loads the component, as well as the information of the application that loads the component.
[0095] It should be noted that by constructing a one-to-many mapping relationship between component information and the basic information of all software and target processes that load the component, the situation of the processes and software corresponding to each component can be clarified. In addition, the corresponding relationship can be updated in real time according to the status of the target process, such as the creation and exit of the target process, to effectively monitor the dynamic changes of the mapping relationship. For example, when the number of processes loading a component is reduced to 0, the mapping relationship corresponding to the component is deleted; when a new process loading the component is created, the newly created process is added to the processes corresponding to the component in the corresponding relationship.
[0096] Step 203: The electronic device performs security detection on each component based on the pre-configured component security policy to obtain detection results of each component.
[0097] The detection result of each component indicates whether it complies with the judgment rule corresponding to each component in the component security policy, and the component security policy includes multiple judgment rules for detecting whether the component is safe. Exemplarily, the electronic device can determine the judgment rules corresponding to each component from the component security policy; for each component, the component is security-checked based on the judgment rule corresponding to the component to obtain the detection result of the component.
[0098] In a possible example, the determination rule may be a rule for measuring whether the execution data of a component is safe. The electronic device may perform security monitoring in combination with the execution data of the component. Exemplarily, the process feature information also includes the storage path of each component loaded by the corresponding target process. Before step 203, the electronic device may also obtain the execution data of each component. The method for obtaining the execution data of each component may include: based on the storage path of each component, respectively obtaining the execution data of each component. Accordingly, the implementation method of step 203 may include the following steps 2031-2032:
[0099] Step 2031: The electronic device determines at least one determination rule corresponding to each component in the component security policy;
[0100] Step 2032: The electronic device performs a security check on each component based on at least one determination rule corresponding to each component and the execution data of each component to obtain a check result for each component.
[0101] Exemplarily, the execution data of the component is used to characterize the characteristics of the component during execution. For each component, the electronic device can determine whether the component complies with the determination rule according to the execution data of the component and the determination rule corresponding to the component to obtain a detection result.
[0102] In one possible approach, the determination rules corresponding to each component can be pre-configured in the component security policy, or the determination rules corresponding to the application can be configured in the component security policy, or the determination rules corresponding to each candidate address can be configured, and the candidate address can be the resource address corresponding to each network resource included in the target network resource. Accordingly, the implementation method of determining at least one determination rule corresponding to each component in the component security policy includes any one of the following methods 1 to 3:
[0103] Method 1: based on the correspondence between each candidate component and the determination rule in the component security policy, obtaining at least one determination rule corresponding to each component from the component security policy;
[0104] Method 2: Obtain the correspondence between each candidate application and the determination rule in the component security policy, and obtain at least one determination rule corresponding to each component from the component security policy based on the application corresponding to each component;
[0105] Method three: obtaining the correspondence between each candidate address and the determination rule in the component security policy, and obtaining at least one determination rule corresponding to each component from the component security policy based on the resource access address corresponding to each component.
[0106] Exemplarily, in method 1, the component security policy may include an association relationship between each candidate component and a determination rule corresponding to each candidate component; and based on each component to be subjected to security inspection, at least one determination rule corresponding to the component may be obtained.
[0107] In the second method, the component security policy may include each candidate application and the corresponding judgment rule for each candidate application; for example, the candidate application may be an enterprise self-developed application, or a trusted application in the software supply chain, etc. The application corresponding to the component refers to the application that loads the component. For each component, the electronic device may use at least one judgment rule in the component security policy corresponding to the application that loads the component as the judgment rule for the component based on the application that loads the component.
[0108] In mode three, the component security policy may also include the determination rules corresponding to each network resource in the target network resource. For example, when accessing the designated site A and designated site B of the enterprise, the corresponding determination rules may be different. The resource access address corresponding to the component refers to the resource access address of the access request corresponding to the component, indicating the address of the network resource requested to be accessed by the access request. For each component, the electronic device may use at least one determination rule corresponding to the resource access address in the component security policy as the determination rule of the component based on the resource access address of the access request corresponding to the component.
[0109] Exemplarily, the component security policy may include a list of modules to be loaded or a list of modules that are prohibited from being loaded. The list of modules to be loaded refers to modules that need to be loaded when the process is running, such as some specific security modules; the list of modules that are prohibited from being loaded refers to modules that are prohibited from being loaded when the process is running, such as modules that pose risks. For each component, the electronic device can determine whether the target process loads the list of modules to be loaded or the list of modules that are prohibited from being loaded based on the target process that loads the component, according to the list of modules to be loaded or the list of modules that are prohibited from being loaded; and obtain the detection result of the component based on the determination.
[0110] In one possible scenario, the component security policy may include a list of modules that the enterprise requires applications to load when accessing resources, or a list of modules that are prohibited from loading, or a combination of the two. The following are two scenarios:
[0111] Scenario 1: The enterprise administrator stipulates that when using software A containing self-developed components from the software supply chain to access the enterprise's internal business sites, specific security modules M1, M2, and M3 must be loaded, otherwise access to the intranet is prohibited.
[0112] Scenario 2: The enterprise administrator stipulates that when using any software from the software supply chain to access the internal business resources of the enterprise, it is prohibited to load specific modules (for example, some specific modules that have been found to have security risks in the virus database in advance, or some specific modules that have been identified to have abnormalities when submitting files for inspection), otherwise access to the intranet is prohibited.
[0113] In one possible manner, a component may correspond to one or more determination rules. If a component corresponds to multiple determination rules, the multiple determination rules may be combined according to the preconfigured combination logic, and the security detection may be performed in combination with the combined determination rules. Exemplarily, the implementation of step 2032 may include the following steps 2032a and 2032b:
[0114] Step 2032a: Based on at least one determination rule and a combination logic relationship corresponding to each component, the determination rules corresponding to each component are combined to obtain a safety determination condition corresponding to each component;
[0115] Step 2032b: Match the execution data of each component with the corresponding security judgment condition, and obtain the detection result of each component based on the matching result.
[0116] Exemplarily, the component security policy may include various determination rules for determining whether a component, software or process is safe. Multiple determination rules corresponding to each component may be combined by logic such as "and", "or", "not", etc.
[0117] For example, component A corresponds to judgment rule 1 and judgment rule 2. Judgment rule 1 and judgment rule 2 are combined according to the logical relationship of "or" to obtain the security judgment condition corresponding to component A. The security judgment condition indicates that if judgment rule 1 or judgment rule 2 is met, it can be determined that component A complies with the security policy. Of course, this application does not limit the number of judgment rules corresponding to each component and the logical relationship between the judgment rules. A component may also correspond to 3, 5 or more judgment rules, and the combined logical relationship between the multiple judgment rules can be more complex, which will not be listed here one by one.
[0118] In one possible manner, for any component, the execution data of the component includes at least one of the following:
[0119] Information about the executable file of any component;
[0120] a digital signature of that either component;
[0121] The local signature verification result of any component;
[0122] The information of the executable file of any component includes at least one of the following:
[0123] Description of the executable file;
[0124] The version number of the executable file;
[0125] The copyright information of the executable file;
[0126] The last modification time of the executable file;
[0127] The size of the executable file.
[0128] Exemplarily, the executable file of a component refers to a file loaded and executed by the operating system, which can be used to store the executable program corresponding to the component. The executable file can be a .dll file or an .exe file, etc. The information of the executable file of the component can be calculated according to the storage path of the component. For example, the last modification time (updatetime), description information (filedesc), size (filesize) and copyright information (copyright) or version number (filever) of the executable file can be calculated according to the absolute path (procpath) of the executable file. At the same time, the digital signature and local verification result of the executable file can also be calculated in parallel according to the absolute path of the executable file. Among them, the local verification result of the executable file includes but is not limited to: digital signature verification passed (SIGN_CHECK_PASS), digital signature verification failed (SIGN_CHECK_FAILED), digital signature verification timed out (SIGN_CHECK_TIMEOUT), and process without digital signature (PROC_NO_SIGN_INFO). Among them, the digital signature may include the name of the signer (sign_issuer).
[0129] Exemplarily, the MD5 value or other hash (HASH) value of the executable file can also be calculated according to the absolute path of the executable file. For example, other hash values can be SHA256. Among them, the MD5 value can be calculated using MD5 (Message-Digest Algorithm) for the executable file. The MD5 value can uniquely represent the characteristics of the executable file and can be used for digital signatures of the executable file, file integrity verification, etc.
[0130] Exemplarily, in step 2032b, one or more items in the execution data of the component may be matched with corresponding determination rules in the security determination condition of the component. For example, the security determination condition may include a determination rule such as: whether the MD5 value of the component matches a preconfigured value, and whether the digital signature of the component is the signature of a designated signer; then the MD5 value of the component in the component execution data and the signer's signature in the digital signature may be compared with the determination rule. If the comparison result is that the execution data matches the determination rule in the security determination condition, then the detection result of the component is that the component complies with the component security policy; otherwise, the detection result of the component is that the component does not comply with the component security policy.
[0131] In a possible example, the process characteristic information of the target process may also include one or more of the information, digital signature and local signature verification result of the executable file of the target process. Exemplarily, the information of the executable file of the target process can also be calculated based on the process identification and storage path of the target process. The information of the executable file of the target process may include but is not limited to: the last modification time, version number, size, copyright information, etc. of the executable file of the target process. The digital signature and local signature verification result of the target process can also be calculated based on the process identification and storage path of the target process; and the information, digital signature and local signature verification result of the executable file of the target process are stored in association with the process characteristic information corresponding to the target process in the user layer. For example, through the communication between the Ring3 layer and the Ring0 layer, one or more information of the target process calculated (corresponding to the description information of the executable file, copyright information, last modification time, path, md5, SHA256, signature information, etc.) is added to the process characteristic information corresponding to the target process in the Ring3 layer. If the component security policy includes a determination rule corresponding to the target process, the target process may also be subjected to security detection based on the process characteristic information of the target process (one or more information of the target process obtained by the above calculation).
[0132] It should be noted that in step 2031, the determination rules corresponding to the component can also be obtained by combining multiple methods in method 1 to method 3 of step 2031. In one possible method, for each component, the first determination rule corresponding to the component can be obtained through method 1, and the second determination rule corresponding to the application that loads the component and the third determination rule corresponding to the resource access address corresponding to the component can be obtained through method 2 and method 3 respectively; the first determination rule, the second determination rule and the third determination rule are used as at least one determination rule corresponding to the component. For example, the first determination rule may include but is not limited to: whether the MD5 value of the component matches the preconfigured value, whether the digital signature of the component is the signature of the designated signer; the second determination rule may include but is not limited to: whether the application belongs to the application in the trusted application list, whether the version number of the application belongs to the latest version, etc.; the third determination rule may be: if the resource access address belongs to the key monitoring resource in the target network resource, the resource access address corresponds to the list of modules to be loaded, and it can be determined whether the component or the target process that loads the component includes the modules in the list of modules to be loaded. Of course, this application does not limit the division method and corresponding relationship of each determination rule in the component security policy. For another example, the component security policy may also include a determination rule corresponding to the target process, and the implementation of step 2031 may also include the following fourth method:
[0133] Method 4: Obtain the correspondence between each candidate process and the determination rule in the component security policy, and based on the target process corresponding to each component, obtain at least one determination rule corresponding to each component from the component security policy.
[0134] For example, the fourth determination rule corresponding to the target process that loads the component can also be obtained through method 4, and the security determination of the component can be performed by combining the four determination rules. For example, the fourth determination rule may include but is not limited to: whether the last modification time of the executable file of the process belongs to the target period (such as the last three days), whether the local signature verification result of the process is verified, etc.
[0135] In one possible method, the electronic device can also perform preliminary security checks on the components loaded by each target process based on the judgment rules obtained by any of the methods in method 2, method 3 or method 4; filter out components that do not comply with security policies; and can also combine method 1 to obtain the judgment rules corresponding to the remaining components, and combine the judgment rules corresponding to each component to perform fine-grained security checks on each component; for example, when performing security checks based on the judgment rules obtained by method 2, method 3 or method 4, an asynchronous method can be used, combined with method 1, to perform security checks on the components one by one. It should be noted that by performing a preliminary and rapid screening of the list of components loaded corresponding to the process, if the detection is normal, the access is allowed, and at the same time, asynchronous further detection of each component is initiated, which can effectively deal with scenarios with more components and improve detection efficiency.
[0136] It should be noted that in some possible scenarios, enterprise administrators can obtain components with certain security risks in the software supply chain by linking other systems and add them to the component security policy, such as adding them to the blacklist component set of the component security policy, so as to uniformly manage and handle the resource access processes that are subsequently launched and the access sessions related to the risky components that currently exist. In terms of granularity, different component security policies can be set for different applications, different business systems, different access resources, or a combination of the three. This fine-grained detection of components can effectively improve the accuracy and comprehensiveness of detection, thereby ensuring the reliability of secure access to target network resources.
[0137] Step 204: The electronic device processes the target process corresponding to each component in the corresponding relationship based on the detection result of each component and the corresponding relationship.
[0138] Exemplarily, for any component, if the detection result of the component is that the component does not comply with the corresponding determination rule, that is, it does not comply with the component security policy; the electronic device can execute a first processing method for the target process corresponding to the component; the first processing method includes but is not limited to: forcing the execution process to exit, prohibiting the target process from restarting, etc. If the detection result of the component is that the component complies with the corresponding determination rule, that is, it complies with the component security policy; the electronic device can execute a second processing method for the target process corresponding to the component; the second processing method includes but is not limited to: temporarily allowing the target process to continue to execute, marking the target process as a temporarily low-risk process, etc.
[0139] Exemplarily, the electronic device may count the detection results of each component loaded by the target process, and process the target process based on the detection results of each component; for example, if each loaded component complies with the component security policy, the second processing method is executed on the target process; if at least one of the loaded components does not comply with the component security policy, the first processing method is executed on the target process.
[0140] In one possible manner, the process characteristic information may include information of associated processes associated with the target process, such as a parent process, a child process, etc.; the target process may also be processed in combination with the associated processes. Accordingly, a possible implementation of step 204 includes:
[0141] For each component, based on the correspondence between at least one constructed component and the target process, determine the target process corresponding to each component;
[0142] Determine an associated process of the target process corresponding to each component, where the associated process includes at least one of a parent process of the target process, a child process, a process that creates the target process, or a matching process whose process feature information matches the target process;
[0143] Based on the detection result of each component and the processing method of the associated process, the target process corresponding to each component is processed.
[0144] Exemplarily, the matching process in the associated process can be obtained by matching based on preconfigured matching rules. For example, the electronic device can match the process feature information of each process according to the preconfigured matching rules to obtain the matching process of each target process. The matching rules may include, but are not limited to: the signer in the digital signature is the same, the corresponding application is the same, the loaded components are overlapping, the accessed network resources are associated, etc. In other words, the matching process can be a process in which the signer in the process digital signature is the same as the signer of the target process, or it can be a process corresponding to the same application as the target process, etc.; the matching rules can be configured based on needs, and this application does not limit the matching rules.
[0145] Exemplarily, if the first processing method is executed on the associated process of the target process, the first processing method may also be executed on the target process. If the second processing method is executed on the associated process of the target process, the target process may be further processed in combination with the components loaded by the target process.
[0146] In one possible way, the electronic device can also process the application corresponding to the component. If the detection result of the component is that the component does not meet the corresponding determination rule, the electronic device can perform a third processing method on the application corresponding to the component, and the third processing method includes but is not limited to: marking the application as an untrusted application, interrupting the access request associated with the application, preventing the application from re-initiating the access request, and preventing the application from initiating other subsequent access requests. If the detection result of the component is that the component meets the corresponding determination rule, the electronic device can perform a fourth processing method on the application corresponding to the component, and the fourth processing method includes but is not limited to: marking the application as a trusted application and allowing the access request associated with the application to continue to execute. In another possible way, the electronic device can also perform processing on the component, such as interrupting the session corresponding to each resource access request associated with the component and preventing the session from being re-initiated, and reporting the audit information corresponding to the component to the server; the audit information may include the execution data of the component, or the execution data that does not meet the determination rule in the execution data, the requesting device corresponding to the component, the login user of the target application in the requesting device, the login time, etc.
[0147] It should be noted that processing applications, processes, components, etc., such as resource access processes and application-initiated sessions, can timely prevent risky processes from leaking data and performing lateral movement in the enterprise intranet. Comprehensive emergency response methods such as termination of resource access sessions, blocking of process launches, and forced exit of processes can effectively optimize the long processing cycle and untimely response problems in related technologies; improve the accuracy of security detection and the efficiency of processing, and ensure the security and reliability of access to important resources.
[0148] It should be noted that most software is no longer written completely from scratch. It is usually necessary to introduce one or more third-party suppliers, and usually various modules or components containing open source software are combined together. However, these modules or components from third parties are prone to risks, and over time, the security of these third-party suppliers is usually difficult to guarantee, making them a weak link in the software supply chain, bringing unprecedented security threats to the software supply chain. At present, there are some illegal behaviors that use software supply chain attacks as an important breakthrough to break the key infrastructure of enterprises, resulting in increasing security risks in the software supply chain. The inventor of this application has conducted in-depth analysis and research on illegal network behaviors in recent years and found that the spread and diffusion of malicious code accounts for a large proportion, especially forged malicious components. One of its main features is that it is covered with the "legal" cloak of regular manufacturers, which greatly improves the propagation speed and adverse effects of forged malicious code components. In addition, some security vulnerabilities may also be introduced in the development and writing process of program code. In addition, some open source components may also have known or unknown security vulnerabilities. With the increase in the use of open source components, the risk surface is also expanding, which is likely to introduce security defects into the software, posing a huge security threat to the software supply chain.
[0149] Related technologies cannot avoid and eliminate software security defects, and cannot eliminate the risks of the software supply chain. Therefore, it is currently necessary to establish a reliable security emergency plan. The data processing method provided by this application, on the one hand, refines the monitoring of applications accessing enterprise resources to the component level loaded by the process, and judges the components by combining different judgment rules in the component security policy, thereby obtaining the basis for judging whether the application accessing enterprise resources is legal. All access to the internal system of the enterprise will be based on user identity, endpoint security, and software compliance. The application process accessing related resources must be verified and authorized in accordance with the component security policy before the zero-trust access policy can be determined, and then the internal resources can be accessed. If the component security policy is not met in the middle, the access session will be terminated. On the other hand, based on the application process accessing enterprise resources, all processes currently in operation in the device are expanded, and for the component information mounted in the process within these ranges, a one-to-many mapping relationship between the component and the process, software, etc. that loads the component is constructed. Once the component is detected as abnormal, operations such as session termination and process forced exit can be quickly executed. It can quickly execute security responses, control and eliminate security threats and adverse effects brought about by security incidents, and further trace and solve the root causes of security incidents.
[0150] Figure 3 A schematic diagram of a security detection system architecture is shown. Figure 3As shown in the figure, the user is the access subject and the resource is the access object; the user can access the resource on the requesting device pre-configured with the target application; the access request is first treated as untrusted access, and the component loaded by the process is security checked through the component security policy. And through the control flow data interacting between the policy unified execution point and the policy unified decision point, combined with the zero-trust access control policy and the detection results, the corresponding processing process is executed. If the security detection fails, the execution control process exits and prohibits the process from restarting, interrupting the corresponding session, etc.; if the security detection passes, the application process can be classified as trusted, the session can be run, and the resources can continue to be accessed, such as office resources, data resources, development and operation resources, Internet resources, etc. in the access resources.
[0151] like Figure 4 As shown, Figure 4 A page diagram of a target application is provided. Figure 4 As shown, the target application provides zero-trust office services, and of course, other services such as virus detection and compliance testing are also provided. The user logs in to the target application in the requesting device, and the requesting device can connect to the enterprise intranet corresponding to the current object based on the user login information of the current user, so that the current user can use the data processing method provided by this application to ensure the security of the access process to the internal network resources of the enterprise content. Among them, the page of the zero-trust office service can also display the real-time security protection, trusted software configuration, device qualification, account login and other functions provided by the target application. As shown Figure 4 As shown, the current device is qualified, the current account has not been logged in, and the trusted software has not been configured.
[0152] Figure 5 Provides a simplified diagram of the framework for accessing enterprise resources. Figure 5 As shown, the target application acts as the provider of zero-trust network security services, the requesting device acts as the access subject that initiates the access request, and the resource server that provides the target network resources acts as the access object to be accessed. A unified entrance can be provided between the access subject and the access object through the zero-trust agent and access gateway to realize the access process to the target network resources.
[0153] Figure 6 A schematic diagram of the framework for accessing enterprise resources is provided, such as Figure 6 As shown, the framework includes a requesting device, a management server (that is, the background server of the target application), an intelligent gateway, and a business server. The various devices in the framework interact with each other to achieve the access process of the enterprise resources, which specifically includes:
[0154] Step ①: The requesting device intercepts the access request to the enterprise resources through the proxy process proxy, and obtains the URL, process pid (process number) and other information of the access request.
[0155] Step ②: The requesting device can request a ticket from the target application through the proxy process, such as a credential ticket for accessing network resources.
[0156] Step ③: The requesting device obtains information about the application program that initiates the access request, characteristics of the process that initiates the access request, and other information through the target application.
[0157] Step ④: The requesting device sends a ticket replacement request to the management server, where the ticket replacement request is used to replace access rights to the private network based on the ticket.
[0158] Step ⑤: The requesting device sends the information obtained in step ③ to the management server to implement process inspection. The management server is configured with a policy center, inspection service, ticket center, etc. Among them, the inspection service can be used to check whether the access right is available based on the information sent by the requesting device. The policy center can be configured with component security policies and can perform security inspections on components; the ticket center is used to manage tickets, such as ticket replacement.
[0159] Step ⑥: After the requesting device passes the security check and authentication by the management server, it returns a ticket response to the proxy process.
[0160] Step 7: The requesting device forwards the ticket and access request to the smart gateway through the proxy process.
[0161] Step ⑧: Based on the ticket, the intelligent gateway sends a ticket verification request to the management server.
[0162] Step ⑨: The intelligent gateway receives the verification result returned by the management server.
[0163] Step ⑩: If the verification result indicates that the access right is granted, the intelligent gateway verifies and forwards the access request to the corresponding business server.
[0164] Step ①1: Based on the access request, the business server returns response data to the target gateway.
[0165] Step ①2: The target gateway returns the response data to the proxy process of the requesting device.
[0166] Step ①3, the requesting device determines the process information corresponding to the response data through the proxy process, and based on the process information, transmits the response data back to the corresponding application so that the response result corresponding to the request can be accessed in the response page of the application.
[0167] The data processing method provided by the present application determines the process characteristic information of at least one target process running in the requesting device to establish a correspondence between at least one component and the target process corresponding to each component; and performs security detection on each component based on a component security policy to obtain a detection result of each component, wherein the component security policy includes a plurality of determination rules for detecting whether a component is safe; and then processes the target process corresponding to the component based on the detection result of each component, performs security detection on the component using the component security policy, and processes the related processes thereby, refines the detection of the software to the granularity of the component loaded by the process, and can quickly locate the application process through the constructed correspondence, so as to quickly respond to the detection result of the component to process the corresponding process, and can effectively optimize the problems of long disposal cycle and untimely response in related technologies; improves the accuracy of security detection and the efficiency of disposal, and ensures the security and reliability of resource access.
[0168] It can be understood that the data processing method of the present application may involve multiple technical fields such as cloud security, cloud computing, and cloud storage. For example, cloud security technology can be used to implement security testing of each component using component security policies; for example, the component security policy can use cloud storage technology to perform distributed storage in the cloud.
[0169] It is understandable that cloud security refers to the general term for security software, hardware, users, institutions, and security cloud platforms based on cloud computing business model applications. Cloud security integrates emerging technologies and concepts such as parallel processing, grid computing, and unknown virus behavior judgment. Through a large number of networked clients, it detects abnormal software behavior in the network, obtains the latest information on Trojans and malicious programs on the Internet, and sends it to the server for automatic analysis and processing, and then distributes virus and Trojan solutions to each client.
[0170] The main research directions of cloud security include: 1. Cloud computing security, which mainly studies how to ensure the security of the cloud itself and various applications on the cloud, including cloud computer system security, secure storage and isolation of user data, user access authentication, information transmission security, network attack protection, compliance auditing, etc.; 2. Cloudification of security infrastructure, which mainly studies how to use cloud computing to build and integrate security infrastructure resources and optimize security protection mechanisms, including building a large-scale security event, information collection and processing platform through cloud computing technology, realizing the collection and correlation analysis of massive information, and improving the control ability of security events and risk control capabilities of the entire network; 3. Cloud security services, which mainly studies various security services provided to users based on cloud computing platforms, such as antivirus services.
[0171] It is understandable that cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, so that various application systems can obtain computing power, storage space and information services as needed. The network that provides resources is called "cloud". The resources in the "cloud" are infinitely expandable in the eyes of users, and can be obtained at any time, used on demand, expanded at any time, and paid for by use.
[0172] As a provider of basic cloud computing capabilities, a cloud computing resource pool (referred to as a cloud platform, generally referred to as an IaaS (Infrastructure as a Service) platform) will be established, and various types of virtual resources will be deployed in the resource pool for external customers to choose to use. The cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices.
[0173] According to the logical function division, the PaaS (Platform as a Service) layer can be deployed on the IaaS (Infrastructure as a Service) layer, and the SaaS (Software as a Service) layer can be deployed on the PaaS layer. SaaS can also be deployed directly on IaaS. PaaS is a platform for software operation, such as databases, web containers, etc. SaaS is a variety of business software, such as web portals, SMS mass senders, etc. Generally speaking, SaaS and PaaS are upper layers relative to IaaS.
[0174] It can be understood that cloud storage is a new concept extended and developed from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of different types of storage devices (storage devices are also called storage nodes) in the network through application software or application interfaces to work together and provide external data storage and business access functions.
[0175] At present, the storage method of the storage system is: create a logical volume, and when creating a logical volume, allocate physical storage space for each logical volume. The physical storage space may be composed of disks of a storage device or several storage devices. The client stores data on a logical volume, that is, stores the data on the file system. The file system divides the data into many parts, each of which is an object. The object contains not only data but also additional information such as data identification (ID, ID entity). The file system writes each object into the physical storage space of the logical volume, and the file system records the storage location information of each object, so that when the client requests to access the data, the file system can allow the client to access the data according to the storage location information of each object.
[0176] The process of the storage system allocating physical storage space to a logical volume is as follows: based on the estimated capacity of the objects stored in the logical volume (this estimate often has a large margin relative to the actual capacity of the objects to be stored) and the grouping of independent redundant disk arrays (RAID, Redundant Array of Independent Disks), the physical storage space is pre-divided into stripes. A logical volume can be understood as a stripe, thereby allocating physical storage space to the logical volume.
[0177] Figure 7 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application. Figure 7 As shown, the device comprises:
[0178] A determination module 701 is used to determine, in response to receiving a security detection instruction for a requesting device, process characteristic information of at least one target process running in the requesting device, where the process characteristic information at least includes components loaded by the corresponding target process when it is running;
[0179] A construction module 702, configured to construct a correspondence between at least one component and a target process corresponding to each component based on process feature information corresponding to the at least one target process;
[0180] The detection module 703 is used to perform security detection on each component based on the pre-configured component security policy to obtain the detection results of each component, and the detection result of each component represents whether it complies with the judgment rule corresponding to each component in the component security policy, and the component security policy includes multiple judgment rules for detecting whether the component is safe;
[0181] The processing module 704 is used to process the target process corresponding to each component in the corresponding relationship based on the detection result of each component and the corresponding relationship.
[0182] In a possible implementation, the process characteristic information further includes storage paths of various components loaded by the corresponding target process, and the device further includes:
[0183] An execution data acquisition module, used to acquire the execution data of each component based on the storage path of each component;
[0184] The detection module performs security detection on each component based on the pre-configured component security policy and obtains the detection results of each component, which is specifically used to:
[0185] Determine at least one determination rule corresponding to each component in the component security policy;
[0186] For each component, based on at least one determination rule corresponding to each component and the execution data of each component, a security check is performed on each component to obtain a check result of each component.
[0187] In a possible implementation, the detection module, when determining at least one determination rule corresponding to each component in the component security policy, is specifically used for any of the following:
[0188] Based on the correspondence between each candidate component and the determination rule in the component security policy, obtaining at least one determination rule corresponding to each component from the component security policy;
[0189] Obtaining a correspondence between each candidate application and a determination rule in the component security policy, and obtaining at least one determination rule corresponding to each component from the component security policy based on the application corresponding to each component;
[0190] The correspondence between each candidate address and the determination rule in the component security policy is obtained, and based on the resource access address corresponding to each component, at least one determination rule corresponding to each component is obtained from the component security policy.
[0191] In a possible implementation, the detection module, when performing security detection on each component based on at least one determination rule corresponding to each component and the execution data of each component to obtain the detection result of each component, is specifically used to:
[0192] Based on at least one determination rule and a combination logic relationship corresponding to each component, the determination rules corresponding to each component are combined to obtain a safety determination condition corresponding to each component;
[0193] The execution data of each component is matched with the corresponding safety determination condition, and the detection result of each component is obtained based on the matching result.
[0194] In a possible implementation, for any component, the execution data of the any component includes at least one of the following:
[0195] Information about the executable file of any component;
[0196] a digital signature of that either component;
[0197] The local signature verification result of any component;
[0198] The information of the executable file of any component includes at least one of the following:
[0199] Description of the executable file;
[0200] The version number of the executable file;
[0201] The copyright information of the executable file;
[0202] The last modification time of the executable file;
[0203] The size of the executable file.
[0204] In a possible implementation, the determination module, in response to receiving a security detection instruction for a requesting device, determines process feature information of at least one target process running in the requesting device, specifically performs any of the following:
[0205] In response to the target application being started, if it is detected that at least one access request to the target network resource is initiated in the requesting device, determining process characteristic information of the target process corresponding to the at least one access request;
[0206] In response to the target application being started, process characteristic information of each target process running in the global environment of the requesting device is determined.
[0207] In a possible implementation, the device further includes a feature information acquisition module, and the process information acquisition module, when acquiring a method for acquiring process feature information of at least one target process, is specifically configured to:
[0208] Obtain the process ID and storage path of each target process from the kernel layer of the requesting device;
[0209] Based on the process identifier and storage path of each target process, process characteristic information of each target process is obtained from the user layer of the requesting device.
[0210] In a possible implementation, the processing module, when processing the target process corresponding to each component in the corresponding relationship based on the detection result of each component and the corresponding relationship, is specifically used to:
[0211] For each component, based on the correspondence between at least one constructed component and the target process, determine the target process corresponding to each component;
[0212] Determine an associated process of the target process corresponding to each component, where the associated process includes at least one of a parent process of the target process, a child process, a process that creates the target process, or a matching process whose process feature information matches the target process;
[0213] Based on the detection result of each component and the processing method of the associated process, the target process corresponding to each component is processed.
[0214] The data processing method provided by the present application determines the process characteristic information of at least one target process running in the requesting device to establish a correspondence between at least one component and the target process corresponding to each component; and performs security detection on each component based on a component security policy to obtain a detection result of each component, wherein the component security policy includes a plurality of determination rules for detecting whether a component is safe; and then processes the target process corresponding to the component based on the detection result of each component, performs security detection on the component using the component security policy, and processes the related processes thereby, refines the detection of the software to the granularity of the component loaded by the process, and can quickly locate the application process through the constructed correspondence, so as to quickly respond to the detection result of the component to process the corresponding process, and can effectively optimize the problems of long disposal cycle and untimely response in related technologies; improves the accuracy of security detection and the efficiency of disposal, and ensures the security and reliability of resource access.
[0215] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.
[0216] Figure 8 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8 As shown, the electronic device includes: a memory, a processor and a computer program stored in the memory, and the processor executes the above computer program to implement the steps of the data processing method. Compared with the related art, it can achieve:
[0217] The data processing method provided by the present application determines the process characteristic information of at least one target process running in the requesting device to establish a correspondence between at least one component and the target process corresponding to each component; and performs security detection on each component based on a component security policy to obtain a detection result of each component, wherein the component security policy includes a plurality of determination rules for detecting whether a component is safe; and then processes the target process corresponding to the component based on the detection result of each component, performs security detection on the component using the component security policy, and processes the related processes thereby, refines the detection of the software to the granularity of the component loaded by the process, and can quickly locate the application process through the constructed correspondence, so as to quickly respond to the detection result of the component to process the corresponding process, and can effectively optimize the problems of long disposal cycle and untimely response in related technologies; improves the accuracy of security detection and the efficiency of disposal, and ensures the security and reliability of resource access.
[0218] In an alternative embodiment, an electronic device is provided, such as Figure 8 As shown, Figure 8 The electronic device 800 shown includes: a processor 801 and a memory 803. The processor 801 and the memory 803 are connected, such as through a bus 802. Optionally, the electronic device 800 may also include a transceiver 804, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 804 is not limited to one, and the structure of the electronic device 800 does not constitute a limitation on the embodiments of the present application.
[0219] The processor 801 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 801 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0220] The bus 802 may include a path to transmit information between the above components. The bus 802 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 802 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0221] The memory 803 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium\other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.
[0222] The memory 803 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 801. The processor 801 is used to execute the computer program stored in the memory 803 to implement the steps shown in the above method embodiment.
[0223] Among them, electronic equipment includes but is not limited to: servers, terminals or cloud computing center equipment, etc.
[0224] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.
[0225] The embodiment of the present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the aforementioned method embodiment when executed by a processor.
[0226] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said", and "the" used herein may also include plural forms. The terms "include" and "comprise" used in the embodiments of the present application mean that the corresponding features can be implemented as the presented features, information, data, steps, and operations, but do not exclude the implementation as other features, information, data, steps, operations, etc. supported by the technical field.
[0227] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.
[0228] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0229] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.
Claims
1. A data processing method, characterized in that: The method comprises: In response to receiving a security detection instruction for a requesting device, determining process characteristic information of at least one target process running in the requesting device, the process characteristic information at least including components loaded by the corresponding target process when running; Based on the process characteristic information corresponding to the at least one target process, construct a corresponding relationship between at least one component and the target process corresponding to each component; Perform security detection on each component based on a preconfigured component security policy to obtain detection results of each component, wherein the detection result of each component indicates whether it complies with a determination rule corresponding to each component in the component security policy, wherein the component security policy includes a plurality of determination rules for detecting whether a component is secure; Based on the detection result of each component and the corresponding relationship, the target process corresponding to each component in the corresponding relationship is processed.
2. The method according to claim 1, characterized in that The process characteristic information also includes storage paths of various components loaded by the corresponding target process, and the method further includes: Based on the storage path of each component, the execution data of each component is obtained respectively; The security detection of each component is performed based on the pre-configured component security policy to obtain the detection results of each component, including: Determining at least one determination rule corresponding to each component in the component security policy; For each component, based on at least one determination rule corresponding to each component and the execution data of each component, a security check is performed on each component to obtain a check result of each component.
3. The method according to claim 2, characterized in that The determining of at least one determination rule corresponding to each component in the component security policy includes any one of the following: Based on the correspondence between each candidate component and the determination rule in the component security policy, obtaining at least one determination rule corresponding to each component from the component security policy; Obtaining a correspondence between each candidate application and a determination rule in the component security policy, and obtaining at least one determination rule corresponding to each component from the component security policy based on the application corresponding to each component; The correspondence between each candidate address and the determination rule in the component security policy is obtained, and based on the resource access address corresponding to each component, at least one determination rule corresponding to each component is obtained from the component security policy.
4. The method according to claim 2, characterized in that: For each component, based on at least one determination rule corresponding to each component and the execution data of each component, performing security detection on each component to obtain the detection result of each component includes: Based on at least one determination rule and a combination logic relationship corresponding to each component, the determination rules corresponding to each component are combined to obtain a safety determination condition corresponding to each component; The execution data of each component is matched with the corresponding security determination condition, and the detection result of each component is obtained based on the matching result.
5. The method according to claim 2, characterized in that: For any component, the execution data of any component includes at least one of the following: Information about the executable file of any of the components; A digital signature of any of the components; The local signature verification result of any of the components; The information of the executable file of any component includes at least one of the following: Description information of the executable file; the version number of the executable file; Copyright information of the executable file; The last modification time of the executable file; The size of the executable file.
6. The method according to claim 1, characterized in that In response to receiving a security detection instruction for a requesting device, determining process feature information of at least one target process running in the requesting device includes any of the following: In response to the target application being started, if it is detected that at least one access request to the target network resource is initiated in the requesting device, determining process characteristic information of the target process corresponding to the at least one access request; In response to the target application being started, process characteristic information of each target process running in the global environment of the requesting device is determined.
7. The method according to claim 1, characterized in that The method for acquiring the process characteristic information of the at least one target process includes: Obtain the process ID and storage path of each target process from the kernel layer of the requesting device; Based on the process identifier and storage path of each target process, process characteristic information of each target process is obtained from the user layer of the requesting device.
8. The method according to claim 1, characterized in that The processing of the target process corresponding to each component in the corresponding relationship based on the detection result of each component and the corresponding relationship includes: For each component, based on the correspondence between the at least one constructed component and the target process, determine the target process corresponding to each component; Determine an associated process of the target process corresponding to each component, wherein the associated process includes at least one of a parent process of the target process, a child process, a process that creates the target process, or a matching process whose process feature information matches the target process; Based on the detection result of each component and the processing method of the associated process, the target process corresponding to each component is processed.
9. A data processing device, characterized in that: The device comprises: A determination module, configured to determine, in response to receiving a security detection instruction for a requesting device, process characteristic information of at least one target process running in the requesting device, wherein the process characteristic information at least includes components loaded by the corresponding target process when it is running; A construction module, configured to construct a corresponding relationship between at least one component and the target process corresponding to each component based on the process characteristic information corresponding to the at least one target process; A detection module, used to perform security detection on each component based on a preconfigured component security policy to obtain detection results of each component, wherein the detection result of each component indicates whether it complies with a determination rule corresponding to each component in the component security policy, wherein the component security policy includes a plurality of determination rules for detecting whether a component is safe; The processing module is used to process the target process corresponding to each component in the corresponding relationship based on the detection result of each component and the corresponding relationship.
10. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
