A method and system for detecting malicious proxy software
By monitoring system directories and files, extracting static and dynamic features, and matching them with the malicious feature library, combined with network connection whitelist and traffic threshold analysis, the problem of the inability of existing technology to identify changeable malware is solved, and the detection of malware is realized. Effective identification and accurate discrimination improve the safety protection effect.
Patent Information
- Application Number
- CN202110998041.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-08-27
AI Technical Summary
Existing malicious agent software detection methods cannot effectively identify changeable malware and are easily bypassed by targeted modified static fingerprints, leading to missed reports and security threats.
By monitoring system directories and files, recording new files and server traffic, extracting static and dynamic features, and matching them with static and dynamic malicious feature libraries, it also analyzes network connection whitelists and traffic thresholds to comprehensively determine whether files are malware.
It achieves effective identification and accurate discrimination of variable malware, reduces the risk of false negatives, and improves the level of security protection.
Smart Images

Figure CN113672927B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and more specifically to a method and system for detecting malicious proxy software. Background Art
[0002] During a hacker attack, the first action after successfully breaking into a server is often to build a stable proxy channel to prepare the network for subsequent lateral penetration of the intranet. When building a proxy channel, related malicious proxy software is often introduced into the server.
[0003] At present, the traditional way to identify malicious proxy software is through a static malware fingerprint library. The static fingerprint library contains file names, file hashes, etc. When the malicious proxy software introduced by hackers is located in its fingerprint library, it is intercepted. This method often results in missed reports. When hackers modify the static fingerprint of malware in a targeted manner, they can bypass traditional defense methods and cause serious harm. Therefore, the current malicious proxy software detection and identification method cannot effectively identify the changeable malicious proxy software.
[0004] Therefore, it is necessary to design a new method to effectively identify the ever-changing malicious agent software. Summary of the invention
[0005] The purpose of the present invention is to overcome the defects of the prior art and provide a method and system for detecting malicious agent software.
[0006] To achieve the above object, the present invention adopts the following technical solution: a method for detecting malicious proxy software, comprising:
[0007] Monitor system directories and files, record newly added files and server import and export traffic;
[0008] Extracting static file features from the newly added file;
[0009] Matching the static file features with a static malicious feature library to obtain a static matching result;
[0010] When executing the newly added file, extracting dynamic features of the newly added file;
[0011] Matching the dynamic feature with a dynamic malicious feature library to obtain a dynamic matching result;
[0012] Obtaining the server IP to which the newly added file is connected after being executed, and matching the server IP with a network connection whitelist to obtain a list matching result;
[0013] Obtaining the server import and export traffic after the newly added file is executed, and performing a threshold judgment based on the server import and export traffic to obtain a judgment result;
[0014] Determine whether the newly added file is malicious agent software based on the static matching result, the dynamic matching result, the list matching result and the judgment result, and issue an abnormal alarm.
[0015] The further technical solution is: the system directories and files are monitored, and new files and server import and export traffic are recorded, including:
[0016] Monitor system directories and files through agent software, record newly added files and server import and export traffic;
[0017] Analyze the system's network traffic characteristics and learn to generate a network connection whitelist;
[0018] Analyze the network traffic characteristics of the system to generate the traffic threshold range when the server is operating normally;
[0019] Analyze the server file situation to obtain the file path where the newly added file is located.
[0020] A further technical solution is: extracting static file features from the newly added files includes:
[0021] Static file features are calculated for the file path where the newly added file is located.
[0022] A further technical solution is that the static file features are matched with a static malicious feature library to obtain a static matching result, including:
[0023] Determine whether the static file feature is a feature included in the static malicious feature library;
[0024] If the static file feature is a feature included in the static malicious feature library, then determining that the newly added file is malicious agent software to obtain a static matching result;
[0025] If the static file feature is not a feature included in the static malicious feature library, then when executing the newly added file, the dynamic feature of the newly added file is extracted.
[0026] Its further technical solution is: the dynamic feature includes the server IP and domain name of the connection after the newly added file is executed.
[0027] A further technical solution is: matching the dynamic features with a dynamic malicious feature library to obtain a dynamic matching result includes:
[0028] Determining whether the dynamic feature is a feature included in a dynamic malicious feature library;
[0029] If the dynamic feature is a feature included in the dynamic malicious feature library, determining that the newly added file is malicious agent software to obtain a dynamic matching result;
[0030] If the dynamic feature is not a feature included in the dynamic malicious feature library, the step of obtaining the server IP to which the new file is connected after being executed is performed, and matching the server IP with a network connection whitelist to obtain a list matching result.
[0031] A further technical solution is: obtaining the server IP to which the new file is connected after being executed, and matching the server IP with a network connection whitelist to obtain a list matching result, including:
[0032] Obtain the server IP address that is connected after the newly added file is executed;
[0033] Determine whether the server IP and the network connection whitelist meet the set conditions;
[0034] If the server IP and the network connection whitelist meet the set conditions, the newly added file is determined to be malicious proxy software to obtain a list matching result;
[0035] If the server IP and the network connection whitelist do not meet the set conditions, the step of obtaining the server import and export traffic after the newly added file is executed is performed, and a threshold judgment is performed based on the server import and export traffic to obtain a judgment result;
[0036] The setting condition is that more than a certain number of server IPs do not belong to the server IPs included in the network connection whitelist.
[0037] A further technical solution is: obtaining the server import and export traffic after the newly added file is executed, and performing a threshold judgment based on the server import and export traffic to obtain a judgment result, including:
[0038] Monitoring the import and export traffic of the server after the newly added file is executed to obtain the import and export traffic value of the server within a specific time period to obtain the value to be determined;
[0039] Determine whether the value to be determined is within a flow threshold range when the server is operating normally;
[0040] If the value to be determined is not within the flow threshold range when the server is operating normally, the newly added file is determined to be malicious proxy software to obtain a judgment result;
[0041] If the value to be determined is within the flow threshold range when the server is operating normally, the newly added file is determined to be normal software to obtain a determination result.
[0042] A further technical solution is: determining whether the newly added file is malicious proxy software according to the static matching result, the dynamic matching result, the list matching result and the judgment result, and issuing an abnormal alarm, including:
[0043] When any one of the static matching result, the dynamic matching result, the list matching result and the judgment result is that the newly added file is malicious proxy software, the newly added file is determined to be malicious proxy software, and the newly added file is intercepted or an abnormal alarm is issued.
[0044] The present invention also provides a system for detecting malicious agent software, comprising:
[0045] Monitoring unit, used to monitor system directories and files, record newly added files and server import and export traffic;
[0046] A static feature extraction unit, used to extract static file features from the newly added file;
[0047] A static feature matching unit, used to match the static file feature with a static malicious feature library to obtain a static matching result;
[0048] A dynamic feature extraction unit, used for extracting the dynamic features of the newly added file when executing the newly added file;
[0049] A dynamic feature matching unit, used to match the dynamic feature with a dynamic malicious feature library to obtain a dynamic matching result;
[0050] An IP judgment unit is used to obtain the server IP to which the new file is connected after being executed, and to match the server IP with a network connection whitelist to obtain a list matching result;
[0051] A flow determination unit, used to obtain the inlet and outlet flow of the server after the newly added file is executed, and to perform a threshold determination based on the inlet and outlet flow of the server to obtain a determination result;
[0052] The alarm unit is used to determine whether the newly added file is malicious agent software according to the static matching result, the dynamic matching result, the list matching result and the judgment result, and to issue an abnormal alarm.
[0053] Compared with the prior art, the beneficial effect of the present invention is as follows: the present invention judges malicious proxy software by judging static file features, dynamic file features, the import and export flow values within a specific time range after the execution of the newly added file and the flow threshold during normal server operation, and the learned network connection whitelist. The malicious proxy software is judged based on multiple factors, thereby effectively identifying variable malicious proxy software and accurately determining whether the relevant program is malicious proxy software.
[0054] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0056] Figure 1 A schematic diagram of an application scenario of a method for detecting malicious proxy software provided by an embodiment of the present invention;
[0057] Figure 2 A schematic diagram of a flow chart of a method for detecting malicious proxy software provided by an embodiment of the present invention;
[0058] Figure 3 A schematic diagram of a sub-flow diagram of a method for detecting malicious proxy software provided by an embodiment of the present invention;
[0059] Figure 4 A schematic diagram of a sub-flow diagram of a method for detecting malicious proxy software provided by an embodiment of the present invention;
[0060] Figure 5 A schematic diagram of a sub-flow diagram of a method for detecting malicious proxy software provided by an embodiment of the present invention;
[0061] Figure 6 A schematic diagram of a sub-flow diagram of a method for detecting malicious proxy software provided by an embodiment of the present invention;
[0062] Figure 7 A schematic diagram of a sub-flow diagram of a method for detecting malicious proxy software provided by an embodiment of the present invention;
[0063] Figure 8 A schematic block diagram of a system for detecting malicious agent software provided by an embodiment of the present invention;
[0064] Fig. 9 A schematic block diagram of a monitoring unit of a system for detecting malicious agent software provided by an embodiment of the present invention;
[0065] Fig.10 A schematic block diagram of an IP determination unit of a system for detecting malicious proxy software provided by an embodiment of the present invention;
[0066] Fig.11 A schematic block diagram of a flow determination unit of a system for detecting malicious proxy software provided by an embodiment of the present invention;
[0067] Fig.12 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0068] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0069] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0070] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0071] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0072] See also Figure 1 and Figure 2 , Figure 1 A schematic diagram of an application scenario of a method for detecting malicious proxy software provided by an embodiment of the present invention. Figure 2A schematic flow chart of a method for detecting malicious proxy software provided by an embodiment of the present invention. The method for detecting malicious proxy software is applied in a server. The server interacts with a terminal for data, the server determines whether a newly added file contains malicious proxy software, and processes the newly added file according to the determination result. When malicious proxy software appears, an alarm message is fed back to the terminal to serve as a reminder.
[0073] Figure 2 FIG. 1 is a flow chart of a method for detecting malicious proxy software provided by an embodiment of the present invention. Figure 2 As shown, the method includes the following steps S110 to S180.
[0074] S110. Monitor system directories and files, and record newly added files and server import and export traffic.
[0075] In this embodiment, the whole system directory or a specific file directory is monitored to obtain newly added files in the monitored directory, and at the same time, the import and export traffic of the server host is detected. The import and export traffic of the server refers to the network traffic situation.
[0076] In one embodiment, see Figure 3 , the above-mentioned step S110 may include steps S111~S114.
[0077] S111. Monitor system directories and files through agent software, and record newly added files and server import and export traffic.
[0078] This is achieved by installing agent software on the monitored server host, monitoring the entire system directory or a specific file directory, obtaining new files in the monitored directory, and detecting the import and export traffic of the server host.
[0079] S112. Analyze the network traffic characteristics of the system and learn to generate a network connection whitelist.
[0080] In this embodiment, the network connection whitelist refers to the server IP and port that are allowed to connect to the network. The network connection whitelist is used to learn and determine the list of machines that are normally connected to the server.
[0081] The network connection whitelist consensus comparison algorithm W is used to obtain the regular import and export traffic threshold range and the communication server IP and port, which are used to determine whether the newly added files are malicious proxy software. W{(Un, N, t)}; For the network connection whitelist consensus comparison algorithm W, W{(Un, N, t)}, t is the time, the default is 7 days, which can be set manually; N is the specified threshold, the default is 3, which can be set manually; U dn is the statistical set U of the number of times the host connects to the IP and port at time t dn{U1,U2,U3...Un}.
[0082] The network connection whitelist consensus comparison algorithm W will connect to the server IP and port number statistics set U dn Each element Un of {U1,U2,U3...Un} is compared with N. When Un When N, W{(Un,N,t)}=1, it is considered that the server IP and port of the connection meet the consensus mechanism judgment, and the corresponding server IP and port are normally connected to the network. The server IP and port corresponding to Un are put into the network connection set W of the monitoring host. dx , and finally get W through the consensus decision mechanism dn ((x1,y1),(x2,y2)...(xn,yn)), where x and y represent the server IP and port respectively, thus forming the network connection whitelist W dn ((x1,y1),(x2,y2)...(xn,yn)), the network connection whitelist includes several server IPs and ports that are normally connected to the network.
[0083] S113. Analyze the network traffic characteristics of the system to generate a traffic threshold range when the server operates normally.
[0084] Specifically, the network traffic characteristics are analyzed to generate a 24-hour traffic threshold range M under normal server operation.
[0085] S114: Analyze the server file status to obtain the file path where the newly added file is located.
[0086] In this embodiment, the newly added file can be determined by the server file, and then the file path where the newly added file is located can be determined based on the newly added file, so as to facilitate the subsequent extraction of corresponding features.
[0087] S120: Extracting static file features from the newly added file.
[0088] In this embodiment, the static file feature refers to a hash value corresponding to a file path, etc.
[0089] The static file features of the file path where the newly added file is located are calculated. Specifically, the static file features of the newly added file are calculated, Y fx {(a)}, where a is the file path where the newly added file is located, through Y fx Generate static features of newly added files, such as hash values.
[0090] S130: Match the static file features with a static malicious feature library to obtain a static matching result.
[0091] In this embodiment, the static matching result refers to whether the static file feature is the same as a certain value in the static malicious feature library.
[0092] In one embodiment, see Figure 4 , the above-mentioned step S130 may include steps S131~S132.
[0093] S131, determining whether the static file feature is a feature included in a static malicious feature library;
[0094] S132: If the static file feature is a feature included in a static malicious feature library, determining that the newly added file is malicious agent software to obtain a static matching result;
[0095] If the static file feature is not a feature included in the static malicious feature library, execute step S140;.
[0096] When performing static malicious feature library matching, there is a matching algorithm, which matches the static file features of the newly added files with the static malicious feature library, and determines whether the newly added files are malicious proxy software from the static file feature dimension.
[0097] Set a known static malicious signature library R (r1, r2, r3...rn), where r1...rn is the hash value of the collected malicious agent software;
[0098] Static feature matching algorithm W f1 {(Y fx , R(r1,r2,r3...rn))}, when Y fx When R(r1,r2,r3...rn), then W f1 {(Y fx , R(r1,r2,r3...rn))} = 1; otherwise, W f1 {(Y fx , R(r1,r2,r3...rn))}=0.
[0099] Static feature matching algorithm W f1 {(Y fx , R(r1,r2,r3...rn))} compares the hash value Yfx calculated for the newly added file with the known malicious feature library R(r1,r2,r3...rn) to determine the attributes of the newly added file.
[0100] S140: When executing the newly added file, extract the dynamic features of the newly added file.
[0101] In this embodiment, the dynamic features include the server IP and domain name connected after the newly added file is executed, which are used for subsequent dynamic feature library matching judgment.
[0102] Get the IP and domain name characteristics of the newly added files, T fx {(a)}, where a is the file path where the newly added file is located, T fx It is the server IP and domain name associated with the newly added file after execution.
[0103] S150: Match the dynamic feature with a dynamic malicious feature library to obtain a dynamic matching result.
[0104] In this embodiment, the dynamic matching result refers to whether the dynamic feature of the newly added file is the same as a certain content in the dynamic malicious feature library.
[0105] In one embodiment, see Figure 6 , the above-mentioned step S150 may include steps S151~S152.
[0106] S151, determining whether the dynamic feature is a feature included in a dynamic malicious feature library;
[0107] S152: If the dynamic feature is a feature included in a dynamic malicious feature library, determining that the newly added file is malicious agent software to obtain a dynamic matching result;
[0108] If the dynamic feature is not a feature included in the dynamic malicious feature library, step S160 is executed.
[0109] When performing dynamic matching, there is a matching algorithm that matches the dynamic features of the newly added files with the dynamic malicious feature library, and determines whether the newly added files are malicious proxy software based on the dynamic file feature dimension.
[0110] Set a known dynamic malware signature library P (p1, p2, p3...pn), where p1, p2, p3...pn is a set of malicious server IP and domain name addresses obtained through threat intelligence or other means;
[0111] The dynamic features and dynamic malicious feature library are matched by algorithms. f2 {(T fx , P(p1,p2,p3...pn))}; when T fx When P(p1, p2, p3...pn), then W f2 {(T fx , P(p1, p2, p3...pn))}=1, otherwise W f2 {(Tfx, P(p1, p2, p3...pn))}=0.
[0112] The dynamic feature matching algorithm is W f2 The algorithm analyzes the execution results of the newly added files to obtain the feature T fx Compare with the known malicious dynamic signature library P (p1, p2, p3...pn).
[0113] S160: Obtain the server IP to which the new file is connected after being executed, and match the server IP with a network connection whitelist to obtain a list matching result.
[0114] In this embodiment, the list matching result refers to whether the server IP after the newly added file is executed belongs to one of the network connection whitelists. During the operation of malicious proxy software, the main purpose of the attacker is to detect the inside of the proxy network for further attack and utilization. In this process, the malicious proxy software will inevitably generate a large number of disordered network connections to the internal network. The network of normal servers is generally fixed.
[0115] In one embodiment, see Figure 7 , the above-mentioned step S160 may include steps S161~S163.
[0116] S161, obtaining the server IP address that is connected after the newly added file is executed;
[0117] S162, determining whether the server IP and the network connection whitelist meet the set conditions;
[0118] S163, if the server IP and the network connection whitelist meet the set conditions, determine that the newly added file is malicious proxy software to obtain a list matching result;
[0119] If the server IP and the network connection whitelist do not meet the set conditions, executing step S170;
[0120] The setting condition is that more than a certain number of server IPs do not belong to the server IPs included in the network connection whitelist.
[0121] Get the dynamic feature T of the connection after the newly added file is executed in step S140 above fx , and then get the server IP, compare the network connection of the server IP, and judge whether there is an abnormality in the server IP connected after the newly added file is executed. This process has an abnormal comparison algorithm W f3 {(T fx , W dn ((x1,y1),(x2,y2)...(xn,yn))}
[0122] When there is more than K (T fx ) W dn ((x1, y1), (x2, y2)...(xn, yn)), where K is a certain value, which can be specified arbitrarily. The default value is 1 / 2, which is a certain amount of dynamic characteristics T fx If neither of them is in the network connection whitelist, then W f3 {(T fx , Wdn((x1,y1),(x2,y2)...(xn,yn))}=1, otherwise W f3 {(T fx , Wdn((x1,y1),(x2,y2)...(xn,yn))}=0.
[0123] The whitelist matching algorithm is W f3 The algorithm analyzes the execution results of the newly added files and obtains the feature Tfx and the network connection whitelist W dn Make comparisons.
[0124] S170: Obtain the server import and export traffic after the newly added file is executed, and perform a threshold judgment based on the server import and export traffic to obtain a judgment result.
[0125] In this embodiment, the judgment result refers to whether the inlet and outlet traffic of the server after the newly added file is executed falls within the traffic threshold range when the server is operating normally.
[0126] In one embodiment, see Figure 7 , the above-mentioned step S170 may include steps S171~S174.
[0127] S171. Monitor the import and export traffic of the server after the newly added file is executed to obtain the import and export traffic value of the server within a specific time period to obtain the value to be determined.
[0128] In this embodiment, the value to be determined refers to the import and export traffic value of the server within a specific time period after the newly added file is executed.
[0129] Specifically, after adding the new file, the import and export traffic monitoring calculation adopts the algorithm M fx {(t, a)} for monitoring, where t represents time, a represents the path of the newly added file, and M fx Represents the import and export traffic value within t time after the newly added file is executed, usually t is 24 hours. Traffic monitoring algorithm M fx{(t, a)} Calculate the import and export traffic value of the server host during the specific time range when the newly added file continues to run. The monitoring algorithm will also statistically obtain the import and export traffic range of the server host when there is no new file. There is a judgment algorithm to determine whether the traffic value after the new file is added is within the normal traffic range. By monitoring the import and export traffic on the server host through the agent software, it can be obtained that when there is no new file, the traffic threshold range when the server is operating normally is M
[0130] S172, determining whether the value to be determined is within a flow threshold range when the server is operating normally;
[0131] S173, if the value to be determined is not within the flow threshold range when the server is operating normally, determining that the newly added file is malicious proxy software to obtain a judgment result;
[0132] S174. If the value to be determined is within the flow threshold range when the server is operating normally, the newly added file is determined to be normal software to obtain a determination result.
[0133] Adopting the traffic anomaly judgment algorithm W f4 {(M fx , M)} will be the value to be determined M fx The traffic threshold range M during normal operation of the server is used to determine abnormalities. fx When M, then W f4 {(M fx , M)}=1, otherwise W f4 {(M fx ,M)}= 0
[0134] S180: Determine whether the newly added file is malicious proxy software based on the static matching result, the dynamic matching result, the list matching result and the judgment result, and issue an abnormal alarm.
[0135] For W f1 , W f2 , W f3 , W f4 , the result of the item equal to 1 is that the newly added file is malicious proxy software, and the result of the item equal to 0 is that the newly added file is normal software. f1 , W f2 , W f3 , W f4 If any one of the items is 1, the newly added file is judged to be malicious proxy software. Otherwise, if Wf1, Wf2, Wf3, and Wf4 are all 0, the newly added file is a normal file.
[0136] Specifically, when any one of the static matching result, the dynamic matching result, the list matching result, and the judgment result is that the newly added file is malicious proxy software, the newly added file is determined to be malicious proxy software, and the newly added file is intercepted or an abnormal alarm is issued. When any one of the static matching result, the dynamic matching result, the list matching result, and the judgment result is that the newly added file is a normal file, the end step is entered.
[0137] The client program monitors the path of the newly added files on the server host, and counts the server import and export traffic data within a specific time range. According to the obtained path of the newly added files, the static and dynamic features of the new files are extracted. Static features are such as hash values, and dynamic features are such as the remote server IP and domain name connected after the newly added files are executed. The extracted dynamic and static features are matched with the known malicious dynamic and static feature library for malicious proxy software to determine whether it is malicious proxy software. In addition, the import and export traffic values within a specific time range after the execution of the newly added files are counted, and compared with the traffic threshold during normal server operation. According to the traffic threshold judgment and dynamic and static feature matching, the output of multiple factors is judged to determine whether it is a malicious proxy software. Finally, the corresponding file processing is performed according to the output result, such as alarm, deletion, interception, etc. In the full operation stage before, during, and after the operation of the malicious proxy software, the operation behavior and data traffic of the malicious proxy software are analyzed, and the malicious proxy software is judged according to the known static malicious feature library, dynamic malicious file features, and the learned network connection whitelist, so as to accurately determine whether the relevant program is malicious proxy software.
[0138] For example, the user server system is Windows Server, with three drive letters C, D, and E, and the server IP is 192.168.1.1. A SQL SERVER database is installed on it, and the database open port is 1433. The client agent is installed on the system, and the method of this embodiment is used to detect malicious agent software.
[0139] In the actual example, the user did not customize the parameters, so the relevant algorithms all use the default values. The default value of the corresponding parameter t of the consensus comparison algorithm W is 7 days, and the default value of N is 3. After adding the file, the import and export traffic monitoring M fx , t defaults to 24 hours.
[0140] Monitor the server, including specific file directories, network traffic communications, etc. In the actual example, the monitoring directory is D:\data\, which is the database data file directory; by monitoring the server's network traffic packets, analyzing network traffic characteristics, and learning to generate a network connection whitelist. In the traffic packet, the following records should be extracted:
[0141] 2021.7.1 12:00 192.168.1.1:1433 connected to 192.168.1.2:3333;
[0142] 2021.7.1 12:01 192.168.1.1:1433 connected to 192.168.1.5:4444;
[0143] 2021.7.2 12:07 192.168.1.1:1433 connected to 192.168.1.5:4444;
[0144] 2021.7.2 12:07 192.168.1.1:1433 connected to 192.168.1.2:4444;
[0145] 2021.7.3 12:07 192.168.1.1:1433 connected to 192.168.1.4:4444;
[0146] 2021.7.4 12:07 192.168.1.1:1433 connected to 192.168.1.4:4444;
[0147] 2021.7.5 12:07 192.168.1.1:1433 connected to 192.168.1.4:4444;
[0148] 2021.7.6 12:07 192.168.1.1:1433 connected to 192.168.1.5:4444;
[0149] 2021.7.7 12:07 192.168.1.1:1433 connected to 192.168.1.5:4444;
[0150] …
[0151] From the records, we can know that according to the consensus comparison algorithm, W{(Un,N,t)}, t is 7 days, and the threshold N is 3. From the records, we can get the connection count statistics of the host and port within 7 days: U1(192.168.1.2,3333)=1, U2(192.168.1.5,4444)=4, U3(192.168.1.4,4444)=3. So the set U d3 {U1,U2,U3}. When Un N, that is, Un 3, put the server IP and port corresponding to Un into the network connection set W of the monitoring host dn ((x1,y1),(x2,y2)...(xn,yn)), then W d2((192.168.1.5,4444), (192.168.1.4,4444)).
[0152] By monitoring the server network traffic packets, the communication traffic packet size within 24 hours is counted, that is, the traffic threshold range M. For example, through monitoring, it can be seen that the server communication data traffic within 24 hours is 200MB. Therefore, the traffic threshold is 0MB <M<200MB。
[0153] Through real-time monitoring, the system's operation behavior in the file directory is recorded. The monitoring indicators include: operation time, operation application, operation behavior, and generated file path. The monitoring format is as follows: 12:00 sqlserver.exe added D:\data\1.exe file. In regular monitoring, it will be found that there are multiple records of newly added files in the monitored directory.
[0154] Extract static features of the newly added files; Based on the above recorded results, obtain the file path of the newly added files a=D:\data\1.exe; Calculate the static file features Y of the newly added files fx {(a)}, where a=D:\data\1.exe, through Y fx Generate a static feature of the newly added file, that is, a hash value. In this example, the md5 value is used. The md5 value of the newly added file is 202CB962AC59075B964B07152D234B70.
[0155] Static malicious signature library matching process: using static signature matching algorithm W f1 {(Y fx , R(r1,r2,r3...rn))} for static feature matching, where the malicious static library R(r1,r2,r3...rn), r1...rn is the md5 value of the collected malicious agent software, in this example it is R(202CB962AC59075B964B07152D234B70, 81DC9BDB52D04DC20036DBD8313ED055, 827CCB0EEA8A706C4C34A16891F84E7B), when the md5 value of the newly added file is in R, that is, when Y fx When R(r1,r2,r3...rn), then W f1 {(Y fx , R(r1,r2,r3...rn))}=1, otherwise W f1 {(Y fx, R(r1,r2,r3...rn))} = 0. Here, since the md5 value of the newly added file is 202CB962AC59075B964B07152D234B70 in R, W f1 {(Yfx,R(r1,r2,r3...rn))} = 1, which indicates that the D:\data\1.exe file is a malicious proxy software.
[0156] Extract dynamic file features. When the D:\data\1.exe application is called and executed, monitor the newly added files and obtain the server IP of the newly added files. fx {(a)}, where a=D:\data\1.exe. Through monitoring, if the file is connected to an external server, the relevant server IP and port should be monitored and obtained. For example, (116.116.116.116, 3333). In this example, T fx {(a)}=(116.116.116.116,112.112.112.112),dynamic special feature library matching is performed according to T fx {(a)} = (116.116.116.116, 112.112.112.112) matches the known dynamic malicious signature library. The dynamic malicious signature library matching algorithm, W f2 {(T fx , P(p1,p2,p3...pn))}, P(p1,p2,p3...pn) is a known dynamic malware signature library, where p1,p2,p3...pn is a set of malicious server IP addresses obtained through threat intelligence and other means. In this example, P(116.116.116.116,115.115.115.115,114.114.114.114). When T fx When P(p1,p2,p3...pn), then W f2 {(T fx , P(p1,p2,p3...pn))}=1, otherwise W f2 {(T fx , P(p1,p2,p3...pn))}=0. Here, due to T fx {(a)} = (116.116.116.116, 112.112.112.112), and 116.116.116.116 is in P(116.116.116.116, 115.115.115.115, 114.114.114.114), so W f2 {(T fx, P(p1,p2,p3...pn))} = 1, thus determining that the D:\data\1.exe file is a malicious proxy software.
[0157] Perform network connection whitelist judgment and obtain network connection whitelist W d2 ((192.168.1.5,4444), (192.168.1.4,4444)); Get the server IP to connect to after the newly added file is executed, T fx {(a)}=(116.116.116.116,112.112.112.112);using abnormal comparison algorithm Wf3{(T fx , W dn ((x1,y1),(x2,y2)...(xn,yn))} to compare network connection anomalies and determine whether the connected IP after the execution of the newly added file is abnormal. If there are more than K (T fx ) W dn ((x1,y1),(x2,y2)...(xn,yn)), where K is 1 / 2, then W f3 {(T fx , W dn ((x1,y1),(x2,y2)...(xn,yn))}=1, otherwise W f3 {(Tfx,W dn ((x1,y1),(x2,y2)...(xn,yn))}=0. Since Tfx{(a)}=(116.116.116.116,112.112.112.112), that is, 116.116.116.116 and 112.112.112.112 are not in W d2 ((192.168.1.5,4444), (192.168.1.4,4444)), the actual K=1>1 / 2, so W f3 {(T fx , W dn ((x1,y1),(x2,y2)...(xn,yn))}=1, thus judging that the D:\data\1.exe file is a malicious proxy software.
[0158] Determine the server traffic threshold and monitor the relevant import and export traffic values after the newly added file is executed.
[0159] After adding the new file, import and export flow monitoring calculation, M fx{(t, a)}, where t represents time, with a default of 24 hours, and a is the path of the newly added file, i.e., a = D:\data\1.exe. Mfx represents the import and export traffic value within t hours after the newly added file a. According to the monitoring situation, the traffic value within 24 hours after the execution of the newly added file can be obtained. In this example, M fx = 500MB. The traffic value M fx is used to make an anomaly judgment with the normal traffic range M. The normal traffic range M is: 0MB < M <= 200MB. The traffic anomaly judgment algorithm W f4 {(M fx , M)} is used for judgment. When M fx M, then W f4 {(Mfx, M)} = 1; otherwise, W f4 {(Mfx, M)} = 0. Since M fx = 500MB and M > 200MB, so M fx > M, then W f4 {(M fx , M)} = 1. Thus, it is determined that the file D:\data\1.exe is malicious proxy software, and an alarm or interception is performed on the newly added file determined to be malicious proxy software.
[0160] The above method for detecting malicious proxy software judges malicious proxy software by using static file features, dynamic file features, judging the import and export traffic value within a specific time range after the execution of the newly added file against the traffic threshold during normal server operation, and the learned network connection whitelist. Multiple factors are used to determine malicious proxy software, achieving effective identification of changing malicious proxy software and accurately discriminating whether the relevant program is malicious proxy software.
[0161] Figure 8 is a schematic block diagram of a malicious proxy software detection system 300 provided by an embodiment of the present invention. As Figure 8 shown, corresponding to the above method for detecting malicious proxy software, the present invention also provides a malicious proxy software detection system 300. The malicious proxy software detection system 300 includes units for executing the above method for detecting malicious proxy software, and this system can be configured in a server. Specifically, please refer to Figure 8 , the malicious proxy software detection system includes a monitoring unit 301, a static feature extraction unit 302, a static feature matching unit 303, a dynamic feature extraction unit 304, a dynamic feature matching unit 305, an IP judgment unit 306, a traffic judgment unit 307, and an alarm unit 308.
[0162] The monitoring unit 301 is used to monitor the system directory and files, record the newly added files and the server import and export traffic; the static feature extraction unit 302 is used to extract the static file features of the newly added files; the static feature matching unit 303 is used to match the static file features with the static malicious feature library to obtain a static matching result; the dynamic feature extraction unit 304 is used to extract the dynamic features of the newly added files when executing the newly added files; the dynamic feature matching unit 305 is used to match the dynamic features with the dynamic malicious feature library to obtain a dynamic matching result; the IP judgment unit 306 is used to obtain the server IP connected after the newly added files are executed, and match the server IP with the network connection whitelist to obtain a list matching result; the traffic judgment unit 307 is used to obtain the server import and export traffic after the newly added files are executed, and perform threshold judgment according to the server import and export traffic to obtain a judgment result; the alarm unit 308 is used to determine whether the newly added file is malicious proxy software according to the static matching result, dynamic matching result, list matching result and judgment result, and issue an abnormal alarm.
[0163] In one embodiment, if Fig. 9 As shown, the monitoring unit 301 includes a recording subunit 3011 , a first analyzing subunit 3012 , a second analyzing subunit 3013 and a third analyzing subunit 3014 .
[0164] The recording subunit 3011 is used to monitor the system directories and files through the agent software, record the newly added files and the server import and export traffic; the first analysis subunit 3012 is used to analyze the network traffic characteristics of the system and learn to generate a network connection whitelist; the second analysis subunit 3013 is used to analyze the network traffic characteristics of the system to generate a traffic threshold range when the server is operating normally; the third analysis subunit 3014 is used to analyze the server file situation to obtain the file path where the newly added file is located.
[0165] In one embodiment, the static feature extraction unit 302 is used to calculate static file features for the file path where the newly added file is located.
[0166] In one embodiment, the static feature matching unit 303 is used to determine whether the static file feature is a feature included in the static malicious feature library; if the static file feature is a feature included in the static malicious feature library, then determine that the newly added file is malicious agent software to obtain a static matching result; if the static file feature is not a feature included in the static malicious feature library, then execute the extraction of the dynamic feature of the newly added file when executing the newly added file.
[0167] In one embodiment, the dynamic feature matching unit 305 is used to determine whether the dynamic feature is a feature included in the dynamic malicious feature library; if the dynamic feature is a feature included in the dynamic malicious feature library, the newly added file is determined to be malicious agent software to obtain a dynamic matching result; if the dynamic feature is not a feature included in the dynamic malicious feature library, the server IP generated by the connection after the newly added file is executed is obtained, and the server IP is matched with the network connection whitelist to obtain a list matching result.
[0168] In one embodiment, if Fig.10 As shown, the IP judgment unit 306 includes an IP acquisition subunit 3061 and a list judgment subunit 3062.
[0169] The IP acquisition subunit 3061 is used to acquire the server IP connected after the newly added file is executed; the list judgment subunit 3062 is used to judge whether the server IP and the network connection whitelist meet the set conditions; if the server IP and the network connection whitelist meet the set conditions, the newly added file is determined to be malicious proxy software to obtain a list matching result; if the server IP and the network connection whitelist do not meet the set conditions, the server import and export traffic after the newly added file is executed is obtained, and a threshold judgment is performed based on the server import and export traffic to obtain a judgment result;
[0170] In one embodiment, if Fig.11 As shown, the flow determination unit 307 includes a flow acquisition subunit 3071 and a value determination subunit 3072 .
[0171] The traffic acquisition subunit 3071 is used to monitor the server import and export traffic after the newly added file is executed, so as to obtain the server import and export traffic values within a specific time period to obtain the value to be determined; the value judgment subunit 3072 is used to judge whether the value to be determined is within the traffic threshold range when the server is operating normally; if the value to be determined is not within the traffic threshold range when the server is operating normally, it is determined that the newly added file is malicious agent software to obtain a judgment result; if the value to be determined is within the traffic threshold range when the server is operating normally, it is determined that the newly added file is normal software to obtain a judgment result.
[0172] In one embodiment, the alarm unit 308 is used to determine that the newly added file is malicious agent software when any of the static matching results, dynamic matching results, list matching results and judgment results is that the newly added file is malicious agent software, and intercept or issue an abnormal alarm for the newly added file.
[0173] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the above-mentioned system 300 and each unit for detecting malicious agent software can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.
[0174] The above-mentioned malicious agent software detection system 300 can be implemented in the form of a computer program. The computer program can be used in Fig.12 Runs on the computer device shown.
[0175] See also Fig.12 , Fig.12 1 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 is a server, wherein the server may be an independent server or a server cluster composed of multiple servers.
[0176] See also Fig.12 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0177] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute a method for detecting malicious agent software.
[0178] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0179] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a method for detecting malicious agent software.
[0180] The network interface 505 is used to communicate with other devices over the network. Fig.12 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0181] The processor 502 is used to run the computer program 5032 stored in the memory to implement the following steps:
[0182] Monitor system directories and files, record newly added files and server import and export traffic; extract static file features for the newly added files; match the static file features with a static malicious feature library to obtain a static matching result; when executing the newly added files, extract dynamic features of the newly added files; match the dynamic features with a dynamic malicious feature library to obtain a dynamic matching result; obtain the server IP to which the newly added file is connected after being executed, and match the server IP with a network connection whitelist to obtain a list matching result; obtain the server import and export traffic after the newly added file is executed, and perform a threshold judgment based on the server import and export traffic to obtain a judgment result; determine whether the newly added file is malicious proxy software based on the static matching result, dynamic matching result, list matching result, and judgment result, and issue an abnormal alarm.
[0183] The dynamic features include the server IP and domain name to which the connection is made after the newly added file is executed.
[0184] In one embodiment, the processor 502 implements the following steps when implementing the steps of monitoring the system directories and files and recording the newly added files and the import and export traffic of the server:
[0185] Monitor system directories and files through agent software, record new files and server import and export traffic; analyze the system's network traffic characteristics, learn to generate a network connection whitelist; analyze the system's network traffic characteristics to generate a traffic threshold range when the server is running normally; analyze the server file situation to obtain the file path where the new file is located.
[0186] In one embodiment, when the processor 502 implements the step of extracting static file features from the newly added file, the processor 502 specifically implements the following steps:
[0187] Static file features are calculated for the file path where the newly added file is located.
[0188] In one embodiment, when the processor 502 implements the step of matching the static file feature with the static malicious feature library to obtain a static matching result, the processor 502 specifically implements the following steps:
[0189] Determine whether the static file feature is a feature included in the static malicious feature library; if the static file feature is a feature included in the static malicious feature library, determine that the newly added file is malicious agent software to obtain a static matching result; if the static file feature is not a feature included in the static malicious feature library, perform the step of extracting the dynamic feature of the newly added file when executing the newly added file. In one embodiment, when the processor 502 implements the step of matching the dynamic feature with the dynamic malicious feature library to obtain a dynamic matching result, it specifically implements the following steps:
[0190] Determine whether the dynamic feature is a feature included in the dynamic malicious feature library; if the dynamic feature is a feature included in the dynamic malicious feature library, determine that the newly added file is malicious agent software to obtain a dynamic matching result; if the dynamic feature is not a feature included in the dynamic malicious feature library, execute the acquisition of the server IP generated by the connection after the newly added file is executed, and match the server IP with the network connection whitelist to obtain a list matching result.
[0191] In one embodiment, when the processor 502 implements the step of obtaining the server IP to which the connection is generated after the newly added file is executed, and matching the server IP with a network connection whitelist to obtain a list matching result, the processor 502 specifically implements the following steps:
[0192] Obtain the server IP to which the new file is connected after being executed; determine whether the server IP and the network connection whitelist meet the set conditions; if the server IP and the network connection whitelist meet the set conditions, determine that the new file is malicious proxy software to obtain a list matching result; if the server IP and the network connection whitelist do not meet the set conditions, perform the step of obtaining the server import and export traffic after the new file is executed, and perform threshold judgment based on the server import and export traffic to obtain a judgment result;
[0193] The setting condition is that more than a certain number of server IPs do not belong to the server IPs included in the network connection whitelist.
[0194] In one embodiment, when the processor 502 implements the step of obtaining the server import and export traffic after the newly added file is executed and performing a threshold judgment based on the server import and export traffic to obtain a judgment result, the processor 502 specifically implements the following steps:
[0195] The server import and export traffic after the newly added file is executed is monitored to obtain the server import and export traffic values within a specific time period to obtain a value to be determined; whether the value to be determined is within a traffic threshold range when the server is operating normally; if the value to be determined is not within the traffic threshold range when the server is operating normally, the newly added file is determined to be malicious agent software to obtain a judgment result; if the value to be determined is within the traffic threshold range when the server is operating normally, the newly added file is determined to be normal software to obtain a judgment result.
[0196] In one embodiment, when the processor 502 implements the step of determining whether the newly added file is malicious agent software according to the static matching result, the dynamic matching result, the list matching result, and the judgment result, and performing an abnormal alarm, the following steps are specifically implemented:
[0197] When any one of the static matching result, the dynamic matching result, the list matching result and the judgment result is that the newly added file is malicious proxy software, the newly added file is determined to be malicious proxy software, and the newly added file is intercepted or an abnormal alarm is issued.
[0198] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0199] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0200] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein when the computer program is executed by a processor, the processor executes the following steps:
[0201] Monitor system directories and files, record newly added files and server import and export traffic; extract static file features for the newly added files; match the static file features with a static malicious feature library to obtain a static matching result; when executing the newly added files, extract dynamic features of the newly added files; match the dynamic features with a dynamic malicious feature library to obtain a dynamic matching result; obtain the server IP to which the newly added file is connected after being executed, and match the server IP with a network connection whitelist to obtain a list matching result; obtain the server import and export traffic after the newly added file is executed, and perform a threshold judgment based on the server import and export traffic to obtain a judgment result; determine whether the newly added file is malicious proxy software based on the static matching result, dynamic matching result, list matching result, and judgment result, and issue an abnormal alarm.
[0202] The dynamic features include the server IP and domain name to which the connection is made after the newly added file is executed.
[0203] In one embodiment, when the processor executes the computer program to implement the steps of monitoring the system directories and files and recording the newly added files and the import and export traffic of the server, the processor specifically implements the following steps:
[0204] Monitor system directories and files through agent software, record new files and server import and export traffic; analyze the system's network traffic characteristics, learn to generate a network connection whitelist; analyze the system's network traffic characteristics to generate a traffic threshold range when the server is running normally; analyze the server file situation to obtain the file path where the new file is located.
[0205] In one embodiment, when the processor executes the computer program to implement the step of extracting static file features from the newly added file, the processor specifically implements the following steps:
[0206] Static file features are calculated for the file path where the newly added file is located.
[0207] In one embodiment, when the processor executes the computer program to implement the step of matching the static file feature with the static malicious feature library to obtain a static matching result, the processor specifically implements the following steps:
[0208] Determine whether the static file feature is a feature included in the static malicious feature library; if the static file feature is a feature included in the static malicious feature library, determine that the newly added file is malicious agent software to obtain a static matching result; if the static file feature is not a feature included in the static malicious feature library, execute the extraction of dynamic features of the newly added file when executing the newly added file.
[0209] In one embodiment, when the processor executes the computer program to implement the step of matching the dynamic feature with the dynamic malicious feature library to obtain a dynamic matching result, the processor specifically implements the following steps:
[0210] Determine whether the dynamic feature is a feature included in the dynamic malicious feature library; if the dynamic feature is a feature included in the dynamic malicious feature library, determine that the newly added file is malicious agent software to obtain a dynamic matching result; if the dynamic feature is not a feature included in the dynamic malicious feature library, execute the acquisition of the server IP generated by the connection after the newly added file is executed, and match the server IP with the network connection whitelist to obtain a list matching result.
[0211] In one embodiment, when the processor executes the computer program to implement the step of obtaining the server IP to which the new file is connected after being executed, and matching the server IP with a network connection whitelist to obtain a list matching result, the processor specifically implements the following steps:
[0212] Obtain the server IP to which the new file is connected after being executed; determine whether the server IP and the network connection whitelist meet the set conditions; if the server IP and the network connection whitelist meet the set conditions, determine that the new file is malicious proxy software to obtain a list matching result; if the server IP and the network connection whitelist do not meet the set conditions, perform the step of obtaining the server import and export traffic after the new file is executed, and perform threshold judgment based on the server import and export traffic to obtain a judgment result;
[0213] The setting condition is that more than a certain number of server IPs do not belong to the server IPs included in the network connection whitelist.
[0214] In one embodiment, when the processor executes the computer program to implement the step of obtaining the server import and export traffic after the newly added file is executed, and performing a threshold judgment based on the server import and export traffic to obtain a judgment result, the processor specifically implements the following steps:
[0215] The server import and export traffic after the newly added file is executed is monitored to obtain the server import and export traffic values within a specific time period to obtain a value to be determined; whether the value to be determined is within a traffic threshold range when the server is operating normally; if the value to be determined is not within the traffic threshold range when the server is operating normally, the newly added file is determined to be malicious agent software to obtain a judgment result; if the value to be determined is within the traffic threshold range when the server is operating normally, the newly added file is determined to be normal software to obtain a judgment result.
[0216] In one embodiment, when the processor executes the computer program to implement the step of determining whether the newly added file is malicious agent software according to the static matching result, the dynamic matching result, the list matching result and the judgment result, and performing an abnormal alarm step, the following steps are specifically implemented:
[0217] When any one of the static matching result, the dynamic matching result, the list matching result and the judgment result is that the newly added file is malicious proxy software, the newly added file is determined to be malicious proxy software, and the newly added file is intercepted or an abnormal alarm is issued.
[0218] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.
[0219] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0220] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0221] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0222] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
[0223] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for detecting malicious proxy software, characterized in that: include: Monitor system directories and files, record newly added files and server import and export traffic; Extracting static file features from the newly added file; Matching the static file features with a static malicious feature library to obtain a static matching result; When executing the newly added file, extracting dynamic features of the newly added file; Matching the dynamic feature with a dynamic malicious feature library to obtain a dynamic matching result; Obtaining the server IP to which the newly added file is connected after being executed, and matching the server IP with a network connection whitelist to obtain a list matching result; Obtaining the server import and export traffic after the newly added file is executed, and performing a threshold judgment based on the server import and export traffic to obtain a judgment result; Determine whether the newly added file is malicious proxy software according to the static matching result, the dynamic matching result, the list matching result and the judgment result, and issue an abnormal alarm; The obtaining of the server import and export traffic after the newly added file is executed, and performing a threshold judgment according to the server import and export traffic to obtain a judgment result, includes: Monitoring the import and export traffic of the server after the newly added file is executed to obtain the import and export traffic value of the server within a specific time period to obtain the value to be determined; Determine whether the value to be determined is within a flow threshold range when the server is operating normally; If the value to be determined is not within the flow threshold range when the server is operating normally, the newly added file is determined to be malicious proxy software to obtain a judgment result; If the value to be determined is within the flow threshold range when the server is operating normally, the newly added file is determined to be normal software to obtain a determination result.
2. A method for detecting malicious agent software according to claim 1, characterized in that: The monitoring of system directories and files, recording of newly added files and server import and export traffic, includes: Monitor system directories and files through agent software, record newly added files and server import and export traffic; Analyze the system's network traffic characteristics and learn to generate a network connection whitelist; Analyze the network traffic characteristics of the system to generate the traffic threshold range when the server is operating normally; Analyze the server file situation to obtain the file path where the newly added file is located.
3. A method for detecting malicious agent software according to claim 1, characterized in that: The step of extracting static file features from the newly added file includes: Static file features are calculated for the file path where the newly added file is located.
4. A method for detecting malicious agent software according to claim 1, characterized in that: The step of matching the static file features with the static malicious feature library to obtain a static matching result includes: Determine whether the static file feature is a feature included in the static malicious feature library; If the static file feature is a feature included in the static malicious feature library, then determining that the newly added file is malicious agent software to obtain a static matching result; If the static file feature is not a feature included in the static malicious feature library, then when executing the newly added file, the dynamic feature of the newly added file is extracted.
5. The method for detecting malicious agent software according to claim 1, characterized in that: The dynamic features include the server IP and domain name of the connection after the newly added file is executed.
6. A method for detecting malicious agent software according to claim 5, characterized in that: The matching of the dynamic feature with the dynamic malicious feature library to obtain a dynamic matching result includes: Determining whether the dynamic feature is a feature included in a dynamic malicious feature library; If the dynamic feature is a feature included in the dynamic malicious feature library, determining that the newly added file is malicious agent software to obtain a dynamic matching result; If the dynamic feature is not a feature included in the dynamic malicious feature library, the step of obtaining the server IP to which the new file is connected after being executed is performed, and matching the server IP with a network connection whitelist to obtain a list matching result.
7. A method for detecting malicious agent software according to claim 2, characterized in that: The obtaining of the server IP address to which the newly added file is connected after being executed, and matching the server IP address with a network connection whitelist to obtain a list matching result, includes: Obtain the server IP address that is connected after the newly added file is executed; Determine whether the server IP and the network connection whitelist meet the set conditions; If the server IP and the network connection whitelist meet the set conditions, the newly added file is determined to be malicious proxy software to obtain a list matching result; If the server IP and the network connection whitelist do not meet the set conditions, the step of obtaining the server import and export traffic after the newly added file is executed is performed, and a threshold judgment is performed based on the server import and export traffic to obtain a judgment result; The setting condition is that more than a certain number of server IPs do not belong to the server IPs included in the network connection whitelist.
8. The method for detecting malicious agent software according to claim 1, characterized in that: The determining whether the newly added file is malicious proxy software according to the static matching result, the dynamic matching result, the list matching result and the judgment result, and issuing an abnormal alarm, includes: When any one of the static matching result, the dynamic matching result, the list matching result and the judgment result is that the newly added file is malicious proxy software, the newly added file is determined to be malicious proxy software, and the newly added file is intercepted or an abnormal alarm is issued.
9. A system for detecting malicious proxy software, characterized in that: include: Monitoring unit, used to monitor system directories and files, record newly added files and server import and export traffic; A static feature extraction unit, used to extract static file features from the newly added file; A static feature matching unit, used to match the static file feature with a static malicious feature library to obtain a static matching result; A dynamic feature extraction unit, used for extracting the dynamic features of the newly added file when executing the newly added file; A dynamic feature matching unit, used to match the dynamic feature with a dynamic malicious feature library to obtain a dynamic matching result; An IP judgment unit is used to obtain the server IP to which the new file is connected after being executed, and to match the server IP with a network connection whitelist to obtain a list matching result; A flow determination unit, used to obtain the inlet and outlet flow of the server after the newly added file is executed, and to perform a threshold determination based on the inlet and outlet flow of the server to obtain a determination result; An alarm unit, used to determine whether the newly added file is malicious proxy software according to the static matching result, the dynamic matching result, the list matching result and the judgment result, and to issue an abnormal alarm; The flow determination unit includes a flow acquisition subunit and a value determination subunit; The flow acquisition subunit is used to monitor the import and export flows of the server after the newly added file is executed, so as to obtain the import and export flow values of the server within a specific time period, so as to obtain the value to be determined; the value determination subunit is used to determine whether the value to be determined is within the flow threshold range when the server is operating normally; If the value to be determined is not within the traffic threshold range when the server is operating normally, the newly added file is determined to be malicious agent software to obtain a judgment result; if the value to be determined is within the traffic threshold range when the server is operating normally, the newly added file is determined to be normal software to obtain a judgment result.
Citation Information
Patent Citations
Proxy server having mobile terminal malicious software behavior detection capability and method
CN105187394A
Network theft behavior detecting method based on HTTP flow analysis
CN107454109A
Network protection method and device for vehicular system
CN107579995A
Traffic usage control method, terminal, server and readable storage medium
CN107634940A
Malicious equipment identification method and device, storage medium and computer equipment
CN110912904A
