WO2024075868A1 - Method for notifying of inflow of malicious files when moving files in network separation environment, and device therefor - Google Patents

Method for notifying of inflow of malicious files when moving files in network separation environment, and device therefor Download PDF

Info

Publication number
WO2024075868A1
WO2024075868A1 PCT/KR2022/015022 KR2022015022W WO2024075868A1 WO 2024075868 A1 WO2024075868 A1 WO 2024075868A1 KR 2022015022 W KR2022015022 W KR 2022015022W WO 2024075868 A1 WO2024075868 A1 WO 2024075868A1
Authority
WO
WIPO (PCT)
Prior art keywords
target file
file
server
detoxification
result
Prior art date
Application number
PCT/KR2022/015022
Other languages
French (fr)
Korean (ko)
Inventor
조성욱
Original Assignee
시큐레터 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 시큐레터 주식회사 filed Critical 시큐레터 주식회사
Priority to PCT/KR2022/015022 priority Critical patent/WO2024075868A1/en
Priority to KR1020227034766A priority patent/KR102503699B1/en
Publication of WO2024075868A1 publication Critical patent/WO2024075868A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • G06F21/56Computer malware detection or handling, e.g. anti-virus arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements

Definitions

  • This specification relates to a method and device for notifying that a malicious file has been introduced to a user server when a file is moved from an external network to an internal network in a separated network environment.
  • APT Advanced Persistent Threat
  • Non-PE non-portable executable files containing malicious code are often used rather than executable (portable executable, PE) files.
  • a non-executable file is the opposite of an executable file and refers to a file that does not run on its own.
  • Examples of non-executable files include document files such as Word files, Excel files, Hangul files, and PDF files, image files, video files, JavaScript files, and HTML files.
  • the reason why non-executable files containing malicious code are often used in APT attacks is because applications that run non-executable files have a certain degree of security vulnerability.
  • variant malicious code can be easily created by changing the file.
  • a document action is the act of executing an action in an application program involving a non-executable file. Since existing APT solutions operate based on document behavior, they determine whether it is malicious by observing changes in the sandbox (Virtural Machine, VM) after document behavior occurs. This takes a long time to analyze because it waits for all document actions to occur before determining whether they are malicious. Additionally, existing APT solutions such as CDR can remove malicious active content, but cannot eliminate vulnerabilities arising from essential elements of the document (e.g., body, font), creating a security gap.
  • VM Virtual Machine
  • the purpose of network separation is to prevent external intrusion and leakage of internal information by separating the internal network and external network.
  • the inter-network data transmission system can move files from an external server to an internal server through network linkage. After checking the target file for malicious code (e.g., anti-virus, APT check), if the file is a malicious file, the malicious file is generally not sent to the internal server. However, in this case, users of the internal server cannot access the external server, so they cannot receive notifications about malicious files.
  • malicious code e.g., anti-virus, APT check
  • the purpose of this specification is to propose a method and device for clearly notifying the internal server of whether the file is malicious when a file is moved in a network partition environment.
  • a method for a server to handle the inflow of malicious files in a network separation environment includes: receiving a target file from an inter-network data transmission system; inspecting the target file for malicious code; Modifying the target file according to a reading result of the target file, based on whether the target file contains malicious code; and transmitting the modified target file to the network-to-network data transmission system. It includes, and the read result may indicate the possibility or impossibility of rendering the target file harmless.
  • the modifying step includes adding a string indicating that the detoxification has been completed to the file name of the target file; may include.
  • the modifying step includes adding a string indicating that the target file contains the malicious code to the file name of the target file, based on the read result indicating the impossibility of rendering the target file harmless; may include.
  • the modifying step may further include modifying the target file as a dummy file.
  • the modifying step includes performing a reversing analysis on the target file, detecting at least one of vulnerabilities and contents in the target file, and storing the detection result; Performing detoxification on content in the target file and storing the detoxification result; and generating the readout result based on the detection result and the detoxification result; may further include.
  • a server that processes the inflow of malicious files in a network separation environment includes: a communication unit; Memory with reversing engine and CDR engine; and a processor that functionally controls the communication unit and the memory; It includes, wherein the processor receives the target file from the inter-network data transmission system through the communication unit, checks the target file for malicious code, and based on whether the target file contains malicious code, According to the file reading result, the target file is modified and the modified target file is transmitted to the network data transmission system, and the reading result may indicate the possibility or impossibility of detoxification of the target file.
  • the server when a file is moved in a network separation environment, the server can clearly inform the internal server about whether the file is malicious.
  • FIG. 1 is a block diagram showing the configuration of an electronic device related to an embodiment of the present disclosure.
  • Figure 2 is a block diagram showing the configuration of a device for blocking malicious non-executable files according to an embodiment of the present disclosure.
  • Figure 3 is a diagram illustrating normal input and abnormal input that can be applied to an embodiment of the present disclosure.
  • Figure 4 is a diagram illustrating the execution flow of an application when a normal value is input and the execution flow of an application when an abnormal value is input.
  • Figure 5 is a flowchart illustrating a method for determining document behavior that can be applied to an embodiment of the present disclosure.
  • Figure 6 is a flowchart illustrating a method for blocking non-executable files that can be applied to an embodiment of the present disclosure.
  • FIG. 7 is a flowchart specifically illustrating the detection result storage step (S6100) of FIG. 6.
  • Figure 8 is a diagram showing an example of a detection result by a reversing engine.
  • Figure 9 is a diagram showing another example of a detection result by a reversing engine.
  • FIG. 10 is a flow chart specifically illustrating the detoxification result storage step (S6200) of FIG. 6.
  • Figure 11 is a diagram showing an example of the detoxification result by the CDR engine.
  • Figure 12 is a diagram showing another example of the detoxification result by the CDR engine.
  • FIG. 13 is a flowchart specifically illustrating the read result generation step (S6300) of FIG. 6.
  • Figure 14 is a diagram illustrating a reading result screen displayed through a terminal.
  • Figure 15 is an example of a network separation system to which this specification can be applied.
  • Figure 16 is an embodiment of a server to which this specification can be applied.
  • Figure 17 is an example of target file modification to which this specification can be applied.
  • unit refers to a software or hardware component, and the “unit” performs certain roles. However, “wealth” is not limited to software or hardware.
  • the “copy” may be configured to reside on an addressable storage medium and may be configured to run on one or more processors.
  • part refers to software components, such as object-oriented software components, class components, and task components, processes, functions, properties, procedures, Includes subroutines, segments of program code, drivers, firmware, microcode, circuits, data, databases, data structures, tables, arrays, and variables.
  • the functionality provided within the components and “parts” may be combined into smaller numbers of components and “parts” or may be further separated into additional components and “parts”.
  • unit may be implemented with a processor and memory.
  • processor should be interpreted broadly to include general purpose processors, central processing units (CPUs), microprocessors, digital signal processors (DSPs), controllers, microcontrollers, state machines, etc.
  • processor may refer to an application-specific integrated circuit (ASIC), programmable logic device (PLD), field programmable gate array (FPGA), etc.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • FPGA field programmable gate array
  • processor refers to a combination of processing devices, for example, a combination of a DSP and a microprocessor, a combination of a plurality of microprocessors, a combination of one or more microprocessors in combination with a DSP core, or any other such combination of configurations. It may also refer to
  • memory should be interpreted broadly to include any electronic component capable of storing electronic information.
  • the terms memory include random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), programmable read-only memory (PROM), erasable-programmable read-only memory (EPROM), electrical may refer to various types of processor-readable media, such as erasable PROM (EEPROM), flash memory, magnetic or optical data storage, registers, etc.
  • RAM random access memory
  • ROM read-only memory
  • NVRAM non-volatile random access memory
  • PROM programmable read-only memory
  • EPROM erasable-programmable read-only memory
  • electrical may refer to various types of processor-readable media, such as erasable PROM (EEPROM), flash memory, magnetic or optical data storage, registers, etc.
  • EEPROM erasable PROM
  • flash memory magnetic or optical data storage, registers, etc.
  • Non-executable file' as used herein is the opposite of an executable file or executable file and refers to a file that does not execute on its own.
  • non-executable files may be document files such as PDF files, Hangul files, Word files, image files such as JPG files, video files, JavaScript files, HTML files, etc., but are not limited thereto.
  • FIG. 1 is a block diagram showing the configuration of an electronic device related to an embodiment of the present disclosure.
  • the electronic device 100 includes a wireless communication unit 110, an input unit 120, a sensing unit 140, an output unit 150, an interface unit 160, a memory 170, a control unit 180, and a power supply unit 190. ), etc. may be included.
  • the components shown in FIG. 1 are not essential for implementing the electronic device 100, so the electronic device 100 described herein may have more or fewer components than those listed above. there is.
  • the wireless communication unit 110 is used between the electronic device 100 and the wireless communication system, between the electronic device 100 and another electronic device 100, or between the electronic device 100 and an external server. It may include one or more modules that enable wireless communication. Additionally, the wireless communication unit 110 may include one or more modules that connect the electronic device 100 to one or more networks.
  • This wireless communication unit 110 may include at least one of a broadcast reception module 111, a mobile communication module 112, a wireless Internet module 113, a short-range communication module 114, and a location information module 115.
  • the input unit 120 may include a camera 121 or an image input unit for inputting an image signal, a microphone 122 or an audio input unit for inputting an audio signal, and a user input unit 123 for receiving information from a user.
  • Examples of the user input unit 123 include touch keys and push keys (mechanical keys). Voice data or image data collected by the input unit 120 may be analyzed and processed as a user's control command.
  • the sensing unit 140 may include one or more sensors for sensing at least one of information within the electronic device 100, information on the surrounding environment surrounding the electronic device 100, and user information.
  • the sensing unit 140 includes a proximity sensor 141, an illumination sensor 142, a touch sensor, an acceleration sensor, and a magnetic sensor.
  • gravity sensor G-sensor
  • gyroscope sensor motion sensor
  • RGB sensor infrared sensor
  • IR sensor fingerprint scan sensor
  • ultrasonic sensor sensor an optical sensor such as the camera 121
  • a battery gauge an environmental sensor (e.g., a barometer, a soil hygrometer, a thermometer, a radiation detection sensor, a heat detection sensor, a gas detection sensor, etc.)
  • an environmental sensor e.g., a barometer, a soil hygrometer, a thermometer, a radiation detection sensor, a heat detection sensor, a gas detection sensor, etc.
  • chemical sensors eg, electronic nose, healthcare sensor, biometric sensor, etc.
  • the electronic device 100 disclosed in this specification can utilize information sensed by two or more of the illustrated sensors by combining them.
  • the output unit 150 is used to generate output related to vision, hearing, or tactile senses.
  • the output unit 150 may include at least one of a display unit 151, an audio output unit 152, a haptip module 153, and an optical output unit 154.
  • the display unit 151 can implement a touch screen by forming a layered structure or being integrated with the touch sensor. This touch screen functions as a user input unit 123 that provides an input interface between the electronic device 100 and the user, and can simultaneously provide an output interface between the electronic device 100 and the user.
  • the interface unit 160 serves as a passageway for various types of external devices connected to the electronic device 100.
  • This interface unit 160 is provided with a wired/wireless headset port, an external charger port, a wired/wireless data port, a memory card port, and an identification module. It may include at least one of a port for connecting a connected device, an audio input/output port, a video input/output port, and an earphone port.
  • the electronic device 100 may perform appropriate control related to the connected external device.
  • the memory 170 stores data supporting various functions of the electronic device 100.
  • the memory 170 may store a plurality of application programs (application programs or applications) running on the electronic device 100, data for operating the electronic device 100, and commands. At least some of these applications may be downloaded from an external server via wireless communication. In addition, at least some of these applications will be present on the electronic device 100 from the time of shipment for the basic functions of the electronic device 100 (e.g., call incoming call function, call outgoing function, message receiving function, message sending function). You can. Meanwhile, the application program may be stored in the memory 170, installed on the electronic device 100, and driven by the control unit 180 to perform an operation or function of the electronic device.
  • control unit 180 In addition to operations related to the application program, the control unit 180 typically controls the overall operation of the electronic device 100.
  • the control unit 180 can provide or process appropriate information or functions to the user by processing signals, data, information, etc. input or output through the components discussed above, or by running an application program stored in the memory 170.
  • control unit 180 may control at least some of the components examined with FIG. 1 in order to run an application program stored in the memory 170. Furthermore, the control unit 180 may operate at least two of the components included in the electronic device 100 in combination with each other in order to run the application program.
  • the power supply unit 190 receives external power and internal power under the control of the control unit 180 and supplies power to each component included in the electronic device 100.
  • This power supply unit 190 includes a battery, and the battery may be a built-in battery or a replaceable battery.
  • At least some of the components may cooperate with each other to implement operation, control, or a control method of the electronic device 100 according to various embodiments described below. Additionally, the operation, control, or control method of the electronic device 100 may be implemented on the electronic device 100 by running at least one application program stored in the memory 170.
  • a server may include an electronic device 100, and the electronic device 100 may be collectively referred to as a terminal.
  • the terminal can communicate with an external server (or external cloud server) by being connected to a network.
  • FIG. 2 is a block diagram showing the configuration of a device for blocking malicious non-executable files according to an embodiment of the present disclosure.
  • the malicious non-executable file blocking device will be referred to as 'server'.
  • the server 200 may include a control unit 210, a result reading unit 220, and a communication unit 230.
  • the control unit 210 may include a processor 212 and a memory 214.
  • the processor 212 may execute instructions stored in the memory 214.
  • the processor 212 can control the communication unit 230.
  • Memory 214 may include cache memory. Cache memory can temporarily store original documents, which will be described later, for a certain period of time.
  • the processor 212 may control the operation of the server 200 based on instructions stored in the memory 220.
  • the server 200 may include one processor or may include multiple processors. When the server 200 includes a plurality of processors, at least some of the plurality of processors may be located physically spaced apart from each other. Additionally, the server 200 is not limited to this and may be implemented in various known ways.
  • the communication unit 230 may include one or more modules that enable wireless communication between a server and a wireless communication system, between a server and another server, or between a server and an external server (terminal). Additionally, the communication unit 230 may include one or more modules that connect servers to one or more networks.
  • the control unit 210 may control at least some of the components of the server to run the application program stored in the memory 214. Furthermore, the control unit 210 can operate at least two of the components included in the server in combination with each other to run the application program.
  • the server 200 may include a reversing engine and a CDR engine.
  • a reversing engine and a CDR engine will be described in detail.
  • the reversing engine is an analysis and diagnosis engine that automates the reverse engineering process for malicious non-executable files. This is called reverse engineering, and through this, the server 200 can learn about the principles and structure of the software by going up to the assembly level, a language that allows a computer to execute software without source code. Using this, the server 200 can know the structure of general software (eg, MS Office, PDF), malicious code behavior, and methods of exploiting vulnerabilities.
  • general software eg, MS Office, PDF
  • the reversing engine may perform a file analysis step, a static analysis step, a dynamic analysis step, and a debugging analysis step.
  • a file analysis step may perform a file analysis step, a static analysis step, a dynamic analysis step, and a debugging analysis step.
  • File analysis step This is the step of analyzing the appearance of the non-executable file itself (e.g., properties, author, creation date, file type). Similar to a general anti-virus program, it diagnoses whether it is malicious using only the information of the non-executable file itself. can do.
  • Static analysis step This is a step to extract and analyze data in non-executable files to determine whether they are normal or malicious. Non-executable files are not executed, but internal data is extracted and compared and analyzed according to the file structure to diagnose maliciousness. You can. This may be suitable for extracting and analyzing macros and extracting and analyzing URLs.
  • Dynamic analysis stage This is the stage where non-executable files are executed and monitored while their behavior is analyzed to determine whether they are malicious. This is to detect malicious behavior using the normal functions of the document, such as macros, hyperlinks, and DDE (Dynamic Data Exchange). It is easy to
  • Debugging analysis stage This is the stage of analyzing vulnerabilities, exploits, etc. by executing and debugging non-executable files. It not only detects malicious behavior using normal functions of the document such as macros, hyperlinks, DDE, etc., but also analyzes the body of the document. , it is suitable for detecting vulnerabilities in applications using tables, fonts, pictures, etc.
  • the reversing engine may include a debugging engine that can be used for debugging analysis.
  • the debugging engine can use the debugging mode during the viewing process of non-executable files to diagnose vulnerabilities that occur in the document input, processing, and output stages.
  • vulnerabilities refer to errors, bugs, etc. that occur when an application receives unexpected values from the code (logic) developed by the application developer.
  • an attacker can execute malicious document actions such as denial of service due to abnormal termination or remote code execution.
  • the debugging engine may include a debugger.
  • a debugger is a tool for reverse engineering and can refer to a program or process that can set a breakpoint at the assembly level for another target program.
  • Figure 3 is a diagram illustrating normal input and abnormal input that can be applied to an embodiment of the present disclosure.
  • FIG. 3 The top of FIG. 3 is a diagram to explain a case where an application program receives a normal value through a non-executable file, and illustrates a case where the value of the Extended Counter Register (ECX) is normal data (00000001).
  • the bottom of FIG. 3 is a diagram to explain a case where an application program receives an abnormal value through a non-executable file, and illustrates a case where the value of the ECX register is abnormal data (000000CC).
  • Figure 4 is a diagram illustrating the execution flow of an application when a normal value is input and the execution flow of an application when an abnormal value is input.
  • the application receives an abnormal value (for example, when the input value exceeds the normal range of 2) through a non-executable file, the execution flow of the application changes to an execution flow that the developer did not intend. , vulnerabilities can be triggered.
  • an abnormal value for example, when the input value exceeds the normal range of 2
  • the execution flow of the application changes to an execution flow that the developer did not intend. , vulnerabilities can be triggered.
  • the debugging engine automatically debugs the document viewing process and sets breakpoints at specific points related to vulnerabilities. Additionally, it is possible to diagnose maliciousness by checking specific values (values stored in registers or memory) related to the input value to determine whether the input value is a value that causes a vulnerability.
  • the debugging engine can determine the type of non-executable file and then start debugging by running an application to view the non-executable file.
  • the debugging engine checks whether the loaded module is the module to be analyzed. As a result of the confirmation, if the loaded module is the target of analysis, a breakpoint can be set at the specified address.
  • a malicious non-executable file may terminate the application if it does not meet certain conditions, such as the application version or operating system environment, or may have branching points that diverge to a flow in which no malicious action occurs.
  • the server 200 may be analyzed by an analyst in advance, and a breakpoint may be set at a branching point having this possibility.
  • server 200 may set conditions in association with the branch point that may continue to run the application without terminating it or lead to a flow in which malicious actions may occur.
  • the server 200 may detect vulnerabilities according to detection logic and then perform a step of storing the detection results.
  • the stored detection result may be understood as a detection result report.
  • the automated reversing engine included in the server 200 automatically performs and analyzes the above-mentioned steps, and can diagnose and block malicious non-executable files through a diagnostic algorithm researched and developed by an analyst.
  • the CDR engine provides CDR services.
  • the CDR service is a solution that disassembles non-executable files, removes malicious or unnecessary files, and creates new files by keeping the content as identical as possible to the original.
  • CDR refers to a service that disarms and reconstructs the content in a document to create a safe document and provide it to customers.
  • the file subject to detoxification may be any non-executable file. Examples of non-executable files include Word files, Excel files, PowerPoint files, Hangul files, and PDF files.
  • Content subject to detoxification may be active content. Examples of active content include macros, hyperlinks, and Object Linking and Embedding (OLE).
  • the CDR engine may perform detoxification on content in a non-executable file and store the detoxification result. The stored detoxification result may be understood as a detoxification result report.
  • the result reading unit 220 generates a reading result for the decommissioned file based on the detection result provided from the reversing engine and the decommissioning result provided from the CDR engine. And based on the reading results, the detoxified file is allowed or blocked.
  • a detoxified file refers to a file for which detoxification has been completed. The results of reading the detoxified file and/or whether the detoxified file is blocked may be transmitted to the user's terminal and output through the terminal's output unit.
  • Figure 5 is a flowchart illustrating a method for determining document behavior that can be applied to an embodiment of the present disclosure.
  • the server 200 may include a non-executable file and an application program for executing the non-executable file (eg, MS Office, Hancom Office, etc.).
  • a non-executable file e.g., MS Office, Hancom Office, etc.
  • an application program for executing the non-executable file eg, MS Office, Hancom Office, etc.
  • the server 200 executes the application process in debugging mode (S4010).
  • the server 200 may execute a document process to open a non-executable file to be analyzed for an application program in debugging mode (DEBUG_ONLY_THIS_PROCESS) using the CreateProcess API. Through this, the server 200 can receive debug events of the application process.
  • the server 200 can execute an application process by setting the “DEBUG_ONLY_THIS_PROCESS” flag using the CreateProcess API.
  • the server 200 sets a first breakpoint at a point matching document behavior based on the application process (S4020). For example, the server 200 may set a breakpoint by changing the operating (OP) code related to the process of the application program loaded in the memory 214 to “0xCC”. OP code refers to an instruction code and may be a code in which the content of work to be actually performed by the CPU is written. To this end, the server 200 can change the memory 214 using WriteProcessMemory.
  • the server 200 may have information about document actions and points at which the corresponding document actions are matched in advance.
  • the server 200 can install a breakpoint using the WriteProcessMemory API according to a predefined behavior matching breakpoint table.
  • the server 200 checks whether a non-executable file is running (S4030). More specifically, after setting a breakpoint, the server 200 checks whether other non-executable files for which analysis has been requested are being viewed. Depending on the function required by the non-executable file, the application process loads the necessary modules into the memory 214, so in order to ensure the reliability of determining the document behavior of the target non-executable file, the application program ensures that other non-executable files are not viewed. Must have status. For example, if a malicious non-executable file has been viewed, the reliability of the document behavior judgment result may be reduced.
  • the server 200 executes the non-executable file to be analyzed based on the fact that other non-executable files are not running (S4040). More specifically, the server 200 views the non-executable file that the user has requested analysis using an application program process (eg, EXCEL, WORD, PPT, etc.) appropriate for the format. For example, the server 200 can view the sample.ppt file using MS Power point.
  • an application program process eg, EXCEL, WORD, PPT, etc.
  • the server 200 determines whether a new module related to the non-executable file to be analyzed has been loaded on the memory 214 (S4050). When the non-executable file to be analyzed is executed by the application process, the server 200 checks whether a new module is loaded.
  • the server 200 can use the debugging mode to receive a debugging event when it occurs in an application process.
  • the server 200 may use the event to determine that a new module (for example, DLL memory is installed) when a LOAD DLL event occurs.
  • the server 200 may determine that a new module has been loaded into the memory 214 when the “LOAD_DLL_DEBUG_EVENT” event occurs.
  • the server 200 may load a new module suitable for the application process function into the memory 214 in order to use the necessary functions (e.g., macros, ActiveX functions, etc.) in the non-executable file to be analyzed. there is.
  • necessary functions e.g., macros, ActiveX functions, etc.
  • the server 200 sets a second breakpoint at a point matching document behavior based on the loading of the new module (S4060). If it is not determined that a new module has been loaded, the server 200 does not set a second breakpoint.
  • the server 200 monitors whether the application process is stopped at the first breakpoint and/or the second breakpoint (S4070). For example, the server 200 may check whether the application process is stopped at the breakpoint and process control is transferred to the debugger. The debugger that has taken over control can check at what breakpoint it stopped.
  • the server 200 generates document behavior information matching the first breakpoint and/or the second breakpoint based on the monitoring results (S4080). For example, the server 200 can check the address value of the breakpoint. Thereafter, the server 200 may generate information about the document action matched with the address value of the breakpoint based on the information about the corresponding document action and the point at which the corresponding document action matches, and store this information as a detection result.
  • Table 1 below is an example of document behavior matched with the address value of the stored breakpoint.
  • the server 200 may perform additional actions to obtain document actions.
  • the server 200 determines whether the viewing of the non-executable file to be analyzed has ended (S4090). For example, the server 200 may determine whether the viewing of the non-executable file to be analyzed has ended in a manner such as when a preset time has passed or when a message box (Alert) or a breakpoint has not been reached for a certain period of time. If the viewing is not terminated, the server 200 continuously monitors whether the application process is stopped at a breakpoint. Through this, the server 200 can wait for document actions to fully occur.
  • the server 200 may transmit the stored document behavior information to the terminal.
  • the terminal can communicate with the server 200 and may include a management application that can control the operation of the server.
  • the terminal can provide document behavior information to the user through a management application.
  • server 200 of the present specification may start analysis from the time the application process is executed in the stage before the sandbox is changed.
  • the analysis speed is faster than existing APT solutions.
  • Figure 6 is a flowchart illustrating a method for blocking non-executable files that can be applied to an embodiment of the present disclosure.
  • the reversing engine of the server 200 performs a reversing analysis on the input non-executable file and stores the detection results for vulnerabilities and/or malicious active content (S6100).
  • the detection result is provided to the result reading unit 220. A more detailed description of step S6100 will be described later with reference to FIGS. 7 to 9.
  • the CDR engine of the server 200 performs detoxification on the content in the input non-executable file and stores the detoxification result (S6200). At this time, step S6200 does not necessarily have to be executed after step S6100, and steps S6200 and S6100 may be performed simultaneously.
  • the detoxification result is provided to the result reading unit 220. A more detailed description of step S6200 will be described later with reference to FIGS. 10 to 12.
  • the result reading unit 220 of the server 200 generates a final reading result for the detoxified file based on the detection result provided from the reversing engine and the detoxification result provided from the CDR engine (S6300).
  • the reading results include the type of non-executable file entered, the content detected by the reversing engine (e.g. vulnerabilities, macros, hyperlinks, JavaScript), whether the detected content can be rendered harmless by the CDR engine, It may include one or more of whether the detected content has been detoxified by the CDR engine and whether the detoxified file is safe.
  • the type and/or number of information to be included in the reading result may be implemented to be changeable by the user.
  • the generated reading result may be provided to the user's terminal and may be output in the form of an audio signal and/or a video signal through an output unit of the terminal.
  • FIG. 7 is a flowchart specifically illustrating the detection result storage step (S6100) of FIG. 6.
  • Step S6110 may be understood as the document behavior determination method shown in FIG. 5.
  • the reversing engine determines whether there are results detected by the reversing analysis (S6120). For example, it determines whether there are vulnerabilities or malicious active content detected in non-executable files.
  • the CDR engine of the server 200 determines whether the detection result can be rendered harmless (S6130).
  • the determination may be made based on the type of CDR engine. This is because detoxification coverage varies depending on the type of CDR engine.
  • harmless coverage can be understood as a concept that includes one or more of a harmless file and a harmless content.
  • detoxification is not possible for content called JavaScript, but macro, Flash, object connection insertion, It is possible to detoxify content such as Active X, Embedded Document, Hyperlink, and Attachments.
  • step S6130 if the corresponding detection result cannot be detoxified in the CDR engine, a label that cannot be detoxified is recorded on the corresponding detection result (S6140).
  • step S6130 if the corresponding detection result can be detoxified in the CDR engine, a detoxification possible label is recorded in the corresponding detection result (S6150).
  • the detection result is stored (S6160).
  • the detection result may have an XML format, for example, but is not limited to the format shown.
  • the detection results by the reversing engine will be described with reference to FIGS. 8 and 9.
  • Figure 8 is a diagram showing an example of a detection result by a reversing engine.
  • the detection result is in XML format. You can see that "CVE-2017-11826.RE.300” is recorded in the “Name” item, and the value 'false' is recorded in the "isPossibelCDR” item. This means that a text vulnerability was detected in the debugging engine while running the reversing analysis, and the detected text vulnerability cannot be detoxified in the CDR engine.
  • Figure 9 is a diagram showing another example of a detection result by a reversing engine.
  • the vulnerability detection result is in XML format. And you can see that "_DownloaderMacro” is recorded in the “exploitName” item, and the value 'ture' is recorded in the "isPossibleCDR” item. This means that a malicious macro was detected in the debugging engine while running the reversing analysis, and the detected malicious macro can be rendered harmless in the CDR engine.
  • FIG. 10 is a flow chart specifically illustrating the detoxification result storage step (S6200) of FIG. 6.
  • the CDR engine determines whether content subject to detoxification exists in the input non-executable file (S6210).
  • Content subject to detoxification may be active content such as macros, hyperlinks, and object connection insertions.
  • step S6210 if content to be detoxified exists in the non-executable file, detoxification is performed on the content to be detoxified (S6220). Since content detoxification is a known technology, detailed description of it will be omitted.
  • the CDR engine determines whether content detoxification was successful (S6230).
  • step S6230 If, as a result of the determination in step S6230, the content has failed to be rendered harmless, the failure to render the content harmless is recorded in the detoxification result (S6240).
  • step S6230 If, as a result of the determination in step S6230, the content has been successfully detoxified, the successful detoxification is recorded in the detoxification results (S6250).
  • step S6210 if there is no content subject to detoxification in the non-executable file, this fact is recorded in the detoxification result (S6260).
  • Figure 11 is a diagram showing an example of the detoxification result by the CDR engine.
  • the value 'true' is recorded in the 'result' item, which means that the non-executable file is harmless.
  • the value 'SUCCESS' is recorded in the 'status' item, which means that the detoxification target content in the non-executable file was successfully detoxified.
  • CDR Process Success is recorded, which means that detoxification was successfully performed in the CDR engine.
  • the value 'NO DETECTION' is recorded in the 'status' item. And the non-executable file is also judged to be harmless, so the value 'true' is recorded in the 'result' field.
  • the detoxification result may also include 'fileType', 'inputFileName', 'inputFullPath', 'outputFileName', 'outputFullPath', 'elapsedTime', and 'cdrEntities' items.
  • the 'fileType' item is where the type of non-executable file is recorded.
  • the 'inputFileName' and 'inputFullPath' items are where the name of the non-executable file and the storage path of the non-executable file are recorded, respectively.
  • the 'outputFileName' and 'outputFullPath' items are where the name of the detoxified file and the storage path of the detoxified file are recorded, respectively.
  • the 'elapsedTime' item is where the time taken for detoxification is recorded.
  • the 'cdrEntities' item is where the properties of the data storing the detoxification results are recorded. The fact that 'Array' is written in the 'cdrEntities' field means that the detoxification results are stored in array form.
  • Figure 12 is a diagram showing another example of the detoxification result by the CDR engine.
  • the value 'false' is recorded in the 'result' item, which means that the non-executable file is not harmless.
  • the value "FAILURE” is recorded in the 'status' item, which means that detoxification failed for the content to be detoxified in the non-executable file.
  • "I/O Error Occurs” is recorded, which means that a detoxification failure error may occur due to an input/output error for the file.
  • FIG. 13 is a flowchart specifically illustrating the read result generation step (S6300) of FIG. 6.
  • the result reading unit 220 checks the detection result provided from the reversing engine (S6310) and determines whether there is a target (eg, vulnerability, malicious active content) with a label that cannot be detoxified (S6320).
  • a target eg, vulnerability, malicious active content
  • step S6320 if there is no object with a non-harmful label, the result reading unit 220 determines that there is an object with a label that can be harmless. Then, the detoxification result provided from the CDR engine is checked (S6330) to determine whether the detoxification of the object with the detoxification possible label was successful (S6340).
  • step S6340 if detoxification is successful for the object with the detoxification possible label, the result reading unit 220 generates a reading result indicating that the detoxified file is safe (S6350).
  • step S6340 if detoxification has failed for the content with the label capable of detoxification, the result reading unit 220 generates a reading result indicating that the detoxified file is dangerous (S6380).
  • the result reading unit 220 may allow or block the deactivated file based on the reading result. Specifically, if the detoxified file is read as safe, the detoxified file is allowed. Conversely, if the detoxified file is read as dangerous, the detoxified file is blocked.
  • the result reading unit 220 can provide the reading result of the detoxified file to the user's terminal and output it through the output unit.
  • Figure 14 is a diagram illustrating a reading result screen displayed through a terminal.
  • the read result screen may include the type of the input non-executable file, the detection result of the reversing engine, the detoxification result of the CDR engine, and the final read result of the detoxified file.
  • the detection results of the reversing engine may include information about the detected content and whether the detected content is malicious.
  • Examples of detected content include object vulnerabilities, text vulnerabilities, macros, hyperlinks, object link injection, and JavaScript.
  • the detoxification results of the CDR engine may include information about the detoxification target and whether detoxification was successful for the detoxification target.
  • the body vulnerability detected in the non-executable file was analyzed as malicious and was given a label that cannot be detoxified. Since detoxification is not possible in the CDR engine for detected text vulnerabilities, it can be seen that even if detoxification is successful for the detected macro, the detoxification file output from the CDR engine is read as dangerous.
  • a word file containing a hyperlink is entered as a non-executable file, you can see that the hyperlink has been detected in the reversing engine. It can be seen that the detected hyperlink was analyzed as normal, not malicious, and was given a label that could be made harmless.
  • the analysis result that the detected hyperlink is normal may be a result obtained because it is difficult to detect malicious actions using hyperlinks in the reversing engine. Therefore, by assigning a decommunicable label to the detected hyperlink, saving the detection result, and comparing the saved detection content with the decommissioning result of the CDR engine, more accurate reading results can be obtained for the decommunicated file output from the CDR engine. You can. In fact, since hyperlink detoxification was successful in the CDR engine, it can be seen that the detoxified file output from the CDR engine was read as safe.
  • Figure 15 is an example of a network separation system to which this specification can be applied.
  • the network separation system can be divided into an internal (business) network and an external (Internet) network, and data transmission between the separated networks can be performed through an inter-network data transmission system.
  • the government of the Republic of Korea is stipulating network separation guidelines for public, financial, and general companies, and since 2012, the regulations have been strengthened and made mandatory rather than recommended.
  • the solution that can transmit data between work PCs and Internet PCs is a network connection solution, and the network data transmission system can include a network connection solution.
  • files from a work PC can be transferred to an Internet PC through the Manganese data transmission system after administrator approval
  • files from an Internet PC can be transferred to a work PC through the Manganese data transmission system after administrator approval
  • the server 200 is connected to the inter-network data transmission system and can inspect and filter files passing through the inter-network data transmission system. For example, if the inter-network data transmission system requests the server 200 to scan for malicious code for a file transmitted from an external network to the inter-network data transmission system, the server 200 can check the file for malicious code. there is. If the server 200 discovers malicious code, the server 200 can block the file.
  • Figure 16 is an embodiment of a server to which this specification can be applied.
  • the server 200 is connected to an inter-network data transmission system in a network separation environment and can inspect target files being moved between networks.
  • the server 200 receives the target file from the inter-network data transmission system (S1610).
  • target files can be uploaded to a predefined directory in the inter-network data transmission system for movement to the internal network.
  • the manganese data transmission system can deliver the target file to the server 200 for malicious code inspection of the target file according to a predefined policy.
  • the server 200 checks the target file for malicious code (S1620). For example, the server 200 may inspect the target file through the operations of FIGS. 5 to 14 described above.
  • the server 200 determines whether the target file contains malicious code (S1630).
  • the server 200 modifies the target file based on the read result of the target file based on whether it contains malicious code (S1640).
  • the server 200 performs a reversing analysis on the target file, detects at least one of vulnerabilities and content in the target file, stores the detection result, and performs detoxification of the content in the target file.
  • the detoxification results can be stored and a reading result can be generated.
  • the readout results include what was detected by the reversing engine (e.g. vulnerabilities, macros, hyperlinks, JavaScript), whether the detected content can be neutralized by the CDR engine, and whether the detected content can be neutralized by the CDR engine. It may include whether or not it has been made harmless, whether the target file that has been made harmless is safe/dangerous, etc.
  • the reversing engine e.g. vulnerabilities, macros, hyperlinks, JavaScript
  • the server 200 can detoxify the target file through the CDR engine and modify the file name of the target file to notify users of the internal network that detoxification has been completed. For example, you can add the string “CDR” to the front of the file name (e.g., CDR_ INVOICE.xlsx).
  • the server 200 may modify the target file name to clearly inform internal users that the target file contains malicious code. .
  • the server 200 may additionally block the target file.
  • the server 200 can create a 0KB file (Dummyfile) to notify the internal user that the target file is blocked, and modify it to be the target file.
  • the server 200 may add the string “MALWARE” to the front end of the file name of the target file that has been modified as a dummy file.
  • the server 200 transmits the modified target file to the network data transmission system (S1650).
  • the manganese data transmission system can deliver the received modified target file to an internal user terminal, and the internal user terminal can easily determine whether the target file contains malicious code and the processing progress without having to access the server 200.
  • the server 200 may determine the target file to be a normal file and transmit it to the inter-network data transmission system.
  • the inter-network data transmission system can transmit target files directly to the internal network.
  • Figure 17 is an example of target file modification to which this specification can be applied.
  • the server 200 may deliver a modified target file to an internal user.
  • the target file may be modified as a dummy file with OKB, and a string may be added to the file name to indicate that it contains malicious code.
  • the server 200 can clearly notify the internal user server about the processing of the target file when the target file moves in a network separation environment of different bands.
  • malicious notifications can be clearly made to internal users without additional deployment of notification services (e.g., SMS, mail server 200, etc.), and in terms of management of the server 200, changing file names and capacity is easy and difficult to develop. , it is not restricted by OS area.
  • notification services e.g., SMS, mail server 200, etc.
  • the disclosed embodiments may be implemented in the form of a recording medium that stores instructions executable by a computer. Instructions may be stored in the form of program code, and when executed by a processor, may create program modules to perform operations of the disclosed embodiments.
  • the recording medium may be implemented as a computer-readable recording medium.
  • Computer-readable recording media include all types of recording media storing instructions that can be decoded by a computer. For example, there may be read only memory (ROM), random access memory (RAM), magnetic tape, magnetic disk, flash memory, optical data storage, etc.
  • ROM read only memory
  • RAM random access memory
  • magnetic tape magnetic tape
  • magnetic disk magnetic disk
  • flash memory optical data storage
  • computer-readable recording media may be provided in the form of non-transitory storage media.
  • 'non-transitory storage medium' simply means that it is a tangible device and does not contain signals (e.g. electromagnetic waves). This term refers to cases where data is semi-permanently stored in a storage medium and temporary storage media. It does not distinguish between cases where it is stored as .
  • a 'non-transitory storage medium' may include a buffer where data is temporarily stored.
  • Computer program products are commodities and can be traded between sellers and buyers.
  • the computer program product may be distributed in the form of a machine-readable recording medium (e.g. compact disc read only memory (CD-ROM)) or via an application store (e.g. Play StoreTM) or on two user devices (e.g. It may be distributed directly between smartphones (e.g. smartphones) or distributed online (e.g. downloaded or uploaded).
  • a machine-readable recording medium e.g. compact disc read only memory (CD-ROM)
  • an application store e.g. Play StoreTM
  • two user devices e.g. It may be distributed directly between smartphones (e.g. smartphones) or distributed online (e.g. downloaded or uploaded).
  • a computer program product e.g., a downloadable app
  • a machine-readable recording medium such as the memory of a manufacturer's server, an application store's server, or a relay server. It can be stored or created temporarily.

Abstract

The present specification relates to a method by which a server handles the inflow of malicious files in a network separation environment, the method comprising: receiving a target file from an inter-network data transmission system; inspecting malicious code of the target file; modifying the target file according to reading results of the target file on the basis that the malicious code is included in the target file; and transmitting the modified target file to the inter-network data transmission system, wherein the reading results can indicate the possibility or impossibility of sanitization of the target file.

Description

네트워크 망분리 환경에서 파일 이동시 악성파일의 유입을 알리기 위한 방법 및 이를 위한 장치 Method and device for notifying the inflow of malicious files when moving files in a network separation environment
본 명세서는 네트워크 망분리된 환경에서 외부 네트워크로부터 내부 네트워크로 파일이 이동시 사용자 서버에 악성파일이 유입되었음을 알리기 위한 방법 및 장치에 관한 것이다. This specification relates to a method and device for notifying that a malicious file has been introduced to a user server when a file is moved from an external network to an internal network in a separated network environment.
지능형 지속 위협(Advanced Persistent Threat, APT) 공격은 공격자가 특정 타깃을 정하고 목표한 정보를 빼내기 위해 고도의 공격기법을 적용하여 지속적으로 다양한 형태의 악성 코드를 활용한다. 특히 APT 공격은 초기 침입단계에서 탐지하지 못하는 경우가 많으며, 실행(Portable Executable, PE) 파일보다는 악성 코드를 포함하는 비실행(Non-Portable Executable, Non-PE) 파일을 이용하는 경우가 많다. Advanced Persistent Threat (APT) attacks involve attackers selecting specific targets and applying advanced attack techniques to continuously utilize various types of malicious code to steal targeted information. In particular, APT attacks are often not detected in the initial intrusion stage, and non-portable executable (Non-PE) files containing malicious code are often used rather than executable (portable executable, PE) files.
비실행 파일은 실행 파일과 반대되는 개념으로써, 자체적으로 실행되지 않는 파일을 의미한다. 비실행 파일로는 워드 파일, 엑셀 파일, 한글 파일, PDF 파일 등의 문서 파일, 이미지 파일, 동영상 파일, 자바스크립트 파일, 및 HTML 파일을 예로 들 수 있다. APT 공격에 악성 코드가 포함된 비실행 파일이 많이 이용되는 이유는 비실행 파일을 실행하는 응용 프로그램이 기본적으로 어느 정도의 보안 취약성을 가지고 있기 때문이다. 뿐만 아니라, 악성 코드를 비실행 파일에 포함시키면 파일을 변경하여 변종 악성 코드를 손쉽게 만들 수 있기 때문이다. A non-executable file is the opposite of an executable file and refers to a file that does not run on its own. Examples of non-executable files include document files such as Word files, Excel files, Hangul files, and PDF files, image files, video files, JavaScript files, and HTML files. The reason why non-executable files containing malicious code are often used in APT attacks is because applications that run non-executable files have a certain degree of security vulnerability. In addition, if malicious code is included in a non-executable file, variant malicious code can be easily created by changing the file.
문서 행위란 비실행 파일이 관련된 응용 프로그램의 액션을 실행하는 행위이다. 기존의 APT 솔루션들은 문서 행위 기반으로 동작하기 때문에 문서 행위 발생 후, 샌드박스(Virtural Machine, VM)의 변화를 관찰하여 악성 여부를 판단한다. 이는 문서 행위의 발현을 전부 기다린 후 악성 여부를 파악하기 때문에 분석시간이 오래 걸린다. 또한, CDR과 같은 기존 APT 솔루션들은 악성 액티브 콘텐츠를 제거할 수는 있지만, 문서의 필수 요소(예를 들어, 본문, 폰트)에서 발생하는 취약점을 제거할 수는 없기 때문에 보안 공백이 발생한다. A document action is the act of executing an action in an application program involving a non-executable file. Since existing APT solutions operate based on document behavior, they determine whether it is malicious by observing changes in the sandbox (Virtural Machine, VM) after document behavior occurs. This takes a long time to analyze because it waits for all document actions to occur before determining whether they are malicious. Additionally, existing APT solutions such as CDR can remove malicious active content, but cannot eliminate vulnerabilities arising from essential elements of the document (e.g., body, font), creating a security gap.
망분리는 내부 네트워크망과 외부 네트워크망을 분리하여 외부로의 침입을 막고 내부 정보의 유출을 막는 것을 목적으로 한다. 망분리 환경에서 망간 자료전송 시스템은 망연계 연동 활용을 통하여, 외부 서버로부터 내부 서버로 파일을 이동시킬 수 있다. 이동 대상이 되는 파일의 악성코드 검사(예를 들어, 백신, APT 검사) 후에, 당해 파일이 악성 파일인 경우, 일반적으로 악성 파일은 내부 서버로 미전송 된다. 다만, 이 경우, 내부 서버의 사용자는 외부 서버에 접근할 수 없으므로, 악성파일에 대한 알림을 받을 수 없다.The purpose of network separation is to prevent external intrusion and leakage of internal information by separating the internal network and external network. In a network separation environment, the inter-network data transmission system can move files from an external server to an internal server through network linkage. After checking the target file for malicious code (e.g., anti-virus, APT check), if the file is a malicious file, the malicious file is generally not sent to the internal server. However, in this case, users of the internal server cannot access the external server, so they cannot receive notifications about malicious files.
본 명세서의 목적은, 망분리 환경에서 파일이 이동하는 경우, 내부 서버에게 당해 파일의 악성여부에 대하여 명확하게 알리기 위한 방법 및 장치를 제안한다.The purpose of this specification is to propose a method and device for clearly notifying the internal server of whether the file is malicious when a file is moved in a network partition environment.
본 개시가 해결하고자 하는 과제들은 이상에서 언급한 과제로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 개시가 속하는 기술분야에서 통상의 기술자에게 명확하게 이해될 수 있을 것이다. The problems to be solved by the present disclosure are not limited to the problems mentioned above, and other technical problems not mentioned can be clearly understood by those skilled in the art from the description below.
본 명세서의 일 실시예에 따르면, 서버가 네트워크 망분리 환경에서 악성 파일의 유입을 처리하는 방법에 있어서, 망간 자료전송 시스템으로부터, 대상 파일을 수신하는 단계; 상기 대상 파일의 악성코드를 검사하는 단계; 상기 대상 파일에 악성코드가 포함되어 있는 것에 근거하여, 상기 대상 파일의 판독 결과에 따라, 상기 대상 파일을 수정하는 단계; 및 상기 수정된 대상 파일을 상기 망간 자료전송 시스템으로 전달하는 단계; 를 포함하며, 상기 판독 결과는 상기 대상 파일의 무해화의 가능 또는 불가능을 나타낼 수 있다.According to an embodiment of the present specification, a method for a server to handle the inflow of malicious files in a network separation environment includes: receiving a target file from an inter-network data transmission system; inspecting the target file for malicious code; Modifying the target file according to a reading result of the target file, based on whether the target file contains malicious code; and transmitting the modified target file to the network-to-network data transmission system. It includes, and the read result may indicate the possibility or impossibility of rendering the target file harmless.
또한, 상기 수정하는 단계는 상기 대상 파일의 파일명에 상기 무해화가 완료되었음을 나타내는 문자열을 추가하는 단계; 를 포함할 수 있다.Additionally, the modifying step includes adding a string indicating that the detoxification has been completed to the file name of the target file; may include.
또한, 상기 수정하는 단계는 상기 판독 결과가 상기 대상 파일의 무해화의 불가능을 나타내는 것에 근거하여, 상기 대상 파일의 파일명에 상기 대상 파일에 상기 악성코드가 포함되어 있음을 나타내는 문자열을 추가하는 단계; 를 포함할 수 있다.In addition, the modifying step includes adding a string indicating that the target file contains the malicious code to the file name of the target file, based on the read result indicating the impossibility of rendering the target file harmless; may include.
또한, 상기 수정하는 단계는 상기 대상 파일을 더미파일(dummyfile)로 수정하는 단계;를 더 포함할 수 있다.Additionally, the modifying step may further include modifying the target file as a dummy file.
또한, 상기 수정하는 단계는 상기 대상 파일에 대한 리버싱 분석을 수행하여, 상기 대상 파일 내의 취약점 및 콘텐츠 중 적어도 하나를 탐지하고, 탐지 결과를 저장하는 단계; 상기 대상 파일 내의 콘텐츠에 대하여 무해화를 수행하고, 무해화 결과를 저장하는 단계; 및 상기 탐지 결과 및 상기 무해화 결과에 기초하여, 상기 판독 결과를 생성하는 단계; 를 더 포함할 수 있다.In addition, the modifying step includes performing a reversing analysis on the target file, detecting at least one of vulnerabilities and contents in the target file, and storing the detection result; Performing detoxification on content in the target file and storing the detoxification result; and generating the readout result based on the detection result and the detoxification result; may further include.
또한, 본 명세서의 일 실시예에 따르면, 네트워크 망분리 환경에서 악성 파일의 유입을 처리하는 서버에 있어서, 통신부; 리버싱 엔진과 CDR 엔진이 포함된 메모리; 및 상기 통신부 및 상기 메모리를 기능적으로 제어하는 프로세서; 를 포함하며, 상기 프로세서는 상기 통신부를 통해, 망간 자료전송 시스템으로부터, 대상 파일을 수신하고, 상기 대상 파일의 악성코드를 검사하며, 상기 대상 파일에 악성코드가 포함되어 있는 것에 근거하여, 상기 대상 파일의 판독 결과에 따라, 상기 대상 파일을 수정하고, 상기 수정된 대상 파일을 상기 망간 자료전송 시스템으로 전달하며, 상기 판독 결과는 상기 대상 파일의 무해화의 가능 또는 불가능을 나타낼 수 있다.Additionally, according to an embodiment of the present specification, a server that processes the inflow of malicious files in a network separation environment includes: a communication unit; Memory with reversing engine and CDR engine; and a processor that functionally controls the communication unit and the memory; It includes, wherein the processor receives the target file from the inter-network data transmission system through the communication unit, checks the target file for malicious code, and based on whether the target file contains malicious code, According to the file reading result, the target file is modified and the modified target file is transmitted to the network data transmission system, and the reading result may indicate the possibility or impossibility of detoxification of the target file.
본 명세서의 실시예에 따르면, 서버는 망분리 환경에서 파일이 이동하는 경우, 내부 서버에게 당해 파일의 악성여부에 대하여 명확하게 알릴 수 있다.According to an embodiment of the present specification, when a file is moved in a network separation environment, the server can clearly inform the internal server about whether the file is malicious.
본 개시의 효과들은 이상에서 언급된 효과로 제한되지 않으며, 언급되지 않은 또 다른 효과들은 아래의 기재로부터 본 개시가 속하는 기술분야에서 통상의 기술자에게 통상의 기술자에게 명확하게 이해될 수 있을 것이다. The effects of the present disclosure are not limited to the effects mentioned above, and other effects not mentioned may be clearly understood by those skilled in the art from the description below to those skilled in the art.
도 1은 본 개시의 실시예와 관련된 전자 기기의 구성을 도시한 블록도이다. 1 is a block diagram showing the configuration of an electronic device related to an embodiment of the present disclosure.
도 2는 본 개시의 실시예에 따른 악성 비실행 파일 차단 장치의 구성을 도시한 블록도이다. Figure 2 is a block diagram showing the configuration of a device for blocking malicious non-executable files according to an embodiment of the present disclosure.
도 3은 본 개시의 실시예에 적용될 수 있는 정상 입력과 비정상 입력을 예시한 도면이다. Figure 3 is a diagram illustrating normal input and abnormal input that can be applied to an embodiment of the present disclosure.
도 4는 정상적인 값이 입력된 경우의 응용 프로그램의 실행 흐름과 비정상적인 값이 입력된 경우의 응용 프로그램의 실행 흐름을 예시한 도면이다. Figure 4 is a diagram illustrating the execution flow of an application when a normal value is input and the execution flow of an application when an abnormal value is input.
도 5는 본 개시의 실시예에 적용될 수 있는 문서 행위 판단 방법을 예시한 순서도이다. Figure 5 is a flowchart illustrating a method for determining document behavior that can be applied to an embodiment of the present disclosure.
도 6은 본 개시의 실시예에 적용될 수 있는 비실행 파일 차단 방법을 예시한 순서도이다. Figure 6 is a flowchart illustrating a method for blocking non-executable files that can be applied to an embodiment of the present disclosure.
도 7은 도 6의 탐지 결과 저장 단계(S6100)를 구체적으로 도시한 순서도이다. FIG. 7 is a flowchart specifically illustrating the detection result storage step (S6100) of FIG. 6.
도 8은 리버싱 엔진에 의한 탐지 결과의 일 예를 도시한 도면이다. Figure 8 is a diagram showing an example of a detection result by a reversing engine.
도 9는 리버싱 엔진에 의한 탐지 결과의 다른 예를 도시한 도면이다. Figure 9 is a diagram showing another example of a detection result by a reversing engine.
도 10은 도 6의 무해화 결과 저장 단계(S6200)를 구체적으로 도시한 순서도이다. FIG. 10 is a flow chart specifically illustrating the detoxification result storage step (S6200) of FIG. 6.
도 11은 CDR 엔진에 의한 무해화 결과의 일 예를 도시한 도면이다. Figure 11 is a diagram showing an example of the detoxification result by the CDR engine.
도 12는 CDR 엔진에 의한 무해화 결과의 다른 예를 도시한 도면이다. Figure 12 is a diagram showing another example of the detoxification result by the CDR engine.
도 13은 도 6의 판독 결과 생성 단계(S6300)를 구체적으로 도시한 순서도이다. FIG. 13 is a flowchart specifically illustrating the read result generation step (S6300) of FIG. 6.
도 14는 단말을 통해 표시되는 판독 결과 화면을 예시한 도면이다. Figure 14 is a diagram illustrating a reading result screen displayed through a terminal.
도 15는 본 명세서가 적용될 수 있는 망분리 시스템의 예시이다.Figure 15 is an example of a network separation system to which this specification can be applied.
도 16은 본 명세서가 적용될 수 있는 서버의 일 실시예이다.Figure 16 is an embodiment of a server to which this specification can be applied.
도 17은 본 명세서가 적용될 수 있는 대상 파일 수정의 예시이다.Figure 17 is an example of target file modification to which this specification can be applied.
본 명세서에 관한 이해를 돕기 위해 상세한 설명의 일부로 포함되는, 첨부 도면은 본 명세서에 대한 실시예를 제공하고, 상세한 설명과 함께 본 명세서의 기술적 특징을 설명한다.The accompanying drawings, which are included as part of the detailed description to aid understanding of the present specification, provide embodiments of the present specification and explain technical features of the present specification together with the detailed description.
본 개시의 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 상세하게 후술되어 있는 실시예들을 참조하면 명확해질 것이다. 그러나 본 개시는 이하에서 게시되는 실시예들에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 수 있다. 단지 본 실시예들은 본 개시가 완전하도록 하고, 본 개시가 속하는 기술분야에서 통상의 지식을 가진 자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것이며, 본 개시는 청구항의 범주에 의해 정의될 뿐이다. The advantages and features of the present disclosure and methods for achieving them will become clear by referring to the embodiments described in detail below along with the accompanying drawings. However, the present disclosure is not limited to the embodiments posted below and may be implemented in various different forms. These embodiments are merely provided to ensure that the present disclosure is complete and to fully inform those skilled in the art of the scope of the invention, and that the present disclosure is defined only by the scope of the claims. .
다른 정의가 없다면, 본 명세서에서 사용되는 모든 용어(기술 및 과학적 용어를 포함)는 본 개시가 속하는 기술분야에서 통상의 지식을 가진 자에게 공통적으로 이해될 수 있는 의미로 사용될 수 있을 것이다. 또 일반적으로 사용되는 사전에 정의되어 있는 용어들은 명백하게 특별히 정의되어 있지 않는 한 이상적으로 또는 과도하게 해석되지 않는다. Unless otherwise defined, all terms (including technical and scientific terms) used in this specification may be used with meanings that can be commonly understood by those skilled in the art to which this disclosure pertains. Additionally, terms defined in commonly used dictionaries are not interpreted ideally or excessively unless clearly specifically defined.
본 명세서에서 사용된 용어는 실시예들을 설명하기 위한 것이며 본 개시를 제한하고자 하는 것은 아니다. 본 명세서에서, 단수형은 출입문구에서 특별히 언급하지 않는 한 복수형도 포함한다. 명세서에서 사용되는 "포함한다(comprises)" 및/또는 "포함하는(comprising)"은 언급된 구성요소 외에 하나 이상의 다른 구성요소의 존재 또는 추가를 배제하지 않는다. The terminology used herein is for the purpose of describing embodiments and is not intended to limit the disclosure. In this specification, the singular form also includes the plural form unless specifically mentioned in the text. As used in the specification, “comprises” and/or “comprising” does not exclude the presence or addition of one or more other elements in addition to the mentioned elements.
이하, 첨부된 도면을 참조하여 본 명세서에 개시된 실시예를 상세히 설명하되, 도면 부호에 관계없이 동일하거나 유사한 구성요소는 동일한 참조 번호를 부여하고 이에 대한 중복되는 설명은 생략하기로 한다. Hereinafter, embodiments disclosed in the present specification will be described in detail with reference to the attached drawings. However, identical or similar components will be assigned the same reference numbers regardless of reference numerals, and duplicate descriptions thereof will be omitted.
이하의 설명에서 사용되는 구성요소에 대한 접미사 "모듈" 및 "부"는 명세서 작성의 용이함만이 고려되어 부여되거나 혼용되는 것으로서, 그 자체로 서로 구별되는 의미 또는 역할을 갖는 것은 아니다. 또한, 본 명세서에 개시된 실시예를 설명함에 있어서 관련된 공지 기술에 대한 구체적인 설명이 본 명세서에 개시된 실시예의 요지를 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다. 또한, 첨부된 도면은 본 명세서에 개시된 실시예를 쉽게 이해할 수 있도록 하기 위한 것일 뿐, 첨부된 도면에 의해 본 명세서에 개시된 기술적 사상이 제한되지 않으며, 본 명세서의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. The suffixes “module” and “part” for components used in the following description are given or used interchangeably only for the ease of preparing the specification, and do not have distinct meanings or roles in themselves. Additionally, in describing the embodiments disclosed in this specification, if it is determined that detailed descriptions of related known technologies may obscure the gist of the embodiments disclosed in this specification, the detailed descriptions will be omitted. In addition, the attached drawings are only for easy understanding of the embodiments disclosed in this specification, and the technical idea disclosed in this specification is not limited by the attached drawings, and all changes included in the spirit and technical scope of this specification are not limited. , should be understood to include equivalents or substitutes.
제1, 제2 등과 같이 서수를 포함하는 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되지는 않는다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다.Terms containing ordinal numbers, such as first, second, etc., may be used to describe various components, but the components are not limited by the terms. The above terms are used only for the purpose of distinguishing one component from another.
어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.When a component is said to be "connected" or "connected" to another component, it is understood that it may be directly connected to or connected to the other component, but that other components may exist in between. It should be. On the other hand, when it is mentioned that a component is “directly connected” or “directly connected” to another component, it should be understood that there are no other components in between.
단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다.Singular expressions include plural expressions unless the context clearly dictates otherwise.
본 명세서에서, "포함한다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다. In this specification, terms such as “comprise” or “have” are intended to indicate the presence of features, numbers, steps, operations, components, parts, or combinations thereof described in the specification, but are not intended to indicate the presence of one or more other features. It should be understood that this does not exclude in advance the possibility of the existence or addition of elements, numbers, steps, operations, components, parts, or combinations thereof.
또한, 명세서에서 사용되는 "부"라는 용어는 소프트웨어 또는 하드웨어 구성요소를 의미하며, "부"는 어떤 역할들을 수행한다. 그렇지만 "부"는 소프트웨어 또는 하드웨어에 한정되는 의미는 아니다. "부"는 어드레싱할 수 있는 저장 매체에 있도록 구성될 수도 있고 하나 또는 그 이상의 프로세서들을 재생시키도록 구성될 수도 있다. 따라서, 일 예로서 "부"는 소프트웨어 구성요소들, 객체지향 소프트웨어 구성요소들, 클래스 구성요소들 및 태스크 구성요소들과 같은 구성요소들과, 프로세스들, 함수들, 속성들, 프로시저들, 서브루틴들, 프로그램 코드의 세그먼트들, 드라이버들, 펌웨어, 마이크로 코드, 회로, 데이터, 데이터베이스, 데이터 구조들, 테이블들, 어레이들 및 변수들을 포함한다. 구성요소들과 "부"들 안에서 제공되는 기능은 더 작은 수의 구성요소들 및 "부"들로 결합되거나 추가적인 구성요소들과 "부"들로 더 분리될 수 있다.Additionally, the term “unit” used in the specification refers to a software or hardware component, and the “unit” performs certain roles. However, “wealth” is not limited to software or hardware. The “copy” may be configured to reside on an addressable storage medium and may be configured to run on one or more processors. Thus, as an example, “part” refers to software components, such as object-oriented software components, class components, and task components, processes, functions, properties, procedures, Includes subroutines, segments of program code, drivers, firmware, microcode, circuits, data, databases, data structures, tables, arrays, and variables. The functionality provided within the components and “parts” may be combined into smaller numbers of components and “parts” or may be further separated into additional components and “parts”.
또한, 본 명세서의 일 실시예에 따르면 "부"는 프로세서 및 메모리로 구현될 수 있다. 용어 "프로세서"는 범용 프로세서, 중앙 처리 장치 (CPU), 마이크로프로세서, 디지털 신호 프로세서 (DSP), 제어기, 마이크로제어기, 상태 머신 등을 포함하도록 넓게 해석되어야 한다. 몇몇 환경에서는, "프로세서"는 주문형 반도체 (ASIC), 프로그램가능 로직 디바이스 (PLD), 필드 프로그램가능 게이트 어레이 (FPGA) 등을 지칭할 수도 있다. 용어 "프로세서"는, 예를 들어, DSP 와 마이크로프로세서의 조합, 복수의 마이크로프로세서들의 조합, DSP 코어와 결합한 하나 이상의 마이크로프로세서들의 조합, 또는 임의의 다른 그러한 구성들의 조합과 같은 처리 디바이스들의 조합을 지칭할 수도 있다.Additionally, according to an embodiment of the present specification, “unit” may be implemented with a processor and memory. The term “processor” should be interpreted broadly to include general purpose processors, central processing units (CPUs), microprocessors, digital signal processors (DSPs), controllers, microcontrollers, state machines, etc. In some contexts, “processor” may refer to an application-specific integrated circuit (ASIC), programmable logic device (PLD), field programmable gate array (FPGA), etc. The term “processor” refers to a combination of processing devices, for example, a combination of a DSP and a microprocessor, a combination of a plurality of microprocessors, a combination of one or more microprocessors in combination with a DSP core, or any other such combination of configurations. It may also refer to
용어 "메모리"는 전자 정보를 저장 가능한 임의의 전자 컴포넌트를 포함하도록 넓게 해석되어야 한다. 용어 메모리는 임의 액세스 메모리 (RAM), 판독-전용 메모리 (ROM), 비-휘발성 임의 액세스 메모리 (NVRAM), 프로그램가능 판독-전용 메모리 (PROM), 소거-프로그램가능 판독 전용 메모리 (EPROM), 전기적으로 소거가능 PROM (EEPROM), 플래쉬 메모리, 자기 또는 광학 데이터 저장장치, 레지스터들 등과 같은 프로세서-판독가능 매체의 다양한 유형들을 지칭할 수도 있다. 프로세서가 메모리로부터 정보를 판독하고/하거나 메모리에 정보를 기록할 수 있다면 메모리는 프로세서와 전자 통신 상태에 있다고 불린다. 프로세서에 집적된 메모리는 프로세서와 전자 통신 상태에 있다. The term “memory” should be interpreted broadly to include any electronic component capable of storing electronic information. The terms memory include random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), programmable read-only memory (PROM), erasable-programmable read-only memory (EPROM), electrical may refer to various types of processor-readable media, such as erasable PROM (EEPROM), flash memory, magnetic or optical data storage, registers, etc. A memory is said to be in electronic communication with a processor if the processor can read information from and/or write information to the memory. The memory integrated into the processor is in electronic communication with the processor.
본 명세서에서 사용되는 '비실행 파일'이란 실행 파일 또는 실행 가능한 파일과 반대되는 개념으로서 자체적으로 실행되지 않는 파일을 의미한다. 예를 들어, 비실행 파일은 PDF 파일, 한글 파일, 워드 파일과 같은 문서 파일, JPG 파일과 같은 이미지 파일, 동영상 파일, 자바 스크립트 파일, HTML 파일 등이 될 수 있으나, 이에 한정되지 않는다. 'Non-executable file' as used herein is the opposite of an executable file or executable file and refers to a file that does not execute on its own. For example, non-executable files may be document files such as PDF files, Hangul files, Word files, image files such as JPG files, video files, JavaScript files, HTML files, etc., but are not limited thereto.
이하, 첨부한 도면을 참고하여 실시예에 대하여 본 명세서가 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. 그리고 도면에서 본 개시를 명확하게 설명하기 위해서 설명과 관계없는 부분들은 생략될 수 있다. Hereinafter, with reference to the attached drawings, embodiments will be described in detail so that those skilled in the art can easily implement them. In order to clearly explain the present disclosure in the drawings, parts unrelated to the description may be omitted.
도 1은 본 개시의 실시예와 관련된 전자 기기의 구성을 도시한 블록도이다. 1 is a block diagram showing the configuration of an electronic device related to an embodiment of the present disclosure.
상기 전자 기기(100)는 무선 통신부(110), 입력부(120), 센싱부(140), 출력부(150), 인터페이스부(160), 메모리(170), 제어부(180) 및 전원 공급부(190) 등을 포함할 수 있다. 도 1에 도시된 구성요소들은 전자 기기(100)를 구현하는데 있어서 필수적인 것은 아니어서, 본 명세서 상에서 설명되는 전자 기기(100)는 위에서 열거된 구성요소들 보다 많거나, 또는 적은 구성요소들을 가질 수 있다.The electronic device 100 includes a wireless communication unit 110, an input unit 120, a sensing unit 140, an output unit 150, an interface unit 160, a memory 170, a control unit 180, and a power supply unit 190. ), etc. may be included. The components shown in FIG. 1 are not essential for implementing the electronic device 100, so the electronic device 100 described herein may have more or fewer components than those listed above. there is.
보다 구체적으로, 상기 구성요소들 중 무선 통신부(110)는 전자 기기(100)와 무선 통신 시스템 사이, 전자 기기(100)와 다른 전자 기기(100) 사이, 또는 전자 기기(100)와 외부 서버 사이의 무선 통신을 가능하게 하는 하나 이상의 모듈을 포함할 수 있다. 또한, 상기 무선 통신부(110)는 전자 기기(100)를 하나 이상의 네트워크에 연결하는 하나 이상의 모듈을 포함할 수 있다.More specifically, among the above components, the wireless communication unit 110 is used between the electronic device 100 and the wireless communication system, between the electronic device 100 and another electronic device 100, or between the electronic device 100 and an external server. It may include one or more modules that enable wireless communication. Additionally, the wireless communication unit 110 may include one or more modules that connect the electronic device 100 to one or more networks.
이러한 무선 통신부(110)는 방송 수신 모듈(111), 이동통신 모듈(112), 무선 인터넷 모듈(113), 근거리 통신 모듈(114), 위치정보 모듈(115) 중 적어도 하나를 포함할 수 있다. This wireless communication unit 110 may include at least one of a broadcast reception module 111, a mobile communication module 112, a wireless Internet module 113, a short-range communication module 114, and a location information module 115.
입력부(120)는 영상 신호 입력을 위한 카메라(121) 또는 영상 입력부, 오디오 신호 입력을 위한 마이크로폰(122) 또는 오디오 입력부, 사용자로부터 정보를 입력받기 위한 사용자 입력부(123)를 포함할 수 있다. 사용자 입력부(123)로는 터치키(touch key) 및 푸시키(mechanical key) 등을 예로 들 수 있다. 입력부(120)에서 수집한 음성 데이터나 이미지 데이터는 분석되어 사용자의 제어명령으로 처리될 수 있다.The input unit 120 may include a camera 121 or an image input unit for inputting an image signal, a microphone 122 or an audio input unit for inputting an audio signal, and a user input unit 123 for receiving information from a user. Examples of the user input unit 123 include touch keys and push keys (mechanical keys). Voice data or image data collected by the input unit 120 may be analyzed and processed as a user's control command.
센싱부(140)는 전자 기기(100) 내 정보, 전자 기기(100)를 둘러싼 주변 환경 정보 및 사용자 정보 중 적어도 하나를 센싱하기 위한 하나 이상의 센서를 포함할 수 있다. 예를 들어, 센싱부(140)는 근접센서(proximity sensor)(141), 조도 센서(illumination sensor)(142), 터치 센서(touch sensor), 가속도 센서(acceleration sensor), 자기 센서(magnetic sensor), 중력 센서(G-sensor), 자이로스코프 센서(gyroscope sensor), 모션 센서(motion sensor), RGB 센서, 적외선 센서(IR 센서: infrared sensor), 지문인식 센서(finger scan sensor), 초음파 센서(ultrasonic sensor), 카메라(121)와 같은 광 센서(optical sensor), 배터리 게이지(battery gauge), 환경 센서(예를 들어, 기압계, 토양습도계, 온도계, 방사능 감지 센서, 열 감지 센서, 가스 감지 센서 등), 화학 센서(예를 들어, 전자 코, 헬스케어 센서, 생체 인식 센서 등) 중 적어도 하나를 포함할 수 있다. 한편, 본 명세서에 개시된 전자 기기(100)는 예시된 센서들 중에서 둘 이상의 센서에서 센싱되는 정보들을 조합하여 활용할 수 있다.The sensing unit 140 may include one or more sensors for sensing at least one of information within the electronic device 100, information on the surrounding environment surrounding the electronic device 100, and user information. For example, the sensing unit 140 includes a proximity sensor 141, an illumination sensor 142, a touch sensor, an acceleration sensor, and a magnetic sensor. , gravity sensor (G-sensor), gyroscope sensor, motion sensor, RGB sensor, infrared sensor (IR sensor), fingerprint scan sensor, ultrasonic sensor sensor), an optical sensor such as the camera 121, a battery gauge, an environmental sensor (e.g., a barometer, a soil hygrometer, a thermometer, a radiation detection sensor, a heat detection sensor, a gas detection sensor, etc.) , may include at least one of chemical sensors (eg, electronic nose, healthcare sensor, biometric sensor, etc.). Meanwhile, the electronic device 100 disclosed in this specification can utilize information sensed by two or more of the illustrated sensors by combining them.
출력부(150)는 시각, 청각 또는 촉각 등과 관련된 출력을 발생시키기 위한 것이다. 출력부(150)는 디스플레이부(151), 음향 출력부(152), 햅팁 모듈(153), 광 출력부(154) 중 적어도 하나를 포함할 수 있다. 디스플레이부(151)는 터치 센서와 상호 레이어 구조를 이루거나 일체형으로 형성됨으로써, 터치 스크린을 구현할 수 있다. 이러한 터치 스크린은 전자 기기(100)와 사용자 사이의 입력 인터페이스를 제공하는 사용자 입력부(123)로써 기능함과 동시에, 전자 기기(100)와 사용자 사이의 출력 인터페이스를 제공할 수 있다.The output unit 150 is used to generate output related to vision, hearing, or tactile senses. The output unit 150 may include at least one of a display unit 151, an audio output unit 152, a haptip module 153, and an optical output unit 154. The display unit 151 can implement a touch screen by forming a layered structure or being integrated with the touch sensor. This touch screen functions as a user input unit 123 that provides an input interface between the electronic device 100 and the user, and can simultaneously provide an output interface between the electronic device 100 and the user.
인터페이스부(160)는 전자 기기(100)에 연결되는 다양한 종류의 외부 기기와의 통로 역할을 수행한다. 이러한 인터페이스부(160)는 유/무선 헤드셋 포트(wired/wireless headset port), 외부 충전기 포트, 유/무선 데이터 포트(wired/wireless data port), 메모리 카드 포트(memory card port), 식별 모듈이 구비된 장치를 연결하는 포트, 오디오 입출력 포트(Audio Input/Output port), 비디오 입출력 포트(Vidieo Input/Output port), 이어폰 포트(earphone port) 중 적어도 하나를 포함할 수 있다. 전자 기기(100)에서는 상기 인터페이스부(160)에 외부 기기가 연결되는 것에 대응하여, 연결된 외부 기기와 관련된 적절할 제어를 수행할 수 있다.The interface unit 160 serves as a passageway for various types of external devices connected to the electronic device 100. This interface unit 160 is provided with a wired/wireless headset port, an external charger port, a wired/wireless data port, a memory card port, and an identification module. It may include at least one of a port for connecting a connected device, an audio input/output port, a video input/output port, and an earphone port. In response to the external device being connected to the interface unit 160, the electronic device 100 may perform appropriate control related to the connected external device.
또한, 메모리(170)는 전자 기기(100)의 다양한 기능을 지원하는 데이터를 저장한다. 메모리(170)는 전자 기기(100)에서 구동되는 다수의 응용 프로그램(application program 또는 application), 전자 기기(100)의 동작을 위한 데이터들, 명령어들을 저장할 수 있다. 이러한 응용 프로그램 중 적어도 일부는 무선 통신을 통해 외부 서버로부터 다운로드 될 수 있다. 또한 이러한 응용 프로그램 중 적어도 일부는 전자 기기(100)의 기본적인 기능(예를 들어, 전화 착신 기능, 전화 발신 기능, 메시지 수신 기능, 메시지 발신 기능)을 위하여 출고 당시부터 전자 기기(100)상에 존재할 수 있다. 한편, 응용 프로그램은 메모리(170)에 저장되고, 전자 기기(100) 상에 설치되어, 제어부(180)에 의하여 상기 전자 기기의 동작 또는 기능을 수행하도록 구동될 수 있다. Additionally, the memory 170 stores data supporting various functions of the electronic device 100. The memory 170 may store a plurality of application programs (application programs or applications) running on the electronic device 100, data for operating the electronic device 100, and commands. At least some of these applications may be downloaded from an external server via wireless communication. In addition, at least some of these applications will be present on the electronic device 100 from the time of shipment for the basic functions of the electronic device 100 (e.g., call incoming call function, call outgoing function, message receiving function, message sending function). You can. Meanwhile, the application program may be stored in the memory 170, installed on the electronic device 100, and driven by the control unit 180 to perform an operation or function of the electronic device.
제어부(180)는 상기 응용 프로그램과 관련된 동작 외에도, 통상적으로 전자 기기(100)의 전반적인 동작을 제어한다. 제어부(180)는 위에서 살펴본 구성요소들을 통해 입력 또는 출력되는 신호, 데이터, 정보 등을 처리하거나 메모리(170)에 저장된 응용 프로그램을 구동함으로써, 사용자에게 적절한 정보 또는 기능을 제공 또는 처리할 수 있다.In addition to operations related to the application program, the control unit 180 typically controls the overall operation of the electronic device 100. The control unit 180 can provide or process appropriate information or functions to the user by processing signals, data, information, etc. input or output through the components discussed above, or by running an application program stored in the memory 170.
또한, 제어부(180)는 메모리(170)에 저장된 응용 프로그램을 구동하기 위하여, 도 1과 함께 살펴본 구성요소들 중 적어도 일부를 제어할 수 있다. 나아가, 제어부(180)는 상기 응용 프로그램의 구동을 위하여, 전자 기기(100)에 포함된 구성요소들 중 적어도 둘 이상을 서로 조합하여 동작시킬 수 있다.Additionally, the control unit 180 may control at least some of the components examined with FIG. 1 in order to run an application program stored in the memory 170. Furthermore, the control unit 180 may operate at least two of the components included in the electronic device 100 in combination with each other in order to run the application program.
전원 공급부(190)는 제어부(180)의 제어 하에서, 외부의 전원, 내부의 전원을 인가받아 전자 기기(100)에 포함된 각 구성요소들에 전원을 공급한다. 이러한 전원 공급부(190)는 배터리를 포함하며, 상기 배터리는 내장형 배터리 또는 교체가능한 형태의 배터리가 될 수 있다.The power supply unit 190 receives external power and internal power under the control of the control unit 180 and supplies power to each component included in the electronic device 100. This power supply unit 190 includes a battery, and the battery may be a built-in battery or a replaceable battery.
상기 각 구성요소들 중 적어도 일부는, 이하에서 설명되는 다양한 실시 예들에 따른 전자 기기(100)의 동작, 제어, 또는 제어 방법을 구현하기 위하여 서로 협력하여 동작할 수 있다. 또한, 상기 전자 기기(100)의 동작, 제어, 또는 제어 방법은 상기 메모리(170)에 저장된 적어도 하나의 응용 프로그램의 구동에 의하여 전자 기기(100) 상에서 구현될 수 있다.At least some of the components may cooperate with each other to implement operation, control, or a control method of the electronic device 100 according to various embodiments described below. Additionally, the operation, control, or control method of the electronic device 100 may be implemented on the electronic device 100 by running at least one application program stored in the memory 170.
한편, 본 개시의 실시예에서 서버(또는 클라우드 서버)는 전자 기기(100)를 포함할 수 있으며, 전자 기기(100)는 단말로 통칭될 수 있다. 단말은 외부 서버(또는 외부 클라우드 서버)와 네트워크로 연결되어 통신할 수 있다. Meanwhile, in an embodiment of the present disclosure, a server (or cloud server) may include an electronic device 100, and the electronic device 100 may be collectively referred to as a terminal. The terminal can communicate with an external server (or external cloud server) by being connected to a network.
도 2는 본 개시의 실시예에 따른 악성 비실행 파일 차단 장치의 구성을 도시한 블록도이다. 이하, 설명의 편의를 위하여 악성 비실행 파일 차단 장치를 '서버'라 칭하기로 한다. Figure 2 is a block diagram showing the configuration of a device for blocking malicious non-executable files according to an embodiment of the present disclosure. Hereinafter, for convenience of explanation, the malicious non-executable file blocking device will be referred to as 'server'.
도 2를 참조하면, 서버(200)는 제어부(210), 결과 판독부(220) 및 통신부(230)를 포함할 수 있다. 제어부(210)는 프로세서(212) 및 메모리(214)를 포함할 수 있다. 프로세서(212)는 메모리(214)에 저장된 명령어들을 수행할 수 있다. 프로세서(212)는 통신부(230)를 제어할 수 있다. 메모리(214)는 캐시 메모리(cache memory)를 포함할 수 있다. 캐시 메모리는 후술되는 원본 문서를 일정 시간 동안 임시로 저장할 수 있다. Referring to FIG. 2, the server 200 may include a control unit 210, a result reading unit 220, and a communication unit 230. The control unit 210 may include a processor 212 and a memory 214. The processor 212 may execute instructions stored in the memory 214. The processor 212 can control the communication unit 230. Memory 214 may include cache memory. Cache memory can temporarily store original documents, which will be described later, for a certain period of time.
프로세서(212)는 메모리(220)에 저장된 명령어에 기초하여 서버(200)의 동작을 제어할 수 있다. 서버(200)는 하나의 프로세서를 포함할 수도 있고, 복수의 프로세서를 포함할 수도 있다. 서버(200)가 복수의 프로세서를 포함하는 경우, 복수의 프로세서 중 적어도 일부는 물리적으로 이격된 거리에 위치할 수 있다. 또한, 서버(200)는 이에 한정되지 않고 알려진 다양한 방식으로 구현될 수 있다. The processor 212 may control the operation of the server 200 based on instructions stored in the memory 220. The server 200 may include one processor or may include multiple processors. When the server 200 includes a plurality of processors, at least some of the plurality of processors may be located physically spaced apart from each other. Additionally, the server 200 is not limited to this and may be implemented in various known ways.
통신부(230)는 서버와 무선 통신 시스템의 사이, 서버와 다른 서버의 사이, 또는 서버와 외부 서버(단말) 사이의 무선 통신을 가능하게 하는 하나 이상의 모듈을 포함할 수 있다. 또한, 통신부(230)는, 서버를 하나 이상의 네트워크에 연결하는 하나 이상의 모듈을 포함할 수 있다. The communication unit 230 may include one or more modules that enable wireless communication between a server and a wireless communication system, between a server and another server, or between a server and an external server (terminal). Additionally, the communication unit 230 may include one or more modules that connect servers to one or more networks.
제어부(210)는 메모리(214)에 저장된 응용 프로그램을 구동하기 위하여, 서버의 구성요소들 중 적어도 일부를 제어할 수 있다. 나아가, 제어부(210)는 상기 응용 프로그램의 구동을 위하여, 서버에 포함된 구성요소들 중 적어도 둘 이상을 서로 조합하여 동작시킬 수 있다. The control unit 210 may control at least some of the components of the server to run the application program stored in the memory 214. Furthermore, the control unit 210 can operate at least two of the components included in the server in combination with each other to run the application program.
본 개시의 실시예에서 서버(200)는 리버싱 엔진 및 CDR 엔진을 포함할 수 있다. 이하, 리버싱 엔진과 CDR 엔진에 대해서 구체적으로 설명하기로 한다. In an embodiment of the present disclosure, the server 200 may include a reversing engine and a CDR engine. Hereinafter, the reversing engine and the CDR engine will be described in detail.
리버싱 엔진(Reversing engine)Reversing engine
리버싱 엔진이란 악성 비실행 파일에 대한 리버스 엔지니어링 과정을 자동화한 분석 및 진단 엔진이다. 이는 역공학(Reverse Engineering)이라고 불리며, 이를 통해 서버(200)는 소스 코드가 없는 소프트웨어를 컴퓨터가 실행할 수 있는 언어인 어셈블리 단까지 들어가 소프트웨어의 원리 및 구조에 대해 알 수 있다. 이를 이용하여 서버(200)는 일반적인 소프트웨어(예를 들어, MS Office, PDF)의 구조, 악성 코드 행위, 취약점 악용 방법 등을 알 수 있다. The reversing engine is an analysis and diagnosis engine that automates the reverse engineering process for malicious non-executable files. This is called reverse engineering, and through this, the server 200 can learn about the principles and structure of the software by going up to the assembly level, a language that allows a computer to execute software without source code. Using this, the server 200 can know the structure of general software (eg, MS Office, PDF), malicious code behavior, and methods of exploiting vulnerabilities.
예를 들어, 리버싱 엔진은 파일 분석 단계, 정적 분석 단계, 동적 분석 단계 및 디버깅 분석 단계를 수행할 수 있다. 각 단계들에 대해서 간략하게 설명하면 다음과 같다. For example, the reversing engine may perform a file analysis step, a static analysis step, a dynamic analysis step, and a debugging analysis step. A brief explanation of each step is as follows.
1. 파일 분석 단계: 비실행 파일 자체의 외관(예를 들어, 속성, 작성자, 작성 날짜, 파일 타입)을 분석하는 단계로서, 일반 백신 프로그램과 유사하게 비실행 파일 자체의 정보만으로 악성 여부를 진단할 수 있다.1. File analysis step: This is the step of analyzing the appearance of the non-executable file itself (e.g., properties, author, creation date, file type). Similar to a general anti-virus program, it diagnoses whether it is malicious using only the information of the non-executable file itself. can do.
2. 정적 분석 단계: 비실행 파일 내의 데이터를 추출하고 분석해서 정상, 악성 여부를 판별하는 단계로서, 비실행 파일은 실행하지 않고 파일 구조에 맞게 내부 데이터를 추출하여 비교 분석하여 악성 여부를 진단할 수 있다. 이는 매크로의 추출 및 분석, URL의 추출 및 분석에 적합할 수 있다. 2. Static analysis step: This is a step to extract and analyze data in non-executable files to determine whether they are normal or malicious. Non-executable files are not executed, but internal data is extracted and compared and analyzed according to the file structure to diagnose maliciousness. You can. This may be suitable for extracting and analyzing macros and extracting and analyzing URLs.
3. 동적 분석 단계: 비실행 파일을 실행하고 모니터링하면서 행위를 분석하여 악성 여부를 판별하는 단계로서, 매크로, 하이퍼링크, DDE(Dynamic Data Exchange) 등과 같이 문서의 정상 기능을 이용한 악성 행위를 탐지하기에 용이하다. 3. Dynamic analysis stage: This is the stage where non-executable files are executed and monitored while their behavior is analyzed to determine whether they are malicious. This is to detect malicious behavior using the normal functions of the document, such as macros, hyperlinks, and DDE (Dynamic Data Exchange). It is easy to
4. 디버깅 분석 단계: 비실행 파일을 실행하고 디버깅하여 취약점, 익스플로잇(Exploit) 등을 분석하는 단계로서, 매크로, 하이퍼링크, DDE 등과 같이 문서의 정상 기능을 이용한 악성 행위 탐지뿐만 아니라, 문서 내 본문, 표, 폰트, 그림 등을 이용한 응용 프로그램의 취약점을 탐지하기에 적합하다. 4. Debugging analysis stage: This is the stage of analyzing vulnerabilities, exploits, etc. by executing and debugging non-executable files. It not only detects malicious behavior using normal functions of the document such as macros, hyperlinks, DDE, etc., but also analyzes the body of the document. , it is suitable for detecting vulnerabilities in applications using tables, fonts, pictures, etc.
리버싱 엔진은 디버깅 분석에 사용될 수 있는 디버깅 엔진(Debugging engine)을 포함할 수 있다. 디버깅 엔진은 비실행 파일의 열람 과정을 디버깅 모드를 이용하여 문서의 입력 단계, 처리 단계, 출력 단계에서 발생하는 취약점을 진단할 수 있다. 여기서 취약점이란 응용 프로그램이 응용 프로그램의 개발자가 개발한 코드(로직)에서 예상하지 못한 값을 입력 받았을 때 발생하는 오류, 버그 등을 말한다. 공격자는 취약점을 통해 비정상 종료로 인한 서비스 거부, 원격 코드 실행 등의 악성 문서 행위를 실행할 수 있다. The reversing engine may include a debugging engine that can be used for debugging analysis. The debugging engine can use the debugging mode during the viewing process of non-executable files to diagnose vulnerabilities that occur in the document input, processing, and output stages. Here, vulnerabilities refer to errors, bugs, etc. that occur when an application receives unexpected values from the code (logic) developed by the application developer. Through the vulnerability, an attacker can execute malicious document actions such as denial of service due to abnormal termination or remote code execution.
디버깅 엔진은 디버거(Dibugger)를 포함할 수 있다. 디버거는 리버스 엔지니어링을 하기 위한 도구로, 다른 대상 프로그램에 대해 어셈블리 레벨에서 중단점(Breakpoint)를 설정할 수 있는 프로그램, 프로세스를 의미할 수 있다. The debugging engine may include a debugger. A debugger is a tool for reverse engineering and can refer to a program or process that can set a breakpoint at the assembly level for another target program.
도 3은 본 개시의 실시예에 적용될 수 있는 정상 입력과 비정상 입력을 예시한 도면이다. Figure 3 is a diagram illustrating normal input and abnormal input that can be applied to an embodiment of the present disclosure.
도 3의 상단은 응용 프로그램이 비실행 파일을 통해 정상적인 값을 입력받는 경우를 설명하기 위한 도면으로, ECX(Extended Counter Register)의 값이 정상 데이터(00000001)인 경우를 예시하고 있다. 도 3의 하단은 응용 프로그램이 비실행 파일을 통해 비정상적인 값을 입력받는 경우를 설명하기 위한 도면으로, ECX 레지스터의 값이 비정상 데이터(000000CC)인 경우를 예시하고 있다. The top of FIG. 3 is a diagram to explain a case where an application program receives a normal value through a non-executable file, and illustrates a case where the value of the Extended Counter Register (ECX) is normal data (00000001). The bottom of FIG. 3 is a diagram to explain a case where an application program receives an abnormal value through a non-executable file, and illustrates a case where the value of the ECX register is abnormal data (000000CC).
도 4는 정상적인 값이 입력된 경우의 응용 프로그램의 실행 흐름과 비정상적인 값이 입력된 경우의 응용 프로그램의 실행 흐름을 예시한 도면이다. Figure 4 is a diagram illustrating the execution flow of an application when a normal value is input and the execution flow of an application when an abnormal value is input.
도 4를 참조하면, 응용 프로그램이 비실행 파일을 통해 정상적인 값(예를 들어, 입력값이 정상범위인 2를 초과하지 않는 경우)을 입력받는 경우, 응용 프로그램의 실행 흐름은 개발자가 의도한 실행 흐름으로 진행된다. Referring to Figure 4, when an application receives a normal value (for example, when the input value does not exceed the normal range of 2) through a non-executable file, the execution flow of the application is executed as intended by the developer. It goes with the flow.
반면, 응용 프로그램이 비실행 파일을 통해 비정상적인 값(예를 들어, 입력값이 정상범위인 2를 초과하는 경우)을 입력받는 경우, 응용 프로그램의 실행 흐름은 개발자가 의도하지 않은 실행 흐름으로 변경되어, 취약점이 동작될 수 있다. On the other hand, if the application receives an abnormal value (for example, when the input value exceeds the normal range of 2) through a non-executable file, the execution flow of the application changes to an execution flow that the developer did not intend. , vulnerabilities can be triggered.
디버깅 엔진은 문서 열람 과정을 자동 디버깅하여 취약점과 관련된 특정 지점에 중단점을 설정한다. 그리고 입력값과 관련된 특정값(레지스터 또는 메모리에 저장된 값)을 확인하여 입력값이 취약점을 일으키는 값인지 아닌지를 판별하여 악성 여부를 진단할 수 있다. The debugging engine automatically debugs the document viewing process and sets breakpoints at specific points related to vulnerabilities. Additionally, it is possible to diagnose maliciousness by checking specific values (values stored in registers or memory) related to the input value to determine whether the input value is a value that causes a vulnerability.
보다 자세하게, 디버깅 엔진은 비실행 파일의 종류를 확인한 다음, 비실행 파일을 열람하기 위한 응용 프로그램을 실행하여 디버깅을 시작할 수 있다. 비실행 파일을 열람하는 과정에서 문서 행위와 관련된 모듈이 로드 되면, 디버깅 엔진은 로드된 모듈이 분석 대상 모듈인지 확인한다. 확인 결과, 로드된 모듈이 분석 대상이라면 지정된 주소에 중단점을 설정할 수 있다. More specifically, the debugging engine can determine the type of non-executable file and then start debugging by running an application to view the non-executable file. When a module related to document behavior is loaded in the process of viewing a non-executable file, the debugging engine checks whether the loaded module is the module to be analyzed. As a result of the confirmation, if the loaded module is the target of analysis, a breakpoint can be set at the specified address.
예를 들어, 악성 비실행 파일은 응용 프로그램의 버전이나 운영체제 환경 등의 특정 조건을 만족하지 않으면 응용 프로그램을 종료하거나 아무런 악성 행위가 발생하지 않는 흐름으로 분기하는 분기 지점들을 가질 수 있다. 서버(200)는 사전에 분석가에 의해 분석되어, 이러한 가능성을 가지는 분기 지점에 중단점을 설정할 수 있다. For example, a malicious non-executable file may terminate the application if it does not meet certain conditions, such as the application version or operating system environment, or may have branching points that diverge to a flow in which no malicious action occurs. The server 200 may be analyzed by an analyst in advance, and a breakpoint may be set at a branching point having this possibility.
또한, 서버(200)는 해당 분기 지점과 연관되어, 응용 프로그램을 종료하지 않고 계속 실행하거나 악성 행위가 발생할 수 있는 흐름으로 유도할 수 있는 조건들을 설정할 수 있다. Additionally, the server 200 may set conditions in association with the branch point that may continue to run the application without terminating it or lead to a flow in which malicious actions may occur.
응용 프로그램의 프로세스 실행 중 해당 중단점에서 프로세스가 멈춘 경우, 서버(200)는 탐지 로직에 따라 취약점 여부를 탐지한 후, 탐지 결과를 저장하는 단계를 수행할 수 있다. 저장된 탐지 결과는 탐지 결과 리포트인 것으로 이해될 수 있다. If the process stops at the breakpoint during execution of the application process, the server 200 may detect vulnerabilities according to detection logic and then perform a step of storing the detection results. The stored detection result may be understood as a detection result report.
서버(200)에 포함된 자동화 리버싱 엔진은 전술한 단계들을 자동으로 수행하면서 분석하여, 분석가가 연구, 개발한 진단 알고리즘을 통해, 악성 비실행 파일을 진단하고 차단할 수 있다. The automated reversing engine included in the server 200 automatically performs and analyzes the above-mentioned steps, and can diagnose and block malicious non-executable files through a diagnostic algorithm researched and developed by an analyst.
CDR 엔진(Contents Disarm and Reconstruction engine)CDR engine (Contents Disarm and Reconstruction engine)
CDR 엔진은 CDR 서비스를 제공한다. CDR 서비스는 비실행 파일을 분해해 악성 파일 또는 불필요한 파일을 제거하고, 콘텐츠는 원본과 최대한 동일하게 하여, 새로운 파일을 만드는 솔루션이다. The CDR engine provides CDR services. The CDR service is a solution that disassembles non-executable files, removes malicious or unnecessary files, and creates new files by keeping the content as identical as possible to the original.
즉, CDR은 문서 내의 콘텐츠를 무해화(Disarm, 無害化)하고, 재조합(Reconstruction)하여 안전한 문서를 만들어 고객에게 제공하는 서비스를 의미한다. 여기서, 무해화 대상 파일은 비실행 파일 일체일 수 있다. 비실행 파일로는 워드 파일, 엑셀 파일, 파워포인트 파일, 한글 파일, PDF 파일을 예로 들 수 있다. 무해화 대상 콘텐츠는 액티브 콘텐츠일 수 있다. 액티브 콘텐츠로는 매크로, 하이퍼링크, 객체연결삽입(Object Linking and Embedding, OLE)을 예로 들 수 있다. 실시예에 따르면, CDR 엔진은 비실행 파일 내의 콘텐츠를 대상으로 무해화를 수행하여 무해화 결과를 저장할 수 있다. 저장된 무해화 결과는 무해화 결과 리포트인 것으로 이해될 수 있다. In other words, CDR refers to a service that disarms and reconstructs the content in a document to create a safe document and provide it to customers. Here, the file subject to detoxification may be any non-executable file. Examples of non-executable files include Word files, Excel files, PowerPoint files, Hangul files, and PDF files. Content subject to detoxification may be active content. Examples of active content include macros, hyperlinks, and Object Linking and Embedding (OLE). According to an embodiment, the CDR engine may perform detoxification on content in a non-executable file and store the detoxification result. The stored detoxification result may be understood as a detoxification result report.
다시 도 2를 참조하면, 결과 판독부(220)는 리버싱 엔진으로부터 제공받은 탐지 결과 및 CDR 엔진으로부터 제공받은 무해화 결과에 기초하여, 무해화 파일에 대한 판독 결과를 생성한다. 그리고 판독 결과에 기초하여 무해화 파일을 허용 또는 차단한다. 여기서, 무해화 파일이란 무해화 수행이 완료된 파일을 의미한다. 무해화 파일에 대한 판독 결과 및/또는 무해화 파일에 대한 차단 여부는 사용자의 단말로 전송될 수 있으며, 단말의 출력부를 통해 출력될 수 있다. Referring again to FIG. 2, the result reading unit 220 generates a reading result for the decommissioned file based on the detection result provided from the reversing engine and the decommissioning result provided from the CDR engine. And based on the reading results, the detoxified file is allowed or blocked. Here, a detoxified file refers to a file for which detoxification has been completed. The results of reading the detoxified file and/or whether the detoxified file is blocked may be transmitted to the user's terminal and output through the terminal's output unit.
도 5는 본 개시의 실시예에 적용될 수 있는 문서 행위 판단 방법을 예시한 순서도이다. Figure 5 is a flowchart illustrating a method for determining document behavior that can be applied to an embodiment of the present disclosure.
도 5를 참조하면, 서버(200)는 비실행 파일 및 비실행 파일을 실행시키기 위한 응용 프로그램(예를 들어, MS Office, 한컴오피스 등)을 포함할 수 있다.Referring to FIG. 5, the server 200 may include a non-executable file and an application program for executing the non-executable file (eg, MS Office, Hancom Office, etc.).
서버(200)는 디버깅(debugging) 모드로 응용 프로그램의 프로세스를 실행한다(S4010). 예를 들어, 서버(200)는 CreateProcess API를 이용하여 디버깅 모드(DEBUG_ONLY_THIS_PROCESS)로 응용 프로그램의 분석 대상 비실행 파일을 열기 위한 문서 프로세스를 실행할 수 있다. 이를 통해, 서버(200)는 응용 프로그램 프로세스의 디버그 이벤트를 수신 받을 수 있다.The server 200 executes the application process in debugging mode (S4010). For example, the server 200 may execute a document process to open a non-executable file to be analyzed for an application program in debugging mode (DEBUG_ONLY_THIS_PROCESS) using the CreateProcess API. Through this, the server 200 can receive debug events of the application process.
보다 자세하게, 서버(200)는 CreateProcess API를 이용하여 응용 프로그램 프로세스를 “DEBUG_ONLY_THIS_PROCESS” 플래그를 줘서 실행할 수 있다. In more detail, the server 200 can execute an application process by setting the “DEBUG_ONLY_THIS_PROCESS” flag using the CreateProcess API.
서버(200)는 응용 프로그램의 프로세스에 근거하여, 문서 행위와 매칭되는 지점에 제1 중단점(breakpoint)를 설정한다(S4020). 예를 들어, 서버(200)는 메모리(214)에 적재된 응용 프로그램의 프로세스와 관련된 OP(operating) 코드를 “0xCC”로 변경하여 중단점을 설정할 수 있다. OP 코드란, 명령코드를 의미하며 CPU가 실제로 수행하여야 할 작업 내용이 작성되어 있는 코드일 수 있다. 이를 위해, 서버(200)는 WriteProcessMemory를 이용하여 메모리(214)를 변경할 수 있다. The server 200 sets a first breakpoint at a point matching document behavior based on the application process (S4020). For example, the server 200 may set a breakpoint by changing the operating (OP) code related to the process of the application program loaded in the memory 214 to “0xCC”. OP code refers to an instruction code and may be a code in which the content of work to be actually performed by the CPU is written. To this end, the server 200 can change the memory 214 using WriteProcessMemory.
서버(200)에는 문서 행위 및 해당 문서 행위가 매칭되는 지점에 관한 정보가 미리 설정되어 있을 수 있다. 예를 들어, 서버(200)는 미리 정의 되어있는 행위 매칭 중단점 테이블(Breakpoint Table)에 따라 WriteProcessMemory API를 이용하여 중단점을 설치할 수 있다.The server 200 may have information about document actions and points at which the corresponding document actions are matched in advance. For example, the server 200 can install a breakpoint using the WriteProcessMemory API according to a predefined behavior matching breakpoint table.
서버(200)는 비실행 파일이 실행 중인지 여부를 검사한다(S4030). 보다 자세하게, 서버(200)는 중단점을 설정한 후, 분석이 요청된 기타 비실행 파일들이 열람되어 있는 중인지 여부를 확인한다. 비실행 파일에서 요구하는 기능에 따라, 응용 프로세스는 필요한 모듈이 메모리(214)에 적재되므로, 타켓이 되는 비실행 파일의 문서 행위 판단의 신뢰성 확보에서 응용 프로그램은 기타 비실행 파일들이 열람되어 있지 않은 상태를 가져야 한다. 예를 들어, 악성 비실행 파일이 열람되었다면, 문서 행위 판단 결과에 대한 신뢰성이 낮아질 수 있다.The server 200 checks whether a non-executable file is running (S4030). More specifically, after setting a breakpoint, the server 200 checks whether other non-executable files for which analysis has been requested are being viewed. Depending on the function required by the non-executable file, the application process loads the necessary modules into the memory 214, so in order to ensure the reliability of determining the document behavior of the target non-executable file, the application program ensures that other non-executable files are not viewed. Must have status. For example, if a malicious non-executable file has been viewed, the reliability of the document behavior judgment result may be reduced.
서버(200)는 기타 비실행 파일이 실행 중이지 않은 것에 근거하여, 분석 대상 비실행 파일을 실행한다(S4040). 보다 자세하게, 서버(200)는 사용자가 분석을 요청한 비실행 파일을 해당 포맷에 맞는 응용 프로그램 프로세스(예를 들어, EXCEL, WORD, PPT 등)를 이용하여 열람한다. 예들 들어, 서버(200)는 MS Power point을 이용하여 sample.ppt 파일을 열람할 수 있다.The server 200 executes the non-executable file to be analyzed based on the fact that other non-executable files are not running (S4040). More specifically, the server 200 views the non-executable file that the user has requested analysis using an application program process (eg, EXCEL, WORD, PPT, etc.) appropriate for the format. For example, the server 200 can view the sample.ppt file using MS Power point.
서버(200)는 메모리(214) 상에 분석 대상 비실행 파일과 관련된 신규 모듈이 로드되었는지의 여부를 판단한다(S4050). 서버(200)는 분석 대상 비실행 파일이 응용 프로그램 프로세스에 의해 실행되면, 신규 모듈이 로드되었는지 확인한다.The server 200 determines whether a new module related to the non-executable file to be analyzed has been loaded on the memory 214 (S4050). When the non-executable file to be analyzed is executed by the application process, the server 200 checks whether a new module is loaded.
예를 들어, 서버(200)는 디버깅 모드를 이용하여, 응용 프로그램 프로세스에서 디버깅 이벤트가 발생하면 이를 수신할 수 있다. 서버(200)는 해당 이벤트를 이용하여 LOAD DLL 이벤트가 발생하면 신규 모듈(예를 들어, DLL 메모리 탑재)로 판단할 수 있다. 보다 자세하게, 서버(200)는 “LOAD_DLL_DEBUG_EVENT” 이벤트가 발생하면 신규 모듈이 메모리(214)에 올라온 것으로 판단할 수 있다.For example, the server 200 can use the debugging mode to receive a debugging event when it occurs in an application process. The server 200 may use the event to determine that a new module (for example, DLL memory is installed) when a LOAD DLL event occurs. In more detail, the server 200 may determine that a new module has been loaded into the memory 214 when the “LOAD_DLL_DEBUG_EVENT” event occurs.
예를 들어, 서버(200)는 분석 대상 비실행 파일에서 필요한 기능(예를 들어, 메크로, ActiveX 기능 등)을 사용하기 위해 응용 프로그램 프로세스 기능에 맞는 모듈을 신규로 메모리(214)에 적재할 수 있다.For example, the server 200 may load a new module suitable for the application process function into the memory 214 in order to use the necessary functions (e.g., macros, ActiveX functions, etc.) in the non-executable file to be analyzed. there is.
서버(200)는 신규 모듈의 로드에 근거하여, 문서 행위와 매칭되는 지점에 제2 중단점을 설정한다(S4060). 만일, 신규 모듈이 로드되었다고 판단되지 않는 경우, 서버(200)는 제2 중단점을 설정하지 않는다.The server 200 sets a second breakpoint at a point matching document behavior based on the loading of the new module (S4060). If it is not determined that a new module has been loaded, the server 200 does not set a second breakpoint.
서버(200)는 제1 중단점 및/또는 제2 중단점에서 응용 프로그램 프로세스가 중단되었는지 여부를 모니터링한다(S4070). 예를 들어, 서버(200)는 중단점에서 응용 프로그램 프로세스가 중단되어 프로세스 제어권이 디버거로 넘어갔는지를 확인할 수 있다. 제어권을 넘겨받은 디버거는 어떤 중단점에서 중단되었는지를 확인할 수 있다.The server 200 monitors whether the application process is stopped at the first breakpoint and/or the second breakpoint (S4070). For example, the server 200 may check whether the application process is stopped at the breakpoint and process control is transferred to the debugger. The debugger that has taken over control can check at what breakpoint it stopped.
서버(200)는 모니터링 결과에 근거하여, 제1 중단점 및/또는 제2 중단점과 매칭되는 문서 행위 정보를 생성한다(S4080). 예를 들어, 서버(200)는 중단점의 주소값을 확인할 수 있다. 이후, 서버(200)는 해당 문서 행위 및 해당 문서 행위가 매칭되는 지점에 관한 정보에 근거하여, 중단점의 주소값과 매칭된 문서 행위에 대한 정보를 생성하고 이를 탐지 결과로 저장할 수 있다.The server 200 generates document behavior information matching the first breakpoint and/or the second breakpoint based on the monitoring results (S4080). For example, the server 200 can check the address value of the breakpoint. Thereafter, the server 200 may generate information about the document action matched with the address value of the breakpoint based on the information about the corresponding document action and the point at which the corresponding document action matches, and store this information as a detection result.
다음의 표 1은 저장되는 중단점의 주소값과 매칭된 문서 행위의 예시이다.Table 1 below is an example of document behavior matched with the address value of the stored breakpoint.
중단점 주소breakpoint address 문서 행위document act
0x123456780x12345678 문서에서 ActiveX 실행Run ActiveX in document
이외에도, 서버(200)는 문서 행위를 획득하기 위해 추가 액션을 수행할 수도 있다. S4080 단계 이후, 서버(200)는 분석 대상 비실행 파일의 열람이 종료되었는지를 판단한다(S4090). 예를 들어, 서버(200)는 기설정된 시간이 지났거나 메시지박스(Alert), 중단점을 일정시간 거치지 않았을 경우 등의 방식으로 분석 대상 비실행 파일의 열람이 종료되었는지 판단할 수 있다.만일, 열람이 종료되지 않은 경우, 서버(200)는 응용 프로그램의 프로세스가 중단점에서 중단되었는지를 지속적으로 모니터링한다. 이를 통해, 서버(200)는 문서 행위가 충분히 발현되도록 대기할 수 있다.In addition, the server 200 may perform additional actions to obtain document actions. After step S4080, the server 200 determines whether the viewing of the non-executable file to be analyzed has ended (S4090). For example, the server 200 may determine whether the viewing of the non-executable file to be analyzed has ended in a manner such as when a preset time has passed or when a message box (Alert) or a breakpoint has not been reached for a certain period of time. If the viewing is not terminated, the server 200 continuously monitors whether the application process is stopped at a breakpoint. Through this, the server 200 can wait for document actions to fully occur.
이후, 서버(200)는 저장된 문서 행위 정보를 단말로 전달할 수 있다. 이를 위해, 단말은 서버(200)와 통신할 수 있고, 서버의 동작을 제어할 수 있는 관리 응용 프로그램을 포함할 수 있다. 단말은 관리 응용 프로그램을 통해, 사용자에게 문서 행위 정보를 제공할 수 있다.Thereafter, the server 200 may transmit the stored document behavior information to the terminal. To this end, the terminal can communicate with the server 200 and may include a management application that can control the operation of the server. The terminal can provide document behavior information to the user through a management application.
기존의 APT 솔루션은 문서 행위 발현 후, 샌드박스 변화를 기반으로 문서 행위를 추출한다. 이는 샌드박스가 문서 행위가 발현될 때까지 대기해야 하기 때문에 분석시간이 길어진다. 또한, 최종적으로 마지막 부분(예를 들어, 샌드박스 변화 후)을 확인하기 때문에 본 명세서의 분석 속도보다 느리다.Existing APT solutions extract document behavior based on sandbox changes after document behavior occurs. This increases analysis time because the sandbox has to wait for document behavior to occur. Additionally, because it checks the last part (for example, after sandbox changes), it is slower than the analysis speed in this specification.
또한, 본 명세서의 서버(200)는 샌드박스의 변화 전 단계에서 응용 프로그램 프로세스가 실행되는 시점부터 분석을 시작할 수 있다.Additionally, the server 200 of the present specification may start analysis from the time the application process is executed in the stage before the sandbox is changed.
또한, 어셈블리 레벨(예를 들어, CPU 명령어 처리 단계)부터 문서 행위의 변화를 확인하기 때문에 기존 APT 솔루션보다 분석 속도(행위 추출)가 빠르다.In addition, because changes in document behavior are confirmed from the assembly level (for example, CPU instruction processing stage), the analysis speed (behavior extraction) is faster than existing APT solutions.
또한, 기존 APT 솔루션은 문서 행위가 발현할 때까지 대기하므로, 종료 시점을 알기 어렵다. 하지만 본 명세서에서 서버는 문서 행위의 종료 시점을 대략적으로 판단할 수 있으므로, 빠르게 분석이 가능하다.Additionally, existing APT solutions wait until document activity occurs, making it difficult to know the end point. However, in this specification, the server can roughly determine the end point of document activity, so quick analysis is possible.
도 6은 본 개시의 실시예에 적용될 수 있는 비실행 파일 차단 방법을 예시한 순서도이다. Figure 6 is a flowchart illustrating a method for blocking non-executable files that can be applied to an embodiment of the present disclosure.
서버(200)의 리버싱 엔진은 입력된 비실행 파일에 대한 리버싱 분석을 수행하여 취약점 및/또는 악성 액티브 콘텐츠에 대한 탐지 결과를 저장한다(S6100). 탐지 결과는 결과 판독부(220)로 제공된다. 상기 S6100 단계에 대한 보다 구체적인 설명은 도 7 내지 도 9를 참조하여 후술하기로 한다. The reversing engine of the server 200 performs a reversing analysis on the input non-executable file and stores the detection results for vulnerabilities and/or malicious active content (S6100). The detection result is provided to the result reading unit 220. A more detailed description of step S6100 will be described later with reference to FIGS. 7 to 9.
서버(200)의 CDR 엔진은 입력된 비실행 파일 내의 콘텐츠에 대하여 무해화를 수행하여 무해화 결과를 저장한다(S6200). 이때, S6200 단계가 반드시 S6100 단계 이후에 실행되어야 하는 것은 아니며, S6200 단계와 S6100 단계는 동시에 수행될 수도 있다. 무해화 결과는 결과 판독부(220)로 제공된다. 상기 S6200 단계에 대한 보다 구체적인 설명은 도 10 내지 도 12를 참조하여 후술하기로 한다. The CDR engine of the server 200 performs detoxification on the content in the input non-executable file and stores the detoxification result (S6200). At this time, step S6200 does not necessarily have to be executed after step S6100, and steps S6200 and S6100 may be performed simultaneously. The detoxification result is provided to the result reading unit 220. A more detailed description of step S6200 will be described later with reference to FIGS. 10 to 12.
서버(200)의 결과 판독부(220)는 리버싱 엔진으로부터 제공받은 탐지 결과 및 CDR 엔진으로부터 제공받은 무해화 결과에 기초하여, 무해화 파일에 대한 최종적인 판독 결과를 생성한다(S6300). 구체적으로, 판독 결과는 입력된 비실행 파일의 종류, 리버싱 엔진에 의해 탐지된 내용(예: 취약점, 매크로, 하이퍼링크, 자바스크립트), 탐지된 내용이 CDR 엔진에 의해 무해화 가능한지의 여부, 탐지된 내용이 CDR 엔진에 의해 무해화되었는지의 여부, 무해화 파일이 안전한지의 여부 중 하나 이상을 포함할 수 있다. 예시된 정보들 중에서 판독 결과에 포함시킬 정보의 종류 및/또는 개수는 사용자에 의해 변경 가능하도록 구현될 수 있다. 또한, 생성된 판독 결과는 사용자의 단말로 제공될 수 있으며, 단말의 출력부를 통해 음성 신호 및/또는 영상 신호의 형태로 출력될 수 있다. The result reading unit 220 of the server 200 generates a final reading result for the detoxified file based on the detection result provided from the reversing engine and the detoxification result provided from the CDR engine (S6300). Specifically, the reading results include the type of non-executable file entered, the content detected by the reversing engine (e.g. vulnerabilities, macros, hyperlinks, JavaScript), whether the detected content can be rendered harmless by the CDR engine, It may include one or more of whether the detected content has been detoxified by the CDR engine and whether the detoxified file is safe. Among the exemplified information, the type and/or number of information to be included in the reading result may be implemented to be changeable by the user. Additionally, the generated reading result may be provided to the user's terminal and may be output in the form of an audio signal and/or a video signal through an output unit of the terminal.
도 7은 도 6의 탐지 결과 저장 단계(S6100)를 구체적으로 도시한 순서도이다. FIG. 7 is a flowchart specifically illustrating the detection result storage step (S6100) of FIG. 6.
리버싱 엔진은 입력된 비실행 파일을 대상으로 리버싱 분석을 수행한다(S6110). 상기 S6110 단계는 도 5에 도시된 문서 행위 판단 방법인 것으로 이해될 수 있다. The reversing engine performs reversing analysis on the input non-executable file (S6110). Step S6110 may be understood as the document behavior determination method shown in FIG. 5.
이후, 리버싱 엔진은 리버싱 분석에 의해 탐지된 결과가 있는지를 판단한다(S6120). 예를 들면, 비실행 파일에서 탐지된 취약점이나 악성 액티브 콘텐츠가 있는지를 판단한다. Afterwards, the reversing engine determines whether there are results detected by the reversing analysis (S6120). For example, it determines whether there are vulnerabilities or malicious active content detected in non-executable files.
S6120 단계의 판단 결과, 탐지 결과가 존재한다면, 해당 탐지 결과가 서버(200)의 CDR 엔진에서 무해화 가능한 것인지를 판단한다(S6130). 상기 판단은 CDR 엔진의 종류에 근거하여 판단될 수 있다. 왜냐하면 CDR 엔진의 종류에 따라 무해화 커버리지가 달라지기 때문이다. 여기서, 무해화 커버리지란 무해화 가능한 파일 및 무해화 가능한 콘텐츠 중 하나 이상을 포함하는 개념으로 이해될 수 있다. 구체적으로, 기존 CDR 엔진을 예로 들면, MS Office 2003 버전 및 MS Office 2007 버전 이상의 경우, 자바스크립트(JavaScript)라는 콘텐츠에 대해서는 무해화가 불가능하지만, 매크로(Macro), 플래시(Flash), 객체연결삽입, 액티브 엑스(Active X), 임베디드 도큐먼트(Embedded Document), 하이퍼링크(Hyperlink), 요소(Attachments) 등의 콘텐츠들에 대해서는 무해화가 가능하다. 그리고 아래아한글의 경우, 매크로와 하이퍼링크에 대해서는 무해화가 불가능하지만, 나머지 콘텐츠들에 대해서는 무해화가 가능하다. 그리고 어도비 아크로뱃의 경우, 매크로, OLE 객체, 액티브 엑스에 대해서는 무해화가 불가능하지만, 나머지 콘텐츠들에 대해서는 무해화가 가능하다. 상술한 바와 같은 CDR 엔진의 무해화 커버리지에 대한 정보는 서버(200)에 미리 저장될 수 있으며, 저장된 정보를 기초로 S6130 단계의 판단이 이루어질 수 있다. As a result of the determination in step S6120, if a detection result exists, the CDR engine of the server 200 determines whether the detection result can be rendered harmless (S6130). The determination may be made based on the type of CDR engine. This is because detoxification coverage varies depending on the type of CDR engine. Here, harmless coverage can be understood as a concept that includes one or more of a harmless file and a harmless content. Specifically, taking the existing CDR engine as an example, in the case of MS Office 2003 version and MS Office 2007 version or later, detoxification is not possible for content called JavaScript, but macro, Flash, object connection insertion, It is possible to detoxify content such as Active X, Embedded Document, Hyperlink, and Attachments. And in the case of Below Ah Hangul, detoxification is not possible for macros and hyperlinks, but detoxification is possible for the remaining contents. And in the case of Adobe Acrobat, detoxification is not possible for macros, OLE objects, and ActiveX, but detoxification is possible for the remaining contents. Information on the detoxification coverage of the CDR engine as described above may be stored in advance in the server 200, and the determination in step S6130 may be made based on the stored information.
S6130 단계의 판단 결과, 해당 탐지 결과가 CDR 엔진에서 무해화 불가능한 것이라면, 해당 탐지 결과에 무해화 불가능 레이블을 기록한다(S6140). As a result of the determination in step S6130, if the corresponding detection result cannot be detoxified in the CDR engine, a label that cannot be detoxified is recorded on the corresponding detection result (S6140).
S6130 단계의 판단 결과, 해당 탐지 결과가 CDR 엔진에서 무해화 가능한 것이라면, 해당 탐지 결과에 무해화 가능 레이블을 기록한다(S6150).As a result of the determination in step S6130, if the corresponding detection result can be detoxified in the CDR engine, a detoxification possible label is recorded in the corresponding detection result (S6150).
레이블 기록이 완료되면, 탐지 결과를 저장한다(S6160). 탐지 결과는 예를 들어, XML 형식을 가질 수 있으나, 예시된 형식으로 한정되는 것은 아니다. 여기서, 도 8 및 도 9를 참조하여 리버싱 엔진에 의한 탐지 결과에 대해서 설명하기로 한다. When label recording is completed, the detection result is stored (S6160). The detection result may have an XML format, for example, but is not limited to the format shown. Here, the detection results by the reversing engine will be described with reference to FIGS. 8 and 9.
도 8은 리버싱 엔진에 의한 탐지 결과의 일 예를 도시한 도면이다. Figure 8 is a diagram showing an example of a detection result by a reversing engine.
도 8을 참조하면, 탐지 결과는 XML 형식인 것을 알 수 있다. 그리고 "Name" 항목에 "CVE-2017-11826.RE.300"이 기록되어 있고, "isPossibelCDR" 항목에 'false'라는 값이 기록되어 있는 것을 알 수 있다. 이는, 리버싱 분석 실행 중 디버깅 엔진에서 본문 취약점이 탐지되었으며, 탐지된 본문 취약점은 CDR 엔진에서 무해화 불가능하다는 것을 의미한다. Referring to Figure 8, it can be seen that the detection result is in XML format. You can see that "CVE-2017-11826.RE.300" is recorded in the "Name" item, and the value 'false' is recorded in the "isPossibelCDR" item. This means that a text vulnerability was detected in the debugging engine while running the reversing analysis, and the detected text vulnerability cannot be detoxified in the CDR engine.
도 9는 리버싱 엔진에 의한 탐지 결과의 다른 예를 도시한 도면이다. Figure 9 is a diagram showing another example of a detection result by a reversing engine.
도 9를 참조하면, 취약점 탐지 결과는 XML 형식인 것을 알 수 있다. 그리고 "exploitName" 항목에 "_DownloaderMacro"가 기록되어 있고, "isPossibleCDR" 항목에 'ture'라는 값이 기록되어 있는 것을 알 수 있다. 이는, 리버싱 분석 실행 중 디버깅 엔진에서 악성 매크로를 탐지하였으며, 탐지된 악성 매크로는 CDR 엔진에서 무해화 가능하다는 것을 의미한다. Referring to Figure 9, it can be seen that the vulnerability detection result is in XML format. And you can see that "_DownloaderMacro" is recorded in the "exploitName" item, and the value 'ture' is recorded in the "isPossibleCDR" item. This means that a malicious macro was detected in the debugging engine while running the reversing analysis, and the detected malicious macro can be rendered harmless in the CDR engine.
도 10은 도 6의 무해화 결과 저장 단계(S6200)를 구체적으로 도시한 순서도이다. FIG. 10 is a flow chart specifically illustrating the detoxification result storage step (S6200) of FIG. 6.
CDR 엔진은 입력된 비실행 파일 내에 무해화 대상 콘텐츠가 존재하는지를 판단한다(S6210). 무해화 대상 콘텐츠는 매크로, 하이퍼링크, 객체연결삽입 등의 액티브 콘텐츠일 수 있다. The CDR engine determines whether content subject to detoxification exists in the input non-executable file (S6210). Content subject to detoxification may be active content such as macros, hyperlinks, and object connection insertions.
S6210 단계의 판단 결과, 비실행 파일 내에 무해화 대상 콘텐츠가 존재한다면, 무해화 대상 콘텐츠에 대하여 무해화를 수행한다(S6220). 콘텐츠 무해화는 공지된 기술이므로, 이에 대한 구체적인 설명은 생략하기로 한다. As a result of the determination in step S6210, if content to be detoxified exists in the non-executable file, detoxification is performed on the content to be detoxified (S6220). Since content detoxification is a known technology, detailed description of it will be omitted.
이후, CDR 엔진은 콘텐츠 무해화가 성공하였는지를 판단한다(S6230). Afterwards, the CDR engine determines whether content detoxification was successful (S6230).
S6230 단계의 판단 결과, 콘텐츠 무해화에 실패하였다면, 무해화에 실패하였음을 무해화 결과에 기록한다(S6240). If, as a result of the determination in step S6230, the content has failed to be rendered harmless, the failure to render the content harmless is recorded in the detoxification result (S6240).
S6230 단계의 판단 결과, 콘텐츠 무해화에 성공하였다면, 무해화에 성공하였음을 무해화 결과에 기록한다(S6250). If, as a result of the determination in step S6230, the content has been successfully detoxified, the successful detoxification is recorded in the detoxification results (S6250).
한편, S6210 단계의 판단 결과, 비실행 파일 내에 무해화 대상 콘텐츠가 존재하지 않는다면, 이러한 사실을 무해화 결과에 기록한다(S6260). Meanwhile, as a result of the determination in step S6210, if there is no content subject to detoxification in the non-executable file, this fact is recorded in the detoxification result (S6260).
무해화 결과 기록이 완료되면, 무해화 결과를 저장한다(S6270). 여기서 도 11 및 도 12를 참조하여 CDR 엔진에 의한 무해화 결과에 대해서 설명하기로 한다. When the recording of the detoxification results is completed, the detoxification results are stored (S6270). Here, the detoxification results by the CDR engine will be described with reference to FIGS. 11 and 12.
도 11은 CDR 엔진에 의한 무해화 결과의 일 예를 도시한 도면이다. Figure 11 is a diagram showing an example of the detoxification result by the CDR engine.
도 11을 참조하면, 'result' 항목에 'true'라는 값이 기록되어 있는데, 이것은 비실행 파일이 무해함을 의미한다. 그리고 'status' 항목에는 'SUCCESS'라는 값이 기록되어 있는데, 이것은 비실행 파일 내의 무해화 대상 콘텐츠에 대하여 무해화가 성공하였음을 의미한다. 그리고 'message' 항목에는 "CDR Process Success"가 기록되어 있는데, 이것은 CDR 엔진에서 무해화가 성공적으로 수행되었음을 의미한다. Referring to Figure 11, the value 'true' is recorded in the 'result' item, which means that the non-executable file is harmless. Also, the value 'SUCCESS' is recorded in the 'status' item, which means that the detoxification target content in the non-executable file was successfully detoxified. And in the 'message' field, "CDR Process Success" is recorded, which means that detoxification was successfully performed in the CDR engine.
즉, 비실행 파일 내에 무해화 대상 콘텐츠가 존재하고, 상기 무해화 대상 콘텐츠에 대하여 무해화가 성공한 경우, 'status' 항목에는 'SUCCESS'라는 값이 기록된다. 그리고 무해화 대상 콘텐츠에 대하여 무해화가 성공하였으므로, 비실행 파일 역시 무해한 것으로 판단되어, 'result' 항목에 'true'라는 값이 기록된다. That is, if there is content to be detoxified in a non-executable file, and detoxification is successful for the content to be detoxified, the value 'SUCCESS' is recorded in the 'status' item. And since the detoxification target content was successfully detoxified, the non-executable file is also judged to be harmless, and the value 'true' is recorded in the 'result' item.
만약, 비실행 파일 내에 무해화 대상 콘텐츠가 존재하지 않는 경우라면, 'status' 항목에는 'NO DETECTION'이라는 값이 기록된다. 그리고 비실행 파일 역시 무해한 것으로 판단되어, 'result' 항목에 'true'라는 값이 기록된다. If there is no content to be detoxified in the non-executable file, the value 'NO DETECTION' is recorded in the 'status' item. And the non-executable file is also judged to be harmless, so the value 'true' is recorded in the 'result' field.
무해화 결과는, 'result', 'status', 'message' 항목 외에도 'fileType', 'inputFileName', 'inputFullPath', 'outputFileName', 'outputFullPath', 'elapsedTime', 'cdrEntities' 항목이 더 포함될 수 있다. 'fileType' 항목은 비실행 파일의 종류가 기록되는 부분이다. 'inputFileName' 항목 및 'inputFullPath' 항목은 각각 비실행 파일의 이름 및 비실행 파일의 저장경로가 기록되는 부분이다. 'outputFileName' 항목 및 'outputFullPath' 항목은 각각 무해화 파일의 이름 및 무해화 파일의 저장경로가 기록되는 부분이다. 'elapsedTime' 항목은 무해화에 걸린 시간이 기록되는 부분이다. 'cdrEntities' 항목은 무해화 결과를 저장한 데이터의 속성이 기록되는 부분이다. 'cdrEntities' 항목에 'Array'라고 기록되어 있다는 것은 무해화 결과가 배열 형태로 저장되어 있다는 것을 의미한다. In addition to 'result', 'status', and 'message' items, the detoxification result may also include 'fileType', 'inputFileName', 'inputFullPath', 'outputFileName', 'outputFullPath', 'elapsedTime', and 'cdrEntities' items. there is. The 'fileType' item is where the type of non-executable file is recorded. The 'inputFileName' and 'inputFullPath' items are where the name of the non-executable file and the storage path of the non-executable file are recorded, respectively. The 'outputFileName' and 'outputFullPath' items are where the name of the detoxified file and the storage path of the detoxified file are recorded, respectively. The 'elapsedTime' item is where the time taken for detoxification is recorded. The 'cdrEntities' item is where the properties of the data storing the detoxification results are recorded. The fact that 'Array' is written in the 'cdrEntities' field means that the detoxification results are stored in array form.
도 12는 CDR 엔진에 의한 무해화 결과의 다른 예를 도시한 도면이다. Figure 12 is a diagram showing another example of the detoxification result by the CDR engine.
도 12를 참조하면, 'result' 항목에 'false'라는 값이 기록되어 있는데, 이것은 비실행 파일이 무해하지 않음을 의미한다. 그리고 'status' 항목에는 "FAILURE"라는 값이 기록되어 있는데, 이것은 비실행 파일 내의 무해화 대상 콘텐츠에 대하여 무해화가 실패하였음을 의미한다. 그리고 'message' 항목에는 "I/O Error Occurs"가 기록되어 있는데, 이것은 파일에 대한 입출력 에러로 인해 무해화 실패 오류가 발생될 수 있다는 것을 의미한다. Referring to Figure 12, the value 'false' is recorded in the 'result' item, which means that the non-executable file is not harmless. And the value "FAILURE" is recorded in the 'status' item, which means that detoxification failed for the content to be detoxified in the non-executable file. And in the 'message' field, "I/O Error Occurs" is recorded, which means that a detoxification failure error may occur due to an input/output error for the file.
즉, 비실행 파일 내에 무해화 대상 콘텐츠가 존재하고, 상기 무해화 대상 콘텐츠에 대하여 무해화가 실패한 경우, 'status' 항목에는 'FAILURE'라는 값이 기록된다. 그리고 무해화 대상 콘텐츠에 대하여 무해화가 실패하였으므로, 비실행 파일 역시 무해하지 않은 것으로 판단되어, 'result' 항목에 'false'라는 값이 기록된다. That is, if there is content to be detoxified in a non-executable file, and detoxification fails for the content to be detoxified, the value 'FAILURE' is recorded in the 'status' item. And since detoxification failed for the content subject to detoxification, the non-executable file is also judged to be non-hazardous, and the value 'false' is recorded in the 'result' field.
도 13은 도 6의 판독 결과 생성 단계(S6300)를 구체적으로 도시한 순서도이다. FIG. 13 is a flowchart specifically illustrating the read result generation step (S6300) of FIG. 6.
결과 판독부(220)는 리버싱 엔진으로부터 제공받은 탐지 결과를 확인하여(S6310), 무해화 불가능 레이블을 가진 대상(예를 들어, 취약점, 악성 액티브 콘텐츠)이 있는지를 판단한다(S6320). The result reading unit 220 checks the detection result provided from the reversing engine (S6310) and determines whether there is a target (eg, vulnerability, malicious active content) with a label that cannot be detoxified (S6320).
S6320 단계의 판단 결과, 무해화 불가능 레이블을 가진 대상이 없다면, 결과 판독부(220)는 무해화 가능 레이블을 가진 대상이 있는 것으로 판단한다. 그리고 CDR 엔진으로부터 제공받은 무해화 결과를 확인하여(S6330), 무해화 가능 레이블을 가진 대상의 무해화에 성공하였는지를 판단한다(S6340). As a result of the determination in step S6320, if there is no object with a non-harmful label, the result reading unit 220 determines that there is an object with a label that can be harmless. Then, the detoxification result provided from the CDR engine is checked (S6330) to determine whether the detoxification of the object with the detoxification possible label was successful (S6340).
S6340 단계의 판단 결과, 무해화 가능 레이블을 가진 대상에 대하여 무해화가 성공하였다면, 결과 판독부(220)는 무해화 파일이 안전하다는 판독 결과를 생성한다(S6350). As a result of the determination in step S6340, if detoxification is successful for the object with the detoxification possible label, the result reading unit 220 generates a reading result indicating that the detoxified file is safe (S6350).
S6340 단계의 판단 결과, 무해화 가능 레이블을 가진 콘텐츠에 대하여 무해화가 실패하였다면, 결과 판독부(220)는 무해화 파일이 위험하다는 판독 결과를 생성한다(S6380). As a result of the determination in step S6340, if detoxification has failed for the content with the label capable of detoxification, the result reading unit 220 generates a reading result indicating that the detoxified file is dangerous (S6380).
이후, 결과 판독부(220)는 판독 결과에 기초하여 무해화 파일을 허용하거나 차단할 수 있다. 구체적으로, 무해화 파일이 안전한 것으로 판독된 경우에는, 해당 무해화 파일을 허용한다. 반대로 무해화 파일이 위험한 것으로 판독된 경우에는, 해당 무해화 파일을 차단한다. Thereafter, the result reading unit 220 may allow or block the deactivated file based on the reading result. Specifically, if the detoxified file is read as safe, the detoxified file is allowed. Conversely, if the detoxified file is read as dangerous, the detoxified file is blocked.
이외에도, 결과 판독부(220)는 무해화 파일에 대한 판독 결과를 사용자의 단말로 제공하여, 출력부를 통해 출력되도록 할 수 있다. In addition, the result reading unit 220 can provide the reading result of the detoxified file to the user's terminal and output it through the output unit.
도 14는 단말을 통해 표시되는 판독 결과 화면을 예시한 도면이다. Figure 14 is a diagram illustrating a reading result screen displayed through a terminal.
도 14를 참조하면, 판독 결과 화면은 입력된 비실행 파일의 종류, 리버싱 엔진의 탐지 결과, CDR 엔진의 무해화 결과, 무해화 파일에 대한 최종 판독 결과를 포함할 수 있다. Referring to FIG. 14, the read result screen may include the type of the input non-executable file, the detection result of the reversing engine, the detoxification result of the CDR engine, and the final read result of the detoxified file.
리버싱 엔진의 탐지 결과에는 탐지된 내용, 탐지된 내용의 악성 여부에 대한 정보가 포함될 수 있다. 탐지된 내용의 예로는 객체 취약점, 본문 취약점, 매크로, 하이퍼링크, 객체연결삽입, 자바스크립트 등을 예로 들 수 있다. The detection results of the reversing engine may include information about the detected content and whether the detected content is malicious. Examples of detected content include object vulnerabilities, text vulnerabilities, macros, hyperlinks, object link injection, and JavaScript.
CDR 엔진의 무해화 결과에는 무해화 대상, 무해화 대상에 대한 무해화 성공 여부에 대한 정보가 포함될 수 있다. The detoxification results of the CDR engine may include information about the detoxification target and whether detoxification was successful for the detoxification target.
도 14를 참조하면, 객체 취약점을 포함하는 워드 파일이 비실행 파일로 입력된 경우, 리버싱 엔진에서 객체 취약점이 탐지되었음을 알 수 있다. 그리고 탐지된 객체 취약점은 악성인 것으로 분석되었으며, CDR 엔진에 의해 무해화 가능함을 의미하는 무해화 가능 레이블이 부여되었음을 알 수 있다. 또한 해당 객체 취약점은 실제로 CDR 엔진에서 객체 무해화에 성공하였음을 알 수 있다. 이러한 리버싱 엔진의 탐지 결과와 CDR 엔진의 무해화 결과를 종합적으로 판단한 결과, CDR 엔진에서 출력된 무해화 파일은 안전한 것으로 판독되었음을 알 수 있다. Referring to FIG. 14, when a word file containing an object vulnerability is input as a non-executable file, it can be seen that the object vulnerability is detected by the reversing engine. Additionally, the detected object vulnerability was analyzed as malicious, and it can be seen that the CDR engine gave it a detoxifiable label, meaning that it could be detoxified. In addition, it can be seen that the object vulnerability actually succeeded in detoxifying the object in the CDR engine. As a result of comprehensively judging the detection results of the reversing engine and the detoxification results of the CDR engine, it can be seen that the detoxification file output from the CDR engine was read as safe.
자바스크립트를 포함하는 PDF 파일이 비실행 파일로 입력된 경우, 리버싱 엔진에서 자바스크립트가 탐지되었음을 알 수 있다. 그리고 탐지된 자바스크립트는 악성이 아닌 정상인 것으로 분석되었으며, CDR 엔진에 의해 무해화 가능함을 의미하는 무해화 가능 레이블이 부여되었음을 알 수 있다. 이때, 탐지된 자바스크립트가 정상이라는 분석 결과는 리버싱 엔진에서 자바스크립트를 이용한 악성 행위를 탐지하기 어렵기 때문에 얻어진 결과일 수 있다. 따라서, 탐지된 자바스크립트에 무해화 가능 레이블을 부여하여 탐지 결과를 저장하고, 저장된 탐지 내용과 CDR 엔진의 무해화 결과를 비교하면, CDR 엔진에서 출력된 무해화 파일에 대해 좀더 정확한 판독 결과를 얻을 수 있다. 실제로, CDR 엔진에서 자바스크립트 무해화에 성공하였으므로, 리버싱 엔진의 탐지 결과와 CDR 엔진의 무해화 결과를 종합적으로 판단한 결과, CDR 엔진에서 출력된 무해화 파일은 안전한 것으로 판독되었음을 알 수 있다. If a PDF file containing JavaScript is entered as a non-executable file, you can see that JavaScript has been detected in the reversing engine. Additionally, the detected JavaScript was analyzed as normal, not malicious, and was given a detoxifiable label, meaning that it could be detoxified, by the CDR engine. At this time, the analysis result that the detected JavaScript is normal may be a result obtained because it is difficult to detect malicious actions using JavaScript in the reversing engine. Therefore, by assigning a decommunicable label to the detected JavaScript, storing the detection results, and comparing the stored detection contents with the decommissioning results of the CDR engine, more accurate reading results can be obtained for the decommunicated files output from the CDR engine. You can. In fact, since the CDR engine succeeded in detoxifying JavaScript, as a result of comprehensively judging the detection results of the reversing engine and the detoxification results of the CDR engine, it can be seen that the detoxified file output from the CDR engine was read as safe.
매크로 및 본문 취약점을 포함하는 엑셀 파일이 비실행 파일로 입력된 경우, 리버싱 엔진에서 매크로 및 본문 취약점이 탐지되었음을 알 수 있다. 이때, 탐지된 매크로는 악성이 아닌 정상인 것으로 분석되었으며, 무해화 가능 레이블이 부여되었음을 알 수 있다. 여기서, 탐지된 매크로가 정상이라는 분석 결과는 리버싱 엔진에서 매크로를 이용한 악성 행위를 탐지하기 어렵기 때문에 얻어진 결과일 수 있다. 따라서, 탐지된 매크로에 무해화 가능 레이블을 부여하여 탐지 결과를 저장하고, 저장된 탐지 내용과 CDR 엔진의 무해화 결과를 비교하면, CDR 엔진에서 출력된 무해화 파일에 대해 좀 더 정확한 판독 결과를 얻을 수 있다. 한편, 비실행 파일에서 탐지된 본문 취약점은 악성인 것으로 분석되었으며, 무해화 불가능 레이블이 부여되었음을 알 수 있다. 탐지된 본문 취약점에 대해서는 CDR 엔진에서 무해화가 불가능하므로, 탐지된 매크로에 대해서 무해화가 성공하더라도, CDR 엔진에서 출력된 무해화 파일은 위험한 것으로 판독되었음을 알 수 있다. If an Excel file containing macro and text vulnerabilities is entered as a non-executable file, you can see that the macro and text vulnerabilities have been detected by the reversing engine. At this time, it can be seen that the detected macro was analyzed as normal, not malicious, and was given a label capable of being rendered harmless. Here, the analysis result that the detected macro is normal may be a result obtained because it is difficult to detect malicious actions using macros in the reversing engine. Therefore, by assigning a decommunicable label to the detected macro, saving the detection results, and comparing the stored detection contents with the decommissioning results of the CDR engine, more accurate reading results can be obtained for the decommunicated file output from the CDR engine. You can. Meanwhile, it can be seen that the body vulnerability detected in the non-executable file was analyzed as malicious and was given a label that cannot be detoxified. Since detoxification is not possible in the CDR engine for detected text vulnerabilities, it can be seen that even if detoxification is successful for the detected macro, the detoxification file output from the CDR engine is read as dangerous.
하이퍼링크를 포함하는 워드 파일이 비실행 파일로 입력된 경우, 리버싱 엔진에서 하이퍼링크가 탐지되었음을 알 수 있다. 그리고 탐지된 하이퍼링크는 악성이 아닌 정상인 것으로 분석되었으며, 무해화 가능 레이블이 부여되었음을 알 수 있다. 여기서, 탐지된 하이퍼링크가 정상이라는 분석 결과는 리버싱 엔진에서 하이퍼링크를 이용한 악성 행위를 탐지하기 어렵기 때문에 얻어진 결과일 수 있다. 따라서 탐지된 하이퍼링크에 무해화 가능 레이블을 부여하여 탐지 결과를 저장하고, 저장된 탐지 내용과 CDR 엔진의 무해화 결과를 비교하면, CDR 엔진에서 출력된 무해화 파일에 대해 좀 더 정확한 판독 결과를 얻을 수 있다. 실제로, CDR 엔진에서 하이퍼링크 무해화에 성공하였으므로, CDR 엔진에서 출력된 무해화 파일은 안전한 것으로 판독되었음을 알 수 있다. If a word file containing a hyperlink is entered as a non-executable file, you can see that the hyperlink has been detected in the reversing engine. It can be seen that the detected hyperlink was analyzed as normal, not malicious, and was given a label that could be made harmless. Here, the analysis result that the detected hyperlink is normal may be a result obtained because it is difficult to detect malicious actions using hyperlinks in the reversing engine. Therefore, by assigning a decommunicable label to the detected hyperlink, saving the detection result, and comparing the saved detection content with the decommissioning result of the CDR engine, more accurate reading results can be obtained for the decommunicated file output from the CDR engine. You can. In fact, since hyperlink detoxification was successful in the CDR engine, it can be seen that the detoxified file output from the CDR engine was read as safe.
매크로를 포함하는 워드 파일이 비실행 파일로 입력된 경우, 리버싱 엔진에서 매크로가 탐지되었음을 알 수 있다. 그리고 탐지된 매크로는 악성인 것으로 분석되었으며, 무해화 가능 레이블이 부여되었음을 알 수 있다. 그런데 탐지된 매크로에 대해서는 CDR 엔진에서 매크로 무해화에 실패하였음을 알 수 있다. 이러한 리버싱 엔진의 탐지 결과와 CDR 엔진의 무해화 결과를 종합적으로 판단한 결과, CDR 엔진에서 출력된 무해화 파일은 위험한 것으로 판독되었음을 알 수 있다. If a word file containing a macro is entered as a non-executable file, you can see that the macro has been detected in the reversing engine. It can be seen that the detected macro was analyzed as malicious and was given a label that could be made harmless. However, it can be seen that the CDR engine failed to detoxify the detected macro. As a result of comprehensively judging the detection results of the reversing engine and the detoxification results of the CDR engine, it can be seen that the detoxification file output from the CDR engine was read as dangerous.
도 14에서, 안전하다고 판단된 무해화 파일은 허용되고, 위험하다고 판단된 무해화 파일은 차단된다. In Figure 14, harmless files judged to be safe are allowed, and harmless files judged to be dangerous are blocked.
상술한 바와 같은 비실행 파일 차단 방법에 따르면, CDR 엔진에서 생길 수 있는 보안 공백을 해결할 수 있다. According to the method of blocking non-executable files as described above, security gaps that may occur in the CDR engine can be resolved.
이상, 본 개시의 실시예에 따른 비실행 파일 차단 방법을 설명하였다. 상술한 바와 같은 비실행 파일 차단 방법에 따르면, 리버싱 엔진과 CDR 엔진을 모두 사용함으로써, 리버싱 엔진만을 사용하는 경우에 발생할 수 있는 보안 공백 및 CDR 엔진만을 사용하는 경우에 발생할 수 있는 보안 공백을 보완할 수 있다. Above, a method for blocking non-executable files according to an embodiment of the present disclosure has been described. According to the non-executable file blocking method described above, by using both the reversing engine and the CDR engine, the security gap that may occur when only the reversing engine is used and the security gap that may occur when only the CDR engine is used are eliminated. It can be supplemented.
도 15는 본 명세서가 적용될 수 있는 망분리 시스템의 예시이다.Figure 15 is an example of a network separation system to which this specification can be applied.
도 15를 참조하면, 망분리 시스템은 내부 (업무)망 및 외부 (인터넷)망으로 분리될 수 있고, 분리된 망간의 자료전송은 망간 자료전송 시스템을 통해 수행될 수 있다. 대한민국 정부는 공공, 금융, 일반기업을 대상으로 망분리가이드를 규정하고 있으며, 2012년부터는 규정이 강화되면서 권고가 아닌 의무사항으로 강화하고 있다.Referring to FIG. 15, the network separation system can be divided into an internal (business) network and an external (Internet) network, and data transmission between the separated networks can be performed through an inter-network data transmission system. The government of the Republic of Korea is stipulating network separation guidelines for public, financial, and general companies, and since 2012, the regulations have been strengthened and made mandatory rather than recommended.
망분리 환경이 적용되기 전에는 한 대의 PC에서 업무시스템과 인터넷을 같이 사용할 수 있었지만, 망분리가 되고 나면 업무PC와 인터넷PC로 PC 기능을 구분하여 사용해야 한다. 따라서, 내부 망에서는 인터넷이 차단됨으로써, 외부로부터 시도되는 해킹공격과 내부자에 의한 자료유출 사고를 한 번에 방어할 수 있다.Before the network separation environment was applied, it was possible to use the work system and the Internet together on one PC, but after network separation, the PC functions must be used separately as a work PC and an Internet PC. Therefore, by blocking the Internet in the internal network, hacking attacks attempted from outside and data leakage accidents caused by insiders can be prevented at once.
망분리 환경에서 업무 PC는 인터넷을 사용할 수 없기 때문에 외부 업체에 자료를 보내기가 힘들며, 반대로 외부업체나 인터넷에서 다운받은 문서 등을 업무 PC로 가져오기가 힘들다. 이와 같은 불편한 업무를 해소하기 위해, 업무PC와 인터넷PC간 자료 전송을 할 수 있는 솔루션이 망연계솔루션이며, 망간 자료전송 시스템은 망연계솔루션을 포함할 수 있다.In a network separation environment, work PCs cannot use the Internet, so it is difficult to send data to external companies, and conversely, it is difficult to import documents downloaded from external companies or the Internet to the work PC. In order to solve such inconvenient work, the solution that can transmit data between work PCs and Internet PCs is a network connection solution, and the network data transmission system can include a network connection solution.
예를 들어, 업무용 PC의 파일은 관리자 승인 후, 망간 자료전송 시스템을 통해 인터넷 PC로 전송할 수 있고, 인터넷 PC의 파일은 관리자 승인 후, 망간 자료전송 시스템을 통해 업무 PC로 전송할 수 있다.For example, files from a work PC can be transferred to an Internet PC through the Manganese data transmission system after administrator approval, and files from an Internet PC can be transferred to a work PC through the Manganese data transmission system after administrator approval.
서버(200)는 망간 자료전송 시스템과 연결되어, 망간 자료전송 시스템을 통과하는 파일을 검사하고, 필터링할 수 있다. 예를 들어, 외부 망으로부터 망간 자료전송 시스템으로 전달된 파일에 대해, 망간 자료전송 시스템에서 서버(200)로 악성코드 검사를 요청하면, 서버(200)는 당해 파일에 대한 악성코드를 검사할 수 있다. 만일, 서버(200)가 악성코드를 발견한 경우, 서버(200)는 당해 파일을 Block 할 수 있다.The server 200 is connected to the inter-network data transmission system and can inspect and filter files passing through the inter-network data transmission system. For example, if the inter-network data transmission system requests the server 200 to scan for malicious code for a file transmitted from an external network to the inter-network data transmission system, the server 200 can check the file for malicious code. there is. If the server 200 discovers malicious code, the server 200 can block the file.
다만, 기존의 망간 자료전송 시스템과 연계된 보안 시스템에서 파일이 Block 된 경우, 내부 사용자 단말은 보안 시스템에 접근할 수 없으므로, 이를 통지 받지 못하는 문제점이 있었다.However, when a file is blocked in a security system linked to the existing inter-network data transmission system, internal user terminals cannot access the security system, so there is a problem in which they are not notified.
도 16은 본 명세서가 적용될 수 있는 서버의 일 실시예이다.Figure 16 is an embodiment of a server to which this specification can be applied.
도 16을 참조하면, 서버(200)는 망분리 환경에서 망간 자료전송 시스템과 연결되어, 망간 이동되는 대상 파일을 검사할 수 있다.Referring to FIG. 16, the server 200 is connected to an inter-network data transmission system in a network separation environment and can inspect target files being moved between networks.
서버(200)는 망간 자료전송 시스템으로부터, 대상 파일을 수신한다(S1610). 예를 들어, 망간 자료전송 시스템의 사전 정의된 디렉토리에 대상 파일은 내부 망으로 이동시키기 위해 업로드 될 수 있다. 망간 자료전송 시스템은 기정의된 정책(policy)에 따라, 대상 파일의 악성코드 검사를 위해 대상 파일을 서버(200)로 전달할 수 있다.The server 200 receives the target file from the inter-network data transmission system (S1610). For example, target files can be uploaded to a predefined directory in the inter-network data transmission system for movement to the internal network. The manganese data transmission system can deliver the target file to the server 200 for malicious code inspection of the target file according to a predefined policy.
서버(200)는 대상 파일의 악성코드를 검사한다(S1620). 예를 들어, 서버(200)는 전술한 도 5 내지 도 14의 동작을 통해, 대상 파일을 검사할 수 있다.The server 200 checks the target file for malicious code (S1620). For example, the server 200 may inspect the target file through the operations of FIGS. 5 to 14 described above.
서버(200)는 대상 파일에 악성코드가 포함되었는지 여부를 판단한다(S1630).The server 200 determines whether the target file contains malicious code (S1630).
서버(200)는 악성코드가 포함되어 있는 것에 근거하여, 대상 파일의 판독 결과에 따라, 대상 파일을 수정한다(S1640). The server 200 modifies the target file based on the read result of the target file based on whether it contains malicious code (S1640).
예를 들어, 서버(200)는 대상 파일에 대한 리버싱 분석을 수행하여, 대상 파일 내의 취약점 및 콘텐츠 중 적어도 하나를 탐지하고, 탐지 결과를 저장하고, 대상 파일 내의 콘텐츠에 대하여 무해화를 수행하고, 무해화 결과를 저장하여, 판독 결과를 생성할 수 있다.For example, the server 200 performs a reversing analysis on the target file, detects at least one of vulnerabilities and content in the target file, stores the detection result, and performs detoxification of the content in the target file. , the detoxification results can be stored and a reading result can be generated.
보다 자세하게, 판독 결과는 리버싱 엔진에 의해 탐지된 내용(예: 취약점, 매크로, 하이퍼링크, 자바스크립트), 탐지된 내용이 CDR 엔진에 의해 무해화 가능한지의 여부, 탐지된 내용이 CDR 엔진에 의해 무해화되었는지의 여부, 무해화된 대상 파일이 안전/위험한지의 여부 등을 포함할 수 있다.More specifically, the readout results include what was detected by the reversing engine (e.g. vulnerabilities, macros, hyperlinks, JavaScript), whether the detected content can be neutralized by the CDR engine, and whether the detected content can be neutralized by the CDR engine. It may include whether or not it has been made harmless, whether the target file that has been made harmless is safe/dangerous, etc.
(1) 판독 결과가 CDR 무해화 가능한 경우, 서버(200)는 대상 파일을 CDR 엔진을 통해 무해화하고, 무해화가 완료되었음을 내부 망의 사용자에게 이를 알리기 위해, 대상 파일의 파일명을 수정할 수 있다. 예를 들어, 파일명의 전단에 “CDR” 문자열을 추가할 수 있다(예를 들어, CDR_INVOICE.xlsx).(1) If the read result is that CDR detoxification is possible, the server 200 can detoxify the target file through the CDR engine and modify the file name of the target file to notify users of the internal network that detoxification has been completed. For example, you can add the string “CDR” to the front of the file name (e.g., CDR_ INVOICE.xlsx).
(2) 대상 파일의 무해화가 불가능하거나, 판독 결과가 대상 파일 “위험”인 경우, 서버(200)는 내부 사용자에게 대상 파일에 악성코드가 포함되어 있음을 명확히 알리기 위해, 대상 파일명을 수정할 수 있다. 예를 들어, 파일명의 전단에 “MALWARE” 문자열을 추가할 수 있다(예를 들어, MALWARE_INVOICE.xlsx).(2) If it is impossible to detoxify the target file or if the read result is that the target file is “dangerous,” the server 200 may modify the target file name to clearly inform internal users that the target file contains malicious code. . For example, you can add the string “MALWARE” to the front of the file name (e.g., MALWARE _INVOICE.xlsx).
(3) 대상 파일의 무해화가 불가능하거나, 판독 결과가 대상 파일 “위험”인 경우, 추가적으로 서버(200)는 대상 파일을 Block 할 수 있다. 이 경우, 서버(200)는 내부 사용자에게 대상 파일이 Block 되었음을 알리기 위해, 0KB 파일(Dummyfile)을 생성하고, 이를 대상 파일로 수정할 수 있다. 또한, 서버(200)는 더미파일로 수정된 대상 파일의 파일명 전단에 “MALWARE” 문자열을 추가할 수 있다.(3) If it is impossible to detoxify the target file or if the read result indicates that the target file is “dangerous,” the server 200 may additionally block the target file. In this case, the server 200 can create a 0KB file (Dummyfile) to notify the internal user that the target file is blocked, and modify it to be the target file. Additionally, the server 200 may add the string “MALWARE” to the front end of the file name of the target file that has been modified as a dummy file.
서버(200)는 수정된 대상 파일을 망간 자료전송 시스템으로 전달한다(S1650). 망간 자료전송 시스템은 수신한 수정된 대상 파일을 내부 사용자 단말로 전달할 수 있고, 내부 사용자 단말은 서버(200)에 접근하지 않아도, 대상 파일의 악성코드 포함여부 및 처리 경과를 손쉽게 판단할 수 있다.The server 200 transmits the modified target file to the network data transmission system (S1650). The manganese data transmission system can deliver the received modified target file to an internal user terminal, and the internal user terminal can easily determine whether the target file contains malicious code and the processing progress without having to access the server 200.
만일, 대상 파일에 악성코드가 포함되어 있지 않다면, 서버(200)는 대상 파일을 정상 파일로 판단하고, 망간 자료전송 시스템으로 전달할 수 있다. 망간 자료전송 시스템은 대상 파일을 내부 망으로 바로 전달할 수 있다.If the target file does not contain malicious code, the server 200 may determine the target file to be a normal file and transmit it to the inter-network data transmission system. The inter-network data transmission system can transmit target files directly to the internal network.
도 17은 본 명세서가 적용될 수 있는 대상 파일 수정의 예시이다.Figure 17 is an example of target file modification to which this specification can be applied.
도 17을 참조하면, 서버(200)는 내부 사용자에게 수정된 대상 파일을 전달할 수 있다. 예를 들어, 대상 파일은 OKB를 갖는 더미파일로 수정될 수 있으며, 파일명은 기존의 파일명 전단에 악성 코드가 포함되어 있음을 나타내기 위한 문자열이 추가될 수 있다.Referring to FIG. 17, the server 200 may deliver a modified target file to an internal user. For example, the target file may be modified as a dummy file with OKB, and a string may be added to the file name to indicate that it contains malicious code.
이를 통해, 서버(200)는 서로 다른 대역의 망분리 환경에서 대상 파일이 이동하는 경우, 내부 사용자 서버에게 대상 파일의 처리에 대한 명확한 알림이 가능하다.Through this, the server 200 can clearly notify the internal user server about the processing of the target file when the target file moves in a network separation environment of different bands.
또한, 알림 서비스(예를 들어, SMS, 메일서버(200) 등)의 추가 구축 없이도 내부 사용자에게 명확히 악성 알림이 가능하며, 서버(200)의 관리 측면에서 파일명 변경 및 용량 변경은 개발 난이도가 쉽고, OS 영역의 제약을 받지 않는다.In addition, malicious notifications can be clearly made to internal users without additional deployment of notification services (e.g., SMS, mail server 200, etc.), and in terms of management of the server 200, changing file names and capacity is easy and difficult to develop. , it is not restricted by OS area.
내부 사용자 측면에서는 직관적인 악성 알림으로 업무 효율성이 증가될 수 있고, 내부 업무망 내에 악성 파일 유입이 원천으로 차단되어 보안 레벨이 상승될 수 있다.From the internal user perspective, work efficiency can be increased with intuitive malicious notifications, and the security level can be increased by blocking the inflow of malicious files into the internal business network at the source.
한편, 개시된 실시예들은 컴퓨터에 의해 실행 가능한 명령어를 저장하는 기록매체의 형태로 구현될 수 있다. 명령어는 프로그램 코드의 형태로 저장될 수 있으며, 프로세서에 의해 실행되었을 때, 프로그램 모듈을 생성하여 개시된 실시예들의 동작을 수행할 수 있다. 기록매체는 컴퓨터로 읽을 수 있는 기록매체로 구현될 수 있다.Meanwhile, the disclosed embodiments may be implemented in the form of a recording medium that stores instructions executable by a computer. Instructions may be stored in the form of program code, and when executed by a processor, may create program modules to perform operations of the disclosed embodiments. The recording medium may be implemented as a computer-readable recording medium.
컴퓨터가 읽을 수 있는 기록매체로는 컴퓨터에 의하여 해독될 수 있는 명령어가 저장된 모든 종류의 기록매체를 포함한다. 예를 들어, ROM(read only memory), RAM(random access memory), 자기 테이프, 자기 디스크, 플래쉬 메모리, 광 데이터 저장장치 등이 있을 수 있다.Computer-readable recording media include all types of recording media storing instructions that can be decoded by a computer. For example, there may be read only memory (ROM), random access memory (RAM), magnetic tape, magnetic disk, flash memory, optical data storage, etc.
또한, 컴퓨터가 읽을 수 있는 기록매체는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, '비일시적 저장매체'는 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다. 예로, '비일시적 저장매체'는 데이터가 임시적으로 저장되는 버퍼를 포함할 수 있다. Additionally, computer-readable recording media may be provided in the form of non-transitory storage media. Here, 'non-transitory storage medium' simply means that it is a tangible device and does not contain signals (e.g. electromagnetic waves). This term refers to cases where data is semi-permanently stored in a storage medium and temporary storage media. It does not distinguish between cases where it is stored as . For example, a 'non-transitory storage medium' may include a buffer where data is temporarily stored.
일 실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 기록 매체(예: compact disc read only memory (CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트폰들) 간에 직접 배포되거나, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우, 컴퓨터 프로그램 제품(예: 다운로더블 앱(downloadable app))의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 기록 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, methods according to various embodiments disclosed in this document may be provided and included in a computer program product. Computer program products are commodities and can be traded between sellers and buyers. The computer program product may be distributed in the form of a machine-readable recording medium (e.g. compact disc read only memory (CD-ROM)) or via an application store (e.g. Play StoreTM) or on two user devices (e.g. It may be distributed directly between smartphones (e.g. smartphones) or distributed online (e.g. downloaded or uploaded). In the case of online distribution, at least a portion of a computer program product (e.g., a downloadable app) is stored at least temporarily on a machine-readable recording medium, such as the memory of a manufacturer's server, an application store's server, or a relay server. It can be stored or created temporarily.
이상과 첨부된 도면을 참조하여 본 개시에 따른 실시예들을 설명하였다. 본 개시가 속하는 기술분야에서 통상의 지식을 가진 자는 본 개시가 그 기술적 사상이나 필수적인 특징을 변경하지 않고서 다른 구체적인 형태로 실시될 수 있다는 것을 이해할 수 있을 것이다. 그러므로 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며 한정적이 아닌 것으로 이해해야만 한다. Embodiments according to the present disclosure have been described with reference to the above and the attached drawings. A person skilled in the art to which this disclosure pertains will understand that this disclosure can be implemented in other specific forms without changing its technical idea or essential features. Therefore, the embodiments described above should be understood in all respects as illustrative and not restrictive.

Claims (6)

  1. 서버가 네트워크 망분리 환경에서 악성 파일의 유입을 처리하는 방법에 있어서,In a method for a server to handle the inflow of malicious files in a network separation environment,
    망간 자료전송 시스템으로부터, 대상 파일을 수신하는 단계;Receiving a target file from the Manganese data transmission system;
    상기 대상 파일의 악성코드를 검사하는 단계;inspecting the target file for malicious code;
    상기 대상 파일에 악성코드가 포함되어 있는 것에 근거하여, 상기 대상 파일의 판독 결과에 따라, 상기 대상 파일을 수정하는 단계; 및Modifying the target file according to a reading result of the target file, based on whether the target file contains malicious code; and
    상기 수정된 대상 파일을 상기 망간 자료전송 시스템으로 전달하는 단계;transmitting the modified target file to the network data transmission system;
    를 포함하며,Includes,
    상기 판독 결과는The reading result is
    상기 대상 파일의 무해화의 가능 또는 불가능을 나타내는, 처리 방법.A processing method indicating the possibility or impossibility of detoxification of the target file.
  2. 제1항에 있어서, According to paragraph 1,
    상기 수정하는 단계는The above modification steps are
    상기 대상 파일의 파일명에 상기 무해화가 완료되었음을 나타내는 문자열을 추가하는 단계;adding a string indicating that the detoxification has been completed to the file name of the target file;
    를 포함하는, 처리방법.Processing method, including.
  3. 제1항에 있어서, According to paragraph 1,
    상기 수정하는 단계는The above modification steps are
    상기 판독 결과가 상기 대상 파일의 무해화의 불가능을 나타내는 것에 근거하여, 상기 대상 파일의 파일명에 상기 대상 파일에 상기 악성코드가 포함되어 있음을 나타내는 문자열을 추가하는 단계;adding a string indicating that the target file contains the malicious code to the file name of the target file, based on the read result indicating the impossibility of rendering the target file harmless;
    를 포함하는, 처리방법.Processing method, including.
  4. 제3항에 있어서, According to paragraph 3,
    상기 수정하는 단계는The above modification steps are
    상기 대상 파일을 더미파일(dummyfile)로 수정하는 단계;Modifying the target file into a dummy file;
    를 더 포함하는, 처리방법. A processing method further comprising:
  5. 제2항에 있어서, According to paragraph 2,
    상기 수정하는 단계는The above modification steps are
    상기 대상 파일에 대한 리버싱 분석을 수행하여, 상기 대상 파일 내의 취약점 및 콘텐츠 중 적어도 하나를 탐지하고, 탐지 결과를 저장하는 단계; performing a reversing analysis on the target file, detecting at least one of vulnerabilities and content in the target file, and storing the detection result;
    상기 대상 파일 내의 콘텐츠에 대하여 무해화를 수행하고, 무해화 결과를 저장하는 단계; 및Performing detoxification on content in the target file and storing the detoxification result; and
    상기 탐지 결과 및 상기 무해화 결과에 기초하여, 상기 판독 결과를 생성하는 단계;generating the readout result based on the detection result and the detoxification result;
    를 더 포함하는, 처리방법.A processing method further comprising:
  6. 네트워크 망분리 환경에서 악성 파일의 유입을 처리하는 서버에 있어서,In a server that processes the inflow of malicious files in a network separation environment,
    통신부; Ministry of Communications;
    리버싱 엔진과 CDR 엔진이 포함된 메모리; 및Memory with reversing engine and CDR engine; and
    상기 통신부 및 상기 메모리를 기능적으로 제어하는 프로세서; 를 포함하며,a processor that functionally controls the communication unit and the memory; Includes,
    상기 프로세서는The processor is
    상기 통신부를 통해, 망간 자료전송 시스템으로부터, 대상 파일을 수신하고,Receiving the target file from the inter-network data transmission system through the communication unit,
    상기 대상 파일의 악성코드를 검사하며, 상기 대상 파일에 악성코드가 포함되어 있는 것에 근거하여, 상기 대상 파일의 판독 결과에 따라, 상기 대상 파일을 수정하고, 상기 수정된 대상 파일을 상기 망간 자료전송 시스템으로 전달하며, 상기 판독 결과는 상기 대상 파일의 무해화의 가능 또는 불가능을 나타내는, 서버.The target file is checked for malicious code, and based on whether the target file contains malicious code, the target file is modified according to a reading result of the target file, and the modified target file is transmitted to the network. The server transmits the information to the system, and the read result indicates the possibility or impossibility of detoxification of the target file.
PCT/KR2022/015022 2022-10-06 2022-10-06 Method for notifying of inflow of malicious files when moving files in network separation environment, and device therefor WO2024075868A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/KR2022/015022 WO2024075868A1 (en) 2022-10-06 2022-10-06 Method for notifying of inflow of malicious files when moving files in network separation environment, and device therefor
KR1020227034766A KR102503699B1 (en) 2022-10-06 2022-10-06 Method and apparatus for notifying the inflow of malicious files when files are moved in a network-separated environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/KR2022/015022 WO2024075868A1 (en) 2022-10-06 2022-10-06 Method for notifying of inflow of malicious files when moving files in network separation environment, and device therefor

Publications (1)

Publication Number Publication Date
WO2024075868A1 true WO2024075868A1 (en) 2024-04-11

Family

ID=85330645

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2022/015022 WO2024075868A1 (en) 2022-10-06 2022-10-06 Method for notifying of inflow of malicious files when moving files in network separation environment, and device therefor

Country Status (2)

Country Link
KR (1) KR102503699B1 (en)
WO (1) WO2024075868A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140034555A (en) * 2012-09-12 2014-03-20 (주)나무소프트 Apparatus and method for managing files
US20150007321A1 (en) * 2005-12-12 2015-01-01 Finjan, Inc. Computer Security Method and System With Input Parameter Validation
KR102093274B1 (en) * 2019-05-28 2020-03-25 (주)지란지교시큐리티 Content scanning agent, content scanning method, and storage media on which the program is recorded

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150007321A1 (en) * 2005-12-12 2015-01-01 Finjan, Inc. Computer Security Method and System With Input Parameter Validation
KR20140034555A (en) * 2012-09-12 2014-03-20 (주)나무소프트 Apparatus and method for managing files
KR102093274B1 (en) * 2019-05-28 2020-03-25 (주)지란지교시큐리티 Content scanning agent, content scanning method, and storage media on which the program is recorded

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"OfficeScan XG Administrator’s Guide", TREND MICRO, October 2016 (2016-10-01), pages 1 - 873, Retrieved from the Internet <URL:https://docs.trendmicro.com/all/ent/officescan/v12.0/en-us/osce_12.0_ag.pdf> *
WON BYEONG-CHEOL: "CDR Intensive Analysis, The Hottest Security Item of 2020", BOANNEWS CO., LTD., 2 January 2020 (2020-01-02), pages 1 - 9, XP093155700, Retrieved from the Internet <URL:https://www.boannews.com/media/view.asp?idx=85512#> *

Also Published As

Publication number Publication date
KR102503699B1 (en) 2023-02-24

Similar Documents

Publication Publication Date Title
WO2021060856A1 (en) System and method for secure network access of terminal
US7665138B2 (en) Detecting method and architecture thereof for malicious codes
KR101265173B1 (en) Apparatus and method for inspecting non-portable executable files
WO2010062063A2 (en) Method and system for preventing browser-based abuse
US7934261B1 (en) On-demand cleanup system
KR101212553B1 (en) Apparatus and method for detecting malicious files
CN107408176A (en) The execution of malicious objects dissects detection
CN101373502A (en) Automatic analysis system of virus behavior based on Win32 platform
WO2023229063A1 (en) Method for improving efficiency of original file back up space, using delta extraction method in disarming operation, and device therefor
WO2017126786A1 (en) Electronic device for analyzing malicious code and method therefor
WO2020027413A1 (en) Device and method for restoring application removed by factory data reset function
WO2023229065A1 (en) Method and device for blocking malicious non-portable executable file by utilizing reversing engine and cdr engine
WO2018208032A1 (en) Computer having isolated user computing unit
Chevalier et al. Co-processor-based behavior monitoring: Application to the detection of attacks against the system management mode
WO2018194196A1 (en) Method and system for detecting application of obfuscation to and evaluating security of elf file
WO2024075868A1 (en) Method for notifying of inflow of malicious files when moving files in network separation environment, and device therefor
WO2023229066A1 (en) Reversing engine-based document action determination method, and device therefor
WO2014200201A1 (en) File security management apparatus and management method for system protection
WO2014168406A1 (en) Apparatus and method for diagnosing attack which bypasses memory protection mechanisms
WO2024063184A1 (en) Method and apparatus for disarming link in pdf or hwp
WO2020013470A1 (en) Method for determining data falsification and electronic device for supporting same
WO2019177265A1 (en) Data processing method against ransomware, program for executing same, and computer-readable recording medium with program recorded thereon
CN116028157A (en) Risk identification method and device and electronic equipment
CN109522714A (en) A kind of method and system that target software is protected based on plug-in securing software
WO2024071451A1 (en) Method for detecting malicious macro in non-executable file by using ocr technology, and apparatus therefor