Webshell memory horse detection method, device, equipment and storage medium
Through the correlation analysis of network interface traffic and Web access logs, the malicious requests of Webshell memory horses are identified, solving technical problems that are difficult to find with traditional security monitoring tools, and achieving accurate detection and blocking of Webshell memory horses.
Patent Information
- Application Number
- CN202410560582.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-05-08
AI Technical Summary
It is difficult for traditional security monitoring tools to detect and block Webshell memory horse because it has no file characteristics and traffic encryption, making it difficult to detect.
Conduct traffic analysis by obtaining network interface traffic, determine abnormal traffic logs, match the web access logs of the target server, and identify candidate URL requests based on the access path and parameters of the URL request and identify requests where the file indicated by the access path does not exist and the response is successful. , determined to be a request by the attacker to use the Webshell memory horse to perform malicious operations.
It achieves accurate detection of Webshell memory horses, solves technical problems that are difficult to detect with traditional security monitoring tools, and can promptly detect and prevent malicious operations of Webshell memory horses.
Smart Images

Figure CN118157989B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network security technology, and in particular to a Webshell memory horse detection method, device, equipment and storage medium. Background Art
[0002] Webshell memory malware is a fileless attack method that allows attackers to write malicious backdoors and Trojans into the memory of a target Web server or website and perform remote control. It targets the external windows of an enterprise: websites and applications. Traditional Webshells are usually file-based. Hackers upload Webshell files to the target server through uploading tools or exploiting website vulnerabilities, and then execute malicious code by accessing the file. This type of Webshell usually leaves detectable traces in the server's file system. Webshell memory malware exploits vulnerabilities in middleware or server processes to inject malicious code directly into memory without leaving any files in the server's file system. Due to its fileless characteristics and traffic encryption, Webshell memory malware is difficult to be discovered and blocked by traditional security monitoring tools.
[0003] As traditional security monitoring tools have difficulty in discovering Webshell memory malware, no effective solution has been proposed yet. Summary of the invention
[0004] The present invention provides a Webshell memory horse detection method, device, equipment and storage medium.
[0005] According to the first aspect of the present disclosure, a method for detecting a Webshell memory horse is provided. The method comprises:
[0006] Obtain network interface traffic and perform traffic analysis to identify abnormal traffic logs;
[0007] Use the source IP and destination IP in the abnormal traffic log to match the target Web access log of the target server;
[0008] Determine candidate URL requests based on access paths and parameters of URL requests in target Web access logs;
[0009] The access path of the candidate URL request is accessed, and the candidate URL request for which the file indicated by the access path does not exist and the response is successful is determined as a request sent by an attacker to perform malicious operations using a Webshell memory horse.
[0010] According to the above aspects and any possible implementation, an implementation is further provided, in which network interface traffic is obtained and traffic analysis is performed to determine abnormal traffic logs, including:
[0011] Capture network interface traffic from the switch;
[0012] Perform deep packet analysis on network interface traffic to identify TCP traffic logs;
[0013] Perform traffic analysis on TCP traffic logs to determine candidate traffic logs corresponding to suspicious traffic;
[0014] When the source IP in the candidate traffic log has no historical access record, the candidate traffic log is determined as an abnormal traffic log.
[0015] According to the above aspects and any possible implementation, a further implementation is provided, which performs traffic analysis on the TCP traffic log to determine the candidate traffic log corresponding to the suspicious traffic, including:
[0016] Determine TCP traffic whose TCP connection duration between the source IP and the destination IP is greater than or equal to a preset duration as suspicious traffic; and / or,
[0017] Determine the TCP traffic whose frequency of establishing TCP connection between source IP and destination IP is greater than or equal to the preset frequency as suspicious traffic;
[0018] The traffic log corresponding to the suspicious traffic is used as a candidate traffic log.
[0019] According to the above aspects and any possible implementation, a further implementation is provided, using the source IP and destination IP in the abnormal traffic log to match the target Web access log of the target server, including:
[0020] Determine the target server based on the destination IP in the abnormal traffic log;
[0021] Obtain the Web access log of the target server, where the Web access log records the IP address of the client that initiated the request;
[0022] The target Web access log is determined by matching the source IP in the abnormal traffic log with the client IP in the Web access log of the target server.
[0023] According to the above aspects and any possible implementation, an implementation is further provided, which determines a candidate URL request according to an access path and parameters of the URL request in a target Web access log, including:
[0024] If there are URL requests with the same access path and different parameters within a preset time range in the target Web access log, the URL requests with the same access path and different parameters are determined as candidate URL requests.
[0025] According to the above aspects and any possible implementation, an implementation is further provided, accessing the access path of the candidate URL request, and determining the candidate URL request to which the file indicated by the access path does not exist and the response is successful as a request sent by the attacker to perform malicious operations using a Webshell memory horse, including:
[0026] Access the access path of the candidate URL request and obtain the access result;
[0027] If the access result is that the file does not exist, and the response status code corresponding to the candidate URL request indicates that the request response is successful, the candidate URL request is determined to be a request sent by the attacker to perform malicious operations using the Webshell memory horse.
[0028] According to a second aspect of the present disclosure, a Webshell memory horse detection device is provided. The device comprises:
[0029] The acquisition module is used to acquire network interface traffic and perform traffic analysis to determine abnormal traffic logs;
[0030] The matching module is used to match the target Web access log of the target server using the source IP and destination IP in the abnormal traffic log;
[0031] A determination module, used to determine candidate URL requests based on access paths and parameters of URL requests in target Web access logs;
[0032] The detection module is used to access the access path of the candidate URL request and determine the candidate URL request for which the file indicated by the access path does not exist and the response is successful as a request sent by an attacker to perform malicious operations using a Webshell memory horse.
[0033] According to a third aspect of the present disclosure, an electronic device is provided, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the program, the method described above is implemented.
[0034] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method according to the first aspect of the present disclosure is implemented.
[0035] The present invention identifies the requests sent by attackers to perform malicious operations by using Webshell memory horses through correlation analysis of traffic logs and Web access logs, thereby realizing the detection of Webshell memory horses and solving the technical problem that traditional security monitoring tools are difficult to detect Webshell memory horses.
[0036] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, among which:
[0038] Figure 1 A flow chart of a Webshell memory horse detection method according to an embodiment of the present disclosure is shown;
[0039] Figure 2 A schematic diagram of a data transmission process of a Webshell memory horse detection method according to an embodiment of the present disclosure is shown;
[0040] Figure 3 A block diagram of a Webshell memory malware detection device according to an embodiment of the present disclosure is shown;
[0041] Figure 4 A block diagram of an exemplary electronic device capable of implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0043] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0044] In the present disclosure, by analyzing the correlation between traffic logs and Web access logs, requests sent by attackers to perform malicious operations using Webshell memory horses are identified, thereby realizing the detection of Webshell memory horses, solving the technical problem that traditional security monitoring tools are difficult to detect Webshell memory horses.
[0045] Figure 1 A flowchart of a Webshell memory malware detection method 100 according to an embodiment of the present disclosure is shown.
[0046] Step S110, obtaining network interface traffic and performing traffic analysis to determine abnormal traffic logs;
[0047] Step S120, using the source IP and destination IP in the abnormal traffic log, matching the target Web access log of the target server;
[0048] Step S130, determining candidate URL requests according to the access paths and parameters of the URL requests in the target Web access log;
[0049] Step S140, access the access path of the candidate URL request, and determine the candidate URL request to which the file indicated by the access path does not exist and which responds successfully as a request sent by the attacker to perform malicious operations using the Webshell memory horse.
[0050] In some embodiments, in step S110, the abnormal traffic log can be determined by capturing the network interface traffic from the switch and performing DPI (deep packet analysis) and TCP traffic analysis.
[0051] Optionally, step S110, obtaining network interface traffic and performing traffic analysis to determine abnormal traffic logs, includes:
[0052] Capture network interface traffic from the switch;
[0053] Perform deep packet analysis on network interface traffic to identify TCP traffic logs;
[0054] Perform traffic analysis on TCP traffic logs to determine candidate traffic logs corresponding to suspicious traffic;
[0055] When the source IP in the candidate traffic log has no historical access record, the candidate traffic log is determined as an abnormal traffic log.
[0056] According to the embodiments of the present disclosure, without detecting the content carried by the traffic, anomaly detection of traffic is achieved through deep packet parsing and TCP traffic analysis, so that the detection method is applicable not only to non-encrypted traffic, but also to encrypted traffic.
[0057] In some embodiments, traffic analysis is performed on the TCP traffic log to determine candidate traffic logs corresponding to suspicious traffic, including:
[0058] Determine TCP traffic whose TCP connection duration between the source IP and the destination IP is greater than or equal to a preset duration as suspicious traffic; and / or,
[0059] Determine the TCP traffic whose frequency of establishing TCP connection between source IP and destination IP is greater than or equal to the preset frequency as suspicious traffic;
[0060] The traffic log corresponding to the suspicious traffic is used as a candidate traffic log.
[0061] Suspicious traffic may be long-connection traffic or high-frequency access traffic in a short period of time.
[0062] The above preset time length can be set according to actual needs. For example, the preset time length is 5 minutes, and the TCP traffic with a frequency of establishing a TCP connection between the source IP and the destination IP greater than or equal to 5 minutes is determined as suspicious traffic.
[0063] The above preset frequency can be set according to actual needs. For example, the preset frequency is 20 times within 1 minute, and the TCP traffic with more than 20 TCP connections established between the source IP and the destination IP within 1 minute is determined as suspicious traffic.
[0064] According to the embodiments of the present disclosure, long connection traffic and high-frequency access traffic in a short period of time are used as indicator dimensions for TCP traffic analysis, which provides specific monitoring indicators for judging suspicious traffic, and this indicator dimension can realize real-time detection of suspicious traffic.
[0065] In some embodiments, step S120, using the source IP and destination IP in the abnormal traffic log to match the target Web access log of the target server, includes:
[0066] Determine the target server based on the destination IP in the abnormal traffic log;
[0067] Obtain the Web access log of the target server, where the Web access log records the IP address of the client that initiated the request;
[0068] The target Web access log is determined by matching the source IP in the abnormal traffic log with the client IP in the Web access log of the target server.
[0069] According to an embodiment of the present disclosure, the source IP and destination IP in the abnormal traffic log are associated with the corresponding Web access log, thereby determining the target Web access log with the abnormality.
[0070] In some embodiments, step S130, determining candidate URL requests according to access paths and parameters of URL requests in the target Web access log, includes:
[0071] If there are URL requests with the same access path and different parameters within a preset time range in the target Web access log, the URL requests with the same access path and different parameters are determined as candidate URL requests.
[0072] Under normal access conditions, multiple URL requests with the same access path but different parameters will not appear in a short period of time. If this happens, it may be a purposeful access initiated by an attacker, which requires further judgment.
[0073] According to an embodiment of the present disclosure, potentially offensive URL requests are mined from the target Web access log, so that it is possible to continue to determine whether there is a Webshell memory horse in subsequent steps.
[0074] In some embodiments, step S140, accessing the access path of the candidate URL request, and determining the candidate URL request to which the file indicated by the access path does not exist and which responds successfully as a request sent by the attacker to perform malicious operations using a Webshell memory horse, includes:
[0075] Access the access path of the candidate URL request and obtain the access result;
[0076] If the access result is that the file does not exist, and the response status code corresponding to the candidate URL request indicates that the request response is successful, the candidate URL request is determined to be a request sent by the attacker to perform malicious operations using the Webshell memory horse.
[0077] In the case of normal access, the access path has a corresponding file in the server's Web directory. If the file does not exist, but the access is successful (the response status code is 200), it means that the candidate URL request is a request sent by an attacker to perform malicious operations using the Webshell memory horse.
[0078] According to an embodiment of the present disclosure, by detecting a URL request in which an access path indicates that a file does not exist but a successful response is made, detection of a Webshell memory horse is achieved, and a Webshell memory horse residing in the memory can be accurately discovered.
[0079] According to the embodiments of the present disclosure, the following technical effects are achieved:
[0080] The method 100 of the embodiment of the present disclosure is described below with a specific implementation case:
[0081] Webshell memory malware is a type of memory malware that writes malicious backdoors and Trojans into memory and executes them to remotely control Web servers. It targets the external windows of enterprises: websites and applications. However, traditional Webshells are based on file types, and hackers can use upload tools or website vulnerabilities to implant Trojans. The difference is that Webshell memory malware is fileless and has encrypted traffic. It uses the middleware process to execute certain malicious codes, and no files are landed, which makes detection extremely difficult.
[0082] The embodiment of the present disclosure provides a detection method for Webshell memory malware based on correlation analysis of traffic and Web access logs. Through this method, Webshell memory malware residing in the memory can be accurately discovered. Figure 2 The figure shows a data transmission flow diagram of the Webshell memory horse detection method according to an embodiment of the present disclosure. In a network environment, the client is connected to the switch through the network, and the switch is connected to the server. The client sends a request to the server through the switch and receives a response returned by the server from the switch. The server records each access request and generates an access log file. In the embodiment of the present disclosure, the detection of Webshell memory horse is achieved by correlation analysis of traffic and Web access logs, wherein the traffic can be captured from the switch and the Web access log can be obtained from the server. The specific detection indicators of Webshell memory horse include indicator dimensions based on traffic analysis and indicator dimensions based on web access log analysis:
[0083] 1. Indicator dimensions based on traffic analysis:
[0084] 1) Long connection traffic;
[0085] 2) High-frequency access traffic in a short period of time;
[0086] 3) The client IP of the above two types of suspicious traffic has no historical access records;
[0087] 2. Indicator dimensions based on web access log analysis:
[0088] 1) In a short period of time, many web access paths are the same, but only the parameters are different.
[0089] 2) The web page file does not exist, but the response status code is 200 for the URL request.
[0090] The specific process of Webshell memory horse detection in the embodiment of the present disclosure is as follows: by capturing the network interface traffic and performing deep packet analysis, TCP traffic can be collected, and by analyzing the TCP traffic, long connection traffic for which the client IP has no historical access records and high-frequency access traffic in a short period of time are determined, and they are judged as abnormal traffic; according to the source IP and destination IP in the abnormal traffic log, the corresponding Web access log is associated, and if there are multiple URL requests with the same Web access path but different parameters in a short period of time, the URL request indicating that the web page file of the access path does not exist and the response status code is 200 is determined as a request sent by an attacker to perform malicious operations using a Webshell memory horse, and it can be determined that a Webshell memory horse currently exists.
[0091] According to the embodiments of the present disclosure, the following technical effects are achieved:
[0092] By collecting and real-time detecting traffic, existing Webshell memory Trojans can be discovered in a timely manner; by performing correlation analysis based on the indicator dimension of traffic analysis and the indicator dimension based on web access log analysis, the accuracy of Webshell memory Trojan detection can be improved. In addition, the detection process of this detection method does not require detection and analysis of the content carried by the traffic, and is suitable for both non-encrypted and encrypted traffic.
[0093] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present disclosure is not limited by the order of the actions described, because according to the present disclosure, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.
[0094] The above is an introduction to the method embodiment. The following is a further explanation of the scheme disclosed in the present invention through an apparatus embodiment.
[0095] Figure 3 FIG. 1 shows a block diagram of a Webshell memory horse detection device according to an embodiment of the present disclosure. Figure 3 As shown, the device 300 includes:
[0096] The acquisition module 310 is used to acquire network interface traffic and perform traffic analysis to determine abnormal traffic logs;
[0097] The matching module 320 is used to match the target Web access log of the target server by using the source IP and the destination IP in the abnormal traffic log;
[0098] The determination module 330 is used to determine the candidate URL request according to the access path and parameters of the URL request in the target Web access log;
[0099] The detection module 340 is used to access the access path of the candidate URL request, and determine the candidate URL request for which the file indicated by the access path does not exist and the response is successful as a request sent by the attacker to perform malicious operations using the Webshell memory horse.
[0100] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0101] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0102] Figure 4 A block diagram of an exemplary electronic device 400 capable of implementing an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0103] The electronic device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in the ROM 402 or a computer program loaded from the storage unit 408 into the RAM 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An I / O interface 405 is also connected to the bus 404.
[0104] Multiple components in the electronic device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0105] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as method 100. For example, in some embodiments, the method 100 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the method 100 described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the method 100 in any other appropriate manner (e.g., by means of firmware).
[0106] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0107] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0108] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0109] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0110] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0111] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0112] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0113] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A Webshell memory horse detection method, characterized in that: include: Obtaining network interface traffic and performing traffic analysis to determine abnormal traffic logs, including: capturing network interface traffic from a switch; performing deep packet analysis on the network interface traffic to determine TCP traffic logs; performing traffic analysis on the TCP traffic logs to determine candidate traffic logs corresponding to suspicious traffic; and determining the candidate traffic logs as abnormal traffic logs when there is no historical access record for the source IP in the candidate traffic logs; Using the source IP and destination IP in the abnormal traffic log, match the target Web access log of the target server; Determining candidate URL requests according to access paths and parameters of URL requests in the target Web access log, including: if there are URL requests with the same access paths and different parameters within a preset time range in the target Web access log, determining the URL requests with the same access paths and different parameters as candidate URL requests; The access path of the candidate URL request is accessed, and the candidate URL request for which the file indicated by the access path does not exist and the response is successful is determined as a request sent by an attacker to perform malicious operations using a Webshell memory horse.
2. The method according to claim 1, characterized in that The performing traffic analysis on the TCP traffic log to determine a candidate traffic log corresponding to the suspicious traffic includes: Determine TCP traffic whose TCP connection duration between the source IP and the destination IP is greater than or equal to a preset duration as suspicious traffic; and / or, Determine the TCP traffic whose frequency of establishing TCP connection between source IP and destination IP is greater than or equal to the preset frequency as suspicious traffic; The traffic log corresponding to the suspicious traffic is used as the candidate traffic log.
3. The method according to claim 1, characterized in that The method of using the source IP and destination IP in the abnormal traffic log to match the target Web access log of the target server includes: Determine the target server according to the destination IP in the abnormal traffic log; Obtaining a Web access log of the target server, wherein the Web access log records the IP address of the client that initiated the request; The target Web access log is determined by matching the source IP in the abnormal traffic log with the client IP in the Web access log of the target server.
4. The method according to claim 1, characterized in that: The step of accessing the access path of the candidate URL request and determining the candidate URL request to which the file indicated by the access path does not exist and which responds successfully as a request sent by an attacker to perform malicious operations using a Webshell memory horse comprises: Access the access path of the candidate URL request to obtain an access result; If the access result is that the file does not exist, and the response status code corresponding to the candidate URL request indicates that the request response is successful, the candidate URL request is determined to be a request sent by an attacker to perform malicious operations using a Webshell memory horse.
5. A Webshell memory malware detection device, characterized in that: The device is used to perform the method according to any one of claims 1 to 4, and the device comprises: The acquisition module is used to acquire network interface traffic and perform traffic analysis to determine abnormal traffic logs; A matching module, used to match a target Web access log of a target server by using a source IP and a destination IP in the abnormal traffic log; A determination module, used to determine candidate URL requests according to the access path and parameters of the URL requests in the target Web access log; The detection module is used to access the access path of the candidate URL request and determine the candidate URL request for which the file indicated by the access path does not exist and the response is successful as a request sent by an attacker to perform malicious operations using a Webshell memory horse.
6. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 4.
7. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 4.
