Malicious process identification method, terminal, server, system and storage medium
By binding the process's message source information with sockets and listening to the creation information, building and sending process protocol packages, the problem of missing short processes and high resource consumption in the existing technology is solved, and low resource consumption is achieved malicious processes identified and monitored.
Patent Information
- Application Number
- CN201910604528.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-05
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2040-07-08
AI Technical Summary
The prior art is prone to missing data from shorter processes when monitoring processes, and increasing the frequency of data collection will lead to excessive resource consumption and inability to effectively identify malicious processes.
By binding the process's message source information with sockets, listening to the process's creation information, and building a process protocol package, sending it to the server to identify malicious processes, monitoring of long and short processes and malicious processes are achieved.
Under low resource consumption, it improves the identification efficiency of malicious processes, reduces the missed search rate of malicious programs, and ensures monitoring of all processes, including coverage of short processes.
Smart Images

Figure CN110362993B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet communication technology, and in particular to a malicious process identification method, terminal, server, system and storage medium. Background Art
[0002] The prior art packages the client's process monitoring data and sends it to the backend server through the network. In this process, if the package is intercepted by a hacker, the hacker can replay the backend server by continuously copying it, which may cause the backend server's business to crash. Therefore, it is necessary to monitor the process, identify malicious processes and intercept them.
[0003] The existing process monitoring method is to monitor the process by collecting process data at different time points. When the data collection frequency is not high, it is easy to miss the data of shorter processes. Therefore, the monitoring data obtained by this method is far from enough for data backtracking. If the error is reduced by increasing the data collection frequency, it will inevitably occupy a large amount of local CPU resources and a large amount of network bandwidth, resulting in high resource consumption.
[0004] Therefore, it is necessary to provide a malicious process identification method, terminal, server, system and storage medium to improve the recognition efficiency of malicious processes and reduce the missed detection rate of malicious programs with lower resource consumption. Summary of the invention
[0005] The present application provides a malicious process identification method, terminal, server, system and storage medium, which can improve the recognition efficiency of malicious processes and reduce the missed detection rate of malicious programs with lower resource consumption.
[0006] On the one hand, the present application provides a method for identifying a malicious process, the method comprising:
[0007] Binding message source information of a process to a socket, wherein the message source information of the process includes creation information of the process;
[0008] Based on the socket, monitoring the creation information of the process;
[0009] Building a process protocol package based on the identification information in the monitored process creation information, wherein the process protocol package includes attribute information of the process;
[0010] The process protocol packet is sent to a server so that the server can identify a malicious process.
[0011] Another aspect provides a method for identifying a malicious process, the method comprising:
[0012] A process protocol package sent by a receiving terminal; the process protocol package is a protocol package constructed by the terminal based on identification information in the creation information of the monitored process, the creation information of the monitored process is creation information obtained by the terminal based on socket monitoring, the socket is bound to the message source information of the process, and the message source information of the process includes the creation information of the process;
[0013] Based on the process protocol packet, a malicious process is identified.
[0014] On the other hand, a malicious process identification terminal is provided, the terminal comprising:
[0015] A message source information binding module, used to bind the message source information of a process to a socket, wherein the message source information of the process includes the creation information of the process;
[0016] A creation information monitoring module is used to monitor the creation information of the process based on the socket;
[0017] A process protocol package building module, used to build a process protocol package based on the identification information in the monitored process creation information, wherein the process protocol package includes attribute information of the process;
[0018] The process protocol packet sending module is used to send the process protocol packet to the server so that the server can identify the malicious process.
[0019] On the other hand, a malicious process identification server is provided, the server comprising:
[0020] A process protocol packet receiving module, used to receive a process protocol packet sent by a terminal; the process protocol packet is a protocol packet constructed by the terminal based on identification information in the creation information of the monitored process, the creation information of the monitored process is creation information obtained by the terminal based on socket monitoring, the socket is bound to the message source information of the process, and the message source information of the process includes the creation information of the process;
[0021] The malicious process identification module is used to identify the malicious process based on the process protocol package.
[0022] Another aspect provides a malicious process identification system, the system comprising a terminal and a server,
[0023] The terminal is used to bind message source information of a process to a socket, wherein the message source information of the process includes creation information of the process; and based on the socket, monitor the creation information of the process; and based on identification information in the monitored creation information of the process, construct a process protocol package, wherein the process protocol package includes attribute information of the process; and send the process protocol package to a server;
[0024] The server is used to identify malicious processes based on the process protocol packet.
[0025] On the other hand, a malicious process identification terminal is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the malicious process identification method as described above.
[0026] On the other hand, a malicious process identification server is provided, the server comprising a processor and a memory, the memory storing at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by the processor to implement the malicious process identification method as described above.
[0027] On the other hand, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the malicious process identification method as described above.
[0028] The malicious process identification method, terminal, server, system and storage medium provided by this application have the following technical effects:
[0029] The present application binds the message source information of the process to the socket, and based on the socket, monitors the creation information of the process; no matter whether the process is a long process or a short process, it can be monitored according to the socket, and the monitoring of any short process in the terminal will not be missed; then based on the identification information in the monitored process creation information, a process protocol package is constructed, and the process protocol package is sent to the server, so that the server identifies the malicious process; the technical solution of the present application can improve the recognition efficiency of the malicious process with lower resource consumption, and reduce the missed detection rate of the malicious process. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0031] Figure 1 is a schematic diagram of a system provided in an embodiment of the present application;
[0032] Figure 2 It is a flowchart of a malicious process identification method provided by an embodiment of the present application;
[0033] Figure 3 It is a flowchart of a method for monitoring the source information of a message process provided by an embodiment of the present application;
[0034] Figure 4 It is a flowchart of a method for a terminal to determine process attribute information based on process identification information provided by an embodiment of the present application;
[0035] Figure 5 It is a flowchart of a method for determining the legitimacy of a process protocol packet by a server provided in an embodiment of the present application;
[0036] Figure 6 It is a real-time data display interface for user-side process monitoring provided by the embodiment of the present application;
[0037] Figure 7 It is a flowchart of another malicious process identification method provided by an embodiment of the present application;
[0038] Figure 8 It is a flowchart of another malicious process identification method provided by an embodiment of the present application;
[0039] Fig. 9 It is a structural schematic diagram of a malicious process identification terminal provided in an embodiment of the present application;
[0040] Fig.10 It is a structural diagram of a malicious process identification server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the present 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 data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0043] See also Figure 1 , Figure 1 is a schematic diagram of a system provided in an embodiment of the present application, such as Figure 1 As shown, the system may include at least a server 01 and a client 02 .
[0044] Specifically, in the embodiments of this specification, the server 01 may include an independently operated server, a distributed server, or a server cluster composed of multiple servers. The server 01 may include a network communication unit, a processor, a memory, etc. Specifically, the server 01 may be used to provide background services for the client 02, and specifically, the server 01 may be used to identify malicious processes in the client 02.
[0045] Specifically, in the embodiments of this specification, the client 02 may include physical devices such as smart phones, desktop computers, tablet computers, laptops, digital assistants, smart wearable devices, etc., and may also include software running in physical devices, such as web pages provided by some service providers to users, or applications provided by these service providers to users. Specifically, the client 02 may be used to monitor the creation information of a process.
[0046] The following describes the malicious process identification method of this application based on the above system. Figure 2 It is a flowchart of a malicious process identification method provided in an embodiment of the present application. This specification provides method operation steps as described in the embodiment or flowchart, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only execution order. When the actual system or server product is executed, it can be executed in sequence or in parallel (for example, in a parallel processor or multi-threaded processing environment) according to the method shown in the embodiment or the accompanying drawings. Specifically, Figure 2 As shown, the method may include:
[0047] S201: The terminal binds message source information of a process to a socket, wherein the message source information of the process includes creation information of the process.
[0048] In the embodiment of the present specification, the process may be a process corresponding to an application in the terminal.
[0049] In the embodiment of the present specification, the message source information of the process may be the message source information of all processes in the terminal; when there are multiple processes, the message source information of the multiple processes is bound to the socket, so that the socket is used to monitor the multiple processes.
[0050] In the embodiments of this specification, Figure 3 As shown, before the step of binding the message source information of the process to the socket by the terminal, wherein the message source information of the process includes the creation information of the process, the method may further include:
[0051] The terminal creates a socket, and the socket type is a connector.
[0052] In the embodiment of the present specification, the message source information of the process may also include process exit information, process authority change information, etc.
[0053] In the embodiment of the present specification, the creation information of the process includes identification information of the process; for example, the identification information of the process may be an ID, a name, etc. of the process.
[0054] S203: The terminal monitors the creation information of the process based on the socket.
[0055] In some embodiments, Figure 3 As shown, whether to monitor the creation information of the process in the terminal can be determined by controlling the process event reporting switch; when the process event reporting switch is turned on, the process event processor starts to monitor the creation information of the process in the terminal; when the process event reporting switch is turned off, the process event processor stops monitoring the creation information of the process in the terminal.
[0056] In the embodiments of this specification, when the user fully trusts the application in the terminal, the user may choose not to monitor the process in the terminal, thereby reducing the occupation of network bandwidth; therefore, the user may determine whether to monitor the creation information of the process according to actual needs.
[0057] In the embodiment of this specification, the terminal may monitor the creation information of the process based on the socket, including:
[0058] The terminal monitors the message source information of the process based on the socket;
[0059] The terminal obtains creation information of the process based on the message source information of the process.
[0060] In the embodiment of this specification, the message source information of the process is bound to the socket, and based on the socket, the creation information of the process is monitored; no matter whether the process is a long process or a short process, it can be monitored based on the socket, and the monitoring of any short process in the terminal will not be missed.
[0061] S205: The terminal constructs a process protocol package based on the identification information in the monitored process creation information, where the process protocol package includes attribute information of the process;
[0062] In the embodiment of the present specification, the attribute information of the process may include the name of the process, the current message digest algorithm (md5) of the process, the path of the process, and the resources opened by the process (such as a socket handle).
[0063] In the embodiment of the present specification, the terminal may construct a process protocol package based on the identification information in the monitored process creation information, which may include:
[0064] S2051: The terminal determines, based on the identification information in the monitored process creation information, the attribute information of the process corresponding to the identification information;
[0065] S2053: The terminal constructs the process protocol package based on the attribute information of the process.
[0066] Specifically, in some implementations, since the events sent by the system in the terminal to the application layer generally only include the ID information of the process, if other attribute information of the process is to be obtained, the process event processor needs to query the / proc directory of the system, which will make the processor busy. Therefore, a separate thread can be used to obtain the attribute information of the process to avoid the main thread from being stuck.
[0067] In some embodiments, Figure 4 As shown, the terminal determines, based on the identification information in the monitored process creation information, the attribute information of the process corresponding to the identification information may include:
[0068] S20511: The terminal traverses the file descriptor (FD) directory of the process corresponding to the identification information (PID) based on the monitored process creation information, and determines the first index node number (PInode) of the process;
[0069] In some embodiments, the storage path of the FD directory may be / proc / $PID / fd;
[0070] S20513: The terminal traverses the network file to determine a second index node number list of the network;
[0071] In the embodiment of this specification, the storage path corresponding to the network file may be / proc / net / tcp or / proc / net / udp;
[0072] In the embodiment of the present specification, the second index node number list of the network includes multiple second index node numbers (NInode) corresponding to multiple files in the network.
[0073] S20515: When there is a second index node number that is the same as the first index node number in the second index node number list, the terminal obtains a network port number corresponding to the second index node number;
[0074] The step S20515 may further include the following steps:
[0075] S20514: The terminal determines whether there is a second index node number that is the same as the first index node number in the second index node number list.
[0076] In some embodiments, the method may further include:
[0077] When there is no second index node number identical to the first index node number in the second index node number list, the terminal continues to search for the first index node number of the next process and continues matching through iteration.
[0078] S20517: The terminal determines attribute information of the process corresponding to the first index node number based on the network port number.
[0079] In the embodiments of the present specification, when abnormal information is found on a certain network port, the corresponding malicious process can be queried through backtracking.
[0080] In some embodiments, before the step of constructing the process protocol package by the terminal based on the attribute information of the process, the method may further include:
[0081] The terminal determines whether the identification information in the creation information of the monitored process is in a black process list, where the black process list stores identification information of malicious processes;
[0082] In some embodiments, the method may further include:
[0083] The server creates a black process list;
[0084] Specifically, the server may create the black process list based on the identified malicious processes.
[0085] The server sends the black process list to the terminal.
[0086] Accordingly, the terminal constructs the process protocol package based on the attribute information of the process, including:
[0087] In the embodiment of the present specification, when the identification information in the creation information of the monitored process is in the black process list, the terminal constructs the process protocol package based on the attribute information of the process and the preset protocol;
[0088] In the embodiment of the present specification, the preset protocol may be a protocol pre-agreed between the terminal and the server, and may specifically be a hypertext transfer (http) protocol or a transmission control (tcp) protocol.
[0089] In the embodiment of the present specification, when the identification information in the creation information of the monitored process is not in the black process list, the terminal determines the first timestamp information and signature information of the process protocol packet;
[0090] The terminal constructs the process protocol package based on the attribute information of the process, the first timestamp information Tc, the signature information and the preset protocol.
[0091] In the embodiments of this specification, the signature information can be set based on the key agreed upon by the terminal and the server. Timestamp (timestamp), Unix timestamp, is the total number of seconds from 00:00:00 Greenwich time January 1, 1970 (08:00:00 Beijing time January 1, 1970) to the present. The signature information (sign) is the md5 calculated by concatenating the key (key) and the timestamp string. The key is obtained by negotiation between the terminal and the server during the login process.
[0092] In the embodiments of the present specification, the terminal can screen and identify local processes through a black process list. When the terminal identifies a black process, it directly composes a protocol package and reports it to the server to record the log, thereby facilitating subsequent inquiries by the user; when the terminal cannot identify the process, it assembles the protocol package and reports it to the server in a manner agreed upon by the terminal and the server, thereby facilitating the server to identify malicious protocol packages.
[0093] In the embodiment of the present specification, the terminal constructs the process protocol package based on the identification information in the monitored process creation information, including:
[0094] The terminal determines whether the identification information in the monitored process creation information is in a white process list, where the white process list stores identification information of legitimate processes;
[0095] When the identification information in the monitored process creation information is not in the white process list, the terminal executes the process protocol package based on the identification information in the monitored process creation information.
[0096] In some embodiments, the method may further include:
[0097] The server creates a white process list;
[0098] Specifically, the server may set a white process list based on processes trusted by the user or through identified legitimate processes;
[0099] The server sends the white process list to the terminal.
[0100] In the embodiment of the present specification, the terminal can filter out trusted legal processes through the white process list, and for legal processes, it is not necessary to send them to the server for confirmation.
[0101] S207: The terminal sends the process protocol packet to the server.
[0102] S209: The server identifies a malicious process based on the process protocol package.
[0103] In the embodiment of the present specification, when the identification information in the monitored process creation information is not in the black process list, the server identifying the malicious process based on the process protocol packet may include:
[0104] S2091: the server parses the process protocol package to determine the legitimacy of the process protocol package;
[0105] S2093: When the process protocol package is illegal, the server determines that the process corresponding to the process protocol package is a malicious process.
[0106] In some embodiments, Figure 5 As shown, the server parses the process protocol package and determines the legitimacy of the process protocol package, including:
[0107] S20911: the server parses the process protocol package to obtain first timestamp information Tc and signature information of the process protocol package;
[0108] S20913: The server determines whether a difference (Ts-Tc) between the current time Ts of the server and the time corresponding to the first timestamp information Tc is less than or equal to a first preset threshold;
[0109] S20915: If yes, the server verifies whether the signature information is legal based on the local key;
[0110] The server verifies whether the signature information is legal based on the local key;
[0111] Correspondingly, if not, the server determines that the process protocol package is illegal and records a log.
[0112] S20917: If the signature information is legal, the server parses the signature information and determines the second timestamp information Tr;
[0113] If not, the server determines that the process protocol packet is illegal and records a log.
[0114] S20919: The server determines whether a time difference (Tr-Tc) between the second timestamp information Tr and the first timestamp information Tc is less than or equal to a second preset threshold;
[0115] S209111: If so, the server determines that the process protocol package is legal.
[0116] If not, the server determines that the process protocol packet is illegal and records a log.
[0117] In the embodiments of this specification, the method may further include:
[0118] When the process is a malicious process, the server deletes the protocol package corresponding to the malicious process and sends a prompt message to the terminal.
[0119] In some implementations, after receiving the prompt information, the terminal can intercept the malicious process, thereby preventing the malicious process from performing a playback attack on the server.
[0120] In the embodiments of the present specification, the malicious process identification method can be applied to the Linux system, and the method can be implemented by the cloud host software. The cloud host software is a management software that will not have any performance on the host, but will provide users with real-time data display on the user's console. Figure 6 It is a real-time data display interface for user-side process monitoring. Users can intuitively see the relevant information (name, total number) of the current process in the terminal, and can also click "View Details" on the interface to obtain detailed information of any process.
[0121] It can be seen from the technical solution provided in the above embodiments of this specification that the message source information of the process is bound to the socket in the embodiments of this specification, and based on the socket, the creation information of the process is monitored; regardless of whether the process is a long process or a short process, it can be monitored according to the socket, and the monitoring of any short process in the terminal will not be missed; then, based on the identification information in the creation information of the monitored process, a process protocol package is constructed, and the process protocol package is sent to the server so that the server identifies the malicious process; by adopting the technical solution of the present application, the recognition efficiency of malicious processes can be improved with lower resource consumption, and the missed detection rate of malicious processes can be reduced.
[0122] The following describes a specific embodiment of a malicious process identification method in this specification using a terminal as the execution subject. Figure 7 This is a flowchart of a malicious process identification method provided by an embodiment of the present application. Specifically, Figure 7 As shown, the method may include:
[0123] S701: Binding message source information of a process to a socket, wherein the message source information of the process includes creation information of the process;
[0124] S703: Based on the socket, monitor the creation information of the process;
[0125] S705: constructing a process protocol package based on the identification information in the monitored process creation information, where the process protocol package includes attribute information of the process;
[0126] In the embodiment of the present specification, the step of constructing the process protocol package based on the identification information in the monitored process creation information may include:
[0127] Based on the identification information in the monitored process creation information, determining the attribute information of the process corresponding to the identification information;
[0128] The process protocol package is constructed based on the attribute information of the process.
[0129] In the embodiment of the present specification, determining the attribute information of the process corresponding to the identification information based on the identification information in the monitored process creation information may include:
[0130] Based on the identification information in the monitored creation information of the process, traverse the file descriptor directory of the process to determine the first inode number of the process;
[0131] Traverse the network file to determine the second index node number list of the network;
[0132] When there is a second index node number that is the same as the first index node number in the second index node number list, obtaining a network port number corresponding to the second index node number;
[0133] Based on the network port number, attribute information of the process corresponding to the first index node number is determined.
[0134] In the embodiment of the present specification, before the step of constructing the process protocol package based on the attribute information of the process, the method may further include:
[0135] Determine whether the identification information in the creation information of the monitored process is in a black process list, wherein the black process list stores identification information of malicious processes;
[0136] Accordingly, constructing the process protocol package based on the attribute information of the process may include:
[0137] When the identification information in the monitored process creation information is in the black process list, constructing the process protocol package based on the attribute information of the process and the preset protocol;
[0138] When the identification information in the monitored process creation information is not in the black process list, determining the first timestamp information and signature information of the process protocol packet;
[0139] The process protocol package is constructed based on the attribute information of the process, the first timestamp information, the signature information and the preset protocol.
[0140] In some implementations, constructing a process protocol package based on the identification information in the monitored process creation information may include:
[0141] Determine whether the identification information in the monitored process creation information is in a white process list, where the white process list stores identification information of legitimate processes;
[0142] When the identification information in the monitored process creation information is not in the white process list, constructing the process protocol package based on the identification information in the monitored process creation information.
[0143] S707: Send the process protocol packet to the server, so that the server can identify the malicious process.
[0144] In some embodiments, the method may further include:
[0145] When the process is a malicious process, a prompt message sent by the server is received.
[0146] An embodiment of the present specification provides a malicious process identification terminal, the terminal including a processor and a memory, the memory storing at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by the processor to implement the malicious process identification method as described above.
[0147] The following describes a specific embodiment of a malicious process identification method in this specification using a server as the execution subject. Figure 8 This is a flowchart of a malicious process identification method provided by an embodiment of the present application. Specifically, Figure 8 As shown, the method may include:
[0148] S801: receiving a process protocol package sent by a terminal; the process protocol package is a protocol package constructed by the terminal based on identification information in the creation information of the monitored process, the creation information of the monitored process is creation information obtained by the terminal based on socket monitoring, the socket is bound to the message source information of the process, and the message source information of the process includes the creation information of the process;
[0149] S803: Identify malicious processes based on the process protocol package.
[0150] In the embodiment of the present specification, identification information of malicious processes is stored in the black process list. When the identification information in the creation information of the monitored process is not in the black process list, identifying the malicious process based on the process protocol packet may include:
[0151] Parsing the process protocol package to determine the legitimacy of the process protocol package;
[0152] When the process protocol package is illegal, it is determined that the process corresponding to the process protocol package is a malicious process.
[0153] In the embodiment of this specification, parsing the process protocol package and determining the legitimacy of the process protocol package may include:
[0154] Parsing the process protocol package to obtain first timestamp information and signature information of the process protocol package;
[0155] When the difference between the current time of the local server and the time corresponding to the first timestamp information is less than or equal to a first preset threshold, determining the legitimacy of the signature information;
[0156] When the signature information is legal, parsing the signature information to determine the second timestamp information;
[0157] When the difference between the time corresponding to the second timestamp information and the time corresponding to the first timestamp information is less than or equal to a second preset threshold, it is determined that the process protocol is legal.
[0158] In the embodiments of this specification, the method may further include:
[0159] When the process is a malicious process, the process protocol package corresponding to the malicious process is deleted, and a prompt message is sent to the terminal.
[0160] An embodiment of the present specification provides a malicious process identification server, the server comprising a processor and a memory, the memory storing at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by the processor to implement the malicious process identification method as described above.
[0161] In the embodiments of this specification, the memory can be used to store software programs and modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for functions, etc.; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide the processor with access to the memory.
[0162] An embodiment of the present specification provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the malicious process identification method as described above.
[0163] The present application embodiment also provides a malicious process identification terminal, such as Fig. 9 As shown, the terminal may include:
[0164] A message source information binding module 910, used to bind the message source information of a process to a socket, wherein the message source information of the process includes the creation information of the process;
[0165] A creation information monitoring module 920, used for monitoring the creation information of the process based on the socket;
[0166] The process protocol package building module 930 is used to build a process protocol package based on the identification information in the monitored process creation information, and the process protocol package includes the attribute information of the process;
[0167] The process protocol packet sending module 940 is used to send the process protocol packet to the server so that the server can identify the malicious process.
[0168] In some embodiments, the process protocol package construction module may include:
[0169] an attribute information determining unit, configured to determine attribute information of a process corresponding to the identification information based on the identification information in the monitored process creation information;
[0170] The process protocol package construction unit is used to construct the process protocol package based on the attribute information of the process.
[0171] In some embodiments, the attribute information determining unit may include:
[0172] A first index node number determination subunit, configured to traverse the file descriptor directory of the process based on the identification information in the monitored creation information of the process, and determine the first index node number of the process;
[0173] A second index node number list determination subunit, used to traverse the network file and determine the second index node number list of the network;
[0174] a network port number acquisition subunit, configured to acquire a network port number corresponding to the second index node number when there is a second index node number identical to the first index node number in the second index node number list;
[0175] The attribute information determination subunit is used to determine the attribute information of the process corresponding to the first index node number based on the network port number.
[0176] In some embodiments, the terminal may further include:
[0177] The identification information judgment module is used to judge whether the identification information in the creation information of the monitored process is in a black process list, and the black process list stores the identification information of malicious processes.
[0178] In some embodiments, the process protocol package construction unit may include:
[0179] A first construction subunit is configured to construct the process protocol package based on the attribute information of the process and a preset protocol when the identification information in the creation information of the monitored process is in the black process list;
[0180] an information determination subunit, configured to determine the first timestamp information and signature information of the process protocol packet when the identification information in the monitored process creation information is not in the black process list;
[0181] The second construction subunit is used to construct the process protocol package based on the attribute information of the process, the first timestamp information, the signature information and a preset protocol.
[0182] In some embodiments, the process protocol package construction module may include:
[0183] an identification information judging unit, used to judge whether the identification information in the monitored process creation information is in a white process list, wherein the white process list stores the identification information of legitimate processes;
[0184] The execution unit is used to construct the process protocol package based on the identification information in the creation information of the monitored process when the identification information in the creation information of the monitored process is not in the white process list.
[0185] In some embodiments, the apparatus may further include:
[0186] The prompt information receiving module is used to receive the prompt information sent by the server when the process is a malicious process.
[0187] The terminal and method embodiments in the terminal embodiments are based on the same inventive concept.
[0188] The present application also provides a malicious process identification server, such as Fig.10 As shown, the server may include:
[0189] The process protocol packet receiving module 1010 is used to receive a process protocol packet sent by a terminal; the process protocol packet is a protocol packet constructed by the terminal based on identification information in the creation information of the monitored process, the creation information of the monitored process is creation information obtained by the terminal based on socket monitoring, the socket is bound to the message source information of the process, and the message source information of the process includes the creation information of the process;
[0190] The malicious process identification module 1020 is used to identify the malicious process based on the process protocol packet.
[0191] In some embodiments, the black process list stores identification information of malicious processes. When the identification information in the monitored process creation information is not in the black process list, the malicious process identification module may include:
[0192] A legitimacy determination unit, used for parsing the process protocol package to determine the legitimacy of the process protocol package;
[0193] The malicious process determination unit is used to determine that the process corresponding to the process protocol package is a malicious process when the process protocol package is illegal.
[0194] In some embodiments, the legitimacy determination unit may include:
[0195] The protocol packet parsing subunit is used to parse the process protocol packet and obtain the first timestamp information and signature information of the process protocol packet;
[0196] A signature information legitimacy determination subunit, configured to determine the legitimacy of the signature information when the difference between the current time of the local server and the time corresponding to the first timestamp information is less than or equal to a first preset threshold;
[0197] A second timestamp information determining subunit, configured to parse the signature information and determine the second timestamp information when the signature information is legal;
[0198] The legal protocol package determining subunit is used to determine that the process protocol package is legal when the difference between the time corresponding to the second timestamp information and the first timestamp information is less than or equal to a second preset threshold.
[0199] In some embodiments, the server may further include:
[0200] The prompt information sending module is used to delete the process protocol package corresponding to the malicious process and send prompt information to the terminal when the process is a malicious process.
[0201] The server in the server embodiment and the method embodiment are based on the same inventive concept.
[0202] On the other hand, the present application also provides a malicious process identification system, including a terminal and a server,
[0203] The terminal is used to bind message source information of a process to a socket, wherein the message source information of the process includes creation information of the process; and based on the socket, monitor the creation information of the process; and based on identification information in the monitored creation information of the process, construct a process protocol package, wherein the process protocol package includes attribute information of the process; and send the process protocol package to a server;
[0204] The server is used to identify malicious processes based on the process protocol packet.
[0205] It can be seen from the embodiments of the malicious process identification method, device, server, terminal, storage medium or system provided by the present application that in the embodiments of the present specification, the message source information of the process is bound to the socket, and based on the socket, the creation information of the process is monitored; regardless of whether the process is a long process or a short process, it can be monitored according to the socket, and the monitoring of any short process in the terminal will not be missed; then, based on the identification information in the creation information of the monitored process, a process protocol package is constructed, and the process protocol package is sent to the server so that the server identifies the malicious process; the technical solution of the present application can improve the recognition efficiency of malicious processes with lower resource consumption, and reduce the missed detection rate of malicious processes.
[0206] It should be noted that the above-mentioned sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of this specification are described. Other embodiments are within the scope of the attached claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0207] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the terminal, server, system and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0208] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0209] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A method for identifying malicious processes, characterized in that: The method comprises: Binding message source information of a process to a socket, wherein the message source information of the process includes creation information of the process; Based on the socket, monitoring the creation information of the process; Building a process protocol package based on the identification information in the monitored process creation information, wherein the process protocol package includes attribute information of the process; The process protocol package is sent to a server, and the server is used to parse the process protocol package and obtain the first timestamp information and signature information of the process protocol package when the identification information in the creation information of the monitored process is not in the black process list; the identification information of the malicious process is stored in the black process list; when the difference between the current time of the server and the time corresponding to the first timestamp information is less than or equal to a first preset threshold, the legitimacy of the signature information is determined; when the signature information is legal, the signature information is parsed to determine the second timestamp information; when the difference between the second timestamp information and the time corresponding to the first timestamp information is less than or equal to a second preset threshold, the process protocol package is determined to be legal; when the process protocol package is illegal, it is determined that the process corresponding to the process protocol package is a malicious process.
2. The method according to claim 1, characterized in that The step of constructing a process protocol package based on the identification information in the monitored process creation information includes: Based on the identification information in the monitored process creation information, determining the attribute information of the process corresponding to the identification information; The process protocol package is constructed based on the attribute information of the process.
3. The method according to claim 2, characterized in that The determining, based on the identification information in the monitored process creation information, the attribute information of the process corresponding to the identification information includes: Based on the identification information in the monitored process creation information, traverse the file descriptor directory of the process corresponding to the identification information to determine the first inode number of the process; Traverse the network file to determine the second index node number list of the network; When there is a second index node number that is the same as the first index node number in the second index node number list, obtaining a network port number corresponding to the second index node number; Based on the network port number, attribute information of the process corresponding to the first index node number is determined.
4. The method according to claim 2, characterized in that: Before the step of constructing the process protocol package based on the attribute information of the process, the method further includes: Determine whether the identification information in the creation information of the monitored process is in a black process list, wherein the black process list stores identification information of malicious processes; Accordingly, constructing the process protocol package based on the attribute information of the process includes: When the identification information in the monitored process creation information is in the black process list, constructing the process protocol package based on the attribute information of the process and the preset protocol; When the identification information in the monitored process creation information is not in the black process list, determining the first timestamp information and signature information of the process protocol packet; The process protocol package is constructed based on the attribute information of the process, the first timestamp information, the signature information and the preset protocol.
5. The method according to claim 1, characterized in that The step of constructing a process protocol package based on the identification information in the monitored process creation information includes: Determine whether the identification information in the monitored process creation information is in a white process list, where the white process list stores identification information of legitimate processes; When the identification information in the monitored process creation information is not in the white process list, constructing the process protocol package based on the identification information in the monitored process creation information.
6. The method according to claim 1, characterized in that The method further comprises: When the process is a malicious process, a prompt message sent by the server is received.
7. A method for identifying malicious processes, characterized in that: The method comprises: A process protocol package sent by a receiving terminal; the process protocol package is a protocol package constructed by the terminal based on identification information in the creation information of the monitored process, the creation information of the monitored process is creation information obtained by the terminal based on socket monitoring, the socket is bound to the message source information of the process, and the message source information of the process includes the creation information of the process; The identification information of the malicious process is stored in the black process list. When the identification information in the creation information of the monitored process is not in the black process list, the process protocol packet is parsed to obtain the first timestamp information and signature information of the process protocol packet; When the difference between the current time of the server and the time corresponding to the first timestamp information is less than or equal to a first preset threshold, determining the legitimacy of the signature information; When the signature information is legal, parsing the signature information to determine the second timestamp information; When the difference between the time corresponding to the second timestamp information and the first timestamp information is less than or equal to a second preset threshold, determining that the process protocol is legal; When the process protocol package is illegal, it is determined that the process corresponding to the process protocol package is a malicious process.
8. The method according to claim 7, characterized in that The method further comprises: When the process is a malicious process, the process protocol package corresponding to the malicious process is deleted, and a prompt message is sent to the terminal.
9. A malicious process identification terminal, characterized in that: The terminal comprises: A message source information binding module, used to bind the message source information of a process to a socket, wherein the message source information of the process includes the creation information of the process; A creation information monitoring module is used to monitor the creation information of the process based on the socket; A process protocol package building module, used to build a process protocol package based on the identification information in the monitored process creation information, wherein the process protocol package includes attribute information of the process; A process protocol packet sending module is used to send the process protocol packet to a server, and the server is used to parse the process protocol packet and obtain the first timestamp information and signature information of the process protocol packet when the identification information in the creation information of the monitored process is not in the black process list; the black process list stores the identification information of the malicious process; when the difference between the current time of the server and the time corresponding to the first timestamp information is less than or equal to a first preset threshold, determine the legality of the signature information; when the signature information is legal, parse the signature information and determine the second timestamp information; when the difference between the second timestamp information and the time corresponding to the first timestamp information is less than or equal to a second preset threshold, determine that the process protocol packet is legal; when the process protocol packet is illegal, determine that the process corresponding to the process protocol packet is a malicious process.
10. The terminal according to claim 9, characterized in that: The process protocol package building module includes: an attribute information determining unit, configured to determine attribute information of a process corresponding to the identification information based on the identification information in the monitored process creation information; The process protocol package construction unit is used to construct the process protocol package based on the attribute information of the process.
11. The terminal according to claim 10, characterized in that: The attribute information determining unit comprises: A first index node number determination subunit, configured to traverse the file descriptor directory of the process based on the identification information in the monitored creation information of the process, and determine the first index node number of the process; A second index node number list determination subunit, used to traverse the network file and determine the second index node number list of the network; a network port number acquisition subunit, configured to acquire a network port number corresponding to the second index node number when there is a second index node number identical to the first index node number in the second index node number list; The attribute information determination subunit is used to determine the attribute information of the process corresponding to the first index node number based on the network port number.
12. The terminal according to claim 10, characterized in that: The terminal further includes: An identification information judgment module, used to judge whether the identification information in the creation information of the monitored process is in a black process list, wherein the black process list stores identification information of malicious processes; The process protocol package construction unit includes: A first construction subunit is configured to construct the process protocol package based on the attribute information of the process and a preset protocol when the identification information in the creation information of the monitored process is in the black process list; an information determination subunit, configured to determine the first timestamp information and the signature information of the process protocol packet when the identification information in the monitored process creation information is not in the black process list; The second construction subunit is used to construct the process protocol package based on the attribute information of the process, the first timestamp information, the signature information and a preset protocol.
13. The terminal according to claim 9, characterized in that: The process protocol package building module includes: an identification information judging unit, used to judge whether the identification information in the creation information of the monitored process is in a white process list, wherein the white process list stores the identification information of the legitimate process; The execution unit is used to construct the process protocol package based on the identification information in the creation information of the monitored process when the identification information in the creation information of the monitored process is not in the white process list.
14. The terminal according to claim 9, characterized in that: The terminal further includes: The prompt information receiving module is used to receive the prompt information sent by the server when the process is a malicious process.
15. A malicious process identification server, characterized in that: The server comprises: A process protocol packet receiving module, used to receive a process protocol packet sent by a terminal; the process protocol packet is a protocol packet constructed by the terminal based on identification information in the creation information of the monitored process, the creation information of the monitored process is creation information obtained by the terminal based on socket monitoring, the socket is bound to the message source information of the process, and the message source information of the process includes the creation information of the process; A malicious process identification module, used to identify malicious processes based on the process protocol package; The black process list stores identification information of malicious processes. When the identification information in the monitored process creation information is not in the black process list, the malicious process identification module includes: A legitimacy determination unit, used for parsing the process protocol package to determine the legitimacy of the process protocol package; a malicious process determination unit, configured to determine that the process corresponding to the process protocol package is a malicious process when the process protocol package is illegal; The legitimacy determination unit includes: a protocol packet parsing subunit, used to parse the process protocol packet and obtain the first timestamp information and signature information of the process protocol packet; a signature information legitimacy determination subunit, used to determine the legitimacy of the signature information when the difference between the current time of the server and the time corresponding to the first timestamp information is less than or equal to a first preset threshold; a second timestamp information determination subunit, used to parse the signature information and determine the second timestamp information when the signature information is legal; and a legal protocol packet determination subunit, used to determine that the process protocol packet is legal when the difference between the second timestamp information and the time corresponding to the first timestamp information is less than or equal to a second preset threshold.
16. The server according to claim 15, characterized in that The server further comprises: a prompt information sending module, which is used for deleting the process protocol package corresponding to the malicious process and sending prompt information to the terminal when the process is a malicious process.
17. A malicious process identification system, characterized in that: The system includes a terminal and a server. The terminal is used to bind message source information of a process to a socket, wherein the message source information of the process includes creation information of the process; and based on the socket, monitor the creation information of the process; and based on identification information in the monitored creation information of the process, construct a process protocol package, wherein the process protocol package includes attribute information of the process; and sending the process protocol packet to the server; The server is configured to parse the process protocol packet and obtain the first timestamp information and signature information of the process protocol packet when the identification information in the creation information of the monitored process is not in the black process list; the identification information of the malicious process is stored in the black process list; and determine the legitimacy of the signature information when the difference between the current time of the server and the time corresponding to the first timestamp information is less than or equal to a first preset threshold; When the signature information is legal, parsing the signature information to determine the second timestamp information; When the difference between the time corresponding to the second timestamp information and the time corresponding to the first timestamp information is less than or equal to a second preset threshold, the process protocol package is determined to be legal; when the process protocol package is illegal, the process corresponding to the process protocol package is determined to be a malicious process.
18. A malicious process identification terminal, the terminal comprising a processor and a memory, the memory storing at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by the processor to implement the malicious process identification method as described in any one of claims 1-6.
19. A malicious process identification server, the server comprising a processor and a memory, the memory storing at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by the processor to implement the malicious process identification method as described in any one of claims 7-8.
20. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the malicious process identification method as described in any one of claims 1-8.
