KR102494827B1 - Methods and apparatus for detecting malicious macros in non-executable files using ocr - Google Patents

Methods and apparatus for detecting malicious macros in non-executable files using ocr Download PDF

Info

Publication number
KR102494827B1
KR102494827B1 KR1020227033331A KR20227033331A KR102494827B1 KR 102494827 B1 KR102494827 B1 KR 102494827B1 KR 1020227033331 A KR1020227033331 A KR 1020227033331A KR 20227033331 A KR20227033331 A KR 20227033331A KR 102494827 B1 KR102494827 B1 KR 102494827B1
Authority
KR
South Korea
Prior art keywords
malicious
executable file
character string
server
macro
Prior art date
Application number
KR1020227033331A
Other languages
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 시큐레터 주식회사
Application granted granted Critical
Publication of KR102494827B1 publication Critical patent/KR102494827B1/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
    • G06F21/56Computer malware detection or handling, e.g. anti-virus arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/19Recognition using electronic means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/19Recognition using electronic means
    • G06V30/19007Matching; Proximity measures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Virology (AREA)
  • Storage Device Security (AREA)

Abstract

본 명세서는 서버가 OCR(Optical character recognition)을 이용하여 비실행 파일의 악성 매크로(macro)를 탐지하는 방법에 있어서, 상기 OCR을 이용하여, 상기 비실행 파일의 문자열을 추출하고, 1) 상기 매크로의 보안 설정 해제와 관련된 악성 의심 문자열과 2) 상기 추출된 문자열을 비교하며, 상기 악성 의심 문자열과 상기 추출된 문자열의 매칭에 근거하여, 상기 비실행 파일에 상기 악성 매크로가 포함되어 있는지를 분석할 수 있다.In the present specification, in a method for a server to detect a malicious macro of a non-executable file using OCR (Optical Character Recognition), a character string of the non-executable file is extracted using the OCR, and 1) the macro 2) The extracted malicious string is compared with a suspicious malicious string related to security setting release, and based on the matching between the malicious suspicious string and the extracted string, whether or not the malicious macro is included in the non-executable file is analyzed. can

Description

OCR 기술을 이용하여 비실행 파일의 악성 매크로를 탐지하기 위한 방법 및 이를 위한 장치 { METHODS AND APPARATUS FOR DETECTING MALICIOUS MACROS IN NON-EXECUTABLE FILES USING OCR }Method for detecting malicious macros in non-executable files using OCR technology and apparatus therefor { METHODS AND APPARATUS FOR DETECTING MALICIOUS MACROS IN NON-EXECUTABLE FILES USING OCR

본 명세서는 OCR(Optical character recognition) 기술을 이용하여 비실행 파일에 포함된 이미지를 생성성하고, 이미지에서 문자열을 추출하여, 비실행 파일의 악성 매크로(macro)를 탐지하기 위한 방법 및 장치에 관한 것이다.The present specification relates to a method and apparatus for generating an image included in a non-executable file using OCR (Optical Character Recognition) technology, extracting a string from the image, and detecting a malicious macro in a non-executable file. will be.

매크로가 포함된 비실행 파일은 위험할 수 있다. 매크로는 기본적으로 컴퓨터 코드의 일부이며, 맬웨어(Malware)의 매개체로 이용될 수 있다. 예를 들어, Microsoft Office 문서 (예를 들어, Word, Excel, PowerPoint 및 기타 유형의 문서)에는 VBA (Visual Basic for Applications)라는 프로그래밍 언어로 작성된 포함 코드가 포함될 수 있다. 이를 통해, 반복적인 작업은 자동화될 수 있다. 사용자는 나중에 매크로를 실행하여, 기록한 작업을 반복할 수 있다.Non-executable files containing macros can be dangerous. Macros are basically part of computer code and can be used as a medium for malware. For example, Microsoft Office documents (eg, Word, Excel, PowerPoint, and other types of documents) may contain embed code written in a programming language called Visual Basic for Applications (VBA). Through this, repetitive tasks can be automated. The user can later run the macro to repeat the recorded action.

악성 비실행 문서에서는 문서 내부의 자동 실행 매크로에 의해 다양한 악성 동작이 이루어질 수 있다. 이를 방지하기 위해, MS-OFFICE의 기본 보안 설정에서 문서 내부에 매크로가 포함된 경우, 해당 매크로가 자동으로 실행되지 않고 사용자는 보안 경고 메시지의 버튼을 클릭하여야 한다.In a malicious non-executable document, various malicious actions can be performed by automatically executing macros inside the document. To prevent this, if a macro is included in the document in the basic security settings of MS-OFFICE, the corresponding macro is not automatically executed and the user must click the button in the security warning message.

본 명세서의 목적은, 정상 및 악성 문서들이 대량으로 유입되는 경우, OCR 기술을 활용하여 검사 엔진의 탐지 속도 개선 및 탐지율 고도화를 위한 방법 및 장치를 제안한다.An object of the present specification is to propose a method and apparatus for improving the detection speed of a scan engine and advancing the detection rate by utilizing OCR technology when a large amount of normal and malicious documents are introduced.

본 명세서가 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 이하의 명세서의 상세한 설명으로부터 본 명세서가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved by this specification are not limited to the above-mentioned technical problems, and other technical problems not mentioned are clear to those skilled in the art from the detailed description of the specification below. will be understandable.

본 명세서의 일 양상은, 서버가 OCR(Optical character recognition)을 이용하여 비실행 파일의 악성 매크로(macro)를 탐지하는 방법에 있어서, 상기 OCR을 이용하여, 상기 비실행 파일의 문자열을 추출하는 단계; 1) 상기 매크로의 보안 설정 해제와 관련된 악성 의심 문자열과 2) 상기 추출된 문자열을 비교하는 단계; 및 상기 악성 의심 문자열과 상기 추출된 문자열의 매칭에 근거하여, 상기 비실행 파일에 상기 악성 매크로가 포함되어 있는지를 분석하는 단계;를 포함할 수 있다.In one aspect of the present specification, in a method for a server to detect a malicious macro of a non-executable file using OCR (Optical Character Recognition), extracting a string of the non-executable file using the OCR ; 1) comparing a suspected malicious character string related to security setting release of the macro and 2) the extracted character string; and analyzing whether or not the malicious macro is included in the non-executable file, based on matching between the suspicious malicious character string and the extracted character string.

또한, 상기 비실행 파일이 상기 악성 매크로를 포함한 것에 근거하여, 상기 악성 의심 문자열을 업데이트 하는 단계; 를 더 포함할 수 있다.Also, based on that the non-executable file includes the malicious macro, updating the suspected malicious character string; may further include.

또한, 상기 비실행 파일의 문자열을 추출하는 단계는 상기 비실행 파일을 분석하기 위한 가상화 머신(Virtual Machine)을 생성하는 단계; 상기 가상화 머신을 통해, 상기 비실행 파일을 실행하는 단계; 상기 비실행 파일의 첫번째 페이지를 스크린샷하는 단계; 및 상기 스크린샷된 이미지 파일로부터 상기 OCR을 이용하여 문자열을 추출하는 단계; 를 포함할 수 있다.In addition, the step of extracting the string of the non-executable file may include creating a virtual machine for analyzing the non-executable file; executing the non-executable file through the virtualization machine; taking a screenshot of the first page of the non-executable file; and extracting a character string from the screenshot image file using the OCR; can include

또한, 상기 악성 의심 문자열은“Enable Content”, “Click”, 및 “Enable Macros”를 포함할 수 있다.Also, the suspicious malicious character string may include “Enable Content”, “Click”, and “Enable Macros”.

또한, 상기 악성 의심 문자열과 상기 추출된 문자열이 매칭되지 않는 것에 근거하여, 다음 비실행 파일의 문자열을 추출할 수 있다.In addition, based on the fact that the suspicious malicious character string and the extracted character string do not match, a character string of a next non-executable file may be extracted.

또한, 상기 비실행 파일이 상기 악성 매크로를 포함한 것에 근거하여, 상기 추출된 문자열은 누적하여 저장될 수 있다.Also, based on that the non-executable file includes the malicious macro, the extracted character string may be accumulated and stored.

또한, 상기 악성 의심 문자열을 업데이트 하는 단계는 상기 누적되어 저장된 추출된 문자열들의 집합에서 일정비율 이상으로 동일하게 매칭된 문자열을 상기 악성 의심 문자열에 추가하는 단계; 를 포함할 수 있다.In addition, the step of updating the suspected malicious character string may include adding a character string identically matched at a predetermined ratio or more to the suspected malicious character string in the set of the accumulated and stored extracted character strings; can include

본 명세서의 또 다른 일 양상은 OCR(Optical character recognition)을 이용하여 비실행 파일의 악성 매크로(macro)를 탐지하는 서버에 있어서, 통신부; 악성 의심 문자열을 관리하기 위한 데이터베이스가 포함된 메모리; 및 상기 통신부 및 상기 메모리를 기능적으로 제어하는 프로세서;를 포함하고, 상기 프로세서는 상기 OCR을 이용하여, 상기 비실행 파일의 문자열을 추출하고, 1) 상기 매크로의 보안 설정 해제와 관련된 상기 악성 의심 문자열과 2) 상기 추출된 문자열을 비교하며, 상기 악성 의심 문자열과 상기 추출된 문자열의 매칭에 근거하여, 상기 비실행 파일에 상기 악성 매크로가 포함되어 있는지를 분석할 수 있다.Another aspect of the present specification is a server for detecting a malicious macro of a non-executable file using optical character recognition (OCR), comprising: a communication unit; a memory containing a database for managing suspicious malicious strings; and a processor functionally controlling the communication unit and the memory, wherein the processor extracts a character string of the non-executable file using the OCR, and 1) the suspicious malicious character string associated with releasing the security setting of the macro. and 2) comparing the extracted character string, and analyzing whether the malicious macro is included in the non-executable file based on matching between the malicious suspect character string and the extracted character string.

본 명세서의 실시예에 따르면, 정상 및 악성 문서들이 대량으로 유입되는 경우, OCR 기술을 활용하여 검사 엔진의 탐지 속도 개선 및 탐지율을 고도화할 수 있다.According to the embodiments of the present specification, when a large amount of normal and malicious documents are introduced, the detection speed and detection rate of the scanning engine can be improved by utilizing the OCR technology.

본 명세서에서 얻을 수 있는 효과는 이상에서 언급한 효과로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 명세서가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.Effects obtainable in the present specification are not limited to the effects mentioned above, and other effects not mentioned will be clearly understood by those skilled in the art from the description below. .

도 1은 본 명세서와 관련된 전자 기기를 설명하기 위한 블록도이다.
도 2는 본 명세서와 관련된 서버 또는 클라이언트를 나타내는 도면이다.
도 3은 본 명세서에 적용될 수 있는 서버의 일 실시예이다.
도 4는 본 명세서가 적용될 수 있는 비실행 파일의 문서 행위 판단 방법을 예시한다.
도 5는 본 명세서가 적용될 수 있는 문서 행위를 획득하기 위한 서버의 추가 액션의 예시이다.
도 6은 본 명세서가 적용될 수 있는 서버의 DDE 기능 명령어 탐지 테이블을 예시한다.
도 7은 본 명세서에 적용될 수 있는 서버의 일 실시예이다.
도 8 내지 도 10은 본 명세서가 적용될 수 있는 이미지 파일의 일부에 대한 예시이다.
본 명세서에 관한 이해를 돕기 위해 상세한 설명의 일부로 포함되는, 첨부 도면은 본 명세서에 대한 실시예를 제공하고, 상세한 설명과 함께 본 명세서의 기술적 특징을 설명한다.
1 is a block diagram for explaining an electronic device related to the present specification.
2 is a diagram showing a server or client related to the present specification.
3 is an embodiment of a server that can be applied to this specification.
4 illustrates a method for determining a document behavior of a non-executable file to which this specification can be applied.
5 is an example of an additional action of a server to obtain a document action to which this specification may be applied.
6 illustrates a DDE function command detection table of a server to which this specification can be applied.
7 is an embodiment of a server that can be applied to this specification.
8 to 10 are examples of a part of image files to which the present specification can be applied.
The accompanying drawings, which are included as part of the detailed description to aid understanding of the present specification, provide examples of the present specification and describe technical features of the present specification together with the detailed description.

이하, 첨부된 도면을 참조하여 본 명세서에 개시된 실시예를 상세히 설명하되, 도면 부호에 관계없이 동일하거나 유사한 구성요소는 동일한 참조 번호를 부여하고 이에 대한 중복되는 설명은 생략하기로 한다. 이하의 설명에서 사용되는 구성요소에 대한 접미사 "모듈" 및 "부"는 명세서 작성의 용이함만이 고려되어 부여되거나 혼용되는 것으로서, 그 자체로 서로 구별되는 의미 또는 역할을 갖는 것은 아니다. 또한, 본 명세서에 개시된 실시예를 설명함에 있어서 관련된 공지 기술에 대한 구체적인 설명이 본 명세서에 개시된 실시예의 요지를 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다. 또한, 첨부된 도면은 본 명세서에 개시된 실시예를 쉽게 이해할 수 있도록 하기 위한 것일 뿐, 첨부된 도면에 의해 본 명세서에 개시된 기술적 사상이 제한되지 않으며, 본 명세서의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. Hereinafter, the embodiments disclosed in this specification will be described in detail with reference to the accompanying drawings, but the same or similar components are given the same reference numerals regardless of reference numerals, and redundant description thereof will be omitted. The suffixes "module" and "unit" for components used in the following description are given or used together in consideration of ease of writing the specification, and do not have meanings or roles that are distinct from each other by themselves. In addition, in describing the embodiments disclosed in this specification, if it is determined that a detailed description of a related known technology may obscure the gist of the embodiment disclosed in this specification, the detailed description thereof will be omitted. In addition, the accompanying drawings are only for easy understanding of the embodiments disclosed in this specification, the technical idea disclosed in this specification is not limited by the accompanying drawings, and all changes included in the spirit and technical scope of this specification , it should be understood to include equivalents or substitutes.

제1, 제2 등과 같이 서수를 포함하는 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되지는 않는다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다.Terms including ordinal numbers, such as first and second, may be used to describe various components, but the components are not limited by the terms. These terms are only used for the purpose of distinguishing one component from another.

어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.It is understood that when an element is referred to as being "connected" or "connected" to another element, it may be directly connected or connected to the other element, but other elements may exist in the middle. It should be. On the other hand, when an element is referred to as “directly connected” or “directly connected” to another element, it should be understood that no other element exists in the middle.

단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다.Singular expressions include plural expressions unless the context clearly dictates otherwise.

본 명세서에서, "포함한다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.In this specification, terms such as "comprise" or "having" are intended to indicate that there is a feature, number, step, operation, component, part, or combination thereof described in the specification, but one or more other features It should be understood that the presence or addition of numbers, steps, operations, components, parts, or combinations thereof is not precluded.

또한, 명세서에서 사용되는 "부"라는 용어는 소프트웨어 또는 하드웨어 구성요소를 의미하며, "부"는 어떤 역할들을 수행한다. 그렇지만 "부"는 소프트웨어 또는 하드웨어에 한정되는 의미는 아니다. "부"는 어드레싱할 수 있는 저장 매체에 있도록 구성될 수도 있고 하나 또는 그 이상의 프로세서들을 재생시키도록 구성될 수도 있다. 따라서, 일 예로서 "부"는 소프트웨어 구성요소들, 객체지향 소프트웨어 구성요소들, 클래스 구성요소들 및 태스크 구성요소들과 같은 구성요소들과, 프로세스들, 함수들, 속성들, 프로시저들, 서브루틴들, 프로그램 코드의 세그먼트들, 드라이버들, 펌웨어, 마이크로 코드, 회로, 데이터, 데이터베이스, 데이터 구조들, 테이블들, 어레이들 및 변수들을 포함한다. 구성요소들과 "부"들 안에서 제공되는 기능은 더 작은 수의 구성요소들 및 "부"들로 결합되거나 추가적인 구성요소들과 "부"들로 더 분리될 수 있다.Also, the term “unit” used in the specification means a software or hardware component, and “unit” performs certain roles. However, "unit" is not meant to be limited to software or hardware. A “unit” may be configured to reside in an addressable storage medium and may be configured to reproduce on one or more processors. Thus, as an example, “unit” can refer to components such as software components, object-oriented software components, class components and task components, processes, functions, properties, procedures, subroutines, segments of program code, drivers, firmware, microcode, circuitry, data, databases, data structures, tables, arrays and variables. Functionality provided within components and "parts" may be combined into fewer components and "parts" or further separated into additional components and "parts".

또한, 본 명세서의 일 실시예에 따르면 "부"는 프로세서 및 메모리로 구현될 수 있다. 용어 "프로세서"는 범용 프로세서, 중앙 처리 장치 (CPU), 마이크로프로세서, 디지털 신호 프로세서 (DSP), 제어기, 마이크로제어기, 상태 머신 등을 포함하도록 넓게 해석되어야 한다. 몇몇 환경에서는, "프로세서"는 주문형 반도체 (ASIC), 프로그램가능 로직 디바이스 (PLD), 필드 프로그램가능 게이트 어레이 (FPGA) 등을 지칭할 수도 있다. 용어 "프로세서"는, 예를 들어, DSP 와 마이크로프로세서의 조합, 복수의 마이크로프로세서들의 조합, DSP 코어와 결합한 하나 이상의 마이크로프로세서들의 조합, 또는 임의의 다른 그러한 구성들의 조합과 같은 처리 디바이스들의 조합을 지칭할 수도 있다.Also, according to one embodiment of the present specification, "unit" may be implemented as a processor and a 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, and the like. In some circumstances, “processor” may refer to an application specific integrated circuit (ASIC), programmable logic device (PLD), field programmable gate array (FPGA), or the like. The term "processor" refers to a combination of processing devices, such as, 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 conjunction with a DSP core, or any other such configuration. 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 term memory includes 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, and the like. A memory is said to be in electronic communication with the processor if the processor can read information from and/or write information to the memory. Memory integrated with the processor is in electronic communication with the processor.

본 명세서에서 사용되는 "비실행 파일"이란 실행 파일 또는 실행 가능한 파일과 반대되는 개념으로서 자체적으로 실행되지 않는 파일을 의미한다. 예를 들어, 비실행 파일은 PDF 파일, 한글 파일, 워드 파일과 같은 문서 파일, JPG 파일과 같은 이미지 파일, 동영상 파일, 자바 스크립트 파일, HTML 파일 등이 될 수 있으나, 이에 한정되지 않는다.As used herein, a "non-executable file" is a concept opposite to an executable file or an executable file, and means a file that is not itself executed. For example, the non-executable file may be a PDF file, a Korean file, a document file such as a word file, an image file such as a JPG file, a video file, a JavaScript file, and an HTML file, but is not limited thereto.

아래에서는 첨부한 도면을 참고하여 실시예에 대하여 본 명세서가 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 상세히 설명한다. 그리고 도면에서 본 개시를 명확하게 설명하기 위해서 설명과 관계없는 부분들은 생략될 수 있다.Hereinafter, with reference to the accompanying drawings, embodiments will be described in detail so that those skilled in the art can easily carry out the embodiments. In addition, in order to clearly describe the present disclosure in the drawings, parts irrelevant to the description may be omitted.

도 1은 본 명세서와 관련된 전자 기기를 설명하기 위한 블록도이다. 1 is a block diagram for explaining an electronic device related to the present specification.

상기 전자 기기(100)는 무선 통신부(110), 입력부(120), 센싱부(140), 출력부(150), 인터페이스부(160), 메모리(170), 제어부(180) 및 전원 공급부(190) 등을 포함할 수 있다. 도 1에 도시된 구성요소들은 전자 기기를 구현하는데 있어서 필수적인 것은 아니어서, 본 명세서 상에서 설명되는 전자 기기는 위에서 열거된 구성요소들 보다 많거나, 또는 적은 구성요소들을 가질 수 있다.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. ) and the like. The components shown in FIG. 1 are not essential to implement an electronic device, so an electronic device described in this specification may have more or fewer components than those listed above.

보다 구체적으로, 상기 구성요소들 중 무선 통신부(110)는, 전자 기기(100)와 무선 통신 시스템 사이, 전자 기기(100)와 다른 전자 기기(100) 사이, 또는 전자 기기(100)와 외부서버 사이의 무선 통신을 가능하게 하는 하나 이상의 모듈을 포함할 수 있다. 또한, 상기 무선 통신부(110)는, 전자 기기(100)를 하나 이상의 네트워크에 연결하는 하나 이상의 모듈을 포함할 수 있다.More specifically, among the components, the wireless communication unit 110 is between the electronic device 100 and the wireless communication system, between the electronic device 100 and other electronic devices 100, or between the electronic device 100 and an external server. It may include one or more modules enabling wireless communication between Also, 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) 중 적어도 하나를 포함할 수 있다.The 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-distance communication module 114, and a location information module 115. .

입력부(120)는, 영상 신호 입력을 위한 카메라(121) 또는 영상 입력부, 오디오 신호 입력을 위한 마이크로폰(microphone, 122), 또는 오디오 입력부, 사용자로부터 정보를 입력받기 위한 사용자 입력부(123, 예를 들어, 터치키(touch key), 푸시키(mechanical key) 등)를 포함할 수 있다. 입력부(120)에서 수집한 음성 데이터나 이미지 데이터는 분석되어 사용자의 제어명령으로 처리될 수 있다.The input unit 120 includes a camera 121 or video input unit for inputting a video signal, a microphone 122 for inputting an audio signal, or a user input unit 123 for receiving information from a user, for example , a touch key, a push key (mechanical key, etc.). Voice data or image data collected by the input unit 120 may be analyzed and processed as a user's control command.

센싱부(140)는 전자 기기 내 정보, 전자 기기를 둘러싼 주변 환경 정보 및 사용자 정보 중 적어도 하나를 센싱하기 위한 하나 이상의 센서를 포함할 수 있다. 예를 들어, 센싱부(140)는 근접센서(141, proximity sensor), 조도 센서(142, illumination sensor), 터치 센서(touch sensor), 가속도 센서(acceleration sensor), 자기 센서(magnetic sensor), 중력 센서(G-sensor), 자이로스코프 센서(gyroscope sensor), 모션 센서(motion sensor), RGB 센서, 적외선 센서(IR 센서: infrared sensor), 지문인식 센서(finger scan sensor), 초음파 센서(ultrasonic sensor), 광 센서(optical sensor, 예를 들어, 카메라(121 참조)), 마이크로폰(microphone, 122 참조), 배터리 게이지(battery gauge), 환경 센서(예를 들어, 기압계, 토양습도계, 온도계, 방사능 감지 센서, 열 감지 센서, 가스 감지 센서 등), 화학 센서(예를 들어, 전자 코, 헬스케어 센서, 생체 인식 센서 등) 중 적어도 하나를 포함할 수 있다. 한편, 본 명세서에 개시된 전자 기기는, 이러한 센서들 중 적어도 둘 이상의 센서에서 센싱되는 정보들을 조합하여 활용할 수 있다.The sensing unit 140 may include one or more sensors for sensing at least one of information within the electronic device, environmental information surrounding the electronic device, and user information. For example, the sensing unit 140 may include a proximity sensor 141, an illumination sensor 142, a touch sensor, an acceleration sensor, a magnetic sensor, and gravity. Sensor (G-sensor), gyroscope sensor (gyroscope sensor), motion sensor (motion sensor), RGB sensor, infrared sensor (IR sensor), finger scan sensor, ultrasonic sensor , optical sensor (e.g. camera (see 121)), microphone (see 122), battery gauge, environmental sensor (e.g. barometer, soil hygrometer, thermometer, radiation detection sensor) , a heat sensor, a gas sensor, etc.), and a chemical sensor (eg, an electronic nose, a health care sensor, a biometric sensor, etc.). Meanwhile, the electronic device disclosed in this specification may combine and utilize information sensed by at least two or more of these sensors.

출력부(150)는 시각, 청각 또는 촉각 등과 관련된 출력을 발생시키기 위한 것으로, 디스플레이부(151), 음향 출력부(152), 햅팁 모듈(153), 광 출력부(154) 중 적어도 하나를 포함할 수 있다. 디스플레이부(151)는 터치 센서와 상호 레이어 구조를 이루거나 일체형으로 형성됨으로써, 터치 스크린을 구현할 수 있다. 이러한 터치 스크린은, 전자 기기(100)와 사용자 사이의 입력 인터페이스를 제공하는 사용자 입력부(123)로써 기능함과 동시에, 전자 기기(100)와 사용자 사이의 출력 인터페이스를 제공할 수 있다.The output unit 150 is for generating an output related to sight, hearing, or touch, and includes at least one of a display unit 151, a sound output unit 152, a haptic module 153, and an optical output unit 154. can do. The display unit 151 may implement a touch screen by forming a mutual layer structure or integrally with the touch sensor. Such a touch screen may function as a user input unit 123 providing an input interface between the electronic device 100 and the user and provide an output interface between the electronic device 100 and the user.

인터페이스부(160)는 전자 기기(100)에 연결되는 다양한 종류의 외부 기기와의 통로 역할을 수행한다. 이러한 인터페이스부(160)는, 유/무선 헤드셋 포트(port), 외부 충전기 포트(port), 유/무선 데이터 포트(port), 메모리 카드(memory card) 포트, 식별 모듈이 구비된 장치를 연결하는 포트(port), 오디오 I/O(Input/Output) 포트(port), 비디오 I/O(Input/Output) 포트(port), 이어폰 포트(port) 중 적어도 하나를 포함할 수 있다. 전자 기기(100)에서는, 상기 인터페이스부(160)에 외부 기기가 연결되는 것에 대응하여, 연결된 외부 기기와 관련된 적절할 제어를 수행할 수 있다.The interface unit 160 serves as a passage for various types of external devices connected to the electronic device 100 . The interface unit 160 connects a device equipped 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, an audio input/output (I/O) port, a video input/output (I/O) 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)에 의하여 상기 전자 기기의 동작(또는 기능)을 수행하도록 구동될 수 있다.Also, 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 in the electronic device 100 , data for operating the electronic device 100 , and commands. At least some of these application programs may be downloaded from an external server through wireless communication. In addition, at least some of these application programs may exist on the electronic device 100 from the time of shipment for basic functions of the electronic device 100 (eg, incoming and outgoing calls, outgoing functions, message receiving, and outgoing functions). 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)에 저장된 응용 프로그램을 구동함으로써, 사용자에게 적절한 정보 또는 기능을 제공 또는 처리할 수 있다.The controller 180 controls general operations of the electronic device 100 in addition to operations related to the application program. The control unit 180 may provide or process appropriate information or functions to the user by processing signals, data, information, etc. input or output through the components described above or by running an application program stored in the memory 170.

또한, 제어부(180)는 메모리(170)에 저장된 응용 프로그램을 구동하기 위하여, 도 1과 함께 살펴본 구성요소들 중 적어도 일부를 제어할 수 있다. 나아가, 제어부(180)는 상기 응용 프로그램의 구동을 위하여, 전자 기기(100)에 포함된 구성요소들 중 적어도 둘 이상을 서로 조합하여 동작시킬 수 있다.In addition, the controller 180 may control at least some of the components discussed in conjunction with FIG. 1 in order to drive an application program stored in the memory 170 . Furthermore, the controller 180 may combine and operate at least two or more of the components included in the electronic device 100 to drive the application program.

전원공급부(190)는 제어부(180)의 제어 하에서, 외부의 전원, 내부의 전원을 인가받아 전자 기기(100)에 포함된 각 구성요소들에 전원을 공급한다. 이러한 전원공급부(190)는 배터리를 포함하며, 상기 배터리는 내장형 배터리 또는 교체가능한 형태의 배터리가 될 수 있다.The power supply unit 190 receives external power and internal power under the control of the controller 180 and supplies power to each component included in the electronic device 100 . The power supply unit 190 includes a battery, and the battery may be a built-in battery or a replaceable battery.

상기 각 구성요소들 중 적어도 일부는, 이하에서 설명되는 다양한 실시 예들에 따른 전자 기기의 동작, 제어, 또는 제어방법을 구현하기 위하여 서로 협력하여 동작할 수 있다. 또한, 상기 전자 기기의 동작, 제어, 또는 제어방법은 상기 메모리(170)에 저장된 적어도 하나의 응용 프로그램의 구동에 의하여 전자 기기 상에서 구현될 수 있다. At least some of the components may operate in cooperation with each other in order to implement an operation, control, or control method of an electronic device according to various embodiments described below. Also, the operation, control, or control method of the electronic device may be implemented on the electronic device by driving at least one application program stored in the memory 170 .

본 명세서에서 서버(또는 클라우드 서버) 또는 클라이언트는 전자기기(100)를 포함할 수 있으며, 전자기기(100)는 단말로 통칭될 수 있다.In this specification, the server (or cloud server) or client may include the electronic device 100, and the electronic device 100 may be collectively referred to as a terminal.

단말은 외부 서버(또는 클라우드 서버) 또는 클라이언트와 네트워크로 연결되어 통신할 수 있다.The terminal may communicate with an external server (or cloud server) or a client through a network connection.

도 2는 본 명세서와 관련된 서버 또는 클라이언트를 나타내는 도면이다.2 is a diagram showing a server or client related to the present specification.

본 명세서에서 서버(또는 클라우드 서버) 또는 클라이언트는 제어부(200) 및 통신부(230)를 포함할 수 있다. 제어부(200)는 프로세서(210) 및 메모리(220)를 포함할 수 있다. 프로세서(210)는 메모리(220)에 저장된 명령어들을 수행할 수 있다. 프로세서(210)는 통신부(230)를 제어할 수 있다. 메모리(220)는 캐시(cache) 메모리를 포함할 수 있다. 캐시 메모리는 후술되는 원본 문서를 일정 시간 동안 임시로 저장할 수 있다.In this specification, a server (or cloud server) or a client may include a control unit 200 and a communication unit 230. The control unit 200 may include a processor 210 and a memory 220. The processor 210 may execute instructions stored in the memory 220 . The processor 210 may control the communication unit 230 . The memory 220 may include cache memory. The cache memory may temporarily store an original document to be described later for a certain period of time.

프로세서(210)는 메모리(220)에 저장된 명령어에 기초하여 서버 또는 클라이언트의 동작을 제어할 수 있다. 서버 또는 클라이언트는 하나의 프로세서를 포함할 수 있고, 복수의 프로세서를 포함할 수 있다. 서버 또는 클라이언트가 복수의 프로세서를 포함하는 경우, 복수의 프로세서 중 적어도 일부는 물리적으로 이격된 거리에 위치할 수 있다. 또한, 서버 또는 클라이언트는 이에 한정되지 않고 알려진 다양한 방식으로 구현될 수 있다.The processor 210 may control the operation of the server or client based on instructions stored in the memory 220 . A server or client may include one processor or may include a plurality of processors. When the server or the client includes a plurality of processors, at least some of the plurality of processors may be located at physically separated distances. In addition, the server or client may be implemented in various known ways without being limited thereto.

통신부(230)는, 서버 또는 클라이언트와 무선 통신 시스템 사이, 서버 또는 클라이언트와 다른 서버 또는 클라이언트 사이, 또는 서버 또는 클라이언트와 외부서버(단말) 사이의 무선 통신을 가능하게 하는 하나 이상의 모듈을 포함할 수 있다. 또한, 통신부(210)는, 서버 또는 클라이언트를 하나 이상의 네트워크에 연결하는 하나 이상의 모듈을 포함할 수 있다.The communication unit 230 may include one or more modules enabling wireless communication between a server or client and a wireless communication system, between a server or client and another server or client, or between a server or client and an external server (terminal). there is. Also, the communication unit 210 may include one or more modules that connect a server or a client to one or more networks.

제어부(200)는 메모리(220)에 저장된 응용 프로그램을 구동하기 위하여, 서버 또는 클라이언트의 구성요소들 중 적어도 일부를 제어할 수 있다. 나아가, 제어부(200)는 상기 응용 프로그램의 구동을 위하여, 서버 또는 클라이언트에 포함된 구성요소들 중 적어도 둘 이상을 서로 조합하여 동작 시킬 수 있다.The controller 200 may control at least some of the components of the server or client in order to drive the application program stored in the memory 220 . Furthermore, the control unit 200 may combine and operate at least two or more of the components included in the server or client to drive the application program.

본 명세서에서 서버는 리버싱 엔진 또는/및 CDR 서비스를 제공하는 CDR 엔진을 포함할 수 있다.In this specification, the server may include a reversing engine or/and a CDR engine providing CDR services.

리버싱(Reversing) 엔진Reversing Engine

리버싱 엔진이란, 비실행 파일에 대한 리버스 엔지니어링(리버싱) 과정을 자동화 한 분석/진단 엔진이다. 이는 역공학이라고 불리며, 이를 통해 서버는 소스코드가 없는 소프트웨어를 컴퓨터가 실행할 수 있는 언어인 어셈블리단까지 들어가 소프트웨어의 원리 및 구조에 대해 알 수 있다. 이를 이용하여 서버는 일반적인 소프트웨어(예를 들어, msoffice, pdf) 구조, 악성코드 행위, 취약점 악용 방법 등을 알 수 있다.A reversing engine is an analysis/diagnostic engine that automates the reverse engineering (reversing) process for non-executable files. This is called reverse engineering, and through this, the server can learn about the principles and structure of software without source code by entering the assembly stage, which is a language that computers can execute. Using this, the server can know the structure of general software (for example, msoffice, pdf), malicious code behavior, and how to exploit vulnerabilities.

예를 들어, 리버싱 엔진은 다음의 단계를 수행할 수 있다.For example, the reversing engine may perform the following steps.

1.파일 분석: 비실행 파일 자체의 외관(예를 들어, 속성, 작성자, 작성 날짜, 파일 타입)을 분석하는 단계로서, 일반 백신 프로그램과 유사하게 비실행 파일 자체의 정보만으로 악성여부를 진단할 수 있다.1. File analysis: As a step of analyzing the appearance of the non-executable file itself (eg, attribute, author, date of creation, file type), similar to general vaccine programs, maliciousness can be diagnosed only with the information of the non-executable file itself. can

2.정적 분석: 비실행 파일 내의 데이터를 추출, 분석해서 정상, 악성 여부를 판별하는 단계로서, 비실행 파일은 실행하지 않고 파일 구조에 맞게 내부 데이터를 추출하여 비교 분석하여 악성여부를 진단할 수 있다. 이는 매크로, URL 추출 분석 등에 적합할 수 있다.2.Static analysis: This is a step of extracting and analyzing data in non-executable files to determine whether they are normal or malicious. Non-executable files are not executed, and internal data is extracted according to the file structure and analyzed for comparison to diagnose maliciousness. there is. This may be suitable for macros, URL extraction analysis, and the like.

3.동적 분석: 비실행 파일을 실행하고 모니터링하면서 행위를 분석하여 악성 여부를 판별하는 단계로서, 매크로, 하이퍼링크, DDE 등 정상기능을 이용한 악성 행위를 탐지하기에 용이하다.3.Dynamic analysis: This is a step of analyzing behaviors while executing and monitoring non-executable files to determine whether they are malicious. It is easy to detect malicious behaviors using normal functions such as macros, hyperlinks, and DDE.

4.디버깅 분석: 비실행 파일을 실행하고 디버깅하여 취약점, 익스플로잇 등을 분석하는 단계로서, 매크로, 하이퍼링크, DDE를 포함하여 문서 내 본문, 표, 폰트, 그림 등을 이용한 응용프로그램의 취약점을 탐지하기에 적합하다.4. Debugging analysis: This is a step of analyzing vulnerabilities and exploits by executing and debugging non-executable files. Detecting vulnerabilities of applications using text, tables, fonts, pictures, etc. in documents, including macros, hyperlinks, and DDE suitable for doing

리버싱 엔진은 디버깅 분석에 사용될 수 있는 디버깅 엔진을 포함할 수 있다. 디버깅 엔진은 비실행 파일의 열람 과정을 디버깅 모드를 이용하여 문서 입력, 처리, 출력단계에서 발생하는 취약점을 진단할 수 있다. 여기서 취약점이란, 응용프로그램이 응용프로그램의 개발자가 개발한 코드(로직)에서 예상하지 못한 값을 입력 받았을 때, 발생하는 오류, 버그 등을 이용하는 것으로서, 공격자는 취약점을 통해 비정상 종료로 인한 서비스 거부, 원격 코드 실행 등의 악성 문서 행위를 실행할 수 있다.The reversing engine may include a debugging engine that may be used for debugging analysis. The debugging engine can diagnose vulnerabilities occurring in document input, processing, and output stages by using the debugging mode for the process of reading non-executable files. Vulnerability here refers to the use of errors and bugs that occur when an application program receives an unexpected value from the code (logic) developed by the application developer. Malicious document behavior such as remote code execution can be executed.

디버깅 엔진은 디버거를 포함할 수 있다. 디버거는 리버스 엔지니어링을 하기 위한 도구로 다른 대상 프로그램을 어셈블리 레벨에서 Break Point를 할 수 있는 프로그램, 프로세스를 의미할 수 있다.A debugging engine may include a debugger. A debugger is a tool for reverse engineering and can mean a program or process capable of breaking points in other target programs at the assembly level.

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 to remove malicious or unnecessary files, and creates new files by keeping the contents as identical as possible to the original.

즉, CDR은 문서 내의 콘텐츠를 무해화(Disarm, 無害化)하고, 재조합(Reconstruction)하여 안전한 문서를 만들어 고객에게 제공하는 서비스를 의미한다. 여기서, 무해화 대상 파일은 비실행 파일 일체일 수 있다. 비실행 파일로는 워드 파일, 엑셀 파일, 파워포인트 파일, 한글 파일, PDF 파일을 예로 들 수 있다. 무해화 대상 콘텐츠는 액티브 콘텐츠일 수 있다. 액티브 콘텐츠로는 매크로, 하이퍼링크, 객체연결삽입(Object Linking and Embedding, OLE)을 예로 들 수 있다.In other words, CDR refers to a service that disarms and reconstructs contents in documents to create safe documents and provide them to customers. Here, the files to be harmless may be all non-executable files. Word files, Excel files, PowerPoint files, Hangul files, and PDF files may be exemplified as non-executable files. Content to be harmless may be active content. Examples of active content include macros, hyperlinks, and object linking and embedding (OLE).

도 3은 본 명세서에 적용될 수 있는 비정상 입력의 예시이다.3 is an example of an abnormal input that can be applied to this specification.

도 3을 참조하면, 응용프로그램은 비실행 파일을 통해, 비정상적인 값(예를 들어, 입력값이 정상범위인 2를 초과하는 경우)을 입력 받는 경우, 개발자가 의도하지 않은 실행흐름으로 변경되어 취약점이 동작될 수 있다. 디버깅 엔진은 문서 열람 과정을 자동 디버깅하여 취약점과 관련된 특정 지점에 브레이크 포인트를 설정하고 입력값과 관련된 특정값을 확인하여 입력값이 취약점을 일으키는 값인지 아닌지 판별하여 악성 여부를 진단할 수 있다.Referring to FIG. 3, when an application program receives an abnormal value (for example, when the input value exceeds the normal range of 2) through a non-executable file, the application program is changed into an execution flow unintended by the developer and is vulnerable. this can work. The debugging engine automatically debugs the document browsing process, sets a breakpoint at a specific point related to the vulnerability, checks a specific value related to the input value, determines whether the input value is a value that causes a vulnerability, and diagnoses whether the input value is malicious.

보다 자세하게, 디버깅 엔진은 비실행 파일을 확인하고 이를 열람하기 위한 응용프로그램을 실행하여 디버깅을 시작할 수 있다. 비실행 파일을 열람하는 과정에서 문서 행위와 관련된 모듈이 로드 되면, 디버깅 엔진은 해당 모듈이 분석 대상 모듈인지 확인하고, 분석 대상이라면 지정된 주소에 브레이크 포인트를 설정할 수 있다.More specifically, the debugging engine can start debugging by identifying non-executable files and running an application to view them. When a module related to a document behavior is loaded while viewing a non-executable file, the debugging engine checks whether the module is an analysis target module, and if it is an analysis target, it can set a breakpoint at a designated address.

예를 들어, 악성 비실행 파일은 응용프로그램의 버전이나 운영체제 환경 등의 특정 조건이 만족하지 않으면 응용프로그램을 종료하거나 아무런 악성 행위가 발생하지 않는 흐름으로 분기하는 분기 지점들을 가질 수 있다. 서버는 사전에 분석가에 의해 분석되어 이러한 가능성을 가지는 분기 지점에 브레이크 포인트를 설정할 수 있다. For example, a malicious non-executable file may have branching points at which an application program is terminated or branched into a flow in which no malicious activity occurs unless a specific condition such as an application version or an operating system environment is satisfied. The server can set a breakpoint at a divergence point that has been previously analyzed by an analyst and has this possibility.

또한, 서버는 해당 분기 지점과 연관되어, 응용프로그램을 종료하지 않고 계속 실행하거나 악성 행위가 발생할 수 있는 흐름으로 유도할 수 있는 조건들을 설정할 수 있다.In addition, the server may set conditions associated with a corresponding branching point to continuously execute the application program without terminating or lead to a flow in which a malicious action may occur.

응용프로그램의 프로세스 실행 중 해당 브레이크 포인트 지점에서 프로세스가 멈춘 경우, 서버는 탐지 로직에 따라 취약점 여부를 탐지한 후, 결과를 분석 리포트에 저장하는 단계를 수행할 수 있다.If the process stops at the corresponding breakpoint while the process of the application program is running, the server may perform a step of detecting whether or not there is a vulnerability according to the detection logic and then storing the result in an analysis report.

서버에 포함된 자동화 리버싱 엔진은 전술한 단계들을 자동으로 수행하면서 분석하여 분석가가 연구, 개발한 진단 알고리즘을 통해, 악성 비실행 파일을 진단하고 차단할 수 있다.The automated reversing engine included in the server can analyze and diagnose malicious non-executable files through a diagnosis algorithm researched and developed by an analyst by automatically performing and analyzing the above steps.

도 4는 본 명세서가 적용될 수 있는 비실행 파일의 문서 행위 판단 방법을 예시한다.4 illustrates a method for determining a document behavior of a non-executable file to which this specification can be applied.

도 4를 참조하면, 서버는 비실행 파일 및 비실행 파일을 실행시키기 위한 응용프로그램(예를 들어, MSOFFICE, 한컴오피스 등)을 포함할 수 있다. 예를 들어, 비실행 파일의 문서 행위는 매크로 동작을 포함할 수 있다.Referring to FIG. 4 , the server may include non-executable files and application programs (eg, MSOFFICE, Hancom Office, etc.) for executing non-executable files. For example, a document action of a non-executable file may include a macro action.

서버는 디버깅(debugging) 모드로 응용프로그램의 프로세스를 실행한다(S4010). 예를 들어, 서버는 CreateProcess API를 이용하여 디버깅 모드(DEBUG_ONLY_THIS_PROCESS)로 응용프로그램의 분석 대상 비실행 파일을 열기 위한 문서 프로세스를 실행할 수 있다. 이를 통해, 서버는 응용프로그램 프로세스의 디버그 이벤트를 수신 받을 수 있다.The server executes the process of the application program in debugging mode (S4010). For example, the server may execute a document process for opening a non-executable file to be analyzed by an application program in a debugging mode (DEBUG_ONLY_THIS_PROCESS) using the CreateProcess API. Through this, the server can receive the debug event of the application program process.

보다 자세하게, 서버는 CreateProcess API를 이용하여 응용프로그램 프로세스를 “DEBUG_ONLY_THIS_PROCESS” 플래그를 줘서 실행할 수 있다. In more detail, the server can execute the application process by passing the “DEBUG_ONLY_THIS_PROCESS” flag using the CreateProcess API.

서버는 응용프로그램의 프로세스에 근거하여, 문서 행위와 매칭되는 지점에 제1 중단점(breakpoint)를 설정한다(S4020). 예를 들어, 서버는 메모리에 적재된 응용프로그램의 프로세스와 관련된 OP(operating) 코드를 “0xCC”로 변경하여 중단점을 설정할 수 있다. OP 코드란, 명령코드를 의미하며 CPU가 실제로 수행하여야 할 작업 내용이 작성되어 있는 코드일 수 있다. 이를 위해, 서버는 WriteProcessMemory를 이용하여 메모리를 변경할 수 있다. Based on the process of the application program, the server sets a first breakpoint at a point matching the document behavior (S4020). For example, the server can set a breakpoint by changing the OP (operating) code related to the process of the application program loaded into memory to “0xCC”. The OP code means an instruction code and may be a code in which work contents to be actually performed by the CPU are prepared. To do this, the server can change the memory using WriteProcessMemory.

서버에는 문서 행위 및 해당 문서 행위가 매칭되는 지점에 관한 정보가 미리 설정되어 있을 수 있다. 예를 들어, 서버는 미리 정의 되어있는 행위 매칭 Break Point Table에 따라 WriteProcessMemory API를 이용하여 중단점을 설치할 수 있다.In the server, information about a document act and a point where the document act is matched may be set in advance. For example, the server can set breakpoints using the WriteProcessMemory API according to the predefined behavior matching Break Point Table.

서버는 비실행 파일이 실행 중인지 여부를 검사한다(S4030). 보다 자세하게, 서버는 Break Point를 설정한 후, 분석이 요청된 기타 비실행 파일들이 열람되어 있는 중인지 여부를 확인한다. 비실행 파일에서 요구하는 기능에 따라, 응용프로세스는 필요한 모듈이 메모리에 적재되므로, 타켓이 되는 비실행 파일의 문서 행위 판단의 신뢰성 확보에서 응용프로그램은 기타 비실행 파일들이 열람되어 있지 않은 상태를 갖어야 한다. 예를 들어, 악성 비실행 파일이 열람되었다면, 문서 행위 판단 결과에 대한 신뢰성이 낮아질 수 있다.The server checks whether the non-executable file is being executed (S4030). More specifically, after setting a break point, the server checks whether other non-executable files requested for analysis are being read. Depending on the functions required by the non-executable file, the application process loads the necessary modules into the memory, so the application program has a state in which other non-executable files are not read in order to secure the reliability of determining the document behavior of the target non-executable file. should be For example, if a malicious non-executable file is read, the reliability of the document behavior determination result may be lowered.

서버는 비실행 파일이 실행 중이지 않은 것에 근거하여, 분석 대상 비실행 파일을 실행한다(S4040). 보다 자세하게, 서버는 사용자가 분석을 요청한 비실행 파일을 해당 포맷에 맞는 응용프로그램 프로세스(예를 들어, EXCEL, WORD, PPT 등)를 이용하여 열람한다. 예들 들어, 서버는 MS Power point을 이용하여 sample.ppt 파일을 열람할 수 있다. 또는 서버는 비실행 파일이 실행 중인 지 여부를 검사하지 않고, 분석 대상 파일을 바로 실행할 수 있다.Based on the fact that the non-executable file is not being executed, the server executes the non-executable file to be analyzed (S4040). In more detail, the server reads the non-executable file requested by the user for analysis using an application program process (eg, EXCEL, WORD, PPT, etc.) suitable for the format. For example, the server can browse the sample.ppt file using MS Power Point. Alternatively, the server may directly execute the file to be analyzed without checking whether the non-executable file is running.

서버는 메모리 상에 분석 대상 비실행 파일과 관련된 신규 모듈이 로드되었는 지 여부를 판단한다(S4050). 서버는 분석 대상 비실행 파일이 응용프로그램 프로세스에 의해 실행되면, 신규 모듈이 로드되었는지 확인한다.The server determines whether a new module related to the non-executable file to be analyzed is loaded on the memory (S4050). When the non-executable file to be analyzed is executed by the application program process, the server checks whether a new module is loaded.

예를 들어, 서버는 디버깅 모드를 이용하여, 응용프로그램 프로세스에서 디버깅 이벤트가 발생하면 이를 수신할 수 있다. 서버는 해당 이벤트를 이용하여 LOAD DLL 이벤트가 발생하면 신규 모듈(예를 들어, DLL 메모리 탑재)로 판단할 수 있다. 보다 자세하게, 서버는 “LOAD_DLL_DEBUG_EVENT” 이벤트가 발생하면 신규 모듈이 올라온 것으로 판단할 수 있다.For example, the server may receive a debugging event when a debugging event occurs in an application program process using a debugging mode. The server can determine a new module (eg, DLL memory loading) when a LOAD DLL event occurs using the corresponding event. In more detail, the server may determine that a new module has been uploaded when a “LOAD_DLL_DEBUG_EVENT” event occurs.

예를 들어, 서버는 분석 대상 비실행 파일에서 필요한 기능(예를 들어, 메크로, ActiveX 기능 등)을 사용하기위해 응용프로그램 프로세스 기능에 맞는 모듈을 신규로 메모리에 적재할 수 있다.For example, the server may newly load a module suitable for an application program process function into memory in order to use a function (for example, a macro, an ActiveX function, etc.) required in a non-executable file to be analyzed.

서버는 신규 모듈의 로드에 근거하여, 문서 행위와 매칭되는 지점에 제2 중단점을 설정한다(S4060). 만일, 신규 모듈이 로드되었다고 판단되지 않는 경우, 서버는 제2 중단점을 설정하지 않는다.Based on the load of the new module, the server sets a second breakpoint at a point matching the document action (S4060). If it is not determined that the new module is loaded, the server does not set a second breakpoint.

서버는 제1 중단점 및/또는 제2 중단점에서 응용프로그램 프로세스가 중단되었는지 여부를 모니터링한다(S4070). 예를 들어, 서버는 중단점에서 응용프로그램 프로세스가 중단되어 프로세스 제어권이 디버거로 넘어갔는지를 확인할 수 있다. 제어권을 넘겨받은 디버거는 어떤 중단점에서 중단되었는지를 확인할 수 있다.The server monitors whether the application process is stopped at the first breakpoint and/or the second breakpoint (S4070). For example, the server can check whether the application process is stopped at the breakpoint and control of the process is transferred to the debugger. The debugger that has taken over control can check at which breakpoint it was interrupted.

서버는 모니터링 결과에 근거하여, 제1 중단점 및/또는 제2 중단점과 매칭되는 문서 행위 정보를 생성한다(S4080). 예를 들어, 서버는 중단점의 주소값을 확인할 수 있다. 이후, 서버는 해당 문서 행위 및 해당 문서 행위가 매칭되는 지점에 관한 정보에 근거하여, 중단점의 주소값과 매칭된 문서 행위에 대한 정보를 생성하고 이를 저장할 수 있다.Based on the monitoring result, the server generates document action information matching the first breakpoint and/or the second breakpoint (S4080). For example, the server can check the address value of the breakpoint. Thereafter, the server may generate and store information on a document activity matched with an address value of a breakpoint based on information about a corresponding document activity and a point where the corresponding document activity is matched.

다음의 표 1은 저장되는 중단점의 주소값과 매칭된 문서 행위의 예시이다.Table 1 below is an example of the document behavior matched with the stored address value of the breakpoint.

Break Point 주소Break Point Address 문서 행위document act 0x123456780x12345678 문서에서 ActiveX 실행Run ActiveX from document

또한, 문서 행위를 획득하기 위해 서버는 추가 액션을 수행할 수 있다.Also, to obtain the document behavior, the server may perform additional actions.

도 5는 본 명세서가 적용될 수 있는 문서 행위를 획득하기 위한 서버의 추가 액션의 예시이다.5 is an example of an additional action of a server to obtain a document action to which this specification may be applied.

도 5를 참조하면, “포인트 조건(point condition)”은 문서 행위를 획득하기 위한 서버의 추가 액션을 예시한다. 예를 들어, 서버는 중단점을 통해, 비실행 파일 문서의 DDE(Dynamic Data Exchange) 문서 행위를 탐지할 수 있다. 또한, 서버는 기설정된 정보(table)에 근거하여, DDE 기능의 명령어를 알 수 있다.Referring to Fig. 5, a "point condition" illustrates an additional action of the server to obtain a document action. For example, the server can detect the behavior of a Dynamic Data Exchange (DDE) document of a non-executable file document through a breakpoint. In addition, the server can know the command of the DDE function based on preset information (table).

예를 들어, 서버는 기설정된 정보에 근거하여, 코드상으로 자동으로 문자열 획득이 구현 되어있음을 확인할 수 있고, 해당 코드를 추출하면 비실행 파일이 DDE 기능을 이용하여 어떤 명령어를 사용할 지 알 수 있다. 이를 통해, 서버는 해당 명령어에 대응되는 문서 행위를 보다 정확하게 저장할 수 있다.For example, the server can confirm that string acquisition is implemented automatically in the code based on preset information, and when the code is extracted, the non-executable file can know which command to use using the DDE function. there is. Through this, the server can more accurately store the document action corresponding to the command.

도 6은 본 명세서가 적용될 수 있는 서버의 DDE 기능 명령어 탐지 테이블을 예시한다.6 illustrates a DDE function command detection table of a server to which this specification can be applied.

다시 도 4를 참조하면, 서버는 분석 대상 비실행 파일의 열람이 종료되었는지를 판단한다(S4090). 예를 들어, 서버는 기설정된 시간이 지났거나 메시지박스(Alert), Break Point를 일정시간 거치지 않았을 경우 등의 방식으로 분석 대상 비실행 파일의 열람이 종료되었는지 판단할 수 있다.Referring back to FIG. 4 , the server determines whether the reading of the non-executable file to be analyzed is terminated (S4090). For example, the server may determine whether the viewing of the non-executable file to be analyzed is terminated in a manner such as when a preset time has elapsed or a message box (Alert) or a break point has not been passed for a certain period of time.

만일, 열람이 종료되지 않은 경우, 서버는 응용프로그램의 프로세스가 중단점에서 중단되었는지를 지속적으로 모니터링한다. 이를 통해, 서버는 문서 행위가 충분히 발현되도록 대기할 수 있다.If the browsing is not terminated, the server continuously monitors whether the process of the application program is stopped at the breakpoint. Through this, the server can wait for the document action to fully manifest.

이후, 서버는 저장된 문서 행위 정보를 단말로 전달할 수 있다. 이를 위해, 단말은 서버와 통신할 수 있고, 서버의 동작을 제어할 수 있는 관리프로그램을 포함할 수 있다. 단말은 관리 응용프로그램을 통해, 사용자에게 문서 행위 정보를 제공할 수 있다.Thereafter, the server may transmit the stored document behavior information to the terminal. To this end, the terminal may include a management program capable of communicating with the server and controlling the operation of the server. The terminal may provide document action information to the user through the management application program.

기존의 APT 솔루션은 문서 행위 발현 후, 샌드박스 변화를 기반으로 문서 행위를 추출한다. 이는 샌드박스가 문서 행위가 발현될 때까지 대기해야 하기 때문에 분석시간이 길어진다. 또한, 최종적으로 마지막 부분(예를 들어, 샌드박스 변화 후)을 확인하기 때문에 본 명세서의 분석 속도보다 느리다.Existing APT solutions extract document behavior based on sandbox changes after document behavior is manifested. This increases the analysis time because the sandbox has to wait until the document behavior is manifested. Also, since the last part is finally checked (eg, after sandbox change), the analysis speed in this specification is slower.

또한, 본 명세서의 서버는 샌드박스의 변화 전 단계에서 응용프로그램 프로세스가 실행되는 시점부터 분석을 시작할 수 있다.In addition, the server of the present specification may start analysis from the time when the application process is executed in the stage before the change of the sandbox.

또한, 어셈블리 레벨(예를 들어, CPU 명령어 처리 단계)부터 문서 행위의 변화를 확인하기 때문에 기존 APT 솔루션보다 분석 속도(행위 추출)가 빠르다.In addition, since changes in document behavior are identified from the assembly level (eg, CPU instruction processing stage), the analysis speed (behavior extraction) is faster than that of existing APT solutions.

또한, 기존 APT 솔루션은 문서 행위가 발현할 때까지 대기하므로, 종료 시점을 알기 어렵다. 하지만 본 명세서에서 서버는 문서 행위의 종료 시점을 대략적으로 판단할 수 있으므로, 빠르게 분석이 가능하다.In addition, the existing APT solution waits until the document action appears, so it is difficult to know the end point. However, in this specification, since the server can roughly determine the end point of a document action, it is possible to analyze quickly.

또한, 본 명세서에서 서버는 문서 행위와 대응되는 응용프로그램 프로세스가 사용하는 기능을 정확하게 파악할 수 있다.In addition, in this specification, the server can accurately grasp the function used by the application program process corresponding to the document action.

도 7은 본 명세서에 적용될 수 있는 서버의 일 실시예이다.7 is an embodiment of a server that can be applied to this specification.

도 7을 참조하면, 정상 및 악성 문서(비실행 파일)들이 대량으로 유입되는 경우, 서버는 엔진을 통한 문서 행위 판단을 수행하기 전에 OCR 기술을 활용하여 탐지 속도 개선 및 탐지율 고도화를 도모할 수 있다.Referring to FIG. 7, when a large amount of normal and malicious documents (non-executable files) are introduced, the server can improve the detection rate and advance the detection rate by utilizing OCR technology before determining the document behavior through the engine. .

엔진을 통한 문서 행위 판단은 도 4에서 예시하고 있는 비실행 파일의 문서 행위 판단 방법을 포함할 수 있다. 엔진은 리버싱 엔진 및 CDR 엔진을 포함한다.Document behavior determination through the engine may include the document behavior determination method of non-executable files illustrated in FIG. 4 . The engine includes a reversing engine and a CDR engine.

예를 들어, 서버는 문서들이 유입될 경우 OCR 기술을 활용하여 유입된 문서에 대해 문자열을 추출하고, 추출된 문자열을 비교하여 매칭이 된 문서들에 대해서 상세 분석을 수행할 수 있다. 이를 통해, 엔진의 탐지율은 고도화될 수 있다.For example, when documents are introduced, the server extracts text strings from the imported documents using OCR technology, compares the extracted text strings, and performs detailed analysis on matching documents. Through this, the detection rate of the engine can be improved.

만일, 매칭이 안 된 경우, 서버는 당해 문서를 정상 문서로 판단하며, 다음으로 유입되는 문서에 대해 상세 분석을 수행행한다. 이를 통해, 엔진의 탐지 속도는 개선될 수 있다.If there is no matching, the server determines the document as a normal document and performs a detailed analysis on the next incoming document. Through this, the detection speed of the engine can be improved.

서버는 OCR을 이용하여, 비실행 파일의 문자열을 추출한다(S7010). 예를 들어, 서버는 다른 서버 또는 네트워크로부터 비실행 파일을 수신할 수 있다. 서버는 비실행 파일을 분석하기 위한 가상화 머신을 생성하고, 가상화 머신을 통해 비실행 파일을 실행할 수 있다. 서버는 가상화 머신을 통해, 비실행 파일로부터, 이미지 파일을 생성할 수 있다. 예를 들어, 서버는 실행된 비실행 파일의 첫번째 페이지를 스크린샷하고, 스크린샷된 이미지 파일로부터 OCR을 이용하여 문자열을 추출할 수 있다. The server extracts the character string of the non-executable file using OCR (S7010). For example, a server may receive a non-executable file from another server or network. The server may generate a virtualization machine for analyzing the non-executable file and execute the non-executable file through the virtualization machine. The server may create an image file from a non-executable file through a virtualization machine. For example, the server may take a screenshot of the first page of the executed non-executable file and extract a character string from the screenshot image file using OCR.

도 8 내지 도 10은 본 명세서가 적용될 수 있는 이미지 파일의 일부에 대한 예시이다.8 to 10 are examples of a part of image files to which the present specification can be applied.

도 8 및 도 9를 참조하면, 서버가 매크로가 포함된 Word 파일을 실행하는 경우, Word는 보안 상의 이유로, Word 파일에 포함된 매크로를 비활성화 할 수 있는 보안 경고 메시지를 표시할 수 있다. Referring to FIGS. 8 and 9 , when a server executes a Word file including macros, Word may display a security warning message for disabling macros included in the Word file for security reasons.

도 10을 참조하면, 서버가 매크로가 포함된 PowerPoint 파일을 실행하는 경우, PowerPoint는 매크로가 비활성화되었다는 보안 경고 메시지를 표시할 수 있다.Referring to FIG. 10 , when a server executes a PowerPoint file including macros, PowerPoint may display a security warning message indicating that macros are disabled.

이러한 보안 경고 메시지는 일반적으로 비실행 파일의 첫번째 페이지에 표시될 수 있다.This security warning message can usually be displayed on the first page of non-executable files.

예를 들어, Microsoft Office는 보안 경고 메시지를 표시하여, 매크로가 포함된 비실행 파일(예를 들어, Word, Excel 또는 PowerPoint 파일)로부터 사용자를 보호할 수 있다.For example, Microsoft Office may display a security warning message to protect users from non-executable files (eg, Word, Excel, or PowerPoint files) containing macros.

서버는 OCR을 이용하여, 이러한 보안 경고 메시지가 포함된 이미지 파일을 획득할 수 있다.The server may obtain an image file including such a security warning message using OCR.

예를 들어, 악성 문서가 실행되면, 문서 내부의 자동 실행 매크로에 의해 다양한 악성 동작이 수행될 수 있다. MS-OFFICE의 기본 보안 설정에 따라, 문서 내부에 매크로가 포함된 경우, 해당 매크로는 자동으로 실행되지 않는다. 이 경우, 사용자는 보안 경고 메시지에 따라 보안 설정을 할 수 있다. For example, when a malicious document is executed, various malicious actions may be performed by automatically executing macros inside the document. According to MS-OFFICE's default security settings, if a macro is included inside a document, the macro is not automatically executed. In this case, the user can set security according to the security warning message.

악성 비실행 파일은 이러한 보안 설정을 우회하기 위해 사회공학적 기법을 사용할 수 있다. 예를 들어, 악성 비실행 파일은 첫 페이지에 MS-OFFICE 보안 경고를 해제하는 방법에 대해 이미지 형태 또는 문자열을 작성하여 보안 설정을 해제하는 방법의 안내 문구를 사용자에게 제공할 수 있다. Malicious non-executable files can use social engineering techniques to bypass these security settings. For example, the malicious non-executable file may provide the user with a guide on how to disable security settings by creating an image or text string on how to disable MS-OFFICE security warnings on the first page.

다시 도 7을 참조하면, 서버는 가상화 머신을 통해, OCR을 실행하고 이러한 이미지 파일에 포함된 문자열을 추출할 수 있다. 보다 자세하게, 서버는 보안 설정 해제와 관련된 문자열을 추출할 수 있다.Referring back to FIG. 7 , the server may execute OCR through a virtualization machine and extract a string included in the image file. In more detail, the server may extract a string related to security setting release.

서버는 악성 의심 문자열과 추출된 문자열을 비교한다(S7020). 예를 들어, 악성 의심 문자열은 비실행 파일의 보안 설정 해제와 관련된 문자열(예를 들어, Enable Content, Click, Enable Macros)을 포함한다. 이러한 악성 의심 문자열은 보안 경고 메시지의 문자열에 근거하여, 서버에 기설정될 수 있다. The server compares the suspected malicious character string with the extracted character string (S7020). For example, the suspicious malicious string includes a string related to releasing security settings of non-executable files (eg, Enable Content, Click, Enable Macros). Such a suspicious malicious string may be preset in the server based on the string of the security warning message.

서버는 악성 의심 문자열 리스트를 관리하기 위한 데이터베이스를 메모리에에 포함할 수 있다.The server may include in memory a database for managing a list of suspected malicious character strings.

서버는 악성 의심 문자열과 추출된 문자열의 매칭(matching)에 근거하여, 비실행 파일을 분석한다(S7030). 예를 들어, 서버는 비실행 파일을 분석하기 위해, 도 4에서 예시하고 있는 비실행 파일의 문서 행위 판단 방법을 수행할 수 있다. 보다 자세하게, 서버는 악성 의심 문자열 리스트 중에 추출된 문자열과 매칭되는 악성 의심 문자열이 있는 경우, 비실행 파일에 악성 매크로가 포함되어 있는지를 분석할 수 있다. 만일, 매칭되지 않은 경우, 서버는 비실행 파일을 분석하지 않고, 정상 파일로 판단할 수 있다.The server analyzes the non-executable file based on the matching of the suspicious malicious character string and the extracted character string (S7030). For example, the server may perform the document behavior determination method of the non-executable file illustrated in FIG. 4 in order to analyze the non-executable file. In more detail, if there is a suspected malicious string matching the extracted string in the list of suspected malicious strings, the server may analyze whether the non-executable file contains a malicious macro. If not matched, the server may determine the non-executable file as a normal file without analyzing it.

서버는 비실행 파일이 악성 매크로를 포함한 것에 근거하여, 악성 의심 문자열을 업데이트한다(S7040). 예를 들어, 서버는 악성으로 판단된 비실행 파일에서 추출된 문자열들을 누적하여 저장할 수 있다. 서버는 누적된 문자열들을 비교하여, 일정비율 이상으로 동일하게 매칭된 문자열들을 악성 의심 문자열 리스트에 추가할 수 있다.The server updates the suspected malicious character string based on the fact that the non-executable file includes a malicious macro (S7040). For example, the server may accumulate and store character strings extracted from non-executable files determined to be malicious. The server may compare the accumulated character strings and add identically matched strings at a predetermined rate or more to the list of suspected malicious strings.

일반적인 APT(Advanced Persistent Threat) 보안 솔루션(샌드박스)은 사용자 행위(상호작용)를 발생시킬 수 있는 방법이 없으므로, 유입되는 모든 문서(정상 및 악성)에 대해 매크로 탐지 함수를 실행하므로, 전반적인 탐지 시간이 오래 걸린다.A typical APT (Advanced Persistent Threat) security solution (sandbox) has no way to cause user behavior (interaction), so it executes a macro detection function for all incoming documents (normal and malicious), so overall detection time this takes a long time

디버거 기반의 엔진의 경우, 매크로가 포함되지 않는 정상 문서에도 디버거 탐지를 수행하여야 하는 문제가 있다.In the case of a debugger-based engine, there is a problem in that debugger detection must be performed even in normal documents that do not contain macros.

본 명세서는 이러한 문제점을 해결할 수 있다.The present specification can solve these problems.

전술한 본 명세서는, 프로그램이 기록된 매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 매체는, 컴퓨터 시스템에 의하여 읽혀 질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 컴퓨터가 읽을 수 있는 매체의 예로는, HDD(Hard Disk Drive), SSD(Solid State Disk), SDD(Silicon Disk Drive), ROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크, 광 데이터 저장 장치 등이 있으며, 또한 캐리어 웨이브(예를 들어, 인터넷을 통한 전송)의 형태로 구현되는 것도 포함한다. 따라서, 상기의 상세한 설명은 모든 면에서 제한적으로 해석되어서는 아니되고 예시적인 것으로 고려되어야 한다. 본 명세서의 범위는 첨부된 청구항의 합리적 해석에 의해 결정되어야 하고, 본 명세서의 등가적 범위 내에서의 모든 변경은 본 명세서의 범위에 포함된다.The above specification can be implemented as computer readable code on a medium on which a program is recorded. Computer-readable media include all types of recording devices in which data that can be read by a computer system is stored. Examples of computer-readable media include Hard Disk Drive (HDD), Solid State Disk (SSD), Silicon Disk Drive (SDD), ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc. , and also includes those implemented in the form of a carrier wave (eg, transmission over the Internet). Accordingly, the above detailed description should not be construed as limiting in all respects and should be considered illustrative. The scope of this specification should be determined by reasonable interpretation of the appended claims, and all changes within the equivalent scope of this specification are included in the scope of this specification.

또한, 이상에서 서비스 및 실시 예들을 중심으로 설명하였으나 이는 단지 예시일 뿐 본 명세서를 한정하는 것이 아니며, 본 명세서가 속하는 분야의 통상의 지식을 가진 자라면 본 서비스 및 실시 예의 본질적인 특성을 벗어나지 않는 범위에서 이상에 예시되지 않은 여러 가지의 변형과 응용이 가능함을 알 수 있을 것이다. 예를 들어, 실시 예들에 구체적으로 나타난 각 구성 요소는 변형하여 실시할 수 있는 것이다. 그리고 이러한 변형과 응용에 관계된 차이점들은 첨부한 청구 범위에서 규정하는 본 명세서의 범위에 포함되는 것으로 해석되어야 할 것이다.In addition, although services and embodiments have been described above, this is only an example and does not limit the present specification, and those skilled in the art to which this specification belongs will not deviate from the essential characteristics of the present service and embodiments. It will be appreciated that various modifications and applications not exemplified above are possible. For example, each component specifically shown in the embodiments can be modified and implemented. And differences related to these modifications and applications should be construed as being included in the scope of the present specification as defined in the appended claims.

Claims (8)

서버가 OCR(Optical character recognition)을 이용하여 비실행 파일의 악성 매크로(macro)를 탐지하는 방법에 있어서,
상기 OCR을 이용하여, 상기 비실행 파일의 문자열을 추출하는 단계;
1) 상기 매크로의 보안 설정 해제와 관련된 악성 의심 문자열과 2) 상기 추출된 문자열을 비교하는 단계; 및
상기 악성 의심 문자열과 상기 추출된 문자열의 매칭에 근거하여, 상기 비실행 파일에 상기 악성 매크로가 포함되어 있는지를 분석하는 단계;
를 포함하며,
상기 비실행 파일의 문자열을 추출하는 단계는
상기 비실행 파일을 분석하기 위한 가상화 머신(Virtual Machine)을 생성하는 단계;
상기 가상화 머신을 통해, 상기 비실행 파일을 실행하는 단계;
상기 비실행 파일의 첫번째 페이지를 스크린샷하는 단계; 및
상기 스크린샷된 이미지 파일로부터 상기 OCR을 이용하여 문자열을 추출하는 단계;
를 포함하는, 악성 매크로 탐지 방법.
A method for a server to detect a malicious macro of a non-executable file using OCR (Optical Character Recognition),
extracting a character string of the non-executable file using the OCR;
1) comparing a suspected malicious character string related to security setting release of the macro and 2) the extracted character string; and
analyzing whether or not the malicious macro is included in the non-executable file, based on matching between the suspicious malicious character string and the extracted character string;
Including,
Extracting the string of the non-executable file
generating a virtual machine for analyzing the non-executable file;
executing the non-executable file through the virtualization machine;
taking a screenshot of the first page of the non-executable file; and
extracting a character string from the screenshot image file using the OCR;
Including, malicious macro detection method.
제1항에 있어서,
상기 비실행 파일이 상기 악성 매크로를 포함한 것에 근거하여, 상기 악성 의심 문자열을 업데이트 하는 단계;
를 더 포함하는, 악성 매크로 탐지 방법.
According to claim 1,
updating the suspected malicious character string based on whether the non-executable file includes the malicious macro;
Further comprising a malicious macro detection method.
삭제delete 제1항에 있어서,
상기 악성 의심 문자열은
“Enable Content”, “Click”, 및 “Enable Macros”를 포함하는, 악성 매크로 탐지 방법.
According to claim 1,
The malicious suspect string is
Malicious macro detection methods, including “Enable Content”, “Click”, and “Enable Macros”.
제1항에 있어서,
상기 악성 의심 문자열과 상기 추출된 문자열이 매칭되지 않는 것에 근거하여, 다음 비실행 파일의 문자열을 추출하는 단계;
를 더 포함하는, 악성 매크로 탐지 방법.
According to claim 1,
extracting a character string of a next non-executable file based on a mismatch between the suspected malicious character string and the extracted character string;
Further comprising a malicious macro detection method.
제2항에 있어서,
상기 비실행 파일이 상기 악성 매크로를 포함한 것에 근거하여:
상기 추출된 문자열은 누적하여 저장되는, 악성 매크로 탐지 방법.
According to claim 2,
Based on the non-executable file containing the malicious macro:
The extracted character string is accumulated and stored, malicious macro detection method.
제6항에 있어서,
상기 악성 의심 문자열을 업데이트 하는 단계는
상기 누적되어 저장된 추출된 문자열들의 집합에서 일정비율 이상으로 동일하게 매칭된 문자열을 상기 악성 의심 문자열에 추가하는 단계;
를 포함하는, 악성 매크로 탐지 방법.
According to claim 6,
The step of updating the suspected malicious string
adding, to the suspected malicious character string, a character string identically matched at a predetermined rate or more from the accumulated and stored extracted set of character strings;
Including, malicious macro detection method.
OCR(Optical character recognition)을 이용하여 비실행 파일의 악성 매크로(macro)를 탐지하는 서버에 있어서,
통신부;
악성 의심 문자열을 관리하기 위한 데이터베이스가 포함된 메모리; 및
상기 통신부 및 상기 메모리를 기능적으로 제어하는 프로세서;를 포함하고,
상기 프로세서는
상기 OCR을 이용하여, 상기 비실행 파일의 문자열을 추출하고, 1) 상기 매크로의 보안 설정 해제와 관련된 상기 악성 의심 문자열과 2) 상기 추출된 문자열을 비교하며, 상기 악성 의심 문자열과 상기 추출된 문자열의 매칭에 근거하여, 상기 비실행 파일에 상기 악성 매크로가 포함되어 있는지를 분석하고,
상기 비실행 파일의 문자열을 추출하기 위해, 상기 비실행 파일을 분석하기 위한 가상화 머신(Virtual Machine)을 생성하고, 상기 가상화 머신을 통해, 상기 비실행 파일을 실행하며, 상기 비실행 파일의 첫번째 페이지를 스크린샷하고, 상기 스크린샷된 이미지 파일로부터 상기 OCR을 이용하여 문자열을 추출하는, 서버.
In a server that detects a malicious macro of a non-executable file using optical character recognition (OCR),
communications department;
a memory containing a database for managing suspicious malicious strings; and
A processor functionally controlling the communication unit and the memory;
The processor
Using the OCR, a character string of the non-executable file is extracted, 1) the malicious suspicious character string related to the release of the security setting of the macro, and 2) the extracted character string are compared, and the malicious suspicious character string and the extracted character string are compared. Based on the matching of, analyze whether the malicious macro is included in the non-executable file,
In order to extract the string of the non-executable file, a virtual machine for analyzing the non-executable file is created, the non-executable file is executed through the virtual machine, and the first page of the non-executable file is executed. A server for screenshotting and extracting a character string from the screenshot image file using the OCR.
KR1020227033331A 2022-09-26 2022-09-26 Methods and apparatus for detecting malicious macros in non-executable files using ocr KR102494827B1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/KR2022/014309 WO2024071451A1 (en) 2022-09-26 2022-09-26 Method for detecting malicious macro in non-executable file by using ocr technology, and apparatus therefor

Publications (1)

Publication Number Publication Date
KR102494827B1 true KR102494827B1 (en) 2023-02-06

Family

ID=85225378

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020227033331A KR102494827B1 (en) 2022-09-26 2022-09-26 Methods and apparatus for detecting malicious macros in non-executable files using ocr

Country Status (2)

Country Link
KR (1) KR102494827B1 (en)
WO (1) WO2024071451A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102698908B1 (en) * 2024-03-11 2024-08-26 시큐레터 주식회사 Methods for quickly detecting information within incoming documents in security solutions

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210079495A (en) * 2019-12-20 2021-06-30 주식회사 엔에스에이치씨 Phishing malware detection method for public and financial institutions using words in image and voice files and whitelists

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101194746B1 (en) * 2005-12-30 2012-10-25 삼성전자주식회사 Method of and apparatus for monitoring code for intrusion code detection
KR100977180B1 (en) * 2008-04-04 2010-08-23 엔에이치엔(주) Method, apparatus and computer-readable recording medium for filtering spam mail
KR102093275B1 (en) * 2019-05-23 2020-03-25 (주)지란지교시큐리티 Malicious code infection inducing information discrimination system, storage medium in which program is recorded and method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210079495A (en) * 2019-12-20 2021-06-30 주식회사 엔에스에이치씨 Phishing malware detection method for public and financial institutions using words in image and voice files and whitelists

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Vinh Lam, "Block Phishing Content with Proactive DLP"(2021.08.)* *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102698907B1 (en) * 2024-02-21 2024-08-26 시큐레터 주식회사 Methods and devices for pre-filtering in a security solution by examining the internal information of the introduced document
KR102698908B1 (en) * 2024-03-11 2024-08-26 시큐레터 주식회사 Methods for quickly detecting information within incoming documents in security solutions
KR102699552B1 (en) * 2024-03-15 2024-08-27 시큐레터 주식회사 Method for inspecting the internal features of compound file binary format or office open xml format documents for quick classification of additional analysis targets in security solutions

Also Published As

Publication number Publication date
WO2024071451A1 (en) 2024-04-04

Similar Documents

Publication Publication Date Title
Yamaguchi et al. Chucky: Exposing missing checks in source code for vulnerability discovery
Carmony et al. Extract Me If You Can: Abusing PDF Parsers in Malware Detectors.
JP5265061B1 (en) Malicious file inspection apparatus and method
EP2797021B1 (en) A method for neutralizing pc blocking malware using a separate device for an antimalware procedure activated by user
KR102460078B1 (en) Method of making efficient backup space for original file using difference (delta) extraction method in disarming operation and apparatus therefor
EP4158555A1 (en) Undetectable sandbox for malware
US11809556B2 (en) System and method for detecting a malicious file
KR102472523B1 (en) Method and apparatus for determining document action based on reversing engine
US10275596B1 (en) Activating malicious actions within electronic documents
CN103514405A (en) Method and system for detecting buffer overflow
KR102470010B1 (en) Method and apparatus for blocking malicious non-portable executable file using reversing engine and cdr engine
JP5441043B2 (en) Program, information processing apparatus, and information processing method
KR102468431B1 (en) Method and apparatus for disarming ole object in ms-ooxml
KR102494827B1 (en) Methods and apparatus for detecting malicious macros in non-executable files using ocr
KR101595936B1 (en) Optimization method, optimization server and computer readable recording medium for providing service with vaccine and optimization functions
KR102549124B1 (en) Methods and apparatus for for detecting and decoding obfuscated vbscript
KR102494837B1 (en) Methods and apparatus for for detecting and decoding obfuscated javascript
KR102548984B1 (en) Methods and apparatus for detecting malicious document files using artificial intelligence models
KR102549007B1 (en) Methods and apparatus for detecting macro using debugging engine
KR102548985B1 (en) Methods and apparatus for machine learning modeling for detecting malicious document files
KR102560431B1 (en) Methods and apparatus for examining malicious behavior of child process
KR102503699B1 (en) Method and apparatus for notifying the inflow of malicious files when files are moved in a network-separated environment
KR102581932B1 (en) Methods and devices for detecting seh overwrite mitigation bypass using a reverting engine
KR101436496B1 (en) System for remote diagnosis of malware
KR102556413B1 (en) Method and apparatus for managing a virtual machine using semaphore

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant