Network security monitoring system
Through the design of the network security monitoring system, full feature calculation and segment comparison are used to solve the problems of long virus monitoring time and monitoring loopholes in the existing technology, achieve efficient and accurate virus detection, and enhance the coverage and coverage of viruses. accuracy.
Patent Information
- Application Number
- CN202410956975.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology takes a long time to monitor virus programs that invade local devices of netizens and takes up a large amount of storage space. Moreover, only the beginning and end of the code are scanned, which results in monitoring vulnerabilities, resulting in a high possibility of virus intrusion and insufficient monitoring efficiency and accuracy.
Design a network security monitoring system. Through the program file acquisition module, the minimum similarity parameter determination module and the virus determination module, the sequence similarity parameters in the program file and the virus database are calculated, combined with the SIMHASH algorithm to extract full features, and detect viruses according to the situation. Judgment, including line-by-line scanning of execution code to improve accuracy.
It improves the efficiency and accuracy of virus program monitoring. Through full feature calculation and segment comparison, it ensures monitoring coverage of all codes, reduces monitoring loopholes, and enhances virus detection capabilities.
Smart Images

Figure CN118740474A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network security, and in particular to a network security monitoring system. Background Art
[0002] With the development of society, the Internet has provided a large amount of information for people's lives and work. At the same time, the Internet has also brought certain conveniences to the spread of computer viruses. When users visit web pages where viruses are hidden, the viruses will invade the user's local device and thus destroy the network environment.
[0003] At present, there are two situations for monitoring virus programs that invade netizens' local devices. The first is line-by-line scanning, and the second is to only scan the head and tail parts of the code to judge the virus in the code. The first monitoring method has the problem of consuming a lot of time and occupying the running storage space of the local device. The second monitoring method cannot monitor all codes and has monitoring loopholes. The possibility of virus program invasion is very high. Therefore, the efficiency and accuracy of monitoring virus programs that invade netizens' local devices still needs to be improved. Summary of the invention
[0004] The purpose of the present invention is to provide a network security monitoring system to improve the efficiency and accuracy of virus program monitoring.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] A network security monitoring system comprises: a program file acquisition module, a similarity parameter minimum value determination module and a virus determination module connected in sequence;
[0007] The program file acquisition module is used to obtain the program file that interacts with the device to be detected, and put the program file into the cache area;
[0008] The similarity parameter minimum value determination module is used to extract the full features of the program file, and calculate the feature sequence to be detected based on the full features through a preset algorithm, respectively calculate the similarity parameters between the feature sequence to be detected and multiple sequences in the virus library, and obtain the minimum value of the multiple similarity parameters; wherein each sequence in the virus library corresponds to a type of virus;
[0009] The virus determination module is used to determine that the program file is not a virus file when the minimum value of the similarity parameter is greater than or equal to a first set value; when the minimum value of the similarity parameter is less than the first set value and greater than a second set value, extract the execution code of the program file, store the extracted execution code in a text format and put it into a cache area, perform virus scanning on the execution code, and determine that the program file is a virus file if a virus is scanned; when the minimum value of the similarity parameter is less than or equal to the second set value, determine that the program file is a virus file.
[0010] Optionally, the similarity parameter includes a Hamming code distance.
[0011] Optionally, the virus determination module performs virus scanning on the execution code, specifically including:
[0012] Arrange the codes of each line in the execution code in the buffer area in order of the lines;
[0013] Extract the keywords of each line of execution code in turn, and judge each keyword: for the current keyword being judged, search the current keyword from the virus keyword database. If the current keyword can be found, mark the code of the line where the current keyword is located as a virus.
[0014] Optionally, the similarity parameter minimum value determination module includes a full feature extraction unit;
[0015] The full feature extraction unit is used to extract the full features of the execution code through the SIMHASH algorithm.
[0016] Optionally, a virus reminder module is also included, and the virus reminder module is used to issue a virus reminder message when the similarity parameter minimum value determination module or the similarity parameter minimum value determination module detects a virus.
[0017] Optionally, a virus deletion module is also included, and the virus deletion module is used to delete the program file in the cache area when the program file is determined to be a virus file.
[0018] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0019] The present invention first calculates the full features of a program file, calculates a feature sequence to be detected based on the full features, respectively calculates similarity parameters between multiple sequences in a virus library of the feature sequence to be detected, takes a minimum value of the similarity parameter, and compares the minimum value of the similarity parameter with a first set value and a second set value respectively. When the minimum value of the similarity parameter is greater than or equal to the first set value, it is judged that the similarity between the program file and the virus is very small, that is, it is judged that there is no virus in the program file. When the minimum value of the similarity parameter is less than or equal to the second set value, it is judged that the similarity between the program file and the virus is very large, that is, it is judged that there is a virus in the program file. When the minimum value of the similarity parameter is less than the first set value and greater than the second set value, it is uncertain whether there is a virus in the program file, then the execution code of the program file is extracted, and the execution code is scanned line by line. Virus judgment is performed according to different situations, thereby improving the efficiency and accuracy of virus program monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0021] Figure 1 The present invention is a schematic diagram of the structure of a network security monitoring system. DETAILED DESCRIPTION
[0022] 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 only 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.
[0023] The purpose of the present invention is to provide a network security monitoring system structure, which improves the efficiency and accuracy of virus program monitoring.
[0024] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0025] like Figure 1 As shown, a network security monitoring system of the present invention comprises: a program file acquisition module, a similarity parameter minimum value determination module and a virus determination module which are connected in sequence.
[0026] The program file acquisition module is used to obtain the program file that interacts with the device to be detected, and put the program file into the cache area.
[0027] The similarity parameter minimum value determination module is used to extract the full features of the program file, and calculate the feature sequence to be detected based on the full features through a preset algorithm, calculate the similarity parameters between the feature sequence to be detected and multiple sequences in the virus library respectively, and obtain the minimum value of the multiple similarity parameters; wherein each sequence in the virus library corresponds to a type of virus.
[0028] The full feature supports uniquely identifying all components of the program file. Specifically, the program file may include multiple components, for example, the program file includes multiple sub-files; the extracted full feature of the program file includes the features of each sub-file; the features of each sub-file may specifically include the identifier, size, format, contained string or code sequence, etc. of each sub-file.
[0029] Calculating the similarity parameters between the characteristic sequence to be detected and multiple sequences in the virus library respectively, specifically including:
[0030] The feature sequence to be detected is segmented to obtain n segmented sequences; n is a positive integer.
[0031] Each segmented sequence is compared with the segmented sequence corresponding to each sequence in the virus library to obtain multiple similarity parameters.
[0032] The construction of the virus library includes:
[0033] Collect multiple virus sample files;
[0034] The full features of each virus sample file are extracted, a sequence is calculated based on the full features by a preset algorithm, and a virus library is generated based on the obtained multiple sequences.
[0035] The virus determination module is used to determine that the program file is not a virus file when the minimum value of the similarity parameter is greater than or equal to a first set value; when the minimum value of the similarity parameter is less than the first set value and greater than a second set value, extract the execution code of the program file, store the extracted execution code in a text format and put it into a cache area, perform virus scanning on the execution code, and determine that the program file is a virus file if a virus is scanned; when the minimum value of the similarity parameter is less than or equal to the second set value, determine that the program file is a virus file.
[0036] The similarity parameter includes the Hamming code distance.
[0037] The virus determination module performs virus scanning on the execution code, specifically including:
[0038] The codes of each line in the execution code are arranged in the buffer area in sequence according to the order of the lines.
[0039] Extract the keywords of each line of execution code in turn, and judge each keyword: for the current keyword to be judged, search the current keyword from the virus keyword database. If the current keyword can be found, mark the code of the line where the current keyword is located as a virus. When a virus is scanned, stop scanning and judge the program file as a virus file.
[0040] The similarity parameter minimum value determination module includes a full feature extraction unit.
[0041] The full feature extraction unit is used to extract the full features of the execution code through the SIMHASH algorithm.
[0042] A network security monitoring system also includes a virus reminder module and a virus deletion module. The virus reminder module is used to issue virus reminder information when the similarity parameter minimum value determination module or the similarity parameter minimum value determination module detects a virus.
[0043] The virus deletion module is used to delete the program file in the cache area when the program file is determined to be a virus file.
[0044] When the program file is determined not to be a virus file, the program file continues to be executed.
[0045] The present invention provides a network security monitoring system, which can be applied to a terminal, wherein the terminal can be a mobile terminal such as a mobile phone or a tablet computer; the terminal can also be a terminal such as a personal computer (PC).
[0046] The program file can be any file format supported by the terminal.
[0047] The present invention compares the to-be-detected characteristic sequence corresponding to the program file with the sequences corresponding to multiple virus samples in the virus library, and makes virus judgments according to the degree of similarity, thereby improving the efficiency of virus program monitoring while ensuring the accuracy of detection.
[0048] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0049] This article uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the system and core ideas of the present invention. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A network security monitoring system, characterized in that: include: A program file acquisition module, a similarity parameter minimum value determination module and a virus determination module connected in sequence; The program file acquisition module is used to obtain the program file that interacts with the device to be detected, and put the program file into the cache area; The similarity parameter minimum value determination module is used to extract the full features of the program file, and calculate the feature sequence to be detected based on the full features through a preset algorithm, respectively calculate the similarity parameters between the feature sequence to be detected and multiple sequences in the virus library, and obtain the minimum value of the multiple similarity parameters; wherein each sequence in the virus library corresponds to a type of virus; The virus determination module is used to determine that the program file is not a virus file when the minimum value of the similarity parameter is greater than or equal to a first set value; when the minimum value of the similarity parameter is less than the first set value and greater than a second set value, extract the execution code of the program file, store the extracted execution code in a text format and put it into a cache area, perform virus scanning on the execution code, and determine that the program file is a virus file if a virus is scanned; when the minimum value of the similarity parameter is less than or equal to the second set value, determine that the program file is a virus file.
2. The network security monitoring system according to claim 1, characterized in that: The similarity parameter includes the Hamming code distance.
3. The network security monitoring system according to claim 1, characterized in that: The virus determination module performs virus scanning on the execution code, specifically including: Arrange the codes of each line in the execution code in the buffer area in order of the lines; Extract the keywords of each line of execution code in turn, and judge each keyword: for the current keyword being judged, search the current keyword from the virus keyword database. If the current keyword can be found, mark the code of the line where the current keyword is located as a virus.
4. The network security monitoring system according to claim 1, characterized in that: The similarity parameter minimum value determination module includes a full feature extraction unit; The full feature extraction unit is used to extract the full features of the execution code through the SIMHASH algorithm.
5. The network security monitoring system according to claim 1, characterized in that: It also includes a virus reminder module, which is used to issue virus reminder information when the similarity parameter minimum value determination module or the similarity parameter minimum value determination module detects a virus.
6. The network security monitoring system according to claim 1, characterized in that: It also includes a virus deletion module, which is used to delete the program file in the cache area when the program file is determined to be a virus file.
