Malicious code analysis system based on multi-engine integration

Through a malicious code analysis system based on multi-engine integration, using the local virus database controlled by KVM virtual machines and APIs for malicious code detection, solving the cloud dependency and multi-engine scheduling efficiency problems, achieving high accuracy and fast malicious code detection. Supports multi-engine comparison scanning and threat intelligence data provision.

CN119046939AInactive Publication Date: 2024-11-29CHINESE PEOPLES LIBERATION ARMY UNIT 61660
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411062620.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-11-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing malicious code detection system relies on cloud services and cannot analyze files with privacy and protection. There are efficiency and accuracy problems with multi-engine integrated scheduling, making it difficult to provide accurate malicious code detection results.

Method used

A malicious code analysis system based on multi-engine integration is designed, including analysis resource pool, scheduling management layer and interface layer, and the KVM virtual machine and API control mainstream malicious code scanning engines at home and abroad, realizing static analysis of local virus database dependencies and The results are merged, providing the RESTAPI interface to support multi-engine control scanning.

Benefits of technology

Realize local malicious code detection, improve detection speed and accuracy, has clustered deployment and good software scalability, can eliminate false alarms and missed reports through multi-engine comparison scanning, and support data support for threat intelligence and situational awareness systems. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119046939A_ABST
    Figure CN119046939A_ABST
Patent Text Reader

Abstract

The invention relates to a malicious code analysis system based on multi-engine integration, and belongs to the field of network security and the technical field of virtualization. According to the system, static analysis is carried out through malicious code multi-engine contrast analysis, multiple anti-malicious code scanning engines are used for scanning the same sample, detection results of the multiple engines are given, and the threat degree of the sample is comprehensively evaluated in combination with detection conditions of different manufacturers. The system comprises an analysis resource pool, a scheduling management layer and an interface layer. According to the malicious code analysis system, malicious code scanning engines of mainstream manufacturers at home and abroad are adopted, so that the reference and accuracy of detection results are guaranteed, malicious code detection is conducted depending on a local virus library, malicious code detection is not conducted through cloud searching and killing, and the speed and isolation of multi-engine contrast scanning are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of network security and virtualization technology, and specifically relates to a malicious code analysis system based on multi-engine integration. Background Art

[0002] With the rapid development of information technology, network security is facing new challenges. Traditional malicious codes, especially Trojans, are growing rapidly, and new families and variants are constantly emerging to fight against anti-virus software; and different anti-virus engine developers have their own unique technical characteristics in different detection fields. For example, some manufacturers are more accurate in worm detection, and some can restore shelled files more accurately. In order to deal with the constantly changing and upgraded malicious codes, it is necessary to perform static comparative analysis on samples through different malicious code scanning engines, and comprehensively determine whether the file has malicious behavior by comparing the analysis results of different anti-virus engines.

[0003] Secondly, foreign countries have successively developed multi-engine comparison and analysis systems for malicious code, such as VirusTotal, which can scan millions of samples submitted by users every day. However, these systems are all cloud-based service systems, and files involving privacy and protection cannot be uploaded to the Internet for comparison and analysis. Therefore, it is very necessary to build a localized multi-engine comparison system that does not rely on cloud services.

[0004] Third, in recent years, emerging analysis and judgment systems such as situational awareness systems, multi-dimensional correlation systems, and threat intelligence systems have flourished, but malicious code detection has always been a key basic function. Without accurate malicious code detection, there will be no further accurate judgment of attack methods, attack means, and security warnings. Multi-engine comparative analysis can not only provide static analysis results of samples from different manufacturers, eliminate false positives and false negatives through comprehensive judgment, but also can be used as a type of threat intelligence to provide data support for systems such as situational awareness and multi-dimensional correlation.

[0005] At present, in the analysis and research of malicious code, automated behavior tracking and analysis technology is one of the most effective technologies recognized by the industry. It can identify the operation behavior of malicious code through underlying monitoring means. It is necessary to establish an automated malicious code analysis system and perform static analysis on massive samples. It can not only conduct comprehensive analysis and judgment on unknown samples, but also save the judgment results so as to further use big data technology to conduct association analysis, cluster analysis, etc., and mine useful information. Summary of the invention

[0006] 1. Technical issues to be resolved

[0007] The technical problem to be solved by the present invention is how to provide a malicious code analysis system based on multi-engine integration to solve the problems arising from multi-engine integrated scheduling.

[0008] (II) Technical solution

[0009] In order to solve the above technical problems, the present invention proposes a malicious code analysis system based on multi-engine integration, which includes: an analysis resource pool, a scheduling management layer and an interface layer;

[0010] The analysis resource pool is used to conduct timely and effective static analysis of samples and return the detection results of samples in a timely manner. The analysis resource pool uses KVM virtual machines to establish multiple scanning engines and controls the scanning engines in combination with relevant APIs. The scanning engines are malicious code scanning engines of mainstream manufacturers at home and abroad. The scanning engines promptly obtain scanning tasks from the scanning task queue of the scheduling management layer and perform detection and analysis, feedback the scanning results in a timely manner, and place the scanning results in the result queue of the scheduling management layer.

[0011] The scheduling management layer is used to monitor and schedule the operation status of each virtual machine, including: scanning task scheduling module, system management module, scanning task queue and result queue; the system management module collects the operation status of each virtual machine through the service established by the Tornado framework, and adds or shuts down virtual machines in a timely manner according to the backlog of scanning tasks; the scanning task scheduling module is used to implement task distribution for sample data received by the API interface, put sample files into the scanning task queue based on the sample task priority, and has the scanning result fusion function of the scanning task scheduling to realize the merging and standardization of multi-engine results;

[0012] The interface layer is responsible for responding to Web service requests, scheduling and managing scan tasks, managing data, and providing virus database upgrade services. The interface layer provides an interface for establishing system services based on Tornado, which is used for managing detection results, user information, and scan tasks. It also provides a sample cache acquisition interface and a virus database upgrade package download interface based on Nginx services.

[0013] (III) Beneficial effects

[0014] The present invention proposes a malicious code analysis system based on multi-engine integration. Compared with the prior art, the present invention has the following advantages:

[0015] 1. The malicious code analysis system uses malicious code scanning engines from mainstream manufacturers at home and abroad to ensure the referenceability and accuracy of the detection results.

[0016] 2. Rely on local virus database for malicious code detection instead of using cloud virus detection to ensure the speed and isolation of multi-engine comparison scanning.

[0017] 3. It has the ability of cluster deployment, and improves the scanning speed of the control system by clustering the control scanning engine.

[0018] 4. The multi-engine comparison scanning system must have good software scalability and can meet new requirements by modifying relevant software interfaces. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a schematic diagram of a malicious code analysis system based on multi-engine integration according to the present invention;

[0020] Figure 2 This is a priority processing flow chart of the present invention;

[0021] Figure 3 This is a flow chart of scanning task scheduling of the present invention;

[0022] Figure 4 The figure is a flow chart of result processing of the present invention. DETAILED DESCRIPTION

[0023] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below in conjunction with the drawings and examples.

[0024] The present invention proposes a malicious code analysis system based on multi-engine integration, which takes into account the advantages of malicious code analysis and solves the problems arising from multi-engine integration scheduling.

[0025] The present invention relates to a malicious code analysis system based on multi-engine integration. The malicious code analysis system based on multi-engine integration consists of three levels, from bottom to top: an analysis resource pool responsible for sample scanning, a scheduling management layer responsible for virtual machine scheduling and distribution, and an interface layer including user interaction and system interaction.

[0026] Based on the multi-engine integrated malicious code analysis system, a set of malicious code scanning engines is established that can only rely on the local virus database for scanning instead of relying on the cloud for scanning, and the comparison engine is at least 16 malicious code scanning engines from mainstream domestic and foreign manufacturers. Each engine can upgrade the virus database offline at regular intervals. In addition, the external system can provide a RESTAPI interface (API interface based on HTTP protocol), including a sample delivery interface and a comparison scan result acquisition interface. The peripheral system can call the API interface to realize the multi-engine comparison scanning function. The analysis resource pool is mainly responsible for timely and effective static analysis of samples, and timely returns the detection results of samples; the scheduling management layer is mainly responsible for monitoring and scheduling management of the operating status of each virtual machine; the interface layer realizes system service interaction and user interaction, and is mainly responsible for Web service request response, scanning task scheduling management, data management, virus database upgrade service work and web page interaction.

[0027] The present invention proposes a malicious code analysis system based on multi-engine integration, which can perform multi-engine static scanning and analysis on suspicious samples on a computer system. Among them, the malicious code scanning engine only relies on the local virus library for scanning instead of relying on the cloud for scanning, and the comparison engine includes malicious code scanning engines from 16 mainstream manufacturers at home and abroad, and each engine can upgrade the virus library offline at regular intervals. In addition, the system can provide a RESTAPI interface (an API interface based on the HTTP protocol), including a sample delivery interface and a comparison scanning result acquisition interface. The peripheral system can call the API interface to realize the multi-engine comparison scanning function. The malicious code detection and analysis system consists of three levels, including: analysis resource pool, scheduling management layer and interface layer.

[0028] The analysis resource pool is used to conduct timely and effective static analysis of samples and return the detection results of samples in a timely manner. The analysis resource pool uses KVM virtual machines to establish multiple scanning engines and controls the scanning engines in combination with relevant APIs. The scanning engines are malicious code scanning engines of mainstream manufacturers at home and abroad. The scanning engine promptly obtains scanning tasks from the scanning task queue of the scheduling management layer and performs detection and analysis, promptly feedbacks the scanning results, and places the scanning results in the result queue of the scheduling management layer.

[0029] The scheduling management layer is used to monitor and schedule the operation status of each virtual machine, including: scanning task scheduling module, system management module, scanning task queue and result queue. The system management module collects the operation status of each virtual machine through the service established by the Tornado framework. The operation status mainly includes the virtual machine operation status (running, shut down, etc.), the detection program operation status (detecting, waiting for scanning tasks), the virus library date, the number of virtual machine scan samples, the backlog of scanning tasks, etc., and according to the backlog of scanning tasks, the virtual machine is added or shut down in time. The scanning task scheduling module is used to realize the task distribution of sample data received by the API interface, and put the sample files into the scanning task queue based on the sample task priority; and the scanning result fusion function of the scanning task scheduling realizes the merging and standardization of multi-engine results.

[0030] The interface layer is used to take on the work of Web service request response, scanning task scheduling management, data management and virus database upgrade service. The interface layer provides an interface for establishing system services based on Tornado, which is used for the management of detection results, user information and scanning tasks; it provides a sample cache acquisition interface based on Nginx service and a virus database upgrade package download interface. In addition, the interface layer also includes web page interaction and client interaction. The web page interaction mainly realizes uploading, detection result query and analysis result export, and supports the configuration of user's personal scanning engine, historical record query and sample detection result statistics. The client provides three modes, including executable programs in Windows environment and executable programs in Linux environment, as well as python script programs.

[0031] According to an embodiment of the malicious code analysis system based on multi-engine integration of the present invention, the steps of sample task priority processing are:

[0032] S11, receiving samples sent by the front end and obtaining sample parameters;

[0033] S12, cache the received samples to obtain basic information such as MD5, SHA1, SHA256, CRC, file format, and file size of the samples;

[0034] S13, creating a scanning task, and determining the most recent detection time of the sample, and giving priority to the scanning task according to configurations such as whether the most recent detection time is greater than 24 hours, the source of the request, whether the requesting user has high priority permissions, and whether to force re-analysis of the script;

[0035] S14, inserting the created scanning task into the scanning task queue of the system, waiting for the task distribution of the scanning task scheduling module for task allocation.

[0036] According to an embodiment of the malicious code analysis system based on multi-engine integration of the present invention, the steps of task distribution for the malicious code scanning engine are as follows:

[0037] S21, taking out a scanning task from the scanning task queue of the system;

[0038] S22, obtaining scanning task information, and inserting the scanning task into the scanning task set of a specific scanning engine;

[0039] S23, the malicious code scanning engine obtains a scanning task: if the number of samples in the scanning task set reaches the quantity threshold (50), the total size of the samples in the scanning task set reaches the data threshold (800MB), or there is a scanning task in the scanning task set but no new scanning task is obtained for 10 consecutive seconds, the sample is obtained; if no conditions are met, it waits in a loop.

[0040] According to an embodiment of the malicious code analysis system based on multi-engine integration of the present invention, the step of fusing the scanning results is as follows:

[0041] S31, reading scanning result information from the result queue;

[0042] S32, merging into the cached results, replacing the obsolete data, and correcting the detection status, last analysis time, and last analysis time of the corresponding scanning engine and other parameters;

[0043] S33. Update the scan results to the sample detection result database and conduct a comprehensive threat assessment; wherein, use multiple anti-malware code scanning engines to scan the same sample, and give the detection results of multiple engines, and combine the detection results of different manufacturers to comprehensively assess the threat level of the sample.

[0044] S34. Clear cached results and cached samples to release occupied system resources.

[0045] Embodiment 1:

[0046] A malicious code analysis system based on multi-engine integration performs static analysis through multi-engine comparison analysis of malicious code, uses multiple anti-malware code scanning engines to scan the same sample, and gives the detection results of multiple engines. Combined with the detection results of different manufacturers, it comprehensively assesses the threat level of the sample. The malicious code analysis system based on multi-engine integration consists of three layers, namely the analysis resource pool, the scheduling management layer, and the interface layer.

[0047] The analysis resource pool conducts timely and effective static analysis of samples and returns the detection results of samples in a timely manner. Multiple scanning engines are established using KVM virtual machines, and the scanning engines are controlled in combination with relevant APIs. The scanning engine obtains scanning tasks in a timely manner, performs detection and analysis, and provides timely feedback on scanning results.

[0048] The scheduling management layer is mainly responsible for monitoring and scheduling the operation status of each virtual machine. The service established through the Tornado framework collects the operation status of each virtual machine, which mainly includes the virtual machine operation status (running, shut down, etc.), the detection program operation status (detecting, waiting for scanning tasks), the virus database date, the number of virtual machine scan samples, the backlog of scanning tasks, etc. And according to the backlog of scanning tasks, virtual machines are added or shut down in a timely manner.

[0049] The interface layer is mainly responsible for Web service request response, scanning task scheduling management, data management and virus database upgrade services. It provides an interface for establishing system services based on Tornado, which is used for the management of detection results, user information and scanning tasks; it provides a sample cache acquisition interface and a virus database upgrade package download interface based on Nginx service. In addition, the interface layer also includes web page interaction and client interaction. Web page interaction mainly realizes upload, detection result query and analysis result export, and supports the configuration of user's personal scanning engine, historical record query and sample detection result statistics. The client provides three modes, including executable programs in Windows environment and executable programs in Linux environment, as well as python script programs.

[0050] Furthermore, the analysis resource pool is responsible for the creation of scanning tasks and the collection of test results. The test samples uploaded by users are converted into specific scanning tasks, and the scanning tasks are integrated. Different scanning tasks are created for different scanning engines according to the user's test requirements. In order to speed up the test efficiency, the discrete scanning tasks are also merged into an overall scanning task, so that the scanning engine can perform batch tests on samples and finally collect the test results of samples in a timely manner. The system also has abnormal task management to avoid long-term occupation of system resources.

[0051] Furthermore, the user interaction part of the interface layer is responsible for monitoring the operation of the system, which mainly includes user authority management, scanning task backlog monitoring, scanning result information statistics, and real-time usage monitoring of each scanning engine resource. Through the interface layer, the system administrator can monitor the operation of the system in real time, prompt the user of the current system busy status, and view the number of detection samples of malicious code scanning engines of different manufacturers and the statistical information of the number of malicious sample detections.

[0052] Furthermore, the interface layer deploys the upgrade service locally on the user's machine. The localized upgrade service combines the HTTP protocol to enable each engine to obtain the latest offline upgrade package in a timely manner and upgrade the virus database, making the detection more timely and the results more accurate. This includes timely downloading the latest offline virus databases of each manufacturer, downloading the virtual machine files that need to be updated, and updating the upgrade files to replace the old files.

[0053] Compared with the prior art, the present invention has the following advantages:

[0054] 1. The malicious code analysis system uses malicious code scanning engines from mainstream manufacturers at home and abroad to ensure the referenceability and accuracy of the detection results.

[0055] 2. Rely on local virus database for malicious code detection instead of using cloud virus detection to ensure the speed and isolation of multi-engine comparison scanning.

[0056] 3. It has the ability of cluster deployment, and improves the scanning speed of the control system by clustering the control scanning engine.

[0057] 4. The multi-engine comparison scanning system must have good software scalability and can meet new requirements by modifying relevant software interfaces.

[0058] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A malicious code analysis system based on multi-engine integration, characterized in that: The system includes: analysis resource pool, scheduling management layer and interface layer; The analysis resource pool is used to conduct timely and effective static analysis of samples and return the detection results of samples in a timely manner. The analysis resource pool uses KVM virtual machines to establish multiple scanning engines and controls the scanning engines in combination with relevant APIs. The scanning engines are malicious code scanning engines of mainstream manufacturers at home and abroad. The scanning engines promptly obtain scanning tasks from the scanning task queue of the scheduling management layer and perform detection and analysis, feedback the scanning results in a timely manner, and place the scanning results in the result queue of the scheduling management layer. The scheduling management layer is used to monitor and schedule the operation status of each virtual machine, including: scanning task scheduling module, system management module, scanning task queue and result queue; the system management module collects the operation status of each virtual machine through the service established by the Tornado framework, and adds or shuts down virtual machines in a timely manner according to the backlog of scanning tasks; the scanning task scheduling module is used to implement task distribution for sample data received by the API interface, put sample files into the scanning task queue based on the sample task priority, and has the scanning result fusion function of the scanning task scheduling to realize the merging and standardization of multi-engine results; The interface layer is responsible for responding to Web service requests, scheduling and managing scan tasks, managing data, and providing virus database upgrade services. The interface layer provides an interface for establishing system services based on Tornado, which is used for managing detection results, user information, and scan tasks. It also provides a sample cache acquisition interface and a virus database upgrade package download interface based on Nginx services.

2. The malicious code analysis system based on multi-engine integration as claimed in claim 1, characterized in that: The operating status includes: virtual machine operating status, detection program operating status, virus database date, number of virtual machine scan samples, and scan task backlog.

3. The malicious code analysis system based on multi-engine integration as claimed in claim 1, characterized in that: The interface layer also includes web page interaction and client interaction. Web page interaction enables uploading, querying of test results and exporting of analysis results. It also supports the configuration of user's personal scanning engine, historical record query and statistics of sample test results. The client provides three modes, including: supporting executable programs in Windows environment and executable programs in Linux environment, as well as Python script programs.

4. The malicious code analysis system based on multi-engine integration according to any one of claims 1 to 3, characterized in that: The scanning engine only relies on the local virus database for scanning instead of the cloud, and the comparison engine includes malicious code scanning engines from 16 mainstream domestic and foreign manufacturers. Each engine can regularly upgrade the virus database offline.

5. The malicious code analysis system based on multi-engine integration as claimed in claim 4, characterized in that: The system provides REST API interfaces, including sample delivery interface and comparison scan result acquisition interface. The peripheral system can implement multi-engine comparison scan function by calling the API interface.

6. The malicious code analysis system based on multi-engine integration as claimed in claim 4, characterized in that: The processing steps of the sample task priority are: S11, receiving samples sent by the front end and obtaining sample parameters; S12, cache the received sample and obtain the sample's MD5, SHA1, SHA256, CRC, file format, and file size information; S13, creating a scanning task, and determining the most recent detection time of the sample, and performing priority processing on the scanning task according to whether the most recent detection time is greater than 24 hours, the source of the request, whether the requesting user has high priority permissions, and whether re-analysis is forced; S14, inserting the created scanning task into the scanning task queue of the system, waiting for the task distribution of the scanning task scheduling module for task allocation.

7. The malicious code analysis system based on multi-engine integration as claimed in claim 4, characterized in that: The task distribution includes: S21, taking out a scanning task from the scanning task queue of the system; S22, obtaining scanning task information, and inserting the scanning task into the scanning task set of a specific scanning engine; S23. The malicious code scanning engine obtains a scanning task: if the number of samples in the scanning task set reaches the number threshold, the total size of the samples in the scanning task set reaches the data threshold, or there is a scanning task in the scanning task set but no new scanning task is obtained for 10 consecutive seconds, the sample is obtained; if no conditions are met, it waits in a loop.

8. The malicious code analysis system based on multi-engine integration as claimed in claim 4, characterized in that: The scanning result fusion includes: S31, reading scanning result information from the result queue; S32, merging into the cached results, replacing the obsolete data, and correcting the detection status, last analysis time, and last analysis time parameters of the corresponding scanning engine; S33, updating the scan results to the sample detection result database, and conducting a comprehensive threat assessment; wherein, using multiple anti-malware code scanning engines to scan the same sample, and providing the detection results of multiple engines, and combining the detection results of different manufacturers to comprehensively assess the threat level of the sample; S34. Clear cached results and cached samples to release occupied system resources.

9. The malicious code analysis system based on multi-engine integration as claimed in claim 4, characterized in that: The analysis resource pool is also used to create scanning tasks and recover test results. It converts the test samples uploaded by users into specific scanning tasks and integrates the scanning tasks. According to the user's detection requirements, different scanning tasks are created for different scanning engines, and discrete scanning tasks are merged into an overall scanning task, so that the scanning engine can perform batch detection on samples and finally recover the test results of the samples in a timely manner. The system also has abnormal task management to avoid long-term occupation of system resources.

10. The malicious code analysis system based on multi-engine integration as claimed in claim 4, characterized in that: The user interaction part of the interface layer is responsible for monitoring the operation status of the scanning monitoring system, including user authority management, scanning task backlog monitoring, scanning result information statistics, and real-time usage monitoring of each scanning engine resource; Through the interface layer, system administrators can monitor the system operation in real time, prompt users of the current system busy status, and view the number of detection samples of malicious code scanning engines of different manufacturers and the statistical information of the number of malicious sample detections.

Citation Information

Patent Citations

  • Detection method and system for cross comparison of malicious code of interior and exterior view based on virtual machine

    CN102750475A

  • Multi-engine contrast scanning dynamic adjustment method and system based on hardware resources

    CN108170515A

  • User terminal access trusted computing authentication system and method

    CN117195235A