Image-based malicious code detection method and device and artificial intelligence-based endpoint threat detection and response system using the same

An image-based malicious code detection method using deep learning models addresses the challenge of real-time detection of sophisticated threats by converting executable file code into image arrays for analysis within an AI-driven EDR system, enhancing threat detection and response capabilities.

JP7531816B2Active Publication Date: 2024-08-13NPCORE
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023532354
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-11-19
Filing Date
2021-11-19
Publication Date
2024-08-13
Estimated Expiration
2041-11-19

AI Technical Summary

Technical Problem

Existing endpoint detection and response (EDR) systems struggle to effectively analyze and respond to sophisticated malicious codes in real-time, particularly those that bypass traditional signature-based and rule-based detection methods, and there is a need for a system that can detect and classify new and variant malicious codes using machine learning and image-based analysis.

Method used

An image-based malicious code detection method and device that utilizes deep learning models to analyze executable files by converting their code into image arrays, performing deep learning analysis to identify malicious codes, and integrating this with an AI-driven endpoint threat detection and response system for proactive threat management.

Benefits of technology

The system provides effective detection of known and unknown threats, minimizes system load, and reduces response time to cyber threats by leveraging image-based analysis and machine learning, enabling proactive countermeasures against advanced persistent threats.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007531816000023
    Figure 0007531816000023
  • Figure 0007531816000024
    Figure 0007531816000024
  • Figure 0007531816000025
    Figure 0007531816000025
Patent Text Reader

Abstract

The present invention provides an AI-based next-generation endpoint threat detection and response (EDR) system for proactively responding to unknown security threats, and a method and device for analyzing malicious code that can respond to threats by monitoring the main actions of processes occurring in computing devices such as PCs and EDR systems based on intrusion indicators and analyzing them on an image basis against advanced persistent threat (APT) attacks, which are persistent targeted attacks. The malicious code analysis method includes the steps of: reading an executable file or at least part of the code of the executable file located in a file path of a created file obtained from a file creation event log detected in a processor, memory, or storage device associated with the EDR system, endpoint, or corresponding computing device, as bytes consisting of unsigned constant-bit integers and converting them into a byte array; reading the byte array two bytes at a time; using the two-byte data as coordinates of an image of a predetermined size, incrementing the corresponding coordinate values, adding RGB channels, and saving the image array; and performing deep learning analysis on the image array using an image deep learning model.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an artificial intelligence-based next-generation endpoint detection and response (EDR) system for proactive response to unknown security threats, and more particularly, to a method and device for analyzing malicious code that can respond to threats by monitoring main actions of processes occurring in computing devices such as PCs and EDR systems based on indicators of compromise (IOC) against advanced persistent threat (APT) attacks, which are persistent targeted attacks, and analyzing them based on images. [Background technology]

[0002] As information and communication infrastructure continues to expand, there has been a rapid increase in various types of security threats, known as advanced persistent threats (APTs), that exploit information and communication (IT) infrastructure.

[0003] In particular, there has been an urgent need for measures to prevent important information leaks within companies due to the use of malicious code and the resulting reduction in work concentration caused by internal users accessing non-work sites.

[0004] Therefore, in order to respond to security threats that are continuously causing damage, it is necessary to analyze a huge amount of malicious code and threat-related data, and there is a high demand for the development of a malicious code learning and classification module that analyzes images through automatic learning for effective analysis.

[0005] Meanwhile, foreign and domestic APT solution makers related to existing malicious code detection and response technologies are offering various response solutions for each company to deal with new or mutated malicious code, but the reality is that it is difficult to respond in real time to security threats that are becoming increasingly large and intelligent.

[0006] As a result, EDR solution developers who are researching malicious code detection technology that utilizes machine learning are actively using artificial intelligence (AI) technology to detect some cyber threats that cannot be detected by existing solutions such as signature-based and rule-based solutions.

[0007] Additionally, endpoint intrusion incident response solutions that collect information from endpoint devices and automatically detect and respond to signs of cyber attacks in real time through correlation analysis and machine learning are also being actively introduced.

[0008] In addition, various threat intelligence tools for distributed remote forensics, which are a proactive response technology for malicious activities on business personal computers (PCs), are being developed. Some conventional technologies rely only on signatures and behavior analysis. Various static application security testing (SAST) tools that enable developers to test the security of software applications developed in various languages ​​such as C / C++, Ruby, and Python are also currently under development.

[0009] However, in order to effectively analyze and respond to the aforementioned malicious code and threat attacks, it would be most desirable to directly analyze the malicious code within an agent installed on a PC, terminal, server, etc., but to date no such solution has been proposed. Summary of the Invention [Problem to be solved by the invention]

[0010] The present invention has been developed to meet the demands of the prior art, and an object of the present invention is to provide a method and apparatus for detecting malicious code that can effectively analyze malicious code on an image basis within an agent installed in a PC, terminal, server, etc., as well as in a target system such as a next-generation endpoint detection and response (EDR) system.

[0011] Another object of the present invention is to provide an image-based malicious code detection method and device that can be used as an agent and big data-based intelligent forensic analysis system by analyzing all event behaviors occurring at an endpoint through continuous monitoring and analysis based on IOC (Indicators of Compromise) to respond to threats of intrusion.

[0012] It is yet another object of the present invention to provide an image-based malicious code detection method and apparatus capable of performing high-level malicious code learning and classification using a multi-platform agent that minimizes memory resource allocation to prevent system load.

[0013] It is yet another object of the present invention to provide an image-based malicious code detection method and apparatus that detects new and mutated malicious code from big data collected through a malicious code imaging algorithm and an imaged malicious code learning / classification technique, and through machine learning-based static and dynamic analysis or similarity analysis.

[0014] Yet another object of the present invention is to provide an image-based malicious code detection method and device that can detect new and mutated malicious code that bypasses anti-virus (vaccine) in a signature-less manner, take preemptive measures before an endpoint such as a local PC is infected, and dynamically analyze remote action-based malicious code through virtual and real environment stage analysis.

[0015] It is yet another object of the present invention to provide an image-based malicious code detection method and apparatus equipped with a backup engine for automatic instant backup of internal data and restoration of original files through detection of malicious behavior occurring in a user's operating system (OS).

[0016] Yet another object of the present invention is to provide an image-based malicious code detection method and apparatus capable of collecting and distributing the latest threat intelligence (TI) such as indicators of compromise (IOC), malicious code patterns, YARA rules, malicious code distribution, and C&C (command & control) servers collected through various analyses in real time, and detecting malicious code based on the collected threat information.

[0017] It is yet another object of the present invention to provide an endpoint agent or artificial intelligence based endpoint detection and response (EDR) system using the image-based malicious code detection method and apparatus described above. [Means for solving the problem]

[0018] An image-based malicious code detection method according to one aspect of the present invention for solving the above technical problems is an image-based malicious code detection method performed by a malicious code detection device coupled to a computing device, and includes the steps of reading an executable file located in a file path of a created file obtained from a file creation event log detected in a processor, memory, or storage device associated with the computing device, or at least a part of the code of the executable file, into bytes consisting of unsigned integers of a certain number of bits and converting them into a byte array; reading two bytes at a time into the byte array; using the two-byte data as coordinates (x, y) on an image of a predetermined size, incrementing the corresponding coordinate values, adding RGB channels, and saving the image array; and performing deep learning analysis on the image array using an image deep learning model.

[0019] In one embodiment, the step of performing the deep learning analysis may include adjusting the size of an input layer for analysis of the image sequence, calling a pre-trained deep learning model, and inputting the image sequence into the deep learning model.

[0020] In one embodiment, the step of performing the deep learning analysis may detect malicious code or determine the likelihood of occurrence of known or unknown threats based on a preset threshold value after analyzing the deep learning model.

[0021] In one embodiment, the step of performing the deep learning analysis may include detecting malicious code or determining the likelihood of occurrence of known or unknown threats based on image texture of the executable file or other sections of the code or binary fragments after analyzing the deep learning model.

[0022] In one embodiment, the converting to the byte array step may include performing a memory dump on the executable file loaded into memory when the executable file is executed, and converting the unpacked file into the byte array and saving it.

[0023] In one embodiment, the storing in the image array step may include inserting the byte array in a predetermined order on an image of the predetermined size in units of two bytes, specifying the increasing distance of the coordinate values ​​as a distance parameter, and specifying the array angle of the increasing values ​​at the coordinates using an angles parameter.

[0024] In one embodiment, the image-based malicious code detection method may further include a step of registering a specific color image of the executable file or the code in a whitelist when the executable file or the code is determined to be normal by analyzing the executable file or the code through automatic analysis or machine learning.

[0025] In one embodiment, the image-based malicious code detection method may further include a step of performing tracking or monitoring on the file and the process of the file when a file that is a target for automatic analysis, a target for machine learning analysis, or a file registered on a grey list is executed, and when it is determined that the file performs a predetermined malicious activity, determining to proceed with an image-based malicious code detection process on the file or at least a portion of the code of the file.

[0026] In one embodiment, the image-based malicious code detection method may further include a step of training the image deep learning model with a file including malicious code and a normal file. The step of performing the deep learning analysis may classify the suspicious file as normal or malicious based on a similarity hash function trained with basic characteristic information of the executable file using the trained image deep learning model, classify the suspicious file as normal or malicious based on a similarity hash function trained with all characteristic information extractable from the executable file, classify the suspicious file as normal or malicious through a malicious code image analysis algorithm, or classify or detect the suspicious file as normal or malicious using a combination of these classification methods.

[0027] In one embodiment, the malicious code image analysis algorithm may perform machine learning-based similarity classification on the image sequence input to the trained image deep learning model. The machine learning-based similarity classification may be configured to determine correlation between the same type, variants, or similar series of malicious code.

[0028] An image-based malicious code detection device according to another aspect of the present invention for solving the above technical problems includes a byte array conversion unit that reads an executable file located in a file path of a created file obtained from a file creation event log detected in a processor, memory, or storage device associated with a specific computing device, or at least a part of the code of the executable file, into bytes consisting of unsigned integers of a certain number of bits and converts it into a byte array; a coordinate mapping unit that reads two bytes at a time into the byte array; a coordinate RGB channel increase unit that uses the two-byte data as coordinates (x, y) on an image of a predetermined size, increments the corresponding coordinate values, adds RGB channels, and saves an image array; and an image deep learning analysis unit that performs deep learning analysis on the image array using an image deep learning model.

[0029] In one embodiment, the image deep learning analysis unit may include a deep learning model calling unit that calls a pre-trained deep learning model, a deep learning model analysis unit that inputs the image sequence into the deep learning model and analyzes it, and a malicious code determination unit that determines whether or not the image sequence contains malicious code.

[0030] In one embodiment, the malicious code determination unit may detect malicious code or determine the possibility of occurrence of known or unknown threats based on a preset threshold value for the analysis results of the deep learning model analysis unit.

[0031] In one embodiment, the malicious code determination unit can detect malicious code or determine the likelihood of the occurrence of known or unknown threats based on the image texture of the executable file or other sections of the code or binary fragments in response to the analysis results of the deep learning model analysis unit.

[0032] In an embodiment, the byte array converter may perform a memory dump on the executable file loaded in the memory when the executable file is executed, and may convert the unpacked file into the byte array and store it.

[0033] In one embodiment, the coordinate RGB channel increasing unit may specify a numerical range of a corresponding coordinate on the image of the preset size by increasing it from a grayscale range to a maximum RGB range based on every two bytes of the byte array, increase the numerical value of the coordinate by one, and first increase the numerical value of a green channel range when the numerical value of the RGB channel range exceeds a predetermined reference value, and increase the numerical value of the blue channel when the green channel range is exceeded.

[0034] In one embodiment, the image-based malicious code detection device may further include a storage unit or storage management system that backs up the driver files to a temporary storage folder on the driver of the specific computing device in response to a signal from the malicious code judgment unit of the image deep learning analysis unit when the image deep learning analysis unit detects ransomware behavior analysis.

[0035] According to yet another aspect of the present invention for solving the technical problems, an artificial intelligence based endpoint detection and response (EDR) system includes a data collection unit that detects a file creation event in a processor, memory, or storage device associated with a specific computing device and extracts a file path of the created file from a file creation event log; a byte array conversion unit that reads an executable file located in the file path received from the data collection unit or at least a part of the code of the executable file in bytes consisting of an unsigned integer of a certain bit and converts it into a byte array; a coordinate mapping unit that reads two bytes at a time from the byte array; a coordinate RGB channel increase unit that uses the two-byte data as coordinates (x, y) on an image of a preset size, increments the corresponding coordinate value, adds RGB channels, and saves an image array; and an image deep learning analysis unit that performs deep learning analysis on the image array using an image deep learning model.

[0036] In one embodiment, the data collector may include an endpoint agent located on another computing device at a remote location.

[0037] In one embodiment, the endpoint threat detection and response system may further include a cloud management system that manages multiple computing devices on a network to which the endpoint agents are coupled. Effect of the Invention

[0038] According to the present invention, a cyber threat response system can be established through indicators of compromise (IOC)-based forensic analysis to effectively respond to threats of sandbox bypass malicious code, such as virtual environment evasion, time delay and trigger attacks, and multi-stage attacks.

[0039] In addition, according to the present invention, an autonomously evolving threat response system can be effectively constructed by generating and distributing rules through an automated analysis system based on artificial intelligence that applies machine learning and malicious code image analysis techniques.

[0040] In addition, the present invention enables reliable information generation and distribution through sharing of the latest threat information with other agencies and systems, thereby shortening the response time to malicious code and minimizing cyber damage.

[0041] In addition, the present invention is a next-generation vaccine technology that goes beyond the limitations of existing vaccines, and can prevent cyber attacks that threaten national security and respond quickly and proactively when a cyber crisis occurs, thereby contributing to protecting the security and interests of individuals and the nation.

[0042] In addition, the image-based malicious code detection method and apparatus according to the present invention can be used as a next-generation security solution that replaces anti-virus software to deal with advanced cyber threats.

[0043] In addition, the present invention provides an on-premise product for security within government agencies and companies, which can be installed on all terminals in the internal networks of agencies and companies to effectively provide next-generation EDR services.

[0044] In addition, it is a next-generation EDR for individual users as a security as a service (SECaaS), and since it can be operated and managed in cloud format by installing an agent on the endpoint and using a server-side system, it has the advantage of being able to be provided not only as an on-premise system, but also as an online security service or a subscription-based paid service in partnership with domestic and international news agencies. [Brief description of the drawings]

[0045] [Figure 1] 1 is a schematic configuration diagram of an artificial intelligence (AI)-based next-generation endpoint threat detection and response (EDR) system for proactively responding to unknown security threats according to one embodiment of the present invention. [Diagram 2] This is a diagram to explain indicators of compromise (IOCs) that can be used in the EDR system of Figure 1, as well as a threat information management system and an endpoint agent. [Diagram 3] 2 is a diagram for explaining an image-based malicious code detection process that can be adopted in the EDR system of FIG. 1. [Figure 4] 2 is a flowchart illustrating a malicious code detection process that can be employed in the EDR system of FIG. 1. [Diagram 5] 2 is a diagram for explaining the linkage between the analysis system and the endpoint agent of the EDR system of FIG. 1. [Figure 6] 1 is a diagram for explaining a machine learning-based malicious code detection process that can be adopted in the EDR system of FIG. 1. [Figure 7] 2 is a diagram for explaining an image-based malicious code detection process that can be adopted in the EDR system of FIG. 1. [Figure 8] 1 is a diagram for explaining a process of improving reliability of threat modeling in an analysis system that can be adopted in the EDR system of FIG. [Figure 9a]FIG. 2 is a diagram for explaining a security API (application programming interface) linkage operation for multidimensional analysis that can be adopted in the EDR system of FIG. 1. [Figure 9b] 9b is a flow chart illustrating the main operation principle of the security API interlocking operation of FIG. 9a; [Figure 10] 2 is a diagram illustrating a malicious code classification process of an endpoint agent corresponding to at least a part of the EDR system of FIG. 1. [Figure 11] 11 is a diagram for explaining a design process of an indicator of compromise (IOC)-based analysis module of an analysis system that can be adopted in the endpoint agent of FIG. 10. [Figure 12] 11 is a block diagram illustrating an image-based malicious code detection device and a computing device having the same, according to another embodiment of the present invention. [Figure 13] 13 is a diagram illustrating a process of adding and expanding physical resources in the cloud-based virtualization system for the malicious code detection device of FIG. 12. [Figure 14] 13 is a diagram for explaining a user interface for analysis information of a malicious code detection process that can be adopted in the malicious code detection device of FIG. 12; [Figure 15] 13 is a block diagram for explaining an endpoint agent in which the malicious code detection device of FIG. 12 can be mounted. FIG. [Figure 16] FIG. 16 is a schematic block diagram illustrating the internal malicious code detection architecture of the endpoint agent of FIG. 15. [Figure 17] FIG. 16 is a block diagram showing the internal analysis module configuration of the endpoint agent of FIG. 15. [Figure 18] 16 is a view illustrating an example of a user interface screen for explaining an endpoint security operation of the endpoint agent of FIG. 15. [Figure 19] 16 is a flowchart illustrating a malicious code visualization process in the malicious code detection method performed by the endpoint agent of FIG. 15. [Figure 20] 16 is an example of a converted source code for explaining a process of obtaining an image by defining the code of an executable file in a preset byte width size in the endpoint agent of FIG. 15 and imaging the code. [Figure 21] 16 is an example diagram of a result image for code imaging in the endpoint agent of FIG. 15. [Figure 22] 16 is a flowchart illustrating a main malicious code detection process of the endpoint agent of FIG. 15. [Figure 23] 23 is an example of a conversion source code for explaining a gray-level co-occurrence matrix (GLCM) conversion image module that can be used in the malicious code detection process of FIG. 22. [Figure 24] 24 is an example diagram of an image before and after code imaging is applied using the GLCM conversion image module of FIG. 23. [Diagram 25] 13 is a block diagram illustrating a main configuration of an image-based malicious code detection device according to yet another embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0046] The present invention can be modified in various ways and can have various embodiments, and a specific embodiment will be illustrated in the drawings and described in detail in the detailed description. However, this is not intended to limit the present invention to a specific embodiment, and it should be understood that the present invention includes all modifications, equivalents, and alternatives within the spirit and technical scope of the present invention. In the description of each drawing, similar reference numerals are used for similar components.

[0047] Terms such as first, second, A, B, etc. may be used to describe various components, but the components should not be limited by these terms. The terms are used only to distinguish one component from another. For example, a first component may be named a second component, and similarly, the second component may be named a first component, without departing from the scope of the invention. The term "and / or" includes a combination of multiple associated listed items or any of multiple associated listed items.

[0048] When a component is said to be "coupled" or "connected" to another component, it should be understood that it may be directly coupled or connected to the other component, but there may be other components in between. Conversely, when a component is said to be "directly coupled" or "directly connected" to another component, it should be understood that there are no other components in between.

[0049] The terms used in this application are merely used to describe certain embodiments and are not intended to limit the present invention. Singular expressions include plural expressions unless the context clearly indicates otherwise. In this application, terms such as "include" or "have" are intended to specify the presence of features, numbers, steps, operations, components, parts, or combinations thereof described in the specification, and should be understood not to preclude the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.

[0050] Unless otherwise defined, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by a person of ordinary skill in the art to which the present invention pertains. Terms as defined in commonly used dictionaries should be interpreted to have a meaning consistent with the meaning they have in the context of the relevant art, and should not be interpreted in an idealized or overly formal sense unless expressly defined in this application.

[0051] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the description of the present invention, the same reference numerals are used for the same components in the drawings to facilitate an overall understanding, and duplicated descriptions of the same components are omitted.

[0052] FIG. 1 is a schematic diagram of an artificial intelligence (AI)-based next-generation endpoint detection and response (EDR) system for proactively responding to unknown security threats according to one embodiment of the present invention.

[0053] Referring to FIG. 1, the AI-based next-generation EDR system 100 includes an analysis system 110, a cloud management system 120, a malicious code dynamic analysis system 150, a malicious code learning and classification system 160, an indicator of compromise (IOC) and threat information management system, etc. The analysis system 110 includes a data collection unit 130 and an image conversion unit 140, and may be referred to as an intelligent forensic analysis system or a threat analysis server. The image conversion unit 140 may include an imaging module 141 and an image classification module 142. And, the malicious code dynamic analysis system 150 may include a behavior-based malicious code dynamic analysis system.

[0054] In this embodiment, the malicious code dynamic analysis system 150, the malicious code learning and classification system 160, and the IOC and threat information management system 170 are described as separate configurations, but the present invention is not limited to such a configuration, and it goes without saying that the analysis system 110 can be configured to include the malicious code dynamic analysis system 150, the malicious code learning and classification system 160, and the IOC and threat information management system 170. In this case, the malicious code dynamic analysis system 150, the malicious code learning and classification system 160, and the IOC and threat information management system 170 can be referred to as a malicious code dynamic analysis module, a malicious code learning and classification module, and an IOC and threat information management module, respectively, in the order described.

[0055] Looking at the main components in more detail, the analysis system 110 may have an agent function that collects IOC-based information on major actions occurring in the network, files, processes, registries, etc. related to the endpoint. Such an agent function may be for intelligent forensic analysis through the collection of intrusion threats at the endpoint.

[0056] In addition, the analysis system 110 stores the collected monitoring data in a form that allows big data analysis, and performs intelligent forensic analysis and malicious behavior detection using the collected behavior information.

[0057] The malicious code dynamic analysis system 150 may include a behavior-based malicious code dynamic analysis system capable of simultaneously operating in real and virtual environments. The malicious code dynamic analysis system 150 may detect malicious code behavior in networks, files, processes, registries, etc. based on behavior rules, and may store data collected through static and dynamic analysis of the detected malicious code in an analyzable form. Such collected data may be big data stored in an analyzable form.

[0058] In addition, the malicious code dynamic analysis system 150 can execute a file and analyze malicious behavior in a physically configured real machine-based sandbox environment to deal with malicious code that evades virtual machines. To this end, the malicious code dynamic analysis system 150 can be embodied to dynamically analyze malicious code on a behavior basis in a virtual machine (VM) and a real machine.

[0059] The malicious code learning and classification system 160 may include a malicious code learning and classification module that applies a malicious code image analysis technique. The malicious code learning and classification system 160 may tune machine learning parameters for image learning using a malicious code imaging algorithm. The malicious code learning and classification system 160 may also learn and classify malicious code images using a machine learning algorithm. That is, the system 160 may perform a similarity analysis based on machine learning on big data collected through static and dynamic analysis of malicious code, and may analyze malicious code derived from original malicious code using a modeling technique to detect malicious code.

[0060] The indicators of compromise (IOC) and threat information management system 170 manages the latest threat information such as indicators of compromise (IOC), malicious code patterns, YARA rules, malicious code distribution, C&C (command & control) servers, and malicious code hashes collected through various analyses in formats such as OpenIOC and STIX (structured threat information expression), and can share or distribute it with other systems through standard protocols such as TAXII (trusted automated exchange of intelligence information). That is, the IOC and threat information management system 170 can perform instant backup and restoration functions in preparation for ransomware attacks at endpoints, and share or distribute the latest threat information with public systems such as the Cyber ​​Safety Center of the Korea Internet & Security Agency (KISA) through standard protocols for the latest indicators of compromise and threat information generated by the system.

[0061] The main functions of the AI-based next-generation EDR system 100 of this embodiment are as follows.

[0062] First, the EDR system 100 collects infringement threats based on IOC for major actions such as network, file, process, and registry at an endpoint through a collecting module (COL) (S11). The collection function of the agent can be set up to collect infringement threats based on IOC for major actions at an endpoint and to be linked with an instantaneous backup function when a ransomware attack is detected.

[0063] Additionally, the EDR system 100 can perform intelligent forensic analysis and malicious behavior search through a forensic analysis module.

[0064] In addition, the EDR system 100 can execute files and analyze malicious behavior in a sandbox environment based on a physically configured real machine in order to deal with malicious code that evades virtual machines.

[0065] In addition, the EDR system 100 can image big data collected through static and dynamic analysis of malicious code, and then perform machine learning preprocessing (ML-PreP, S12), image learning, image classification, and grouping processes in the order described below to efficiently detect variant malicious code derived from original malicious code. The collected data and data such as imaging results, preprocessing results, learning results, classification results, grouping results, and detection results can be stored in a storage unit (stroing, STO, S13). In addition, the stored data can be processed through post-processing such as image analysis (postprecessing PostP, S14) and then stored in the storage unit again.

[0066] In addition, if the EDR system 100 detects encryption by an unauthorized process through analysis of ransomware behavior occurring at an endpoint, it can be configured to instantly back up the original file to a temporary storage folder on the driver, and restore data from the original file stored in the temporary storage folder when ransomware is detected.

[0067] In addition, the EDR system 100 manages the latest indicators of intrusion and threat information, such as IOCs, malicious code patterns, YARA rules, malicious code distribution, and C&C servers, collected through various analyses in formats such as OpenIOC and STIX, and can share or distribute them to other systems through standard protocols such as TAXII.

[0068] Table 1 shows main performance values ​​for each collection path of data collected by the data collector 120 of the EDR system 100.

[0069] [Table 1]

[0070] Figure 2 is a diagram for explaining indicators of compromise (IOC), a threat information management system, and an endpoint agent that can be adopted in the EDR system of Figure 1. Figure 3 is a diagram for explaining an image-based malicious code detection process that can be adopted in the EDR system of Figure 1. Referring to Figure 2, the IOC and threat information management system 170 and the endpoint agent 200 can visualize and improve malicious code by sharing indicators of compromise (IOC) for intelligent forensic analysis.

[0071] That is, the analysis system including the IOC and threat information management module collects suspicious files and source information through the IOC and threat information management module (S21), collects information on C&C servers and malicious code distribution (S22), transmits suspicious files among the malicious code and information collection results collected on the cloud (S23) to the sandbox analysis module (S24), and stores the information collection result report in the source database (DB) (S26). At this time, the data analyzed by the sandbox analysis module can also be stored in the source DB (S25).

[0072] Next, the analysis system receives the data stored in the source DB (S27), performs a first verification and outputs it (S28), and can self-verify and classify the first verification results and assign a score (S29). The scored data can be stored in the IOC DB and then transmitted to or shared with the endpoint agent 200.

[0073] The endpoint agent 200 can compare and analyze (CA) agent data collected on a particular computing device corresponding to the endpoint with indicators of compromise (IOCs) previously transmitted thereto through an internal analysis system 210.

[0074] More specifically, as shown in Figure 3, the analysis system reads collected malware binary (30) as a vector or bytes consisting of unsigned 8-bit integers and configures them into a 2D array (S31), and visualizes them in an image format based on the width size of the 2D array (S32, S33). Here, the 2D array can be referred to as a byte array, and the image format can include a grayscale image visualized in the range of 0 (black) to 225 (white).

[0075] According to this embodiment, an image array can be generated for various parts of the executable file, for example text, rdata, data, rsrc, and other sections of malicious code or binary fragments, with unique image textures 35.

[0076] FIG. 4 is a flowchart illustrating a malicious code detection process that can be employed in the EDR system of FIG.

[0077] Referring to FIG. 4, the EDR system or its analysis system can perform a behavior-based whitelist exception processing procedure (greylist function).

[0078] More specifically, the behavior-based whitelist exception processing technology that can be adopted in EDR systems or analysis systems can be configured to register files or code that are determined to be normal after automatic analysis using tools such as the ZombieZERO system or analysis using machine learning, excluding whitelists manually registered by users, as a graylist, and to perform continuous tracking and monitoring using endpoint agents based on this.

[0079] For example, in order to protect against malicious code that only operates under specific conditions such as time, place, user, virtual evasion, etc., an agent installed on the user's end point can be set to continuously track or monitor the malicious code.

[0080] The detailed configuration of a malicious code detection scenario using greylisting is as follows:

[0081] First, when a user executes a file that is subject to automatic analysis or machine learning or that is registered on the greylist, the endpoint agent (hereinafter simply referred to as the agent) determines whether the file is registered on the whitelist (S42) or whether it was manually registered by the user (S43), and does not restrict the execution itself (run the file, S44).

[0082] When a file or a process based on this file is executed, the agent continues to track and monitor the file or process. During the tracking and monitoring process, if the file is not on the whitelist (No in S42), it is determined whether it is on the blacklist (S45). If it is on the blacklist, the file is blocked (block file, S46). If the file is not on the blacklist, it is determined whether it is a file for which an analysis request is required (S47). In special cases, if it is not a file for which an analysis request is required, the current process is terminated, and if it is a file for which an analysis request is required, the execution of the file is put on hold (pending execution (holding), S48), and an analysis request for the file is made to the ZombieZERO security solution (S49). The ZombieZERO security solution is a type of security solution that is combined with or included in an analysis system, IOC, and threat information management module, etc.

[0083] On the other hand, if the file is registered on the whitelist but not registered by the user (No in S43), the agent registers the file on the graylist and can perform tracking and monitoring when the file is executed (S50).

[0084] In addition, when the agent detects malicious activity such as ransomware or damage to the master boot record (MBR), it can block the relevant files or processes, request the analysis system or corresponding server to remove the file from the greylist, and register the file on the blacklist.

[0085] FIG. 5 is a diagram for explaining the interaction between the analysis system and the endpoint agent of the EDR system of FIG.

[0086] Referring to FIG. 5, the server-side analysis system 110 may include a manual analysis module 143, an automatic analysis module 144, a whitelist (WL) DB 145, a blacklist (BL) DB 146, and a greylist (GL) DB 147. The manual analysis module 143 may perform administrator analysis, whitelist registration, blacklist registration, etc., and the automatic analysis module 144 may perform an antivirus function, static analysis, dynamic analysis, and machine learning analysis. A virtual machine or a real machine may be used for dynamic analysis. The analysis system 110 configured as described above includes an artificial intelligence-based analysis platform and may provide a malicious code detection policy to the agent 200 (S51).

[0087] The agent 200 can function as a next-generation EDR device, and includes a proactive detection module 220 and a post detection module 230, and can perform a tracking and monitoring function 240 for files executed on an endpoint or a specific computing device. The agent 200 can transmit information on a specific file and logs such as an execution event log of the file to the analysis system 110 according to the results of tracking and monitoring (S52).

[0088] FIG. 6 is a diagram for explaining a machine learning-based malicious code detection process that can be adopted in the EDR system of FIG.

[0089] Referring to FIG. 6, the EDR system and its analysis system can extract feature information of executable files such as portable executable files (PE files) from among normally input files 60 in order to detect malicious code based on machine learning (S61). The feature information includes the first feature f1 being 5, the second feature f2 being 7, and the kth feature f k may be stored such that each feature has an integer value, such as 2. A fixed size or width integer value may correspond to a given vector or byte.

[0090] Next, the analysis system can perform similarity hashing from the stored feature information (S62). Similarity hashing can include a similarity-based hashing procedure such as deep hashing for similarity search. In similarity hashing, the same data generates the same hashing value, and in the case of similar data, the difference in hashing value can be implemented to have an inverse relationship with the similarity of the data. For example, hashing can be performed by using the data points of a specific executable file (000.exe) as a bucket.

[0091] Next, the analysis system can compare the similarity hashing results with a number of pre-defined or pre-trained classification models (model 1, model L, etc.) to determine whether there is a match (S63).

[0092] If there is no matching with the classification model among the similarity hashing results, i.e., if no malicious code is detected, the analysis system extends the feature information for deeper detection and checks whether the similarity hashing results match through a machine learning model such as a decision tree (DT) ensemble (S64), thereby classifying normal files 67 and malicious files 68. Here, the extended feature information may refer to the feature information (basic feature information) described above, which is obtained by extracting additional feature information from the corresponding file or adding the remaining feature information that was not included after extraction, thereby increasing the number of feature information for deeper detection to a certain number (integer multiple greater than 1) compared to the basic feature information. And, the DT ensemble may refer to a specific model that combines multiple decision trees to show higher performance than the case of using one model.

[0093] According to this embodiment, the agent function can be improved by improving the malicious code analysis based on machine learning. That is, the machine learning model of this embodiment can be configured to learn a model with normal files and files containing malicious code, and then detect whether a suspicious file is malicious using the learned model. In addition, the machine learning model can be embodied to classify normal files and malicious files after learning a similarity hash function with basic feature information of an executable file, and to classify normal files and malicious code after learning a similarity hash function with all feature information that can be extracted from an executable file.

[0094] FIG. 7 is a diagram for explaining an image-based malicious code detection process that can be adopted in the EDR system of FIG.

[0095] Referring to FIG. 7, the analysis system of the EDR system can detect malicious code by applying a malware image analysis algorithm.

[0096] Specifically, the analysis system converts the executable file or at least a portion of its code into a 2D vector (S70, S71), and then performs grayscale imaging of the 2D vector (S72).

[0097] Next, the analysis system adjusts the image size of the image array through preprocessing (S73) so that the 2D vector image data or the image array can be used as input for deep learning.

[0098] Next, the size-adjusted and imaged data is classified using a machine learning model to determine homogeneous or similar series correlations between malicious codes (S74).The machine learning model can use an open source-based similarity classification model equipped with convolution, CI feature map, subsampling, S1 feature map, convolution, S2 feature map, subsampling, convolution, and fully connected layers between the input and output.

[0099] The results of the discrimination using the machine learning model, i.e., the classification results of the malicious code, can be displayed as images with various image textures (S75). Such malicious code classification results can be interlocked with a separate user analysis system for analysts (S76) and converted to a specific DB (S77) and stored.

[0100] According to this embodiment, the accuracy of malicious code classification technology can be improved by using imaged data, and the accuracy of risk measurement can be improved by analyzing the influence of spreading behavior based on malicious code correlation analysis.

[0101] FIG. 8 is a diagram for explaining a process of improving the reliability of threat modeling using an analysis system that can be adopted in the EDR system of FIG.

[0102] 8, the analysis system may include a malicious code dynamic analysis system 150 as an artificial intelligence-based malicious code analysis system, and may be designed as follows: That is, the analysis system may use malicious code samples such as a malware dataset (152) for performance verification of the analysis system (S81), and may reflect the performance verification results in machine learning threat modeling (S83).

[0103] The malicious code dynamic analysis system 150 includes a classification module, a clustering module, and a deep learning model, and can perform malware detection and malware family classification through malware analysis after feature extraction of PE format files.

[0104] The malicious code dataset 152 may include a dataset generated by malware labeling (S82) a real dataset.

[0105] The analysis system may be configured as a malware analysis system to perform machine learning evasion threat modeling as an analysis for poisoning attacks, evasion attacks, and the like.

[0106] According to the present embodiment, an effective malicious code analysis system can be designed by using various classification and clustering algorithms for malicious code analysis. In addition, not only can classification into malicious code and normal files be performed, but also detailed classification into malicious code variant groups can be performed, and not only normal code and malicious code samples but also malicious code samples labeled with various variant groups can be used for system performance verification. In addition, a malicious code analysis system can be designed in consideration of compatibility with an agent installed at an end point, and a threat model for various attacks that can be performed against an artificial intelligence-based malicious code analysis system can be effectively established in terms of machine learning model evasion attacks.

[0107] Figure 9a is a diagram for explaining a security API (application programming interface) interoperation operation for multi-dimensional analysis that can be adopted in the EDR system of Figure 1. Figure 9b is a flowchart for explaining the main operating principle of the security API interoperation operation of Figure 9a.

[0108] 9a, the EDR system may further include a malicious code linkage analysis system 180. The linkage analysis system 180 may be included in the analysis system (see 110 in FIG. 1) of the EDR system, and in this case may be referred to as a linkage analysis module.

[0109] The interlocking analysis system 180 may include a third party reputation analysis module, a file extension verification module, a file static behavior analysis module, a sandbox administrator, a file dynamic behavior analysis module, a file DB, a static or dynamic malicious code detection Yara rule DB, a file analysis result DB, a PCAP (packet capture) DB, a hash DB, etc.

[0110] The file DB can store and manage portable executable (PE) files, office files, Hangul (HWP) files, email (eml) files, etc. The file static behavior analysis module is connected to the file extension verification module, the malicious code detection Yara rule module, and the sandbox manager, and includes at least one submodule for file attributes, PE analysis, and Yara rule detection, and can be connected to the file analysis result DB.

[0111] The file dynamic behavior analysis module is connected to the sandbox manager and the malicious code detection rule module, and includes at least one submodule for analyzing threat behavior in the registry, file, memory, network, etc., and can be connected to a file analysis result DB, a PCAP DB, and a hash DB. The PCAP DB can include an API (application programming interface) for capturing network traffic.

[0112] The sandbox manager can be connected to a virtual sandbox 191 and a real machine sandbox 192. The virtual sandbox 191 can be a virtual machine sandbox and can include a plurality of malicious code analysis virtual machines (virtual machine 1 to virtual machine n), and the real machine sandbox 192 can be included in a plurality of malicious code analysis real machines (real machine 1 to real machine n).

[0113] According to this embodiment, a real-time collection and distribution system of the latest threat intelligence (TI) such as indicators of compromise (IOC), malicious code patterns, detection rules, malicious code distribution, C&C servers, etc. can be constructed through security API linkage. In addition, to advance static / dynamic analysis and agent functions, it is possible to effectively implement a linkage design of the malicious code analysis process using a virtual machine or real machine for collected files.

[0114] In addition, according to the present invention, antivirus engine distribution, reputation analysis, URL (uniform resource locator) connection detection, behavior-based analysis, etc. can be effectively performed through security API linkage for multidimensional analysis. Also, through the virtual machine circumvention detection process, endpoint central processing unit (CPU) identifier (ID), presence or absence of virtual machine behavior, process searching operation criteria, etc. can be set and used for malicious code detection.

[0115] In addition, according to the present invention, it is possible to provide an environment in which data can be instantly backed up to a temporary storage folder on the driver through real-time analysis of ransomware behavior occurring at the endpoint, and data can be restored to the original file when ransomware is detected.

[0116] For example, as shown in FIG. 9b, if the file is known (N in S91), the file execution is not restricted (S92), but when an unknown file is about to be executed (Y in S91), the EDR system suspends the execution of the file (S93), uploads the file to the analysis system (S94), analyzes the file through the analysis system (S95), downloads the executable hash value (S96), and compares it with the analysis results of the analysis system to determine whether or not the file should be executed (S97).

[0117] FIG. 10 is a diagram for explaining a malicious code classification process of an endpoint agent corresponding to at least a part of the EDR system of FIG.

[0118] Referring to FIG. 10, in order to solve the problem of variant or new malicious code, the endpoint agent can be configured to perform outlier detection for malware variants and new malware groups through a malicious code learning and classification module and perform model retraining (S101).

[0119] Outlier detection may involve detecting data that has problems or anomalies, and model retraining may involve retraining with normal image textures and additional malicious image textures to accommodate variants or new malicious code.

[0120] In addition, the endpoint agent may be provided with a malware analysis system that can be installed on multiple platforms. The endpoint agent may be configured as a multi-platform agent for Macintosh (MAC), Windows, Linux, etc. through the malware analysis system (S103).

[0121] The endpoint agent sets an attack dataset, such as poisoning of a real dataset, as a machine learning target attack on multiple platforms and performs an attack simulation, through which the artificial intelligence model can be trained (S105).

[0122] According to the present embodiment, a malicious code classification system is implemented based on artificial intelligence, and evasion techniques can be effectively learned.

[0123] In addition, a single analysis system can analyze malicious code for specific platforms such as Windows, Macintosh, and Linux, and the performance of the implemented system can be verified using malicious code samples. For example, a model can be trained considering a scenario in which a variant of an existing group of malicious code and a new group of malicious code appear. In addition, existing labeled malicious code group information and time series data can be used to verify the analysis of new and variant malicious code. In addition, attack data sets can be constructed by applying various attack techniques such as poisoning attacks and evasion attacks to existing samples for machine learning, and the malicious code analysis system can be trained using such attack data sets to improve the success rate of detecting malicious code.

[0124] FIG. 11 is a diagram for explaining a design process of an indicator of compromise (IOC) based analysis module of an analysis system that can be adopted in the endpoint agent of FIG.

[0125] Referring to FIG. 11, an endpoint agent can apply an antivirus (AV) engine inside the agent for intelligent forensic analysis.

[0126] More specifically, an agent may be executed and a preprocessing process may be performed.

[0127] During the pre-processing process, a specific manager (CIOCMgr) that collects file, process or registry events is started (S1101), and a specific traffic monitor (CTrafficMonitor) that collects network events is started (S1110) to collect events of an endpoint or a specific computing device.

[0128] When an event occurs, a rule comparison is performed on the log of the corresponding event through a specific first function (DoDynamic function) (S1102, S1111), and the comparison results are stored in the DB through a specific second function (Insert function) (S1103, S1105, S1107, S1112), and then the corresponding data is converted into JSON format through a specific third function (DoNofity function) (S1104, S1106, S1108, S1113) in order to transmit the stored log and analysis results to a manager, and the JSON format data can be transmitted to the manager through a specific message (DoNofity_Send) (S1120). The data transmitted to the manager can be displayed on a user interface (UI).

[0129] Table 2 (Table 2-1 to Table 2-6) shows an example of the interface configuration for the indicators of compromise (IOC)-based malicious code analysis function.

[0130] [Table 2-1] [Table 2-2] [Table 2-3] [Table 2-4] [Table 2-5] [Table 2-6]

[0131] The infringement indicator-based analysis module that can be installed in the agent can modify the collected event to fit the format and then transmit it to the agent's application. After that, the agent can save the transmitted event content in a database or extract only the process part and log the extracted part in JSON format or the like to transmit it to the administrator. Here, the JSON format is a format change configuration to transmit the extracted part to the administrator, and other configurations can be replaced. The agent can provide log information that is the analysis result of the infringement indicator through rules such as Yara rules. After analyzing the operation log for the malicious behavior, the agent can use Yara rules created based on the operation of the corresponding malicious behavior. In addition, the agent can be configured to use Yara rules created based on Mitre ATT&CK to additionally create attack classifications and attack methods for the corresponding rules and provide the corresponding information.

[0132] The agent can be configured to provide classification and technical information for the attack method of the log through MITRE ATT&CK T_ID information and collected log analysis, and to provide a URL linked to the corresponding ID so that help can be referenced on the MITRE ATT&CK site.

[0133] The agent can perform registry log analysis by applying indicators of compromise (IOC) rules and static analysis through the corresponding rules. The agent can centrally detect registry paths for disk access and driver access through registry log analysis, and proceed with disk access and driver access detection security. At this time, malicious behavior can be detected through the disk access related log contents and related rules.

[0134] The agent can perform analysis of processes that run internally and WMI (windows management instrumentation) through API hooking. That is, the agent can complement memory-based attack detection, module operation part detection, script-based malicious behavior detection, command line malicious behavior, and script-based malicious behavior through process and WMI analysis through API hooking.

[0135] In addition, to enhance network monitoring capabilities, the agent can be equipped with a packet payload detection function during network communications, and can be set up to detect pre-attack preparations using the network, such as port scans.

[0136] FIG. 12 is a block diagram illustrating an image-based malicious code detection device and a computing device having the same according to another embodiment of the present invention.

[0137] 12, an image-based malicious code detection device (hereinafter, simply referred to as a malicious code detection device) is a type of EDR system 100, which may be installed in an endpoint or a specific computing device corresponding thereto, and may include an analysis system 110, a data collection unit 130, an image conversion unit 140, an image analysis system 150, and a storage unit 190. The analysis system 110 may be referred to as a main analysis system to distinguish it from the image analysis system 150.

[0138] The data collector 130 may be configured to detect a file creation event in a particular computing device and extract a file path of the created file from a file creation event log, where the file creation event or the file creation event log may be detected from a process, file, or registry executing in a processor, memory, or storage device associated with the particular computing device.

[0139] In addition, when a file that is the subject of automatic analysis, machine learning analysis, or registered on the greylist is executed, the data collection unit 130 can transmit a signal to the image conversion unit 140 or the analysis system 150 requesting tracking or monitoring of the corresponding file and the file's process.

[0140] In addition, when a specific file is detected as performing a predetermined specific action, the data collection unit 130 may be configured to transmit a signal to the image conversion unit 140 or the image analysis system 150 for carrying out an image-based malicious code detection process for the corresponding file or at least a portion of the code of the file.

[0141] The image converter 140 may correspond to an image processor, and may include a byte array converter 141, a coordinate mapper 142, and a coordinate RGB channel multiplier 142a.

[0142] The byte array converter 141 reads an executable file located in the file path of a created file obtained from a file creation event log or at least a part of the code of the executable file as a vector or bytes consisting of unsigned integers with a certain number of bits, and converts them into a byte array. The byte array corresponds to a 2D vector.

[0143] In addition, the byte array converter 141 may perform memory dumping on the executable file loaded in the memory when the executable file is executed, and may convert the unpacked file into a byte array and store it.

[0144] The coordinate mapping unit 142 reads two bytes from the byte array and maps them onto a virtual image of a preset size. At this time, the data read two bytes at a time is used as coordinates (x, y) on the virtual image.

[0145] The coordinate RGB channel multiplier 142a uses 2 bytes of data as coordinates (x, y) of an image of a preset size, increments the value of the corresponding coordinate, adds or increments RGB channels to the corresponding image, and stores an image or image array containing substantially all information of the byte array. The preset size can include a size of 256×256×3.

[0146] In addition, the coordinate RGB channel increasing unit 142a can insert a byte array in a predetermined order on an image of a predetermined size, two bytes at a time, specify the increase distance of the coordinate value as a distance parameter, and specify the array angle of the value that increases at the coordinate using an angles parameter.

[0147] In addition, the coordinate RGB channel increasing unit 142a may be configured to increase and specify a numerical range at a corresponding coordinate on an image of a preset size based on every two bytes of the byte array, from a grayscale range (0 to 255) to a maximum range RGB {(0, 0, 0) to (255, 255, 255)}, increase the numerical value of the coordinate by 1, and first increase the numerical value of the green channel range when the numerical value of the RGB channel range exceeds a preset reference value, and increase the blue channel when the green channel range is exceeded.

[0148] The image conversion unit 140 may be configured to, for example, read a portable executable (PE) file in bytes, convert it into a byte array, convert the byte array into an image of size 256×256×1 in units of two bytes, increment at least one pixel value of the image of (x, y) coordinates by using the two-byte value as the (x, y) coordinate, add an RGB channel, and store an image array of size 256×256×3 in the image storage unit.

[0149] In addition, the image conversion unit 140 may be configured to detect a PE file generation event log in a specific folder through a byte array conversion module and a coordinate mapping module, extract a file path, read the file as bytes and convert it into an array, and perform image conversion by applying an RGB technique to the previously converted byte array through a coordinate RGB channel increase module or an RGB image conversion module, and then transmit the image array to a DB and store it in the DB.

[0150] The image analysis system 150 corresponds to an image deep learning analysis unit and performs deep learning analysis using an image deep learning model on an image sequence. The image analysis system 150 may include a deep learning model calling unit 151 that calls a pre-trained deep learning model, a deep learning model analysis unit 152 that inputs an image sequence to the deep learning model and analyzes it, and a malicious code determination unit 153 that determines whether or not there is malicious code in the image sequence.

[0151] The deep learning model calling unit 151 can adjust the size of an input layer for analyzing an image sequence, call a pre-trained deep learning model, and input the image sequence to the deep learning model.

[0152] The deep learning model analysis unit 152 analyzes an image sequence input to the deep learning model and outputs an image-based malicious code analysis result. The deep learning model may include a transfer-trained RESNET model.

[0153] In addition, the deep learning model analysis unit 152 may be configured to perform machine learning-based similarity classification on the image sequence input to the trained image deep learning model, and to determine correlations between the same type, variants, or similar series of malicious code through the machine learning-based similarity classification.

[0154] In addition, the deep learning model analysis unit 152 may use an image deep learning model trained with a file containing malicious code and a normal file. In this case, the deep learning model analysis unit 152 may be configured to classify a suspicious file as normal or malicious based on a similarity hash function trained with basic characteristic information of an executable file using the trained image deep learning model, classify a suspicious file as normal or malicious based on a similarity hash function trained with all characteristic information that can be extracted from an executable file, classify a suspicious file as normal or malicious through a malicious code image analysis algorithm, or classify or detect a suspicious file as normal or malicious using a combination of these classification methods.

[0155] The malicious code determination unit 153 can detect malicious code or determine the possibility of occurrence of known or unknown threats based on a preset critical value for the analysis results of the deep learning model analysis unit 152.

[0156] In addition, the malicious code determination unit 153 can detect malicious code or determine the possibility of the occurrence of known or unknown threats based on the image texture of the executable file or other sections of code or binary fragments in the analysis results of the deep learning model analysis unit 152.

[0157] The image analysis system 150 described above may be configured to adjust the size of an input layer for analyzing an image provided in an image storage unit, call a pre-trained deep learning model, input the image provided in the image storage unit into the deep learning model to proceed with the analysis, and provide a malignancy determination based on a specific critical value and a probability of malignancy to a result storage unit and store them in JSON format.

[0158] In addition, in order to perform analysis using a deep learning model in the image analysis system 150, the image size must be the same as the dimension of the input layer of the deep learning model. At this time, if analysis is performed using an image using an RGB image conversion technique, it is possible to prevent the byte sequence characteristics of a malicious code file from being leaked when adjusting the image size, and the image conversion function using the RGB technique has the advantage that it is easier for humans to distinguish by color expression compared to grayscale.

[0159] In addition, the RGB image conversion function increases the RGB channel in the image of the malicious code data and processes it as color data, expanding the byte sequence characteristics of the malicious code file and improving the detection performance.

[0160] The storage unit 190 may correspond to an image storage unit, a result storage unit, or a storage management system, and may be configured to back up driver files on a specific computing device to a temporary storage folder upon a signal from the malicious code judgment unit 153 when ransomware activity is detected by the analysis system 150 or the image deep learning analysis unit.

[0161] In addition, the analysis system 110 may further include a registration unit (not shown) that registers a specific color image of the executable file or code in a whitelist if the executable file or code is determined to be normal through automatic analysis or machine learning.

[0162] As mentioned above, when using an image-based malicious code detection device that uses RGB, a file transmitted from an internal network is converted to a fixed image size by increasing the RGB channel of the coordinates using the RGB conversion technique, the dimensions of the input layer of the detection model are set to be the same as the image size using the RGB conversion technique, the previously converted image is input to the detection model, and the detection model analysis results are saved as a json file, thereby making it possible to effectively detect malicious code in color images.

[0163] In addition, by using the above-mentioned malicious code detection device, the problem that the byte sequence of the file changes during image conversion of the packed PE file, generating a completely different image, which may reduce the detection rate of the deep learning model, can be solved. That is, by performing memory dump on the PE file that is loaded into the memory by executing the PE file, the PE file can be unpacked and its byte sequence can be dumped, and this can be used to convert the memory dump file into an image that maintains the same byte sequence of the file, and generate an image. In this way, by converting the memory dump file into an image and performing analysis, the matching rate of malicious code can be improved. If an image is generated through the RGB image conversion function and analysis is performed, an image of the same size is generated, and more feature information can be extracted compared to a grayscale image, so the matching rate can be greatly improved in malicious code detection using image conversion.

[0164] In addition, according to this embodiment, in addition to the gray scale method, RGB technology is additionally applied to expand the coordinates of the file array during file image conversion, and the characteristics of the converted image are expressed in more detail, thereby improving the accuracy and detection range of the image-based malicious code detection method.

[0165] In addition, the method can improve the problem of file information leakage that reduces the matching rate when resizing an image in a grayscale image-based malicious code detection method, and improve the problem of human vision being unable to distinguish between normal and malicious images when labeling data for model learning.

[0166] In addition, in the case of a large-sized file, in the case of a grayscale image-based malicious code detection method, there are many cases where the coordinate values ​​reach the maximum value, making identification difficult, which can reduce the matching rate. However, in this embodiment, in order to improve such problems by itself, an RGB image conversion function can be additionally applied, and the existing limited grayscale 1-channel image representation method can be changed to an RGB 3-channel image representation method. Through this, the numerical range in the coordinates is increased, further improving the identification problem and matching rate of large-sized files.

[0167] In addition, when converting file images by introducing the GLCM conversion technique, the image size is fixed to prevent damage to leaked file information, but as the file capacity increases, the image features gradually decrease, and when converting file images above a certain size, it is impossible to extract the features, so the problem of limitations to analysis through feature extraction can be solved.

[0168] In addition, according to this embodiment, the security service technology for advanced persistent threats (APT) can be effectively secured through the development of the self-service portal and self-cloud environment, and the secured technology can improve the quality of security services such as real-time analysis of malicious behavior, sharing of real-time threat information among users, generation of TI information, etc. Also, it is possible to provide an appropriate solution for protection of internal information of a company and for dealing with unknown new and mutated malicious code.

[0169] In addition, according to this embodiment, by applying big data analysis to an image-based malicious code detection device for detecting malicious behavior and an EDR system using the same, the latest malicious code information can be obtained at various detection points, thereby providing a security service that is available 24 hours a day, 365 days a year.

[0170] FIG. 13 is a diagram illustrating a process of adding and expanding physical resources in the cloud-based virtualization system for the malicious code detection device of FIG.

[0171] Referring to FIG. 13, a manager (110a) of a malicious code detection device corresponding to at least a part of the EDR system 100 can be configured to receive an alert email (S1302) from an alarm server (600) connected to a cloud management server (cloud manage server) that monitors a service web server zone (S1301), and thereby add a virtual machine (Vm) server with additional resources (S1303) in the service web server zone, or add a slave DB server (slave db serve) with additional resources in a database server zone (DB server zone) (S1303).

[0172] Here, in the service web server area, each of the virtual machine servers is connected to a web server, an analyzer, and dynamic agents that form a single group. Each analyzer or dynamic agent can collect malicious file hash values, normal file hash values, malicious URLs, etc., and transmit them to the EDR system 100 or an agent through the web server to work with the analysis system.

[0173] In addition, a plurality of virtual machine servers are connected to the alarm server 600 and the cloud management server through an L4 switch and an L2 switch. In the DB server area, a master DB server connected to the L2 switch is connected to a plurality of slave DB servers.

[0174] In addition, the EDR system 100 and each server corresponding to a specific computing device can access cloud services based on secure web (HTTPS web) communication. As the number of users increases, the service web server for service management and the DB server for data management may experience a physical resource shortage due to service overload caused by a large number of users. To solve this problem, in this embodiment, after an agent is installed, the manager 110a in the agent can communicate with the service web server to exchange information.

[0175] In addition, the load can be distributed using an L4 switch for load balancing of multiple web servers. The cloud management server monitors the CPU, memory, and I / O of each server in the service web server domain, and if the usage rate exceeds a preset critical value, for example, 70%, it can send an alarm to the manager 110a through the alarm server 600 to request additional physical resources.

[0176] According to this embodiment, a cloud-based security agent applicable to a cloud-based virtualization system for detecting malicious code can be installed in an EDR system or a specific computing device corresponding thereto.

[0177] In this case, the cloud-based security agent can be configured to monitor files executed on the PC to protect the user's personal computer (PC) and block malicious files from being executed, and to monitor the network and block access to / from malicious URLs. Such an agent can be equipped with a cloud-based web-based graphical user interface (GUI). In addition, the agent can be equipped with a function to detect and block file encryption actions as a function for responding to ransomware, and an instant backup function to prevent damage from ransomware.

[0178] The above-mentioned agents can be configured to be managed by each client company, and a client's key value can be generated as a registered agent through a register web server, which is a subscription and payment server, and can be downloaded to a user terminal via a network.

[0179] In addition, according to this embodiment, the cloud-based virtualization system can provide effective response services against advanced persistent threats (APTs) by adopting an analysis system for image-based malicious code detection.

[0180] FIG. 14 is a diagram for explaining a user interface for analysis information of a malicious code detection process that can be adopted in the malicious code detection apparatus of FIG.

[0181] 14, the malicious code detection apparatus can provide iconized process analysis information through a first user interface 1401. The process analysis information can include process correlation information such as parent and child.

[0182] In addition, the malicious code detection device can grasp the initial process of malicious behavior and the flow of malicious behavior and display it through a first user interface 1401, and provide detailed malicious behavior information for specific analysis information to the user through a second user interface 1402.

[0183] Fig. 15 is a block diagram for explaining an endpoint agent capable of mounting the malicious code detection device of Fig. 12. Fig. 16 is a schematic block diagram for explaining an internal malicious code detection structure of the endpoint agent of Fig. 15.

[0184] 15, an endpoint agent (200) may be installed in a specific computing device 300. In this case, the endpoint agent 200 may have an antivirus (AV) module 250 installed therein.

[0185] The computing device 300 may include at least one of a Windows operating system (OS) 320, a Linux operating system 330, and an Android operating system 340, and endpoint terminal hardware (310).

[0186] The endpoint agent 200 installed in the computing device 300 may be configured to receive information and data related to malicious code detection from the EDR system 100 connected to an antivirus server (500) as shown in FIG. 16, and transmit the malicious code detection results to the EDR system 100.

[0187] In this case, the endpoint agent 200 may include a plurality of collection modules 261, a plurality of blacklist DBs 262 that receive, store, and manage blacklists from the collection modules, and an analysis module 270 that detects whether an executable file is legitimate or malicious and blocks it based on information in each blacklist DB. The analysis module 270 may correspond to at least some of the functional units or components of the analysis system (see 110) in FIG. 1.

[0188] FIG. 17 is a block diagram showing the internal analysis module configuration of the endpoint agent of FIG.

[0189] Referring to FIG. 17, the endpoint agent is an internal analysis module configuration, and includes a database section 260, an analyzer (280), and an analyzer agent (290).

[0190] The database unit 260 can include a configuration DB (config DB, 261), a file DB (file DB, 262), and a log DB (log DB, 263). The configuration DB 261 can store security policies, and the file DB 262 can provide files for static analysis and BitDefender analysis to the analyzer 280 (ZB003). The log DB 263 can store the malicious code static analysis results and BitDefender analysis results of the analyzer 280 (ZB002), and can store the malicious code dynamic analysis results of the analyzer agent 290 (ZD001). The log DB 263 can be subject to security audits by the analyzer 280 and the analyzer agent 290 when storing the analysis results.

[0191] The analyzer 280 may include a security policy application module 281, a BitDefender analysis module 282, a malicious code static analysis module 283, a first security audit module 284, and an analyzer agent management module 285. The analyzer 280 may read a security policy set through an enterprise security manager web (ESM web) from the configuration DB 261 and apply it (ZB001). The analyzer 280 may also read a file from the file DB 263 and perform static analysis or BitDefender analysis (ZB003). The analyzer 280 may also send a file to the analyzer agent 290 through the analyzer agent management module 285, and when the analysis of the corresponding file is completed, the analyzer agent 290 may function to restore the state before the analysis.

[0192] The analyzer agent 290 may include a second security audit module 291 and a malicious code dynamic analysis module 292. The analysis result of the malicious code dynamic analysis module 292 may be transmitted to and stored in the log DB 263 (ZD001).

[0193] The internal analysis interface of the endpoint agent mentioned above can be summarized as shown in Table 3 below.

[0194] [Table 3]

[0195] Figure 18 is an example of a user interface screen for explaining an endpoint security operation of the endpoint agent of Figure 15. Referring to Figure 18, the endpoint agent is an agent to which an AV analysis function is applied, and can be configured to perform a blacklist policy, for example, detection, blocking, and isolation of malicious code through malicious code analysis of executable files.

[0196] For example, it may be embodied in a Windows 10-based endpoint agent. In this case, it may be configured to allow the user to check the current analysis status and analysis results through a predetermined type of interface 1810 in the user environment of the computing device, and may be configured to allow the user to select blacklist processing or allow processing and input 1830 to an apply button, etc., in a detailed setting interface 1820 for each analysis file.

[0197] Meanwhile, in relation to the process monitoring and collection module for the agent, the endpoint agent may be provided with an external interface for the process monitoring and collection module for the agent.

[0198] The external interface can be configured to collect file information executed on an endpoint such as a personal computer (PC), compare the collected executable file information with a malicious pattern, block the malicious file that is about to be executed, or suspend execution and then upload it to a manager web service to request analysis.

[0199] Examples of such external interfaces are shown in Table 4 below.

[0200] [Table 4]

[0201] In addition, the endpoint agent collects file information executed on the installed PC. The setting process through the corresponding interface is shown in Table 5 below.

[0202] [Table 5]

[0203] In addition, the endpoint agent can have an internal interface to manage collected file information and interact with other components. The internal interface can include interfaces for receiving logs (ReceiveLog), receiving files (ReceiveFile), requesting keys (KeyRelease), etc. The ReceiveLog interface allows the agent to transmit logs generated by the execution of security functions to the manager web service (MWS).

[0204] The ReceiveFile interface allows an agent to upload a file that needs to be analyzed to the administrator web service and request analysis.

[0205] The key release interface allows an agent to send a request to transfer an encryption key value to the administrator web service, receive and store the encryption key value, and then check and execute the state of the sub-process after initialization.

[0206] An example of the internal interface configuration is shown in Table 6 below.

[0207] [Table 6]

[0208] In relation to security auditing in the log receiving (ReceiveLog) interface, the agent can transmit logs generated by the execution of security functions in the agent to the administrator web service as shown in Table 7.

[0209] [Table 7]

[0210] In relation to uploading a pending file in the ReceiveFile interface, the agent can upload a file that needs to be analyzed by the agent to the administrator web service and request analysis, as shown in Table 8.

[0211] [Table 8]

[0212] In addition, the agent can send an encryption key value transfer request to the Manager Web Service (MWS) through the key request (KeyRelease) interface as shown in Table 9 below, receive and store the encryption key value, and then initialize it to check and execute the sub-process status.

[0213] [Table 9]

[0214] The above-mentioned process monitoring and agent collection module is an end point agent for security of a user's PC, and can be configured in the form of a corresponding installation file so that it can be installed in a Windows environment, etc. Figure 19 is a flow chart for explaining a malicious code visualization process in the malicious code detection method executed by the end point agent of Figure 15. Figure 20 is an example diagram of a conversion source code for explaining a process of obtaining an image by defining the code of an executable file as a preset byte width size in the end point agent of Figure 15. Figure 21 is an example diagram of a result image for code imaging in the end point agent of Figure 15.

[0215] Referring to FIG. 19, a file is input (S1910), a file name is extracted from the input file using a first function (os.path.split) (S1920), the input file is converted into a 2D vector using a second function (conversion_vector) (S1930), the 2D vector is reshaped for image conversion using a third function (np.reshape) (S1940), and the reshaped image array can be saved in memory using a fourth function (imageio.imwrite) (S1950).

[0216] The purpose, parameters, and return values ​​of each function are shown in Tables 10 and 11 below.

[0217] [Table 10]

[0218] [Table 11]

[0219] According to this embodiment, the collected malicious code is read as a vector consisting of unsigned 8-bit integers and configured as a 2D array, and the malicious code can be imaged in the width size of the 2D array. An example of the conversion source code of the interface for imaging the malicious code in the width size is shown in Figure 20 (a) and (b), and the details are as follows.

[0220] -os.path.split(): Extracts the file name from the file path to perform image conversion.

[0221] Example of application) file=path.split(“\\”)[-1]

[0222] -conversion_img(): Input the file path to the conversion_img parameter.

[0223] In this case, the file path is input to the os.path.getsize function, and the file size is stored in a natural logarithm (ln) variable to calculate the image width.

[0224] -Specify the width value as the square root of the file, and save array.array('B') to the a variable to convert the file format to an unsigned 8-bit integer.

[0225] - Convert to a 2D vector or 2D array. Use the a.fromfile(f, ln -rem) function to perform the conversion and return the array type a and width value.

[0226] - np.resahpe(): Reshape the array type a returned by conversion_img() and the width value to the image shape and save it in the g variable.

[0227] -imageio.imwrite(): Finally, save the image by inputting the g variable that was converted and saved and the file name to save as parameters to imageio.imwrite().

[0228] The above-mentioned image can be visualized as a grayscale image 35 ranging from 0 (black) to 255 (white) as shown in Fig. 21. In this case, the image conversion module can correspond to a grayscale image visualization module interface with a range of 255.

[0229] In addition, the malicious code detection device and endpoint agent of this embodiment can be configured to generate a color image by adding RGB channels to the image array before it is converted into a grayscale image through the coordinate RGB channel increase unit, in addition to the grayscale image, and detect malicious code based on this color image.

[0230] Figure 22 is a flow chart for explaining a main malicious code detection process of the endpoint agent of Figure 15. Figure 23 is an example diagram of a conversion source code for explaining a gray-level co-occurrence matrix (GLCM) conversion image module that can be used in the malicious code detection process of Figure 22. Figure 24 is an example diagram of images before and after application of code imaging using the GLCM conversion image module of Figure 23.

[0231] 22 and 23, an endpoint agent (simply, agent) extracts a file name from the file path of an input file (S2210) through a GLCM conversion image module interface (S2212). That is, the agent can extract a file name from the input file path through a first function (os.path.basename).

[0232] Next, the agent reads the file contents using a vector or byte array (bytearray) function of a predetermined size and saves it in a specific first variable (img_array or np.array) (S2214).

[0233] Next, if the first variable (np.array or img_array) in which the file contents are saved is empty (if not list), since there is no file content in the corresponding variable, the agent saves the file name (filename) to text using the third function (f.write) and then deletes the value of the corresponding variable or the corresponding file path (filepath) using the fourth function (os.remove) (S2222, S2224).

[0234] On the other hand, if the first variable (np.array or img_array) in which the file contents are saved is not empty, the agent converts the corresponding variable to ndarray, which is a multidimensional matrix data structure class, then converts its type to an unsigned integer (e.g., a 2-byte integer) and saves it in the second variable (img_byte) (S2232).

[0235] Next, the agent inputs the second variable (img_byte) into the image parameter through the fifth function (grecomatrix), specifies the value increase distance into the distances parameter, and specifies the array angle of the increasing value using the angles parameter (S2234).

[0236] Next, the agent uses the sixth function (np.squeeze) to remove the (1,)-dimension from the matrix previously generated through the fifth function (S2236).Then, the agent saves the image save path of the matrix from which the specific dimension was removed in the third variable (filepng).

[0237] Next, the agent converts the matrix into little endian format through the seventh function (image.format) and saves it in the fourth variable (img) (S2238).

[0238] Next, the agent converts the file contents stored in the fourth variable to a single channel grayscale using the eighth function (img.convert), and then saves it to the file path stored in the fourth variable using the ninth function (save) (S2240).

[0239] An example of the converted source code that can be used in the above-mentioned malicious code detection process is shown in FIG. 23, and the meaning of each line is as follows.

[0240] -filename=os.path.basename(path): Extract file name from file path

[0241] -with open(path, 'rb' as f:img_array = np.array(bytearray(f.read())) ): Read the file contents as a bytearray and save it in the img_array variable

[0242] - If `img_array` is not a list and is empty, it means the file has no content. So save the file name to the text and then delete it.

[0243] - Convert `img_array` to a NumPy array (`ndarray`) and then convert its type to unsigned integer (`unit8`) and save it to `img_byte`.

[0244] - Set `img_byte` as the `image` parameter, specify the distance for value increase in the `distances` parameter, and use the `angles` parameter to specify the array angle of the increasing value.

[0245] - Remove dimensions of size (1,) from the `matrix` array.

[0246] - Save the image save path to `filepng`.

[0247] - Convert the `matrix` array to little - endian format and save it to the `img` variable.

[0248] - Use the `img.convert` function to convert it to grayscale (single - channel) and then use the `.save` function to save it to the `filepng` path.

[0249] According to this embodiment, other sections or binary fragments of malicious code can be embodied in a unique image texture. Figure 24(a) is the image 35a before conversion to the Glcm conversion module or Glcm conversion source code, and Figure 24(b) is the resulting image 35b after conversion.

[0250] The functions that can be used in the Glcm conversion image module interface described above are summarized in Tables 12 to 17 below.

[0251] [Table 12]

[0252] [Table 13]

[0253] [Table 14]

[0254] [Table 15]

[0255] [Table 16]

[0256] [Table 17]

[0257] 25 is a block diagram illustrating the main configuration of an image-based malicious code detection device according to another embodiment of the present invention. The image-based malicious code detection device 1000 (simply referred to as a malicious code detection device) of this embodiment can be installed as at least a part of a server-side EDR system or as at least a part of an endpoint agent.

[0258] 25, the malicious code detection device 1000 may include at least one processor 1100, a memory 1200, and a transceiver device 1300 that is connected to a network to perform communication. The malicious code detection device 1000 may further include an input interface device 1400, an output interface device 1500, and a storage device 1600. Each component included in the malicious code detection device 1000 may be connected to a bus 1700 to perform communication.

[0259] However, each component included in the malicious code detection device 1000 may be connected through an individual interface or individual bus centered on the processor 1100, instead of the common bus 1700. For example, the processor 1100 may be connected to at least one of the memory 1200, the transceiver device 1300, the input interface device 1400, the output interface device 1500, and the storage device 1600 through a dedicated interface.

[0260] The processor 1100 may execute program commands stored in at least one of the memory 1200 and the storage device 1600. The processor 1100 may refer to a central processing unit (CPU), a graphics processing unit (GPU), or a dedicated processor on which the method according to the embodiment of the present invention is performed.

[0261] Each of the memory 1200 and the storage device 1600 may be composed of at least one of a volatile storage medium and a non-volatile storage medium, for example, the memory 1200 may be composed of at least one of a read only memory (ROM) and a random access memory (RAM).

[0262] At least one instruction stored in memory 1200 or storage device 1600 or mounted on and executed by processor 1100 may be configured to cause the processor to perform the following steps: read an executable file or at least a part of the code of the executable file located in a file path of a generated file obtained from a file generation event log detected in a processor, memory, or storage device associated with an EDR system, an endpoint, or a corresponding computing device, as bytes consisting of unsigned integers of a certain number of bits and convert it into a byte array; read two bytes at a time into the byte array; use the two bytes of data as coordinates (x, y) of an image of a predetermined size, increment the corresponding coordinate values, add RGB channels, and save the image array; and perform deep learning analysis on the image array using an image deep learning model.

[0263] In addition, the operations of the methods according to the embodiments of the present invention described above may be embodied as computer readable programs or codes in a computer readable recording medium. The computer readable recording medium includes all kinds of recording devices in which data readable by a computer system is stored. In addition, the computer readable recording medium may be distributed among computer systems connected to a network, so that the computer readable programs or codes may be stored and executed in a distributed manner.

[0264] Additionally, the computer readable recording medium may include hardware devices specially configured to store and execute program instructions, such as ROM, RAM, flash memory, etc. The program instructions may include not only machine code, such as produced by a compiler, but also high-level language code that may be executed by a computer using an interpreter, etc.

[0265] Although some aspects of the invention have been described in the context of an apparatus, they may also be presented as corresponding method descriptions, where the blocks or apparatus correspond to method steps or features of the method steps. Similarly, aspects described in the context of a method may also be presented as corresponding blocks or items or features of the corresponding apparatus. Some or all of the method steps may be performed by (or using) a hardware apparatus, such as, for example, a microprocessor, a programmable computer, or electronic circuitry. In some embodiments, one or more of the most important method steps may be performed by such an apparatus.

[0266] In some embodiments, a programmable logic device (e.g., a field programmable gate array) may be used to perform some or all of the functionality of the methods described herein. In some embodiments, a field programmable gate array may work in conjunction with a microprocessor to perform one of the methods described herein. In general, it is preferred that the methods be performed by some hardware device.

[0267] Although the present invention has been described with reference to preferred embodiments thereof, it will be understood that those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention as set forth in the following claims.

Claims

1. 1. A method for detecting malicious code based on an image, the method being performed by a malicious code detection device coupled to a computing device, the method comprising: reading an executable file located in a file path of a generated file obtained from a file generation event log detected in a processor, memory, or storage device associated with the computing device, or at least a part of a code of the executable file, into bytes consisting of an unsigned constant-bit integer, and converting the bytes into a byte array; reading two bytes at a time from the byte array; Using the 2-byte data as coordinates (x, y) on an image of a preset size, incrementing the corresponding coordinate values, adding RGB channels, and storing the image array; and performing a deep learning analysis on the image sequence using an image deep learning model.

2. 2. The method of claim 1, wherein the performing of the deep learning analysis includes adjusting a size of an input layer for analyzing the image sequence, calling a pre-trained deep learning model, and inputting the image sequence to the deep learning model.

3. 2. The image-based malicious code detection method of claim 1, wherein the step of performing the deep learning analysis detects malicious code or determines the likelihood of occurrence of known or unknown threats based on a preset threshold value after analyzing the deep learning model.

4. 2. The image-based malicious code detection method of claim 1, wherein the step of performing the deep learning analysis detects malicious code or determines the likelihood of occurrence of known or unknown threats based on an image texture of the executable file or other sections of the code or binary fragments after analyzing the deep learning model.

5. 2. The image-based malicious code detection method of claim 1, wherein the converting to the byte array step comprises converting an unpacked file into the byte array by performing a memory dump on the executable file that is loaded into the memory when the executable file is executed, and storing the unpacked file.

6. 2. The image-based malicious code detection method of claim 1, wherein the step of saving as an image array includes inserting the byte array in a predetermined order on an image of the predetermined size by two bytes at a time, specifying an increase distance of the coordinate values ​​as a distance parameter, and specifying an array angle of the increasing values ​​at the coordinates using an angles parameter.

7. The image-based malicious code detection method of claim 1 , further comprising the step of registering a specific color image of the executable file or the code in a whitelist when the executable file or the code is determined to be normal by analyzing the executable file or the code through automatic analysis or machine learning.

8. The image-based malicious code detection method of claim 1, further comprising the step of: when a file that is a target for automatic analysis, a target for machine learning analysis, or a file registered on a grey list is executed, tracking or monitoring the file and the process of the file; and when the file is determined to perform a predetermined malicious activity, determining to proceed with an image-based malicious code detection process for the file or at least a portion of the code of the file.

9. The method further includes training the image deep learning model on a file including malicious code and a normal file, 2. The image-based malicious code detection method of claim 1, wherein the step of performing the deep learning analysis uses the learned image deep learning model to classify the suspicious file as normal or malicious based on a similarity hash function learned on basic characteristic information of the executable file, classify the suspicious file as normal or malicious based on a similarity hash function learned on all characteristic information extractable from the executable file, classify the suspicious file as normal or malicious through a malicious code image analysis algorithm, or classify or detect the suspicious file as normal or malicious using a combination of these classification methods.

10. The malicious code image analysis algorithm performs machine learning-based similarity classification on an image sequence input to the trained image deep learning model; The image-based malicious code detection method of claim 9 , wherein the machine learning-based similarity classification determines correlation between malicious codes of the same type, variants, or similar series.

11. a byte array converter for reading an executable file located in a file path of a generated file obtained from a file generation event log detected in a processor, memory, or storage device associated with a specific computing device, or at least a part of a code of the executable file, into bytes consisting of an unsigned constant-bit integer, and converting the bytes into a byte array; a coordinate mapping unit for reading every two bytes from the byte array; a coordinate RGB channel incrementing unit that uses the 2-byte data as coordinates (x, y) on an image of a preset size, increments the corresponding coordinate value, adds RGB channels, and stores an image array; and an image deep learning analysis unit that performs deep learning analysis on the image sequence using an image deep learning model;

12. The image-based malicious code detection device of claim 11, wherein the image deep learning analysis unit includes a deep learning model calling unit that calls a pre-trained deep learning model, a deep learning model analysis unit that inputs the image sequence into the deep learning model and analyzes it, and a malicious code determination unit that determines whether or not the image sequence contains malicious code.

13. The image-based malicious code detection device of claim 12, wherein the malicious code determination unit detects malicious code or determines the possibility of occurrence of known or unknown threats based on a preset threshold value for the analysis result of the deep learning model analysis unit.

14. The image-based malicious code detection device of claim 12, wherein the malicious code determination unit detects malicious code or determines the possibility of occurrence of known or unknown threats based on an image texture of the executable file or other sections or binary fragments of the code for the analysis result of the deep learning model analysis unit.

15. 12. The image-based malicious code detection device of claim 11, wherein the byte array converter performs a memory dump on the executable file loaded in the memory when the executable file is executed, converts the unpacked file into the byte array, and stores the byte array.

16. 12. The image-based malicious code detection device of claim 11, wherein the coordinate RGB channel increasing unit increases a numerical range of a corresponding coordinate on the image of the preset size from a grayscale range to a maximum RGB range based on every two bytes of the byte array, increases the numerical value of the coordinate by one, and increases a numerical value of a green channel range first when a numerical value of the RGB channel range exceeds a predetermined reference value, and increases a blue channel when the green channel range is exceeded.

17. The image-based malicious code detection device of claim 11, further comprising a storage unit that backs up the driver file to a temporary storage folder on the driver of the specific computing device in response to a signal from the malicious code judgment unit of the image deep learning analysis unit when the image deep learning analysis unit detects a ransomware behavior analysis.

18. An artificial intelligence-based endpoint detection and response (EDR) system, a data collector that detects a file creation event in a processor, memory, or storage device associated with a particular computing device and extracts a file path of the created file from a file creation event log; a byte array conversion unit that reads the executable file located in the file path received from the data collection unit and at least a part of the code of the executable file into bytes consisting of unsigned integers of a certain number of bits and converts the bytes into a byte array; a coordinate mapping unit for reading every two bytes from the byte array; a coordinate RGB channel incrementing unit that uses the 2-byte data as coordinates (x, y) on an image of a preset size, increments the corresponding coordinate value, adds RGB channels, and stores an image array; and an image deep learning analysis unit that performs deep learning analysis on the image sequence using an image deep learning model;

19. 20. The endpoint threat detection and response system of claim 18, wherein the data collector comprises a remote endpoint agent.

20. 20. The endpoint threat detection and response system of claim 19, further comprising a cloud management system that manages a plurality of computing devices on a network to which the endpoint agents are coupled.

Citation Information

Patent Citations

  • Data processing device and data processing method

    JP2019191874A

  • Apparatus for detecting variant malicious code based on neural network learning, method therefor, and computer-readable recording medium having recorded thereon a program for executing the method

    JP2019527447A

  • Deep learning method to which hexadecimal image conversion and incremental learning for web traffic learning are applied

    JP2020013536A

  • Analysis device, analysis method, and recording medium

    WO2019176062A1