A webshell detection method and device
A detection method and technology to be tested, applied in the computer field, can solve problems such as log detection lag, achieve the effects of improving accuracy and work efficiency, and reducing maintenance costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0023] Embodiment 1 of the present invention provides a webshell detection method, specifically as figure 1 as shown, figure 1 A schematic flow chart of a webshell detection method provided by an embodiment of the present invention, the method includes:
[0024] Step 110, converting the content in the web script file to be tested into an abstract syntax tree.
[0025] Step 120, extracting feature vectors of the abstract syntax tree.
[0026] Step 130, substituting the feature vector into a preset machine learning algorithm to determine whether the web script file to be tested is a webshell file or a normal web script file.
[0027] Optionally, the content in the web script file to be tested may be an operation code of the web script file. And converting the content in the web script file to be tested into an abstract syntax tree may include:
[0028] Collect the opcodes in the web script file to be tested. The opcodes are then converted to an abstract syntax tree.
[002...
Embodiment 2
[0045] Corresponding to the above-mentioned embodiment 1, embodiment 2 of the present invention provides a webshell detection device, specifically as image 3 as shown, image 3 It is a schematic structural diagram of a webshell detection device provided by an embodiment of the present invention, and the device includes: a conversion unit 301 , an extraction unit 302 and a processing unit 303 .
[0046] The conversion unit 301 is configured to convert the content in the web script file to be tested into an abstract syntax tree.
[0047] The extracting unit 302 is configured to extract feature vectors of the abstract syntax tree.
[0048] The processing unit 303 is configured to substitute the feature vector into a preset machine learning algorithm to determine whether the web script file to be tested is a webshell file or a normal web script file.
[0049] Optionally, the processing unit 303 is specifically configured to: substitute the feature vector into a preset machine l...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


