KR20230089691A - Method, apparatus and program for checking electronic message based on machine learning - Google Patents

Method, apparatus and program for checking electronic message based on machine learning Download PDF

Info

Publication number
KR20230089691A
KR20230089691A KR1020210178300A KR20210178300A KR20230089691A KR 20230089691 A KR20230089691 A KR 20230089691A KR 1020210178300 A KR1020210178300 A KR 1020210178300A KR 20210178300 A KR20210178300 A KR 20210178300A KR 20230089691 A KR20230089691 A KR 20230089691A
Authority
KR
South Korea
Prior art keywords
file
mail
inspection
flag
neural network
Prior art date
Application number
KR1020210178300A
Other languages
Korean (ko)
Other versions
KR102630272B1 (en
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 KR1020210178300A priority Critical patent/KR102630272B1/en
Publication of KR20230089691A publication Critical patent/KR20230089691A/en
Application granted granted Critical
Publication of KR102630272B1 publication Critical patent/KR102630272B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/212Monitoring or handling of messages using filtering or selective blocking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • G06Q50/30
    • G06Q50/32
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/50Business processes related to the communications industry
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/60Business processes related to postal services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/08Annexed information, e.g. attachments

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Primary Health Care (AREA)
  • Marketing (AREA)
  • Human Resources & Organizations (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Mathematical Physics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Medical Informatics (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Information Transfer Between Computers (AREA)
  • Operations Research (AREA)

Abstract

The present invention relates to a method, an apparatus, and a program for inspecting electronic messages based on machine learning, which can filter illegal spam emails in response to various email attack patterns. The method for inspecting electronic messages based on machine learning comprises: a step of receiving and storing electronic messages; a step of extracting an email file from the stored electronic messages; a step of conducting a spam inspection on the extracted email file and generating a first flag corresponding to the spam inspection; a step of, when the spam inspection is completed, checking whether there is an attached file in the email file; a step of, when there is the attached file, inputting a first feature value corresponding to the type of the attached file into a previously trained first neural network model, performing a static inspection, and generating a second flag corresponding to the static inspection; a step of, when the static inspection is completed, sandboxing the attached file; a step of inputting a second feature value corresponding to a specific indicator for the sandboxed attached file into a previously trained second neural network model, performing a dynamic inspection, and generating a third flag corresponding to the dynamic inspection; and a step classifying the electronic message based on the first, second, and third flags and displaying malicious probability information. Therefore, the method for inspecting electronic messages based on machine learning can accurately filter illegal spam emails with the minimum time and cost in response to continuously changing various email attack patterns.

Description

머신 러닝 기반 전자 메시지 검사 방법, 장치 및 프로그램{METHOD, APPARATUS AND PROGRAM FOR CHECKING ELECTRONIC MESSAGE BASED ON MACHINE LEARNING}Method, apparatus and program for checking electronic messages based on machine learning

본 발명은 전자 메시지 검사 방법에 관한 것으로, 보다 구체적으로 다양한 이메일 공격 패턴에 대응하여 불법 스팸 메일을 필터링할 수 있는 머신 러닝 기반 전자 메시지 검사 방법, 장치 및 프로그램에 관한 것이다.The present invention relates to an electronic message inspection method, and more particularly, to a machine learning-based electronic message inspection method, apparatus, and program capable of filtering illegal spam mails in response to various email attack patterns.

메일 서비스 기업들에서 제공해주는 보안 솔루션은, 스펨 메일을 필터링 하기 위하여 기본적으로 KISA에서 제공해주는 RBL(Real-time Black List)을 이용하면서, SFP(Sender Policy Framework) 레코드 확인, 발신자 IP 및 국가 표시 등의 메일 서비스 적인 요소들을 보안 기술로 내세우고 있다.Security solutions provided by mail service companies basically use RBL (Real-time Black List) provided by KISA to filter spam mail, check SFP (Sender Policy Framework) record, display sender IP and country, etc. of mail service elements as security technology.

예를 들어, 해외 IP 차단, 스팸 단어 필터과 같은 확실한 기준을 가지는 설정들을 사용자에 의한 설정을 제공하고 있다. 또는 메인 원문을 암호화하여 저장한다는 특징들을 메일 서비스의 보안 요소로 내세우고 있다.For example, settings with clear standards such as foreign IP blocking and spam word filter are provided by the user. Alternatively, the feature of encrypting and storing the main text is being promoted as a security element of the mail service.

메일 보안 솔루션에서 제공해주는 보안 솔루션에서는, 메일 서비스를 제공하고 있지 않기 때문에 메일 서버에 메일이 들어오기 전 분석하여 차단하는 솔루션을 제공하고 있다.In the security solution provided by the mail security solution, since the mail service is not provided, a solution to analyze and block mail before it enters the mail server is provided.

기업 메일 서비스를 사용하는 기업 입장에서는 메일 보안 솔루션을 이용함으로써 스팸 메일을 차단을 할 것이다. 이때 메일 보안 솔루션을 이용하는 기업 입장에서는 메일 트래픽에 영향을 영향을 주지 않으면서 성능 저하를 발생시키지 않도록 요구한다.Companies using corporate mail services will block spam mails by using mail security solutions. At this time, from the point of view of a company using a mail security solution, it is required not to cause performance degradation without affecting mail traffic.

메일 서비스에서 제공해주는 보안 기술, 메일 보안 솔루션에서 제공해주는 보안 기술, 이 두 관점에서 제공해주는 스팸필터 방식들은 모두 장단점이 존재한다.The security technology provided by the mail service, the security technology provided by the mail security solution, and the spam filter methods provided from these two perspectives all have strengths and weaknesses.

메일 서비스 기업은 앞서 적은 해외 IP 차단, 스팸 단어 필터과 같은 확실한 기준을 가지는 설정들을 제공하는 장점을 가지지만, 메일 보안에 특화되어 있지 않기 때문에 별도의 메일 솔루션을 사용하거나 최소한의 필터를 제공하는 방식으로 보안 기술을 제공하는 단점을 가진다.Mail service companies have the advantage of providing settings with certain standards, such as blocking foreign IPs and spam word filters, but they are not specialized in mail security, so they use separate mail solutions or provide minimal filters. It has the disadvantage of providing security technology.

메일 보안 솔루션 기업은 메일에 대한 트래픽에 영향을 주지 않기 위해 SPF 레코드 확인, DKIM 서명, DMARC 인증을 주로 제공하는 메일 송수신의 과정에서 인증 기능을 추가적으로 진행할 수 있도록 제공한다. In order not to affect mail traffic, mail security solution companies provide SPF record verification, DKIM signature, and DMARC authentication to additionally perform authentication functions in the process of sending and receiving mail.

따라서, 향후, 지속적으로 변화하는 다양한 이메일 공격 패턴에 대응하여 최소 시간 및 비용으로 불법 스팸 메일을 정확하게 필터링할 수 있는 전자 메시지 검사 기술의 개발이 요구되고 있다.Therefore, in the future, it is required to develop an electronic message inspection technology capable of accurately filtering illegal spam mails with minimum time and cost in response to constantly changing various email attack patterns.

대한민국 등록특허 10-1005643호 (2010. 12. 27)Republic of Korea Patent No. 10-1005643 (2010. 12. 27)

상술한 바와 같은 문제점을 해결하기 위한 본 발명의 일 목적은, 전자 메일 파일의 스팸 검사와, 뉴럴 네트워크 모델을 이용하여 첨부 파일의 정적 검사 및 동적 검사를 수행함으로써, 지속적으로 변화하는 다양한 이메일 공격 패턴에 대응하여 최소 시간 및 비용으로 불법 스팸 메일을 정확하게 필터링할 수 있는 전자 메시지 검사 방법, 장치 및 프로그램을 제공하는 것이다.One object of the present invention to solve the problems described above is to perform spam inspection of email files and static inspection and dynamic inspection of attachments using a neural network model, thereby continuously changing various email attack patterns. In response to this, it is to provide an electronic message inspection method, device, and program capable of accurately filtering out illegal spam mails with minimum time and cost.

본 발명이 해결하고자 하는 과제들은 이상에서 언급된 과제로 제한되지 않으며, 언급되지 않은 또 다른 과제들은 아래의 기재로부터 통상의 기술자에게 명확하게 이해될 수 있을 것이다.The problems to be solved by the present invention are not limited to the problems mentioned above, and other problems not mentioned will be clearly understood by those skilled in the art from the description below.

상술한 과제를 해결하기 위한 본 발명의 일 실시예에 따른 전자 메시지 검사 장치의 전자 메시지 검사 방법은, 전자 메시지를 수신 및 저장하는 단계, 상기 저장된 전자 메시지로부터 전자 메일 파일을 추출하는 단계, 상기 추출한 전자 메일 파일의 스팸 검사를 수행하고 그에 상응하는 제1 플래그를 생성하는 단계, 상기 스팸 검사 수행이 완료되면 전자 메일 파일의 첨부 파일 유무를 확인하는 단계, 상기 첨부 파일이 있으면 상기 첨부 파일의 유형에 상응하는 제1 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고 그에 상응하는 제2 플래그를 생성하는 단계, 상기 정적 검사 수행이 완료되면 첨부 파일을 샌드 박스 실행하는 단계, 상기 샌드 박스 실행한 첨부 파일에 대해 특정 지표에 상응하는 제2 특징값을 미리 학습된 제2 뉴럴 네트워크 모델에 입력하여 동적 검사를 수행하고 그에 상응하는 제3 플래그를 생성하는 단계, 및 상기 제1, 제2, 제3 플래그를 기반으로 상기 전자 메시지를 분류하여 악성 확률 정보를 표시하는 단계를 포함하는 것을 특징으로 한다.An electronic message scanning method of an electronic message scanning apparatus according to an embodiment of the present invention for solving the above problems includes receiving and storing an electronic message, extracting an electronic mail file from the stored electronic message, and the extracted electronic message. Performing a spam scan of an e-mail file and generating a first flag corresponding to the spam scan, checking whether or not there is an attachment file in the e-mail file when the spam scan is completed, and if the attachment file is present, the attachment type Performing a static test by inputting a corresponding first feature value into a pre-learned first neural network model and generating a second flag corresponding thereto; sandboxing the attached file when the static test is completed; Entering a second characteristic value corresponding to a specific indicator of the sandbox-executed attachment into a pre-learned second neural network model to perform a dynamic inspection and generate a third flag corresponding thereto; and , classifying the electronic message based on the second and third flags and displaying malicious probability information.

실시 예에 있어서, 상기 전자 메시지를 수신 및 저장하는 단계는, 상기 제1, 제2, 제3 플래그를 생성하는 동안에 수신되는 전자 메시지를 저장하는 것을 특징으로 한다.In an embodiment, the receiving and storing of the electronic message may include storing the electronic message received while generating the first, second, and third flags.

실시 예에 있어서, 상기 저장된 전자 메시지로부터 전자 메일 파일을 추출하는 단계는, 상기 저장된 다수의 전자 메시지들로부터 EML 파일을 추출하는 것을 특징으로 한다.In an embodiment, the extracting of the electronic mail file from the stored electronic message may include extracting an EML file from the plurality of stored electronic messages.

실시 예에 있어서, 상기 제1 플래그를 생성하는 단계는, 상기 추출한 전자 메일 파일이 사용자 스팸룰에 상응하는 스팸인지를 확인하고, 상기 사용자 스팸룰에 상응하는 스팸이면 악성 플래그를 생성하는 것을 특징으로 한다.In an embodiment, the generating of the first flag may include checking whether the extracted e-mail file is spam corresponding to a user spam rule, and generating a malicious flag if the extracted e-mail file is spam corresponding to the user spam rule. do.

실시 예에 있어서, 상기 추출한 전자 메일 파일이 사용자 스팸룰에 상응하는 스팸인지를 확인하는 단계는, 상기 사용자 스팸룰에 상응하는 스팸이 아니면 상기 전자 메일 파일이 사용자 스팸룰에 상응하는 광고 또는 프로모션인지를 확인하고, 상기 사용자 스팸룰에 상응하는 광고 또는 프로모션이면 광고 플래그를 생성하는 것을 특징으로 한다.In an embodiment, the step of checking whether the extracted e-mail file is spam corresponding to the user spam rule may include determining whether the e-mail file is an advertisement or promotion corresponding to the user spam rule if it is not spam corresponding to the user spam rule. and generating an advertisement flag if it is an advertisement or promotion corresponding to the user spam rule.

실시 예에 있어서, 상기 사용자 스팸룰은, 유사 도메인 또는 악성 도메인을 포함하는 메일 도메인 및 IP 차단, 발신인 도메인과 실제 발신인 도메인이 다르면 차단, 악성 URL 차단, 첨부파일 이중 확장자 차단, 안전하지 않는 첨부파일 분류, 사용자 지정 키워드 차단을 포함하는 것을 특징으로 한다.In an embodiment, the user spam rule includes blocking mail domains and IPs including similar domains or malicious domains, blocking when the sender's domain is different from the actual sender's domain, blocking malicious URLs, blocking double extensions of attachments, and unsafe attachments. It is characterized by including classification and blocking of user-specified keywords.

실시 예에 있어서, 상기 제2 플래그를 생성하는 단계는, 상기 첨부 파일이 문서 파일 유형이면 그에 상응하는 제1 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 상기 정적 검사에 상응하는 악성 확률값을 예측하며, 상기 예측한 악성 확률값을 기초로 제2 플래그를 생성하는 것을 특징으로 한다.In an embodiment, in the generating of the second flag, if the attached file is a document file type, a first characteristic value corresponding thereto is input to a pre-learned first neural network model to perform a static check, and the static check is performed. A malicious probability value corresponding to the test is predicted, and a second flag is generated based on the predicted malicious probability value.

실시 예에 있어서, 상기 제2 플래그를 생성하는 단계는, 상기 첨부 파일이 문서 파일 유형 중 PDF 파일이면 PDF 버전 정보, 상기 PDF 파일 내의 주요 키워드 정보, 사용자 정의 태그 정보, 임의의 태그 정보를 포함하는 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 상기 정적 검사에 상응하는 악성 확률값을 예측하며, 상기 예측한 악성 확률값을 기초로 제2 플래그를 생성하는 것을 특징으로 한다.In an embodiment, the generating of the second flag may include PDF version information, main keyword information in the PDF file, user-defined tag information, and arbitrary tag information if the attached file is a PDF file among document file types. It is characterized in that a static inspection is performed by inputting a feature value to a first neural network model trained in advance, a malicious probability value corresponding to the static inspection is predicted, and a second flag is generated based on the predicted malicious probability value. .

실시 예에 있어서, 상기 제2 플래그를 생성하는 단계는, 상기 첨부 파일이 문서 파일 유형 중 DOCX, XLSX, HWP 파일이면 전처리를 수행하여 구조적 경로를 포함하는 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 상기 정적 검사에 상응하는 악성 확률값을 예측하며, 상기 예측한 악성 확률값을 기초로 제2 플래그를 생성하는 것을 특징으로 한다.In an embodiment, in the generating of the second flag, if the attached file is a DOCX, XLSX, or HWP file among document file types, a first neural network model pre-learned feature values including a structural path by performing pre-processing. It is characterized in that a static inspection is performed by inputting to , a malicious probability value corresponding to the static inspection is predicted, and a second flag is generated based on the predicted malicious probability value.

실시 예에 있어서, 상기 제1 뉴럴 네트워크 모델은, 랜덤포레스트(RandomForest) 모델, 서포트 벡터 머신(support vector machine) 모델, 디시젼트리(DecisionTree) 모델, 나이브 베이스(Naive Bayes) 모델 중 적어도 어느 하나인 것을 특징으로 한다.In an embodiment, the first neural network model is at least one of a RandomForest model, a support vector machine model, a DecisionTree model, and a Naive Bayes model. characterized by

실시 예에 있어서, 상기 제3 플래그를 생성하는 단계는, 상기 샌드 박스 실행한 첨부 파일에 대해 침해 지표로부터 가중치가 높은 콘텐츠 정보를 포함하는 제2 특징값을 미리 학습된 제2 뉴럴 네트워크 모델에 입력하여 동적 검사를 수행하고, 상기 정적 검사에 상응하는 악성 확률값을 예측하며, 상기 예측한 악성 확률값을 기초로 제3 플래그를 생성하는 것을 특징으로 한다.In an embodiment, the generating of the third flag may include inputting a second feature value including content information having a high weight from an infringement indicator for the sandbox-executed attachment to a pre-learned second neural network model. dynamic inspection is performed, a malicious probability value corresponding to the static inspection is predicted, and a third flag is generated based on the predicted malicious probability value.

실시 예에 있어서, 상기 제2 특징값은, 파일 해쉬(file hash) 및 생성 파일(create file) 정보를 포함하는 것을 특징으로 한다.In an embodiment, the second characteristic value may include file hash and create file information.

실시 예에 있어서, 상기 악성 확률 정보를 표시하는 단계는, 상기 악성 플래그 및 광고 플래그를 포함하는 제1 플래그, 제1 악성 확률값 및 제1 뉴럴 네트워크 모델 정확도를 포함하는 제2 플래그, 제2 악성 확률값 및 제2 뉴럴 네트워크 모델 정확도를 포함하는 제3 플래그를 기반으로 전자 메일 파일을 스팸 메일, 광고 메일 및 정상 메일로 분류하고, 상기 분류한 메일에 악성 확률 정보를 표시하는 것을 특징으로 한다.In an embodiment, the displaying of the malicious probability information may include a first flag including the malicious flag and an advertisement flag, a first malicious probability value, a second flag including a first neural network model accuracy, and a second malicious probability value. and second, based on the third flag including the accuracy of the neural network model, the e-mail file is classified into spam mail, advertisement mail, and normal mail, and malicious probability information is displayed on the classified mail.

실시 예에 있어서, 상기 악성 확률 정보를 표시하는 단계는, 상기 분류한 스팸 메일, 광고 메일 및 정상 메일이 각각 시각적으로 구분되도록 서로 다른 컬러를 갖는 악성 확률 정보를 표시하는 것을 특징으로 한다.In an embodiment, the step of displaying the malicious probability information is characterized in that the malicious probability information having different colors is displayed so that the classified spam mail, advertisement mail, and normal mail are visually distinguished from each other.

또한, 본 발명 일 실시예에 따른 컴퓨팅 장치는, 전자 메시지 검사 방법을 제공하기 위한 컴퓨팅 장치로서, 하나 이상의 코어를 포함하는 프로세서, 및 메모리를 포함하고, 상기 프로세서는, 전자 메시지를 수신 및 저장하고, 상기 저장된 전자 메시지로부터 전자 메일 파일을 추출하며, 상기 추출한 전자 메일 파일의 스팸 검사를 수행하고, 그에 상응하는 제1 플래그를 생성하고, 상기 스팸 검사 수행이 완료되면 전자 메일 파일의 첨부 파일 유무를 확인하며, 상기 첨부 파일이 있으면 상기 첨부 파일의 유형에 상응하는 제1 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고 그에 상응하는 제2 플래그를 생성하며, 상기 정적 검사 수행이 완료되면 첨부 파일을 샌드 박스 실행하고, 상기 샌드 박스 실행한 첨부 파일에 대해 특정 지표에 상응하는 제2 특징값을 미리 학습된 제2 뉴럴 네트워크 모델에 입력하여 동적 검사를 수행하고, 그에 상응하는 제3 플래그를 생성하며, 상기 제1, 제2, 제3 플래그를 기반으로 상기 전자 메시지를 분류하여 악성 확률 정보를 표시하는 것을 특징으로 한다.In addition, a computing device according to an embodiment of the present invention is a computing device for providing a method for checking an electronic message, and includes a processor including one or more cores, and a memory, wherein the processor receives and stores an electronic message and , Extracts an e-mail file from the stored e-mail message, performs a spam test on the extracted e-mail file, generates a first flag corresponding thereto, and determines whether the e-mail file has an attached file when the spam scan is completed. and if the attached file exists, a static test is performed by inputting a first characteristic value corresponding to the type of the attached file to a first pre-learned neural network model, and a second flag corresponding thereto is generated, and the static test is performed. When the execution is completed, the attached file is sandbox-executed, and a second characteristic value corresponding to a specific indicator for the sandbox-executed attachment is entered into a pre-learned second neural network model to perform a dynamic inspection, and the corresponding generating a third flag, and classifying the electronic message based on the first, second, and third flags, and displaying malicious probability information.

상술한 과제를 해결하기 위한 본 발명의 다른 실시 예에 따른 전자 메시지 검사 방법을 제공하는 컴퓨터 프로그램은, 하드웨어인 컴퓨터와 결합되어 상술한 방법 중 어느 하나의 방법을 수행하기 위해 매체에 저장된다.A computer program providing a method for checking an electronic message according to another embodiment of the present invention for solving the above problems is combined with a computer, which is hardware, and stored in a medium to perform any one of the above methods.

이 외에도, 본 발명을 구현하기 위한 다른 방법, 다른 시스템 및 상기 방법을 실행하기 위한 컴퓨터 프로그램을 기록하는 컴퓨터 판독 가능한 기록 매체가 더 제공될 수 있다.In addition to this, another method for implementing the present invention, another system, and a computer readable recording medium recording a computer program for executing the method may be further provided.

상기와 같이 본 발명에 따르면, 전자 메일 파일의 스팸 검사와, 뉴럴 네트워크 모델을 이용하여 첨부 파일의 정적 검사 및 동적 검사를 수행함으로써, 지속적으로 변화하는 다양한 이메일 공격 패턴에 대응하여 최소 시간 및 비용으로 불법 스팸 메일을 정확하게 필터링할 수 있다.As described above, according to the present invention, spam inspection of e-mail files and static and dynamic inspection of attached files are performed using a neural network model, thereby responding to various constantly changing email attack patterns with minimal time and cost. Illegal spam mail can be accurately filtered.

또한, 본 발명은, 신호등 형태의 스팸 확률값을 표현하므로 사용자로 하여금 스팸 메일에 대한 경각심을 갖도록 한다.In addition, since the present invention expresses a spam probability value in the form of a traffic light, it makes users aware of spam mail.

또한, 본 발명은, 메일 서버와 분석 서버를 포함할 수 있는데, 분석 서버만 이용함으로써, EML을 추출하여 전자 메일 파일의 스팸 검사와, 뉴럴 네트워크 모델을 이용하여 첨부 파일의 정적 검사 및 동적 검사를 수행할 수 있으므로, 메일 서버에서 메일을 수신 및 저장하는 동안에도 분석 서버에서 전자 메일의 스팸, 정적, 동적 검사를 효율적으로 수행할 수 있다.In addition, the present invention may include a mail server and an analysis server. By using only the analysis server, spam inspection of e-mail files by extracting EML and static inspection and dynamic inspection of attachments using a neural network model are performed. Therefore, spam, static, and dynamic scanning of e-mails can be efficiently performed by the analysis server even while the mails are being received and stored by the mail server.

또한, 본 발명은, 문서 파일 위주의 정적 검사를 수행하므로 샌드 박스에 대한 시간 소요를 최소화할 수 있다.In addition, since the present invention performs static inspection mainly on document files, it is possible to minimize the time required for the sandbox.

또한, 본 발명은, 모델에 대한 악성 파일 자가 학습을 통해 기업 측면에서 유지 보수 비용이 감소할 수 있다.In addition, according to the present invention, maintenance costs can be reduced in terms of companies through self-learning of malicious files for models.

본 발명의 효과들은 이상에서 언급된 효과로 제한되지 않으며, 언급되지 않은 또 다른 효과들은 아래의 기재로부터 통상의 기술자에게 명확하게 이해될 수 있을 것이다.The effects of the present invention 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 내지 도 7은, 정적 검사를 수행하는 뉴럴 네트워크 모델의 성능 평가를 설명하기 위한 도면이다.
도 8은, 동적 검사를 수행하는 뉴럴 네트워크 모델에 입력되는 특징값 추출 과정을 설명하기 위한 도면이다.
도 9는, 메일 리스트에 표시되는 악성 확률 정보를 설명하기 위한 도면이다.
도 10은, 본 발명의 일 실시예에 따라, 전자 메시지 검사 방법을 설명하기 위한 흐름도이다.
1 is a block diagram of a computing device that performs an operation to provide a method for checking an electronic message, according to an embodiment of the present invention.
2 is a conceptual diagram illustrating an electronic message checking apparatus according to an embodiment of the present invention.
3 is a diagram for explaining a learning process of a neural network model that performs a static test.
4 to 7 are diagrams for explaining performance evaluation of a neural network model that performs a static test.
8 is a diagram for explaining a process of extracting feature values input to a neural network model that performs a dynamic inspection.
9 is a diagram for explaining malicious probability information displayed on a mail list.
10 is a flowchart illustrating a method of checking an electronic message according to an embodiment of the present invention.

본 발명의 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 상세하게 후술되어 있는 실시예들을 참조하면 명확해질 것이다. 그러나, 본 발명은 이하에서 개시되는 실시예들에 제한되는 것이 아니라 서로 다른 다양한 형태로 구현될 수 있으며, 단지 본 실시예들은 본 발명의 개시가 완전하도록 하고, 본 발명이 속하는 기술 분야의 통상의 기술자에게 본 발명의 범주를 완전하게 알려주기 위해 제공되는 것이며, 본 발명은 청구항의 범주에 의해 정의될 뿐이다.Advantages and features of the present invention, and methods of achieving them, will become clear with reference to the detailed description of the following embodiments taken in conjunction with the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below, but may be implemented in various different forms, only these embodiments are intended to complete the disclosure of the present invention, and are common in the art to which the present invention belongs. It is provided to fully inform the person skilled in the art of the scope of the invention, and the invention is only defined by the scope of the claims.

본 명세서에서 사용된 용어는 실시예들을 설명하기 위한 것이며 본 발명을 제한하고자 하는 것은 아니다. 본 명세서에서, 단수형은 문구에서 특별히 언급하지 않는 한 복수형도 포함한다. 명세서에서 사용되는 "포함한다(comprises)" 및/또는 "포함하는(comprising)"은 언급된 구성요소 외에 하나 이상의 다른 구성요소의 존재 또는 추가를 배제하지 않는다. 명세서 전체에 걸쳐 동일한 도면 부호는 동일한 구성 요소를 지칭하며, "및/또는"은 언급된 구성요소들의 각각 및 하나 이상의 모든 조합을 포함한다. 비록 "제1", "제2" 등이 다양한 구성요소들을 서술하기 위해서 사용되나, 이들 구성요소들은 이들 용어에 의해 제한되지 않음은 물론이다. 이들 용어들은 단지 하나의 구성요소를 다른 구성요소와 구별하기 위하여 사용하는 것이다. 따라서, 이하에서 언급되는 제1 구성요소는 본 발명의 기술적 사상 내에서 제2 구성요소일 수도 있음은 물론이다.Terminology used herein is for describing the embodiments and is not intended to limit the present invention. In this specification, singular forms also include plural forms unless specifically stated otherwise in a phrase. As used herein, "comprises" and/or "comprising" does not exclude the presence or addition of one or more other elements other than the recited elements. Like reference numerals throughout the specification refer to like elements, and “and/or” includes each and every combination of one or more of the recited elements. Although "first", "second", etc. are used to describe various components, these components are not limited by these terms, of course. These terms are only used to distinguish one component from another. Accordingly, it goes without saying that the first element mentioned below may also be the second element within the technical spirit of the present invention.

다른 정의가 없다면, 본 명세서에서 사용되는 모든 용어(기술 및 과학적 용어를 포함)는 본 발명이 속하는 기술분야의 통상의 기술자에게 공통적으로 이해될 수 있는 의미로 사용될 수 있을 것이다. 또한, 일반적으로 사용되는 사전에 정의되어 있는 용어들은 명백하게 특별히 정의되어 있지 않는 한 이상적으로 또는 과도하게 해석되지 않는다.Unless otherwise defined, all terms (including technical and scientific terms) used in this specification may be used with meanings commonly understood by those skilled in the art to which the present invention belongs. In addition, terms defined in commonly used dictionaries are not interpreted ideally or excessively unless explicitly specifically defined.

이하, 첨부된 도면을 참조하여 본 발명의 실시예를 상세하게 설명한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

설명에 앞서 본 명세서에서 사용하는 용어의 의미를 간략히 설명한다. 그렇지만 용어의 설명은 본 명세서의 이해를 돕기 위한 것이므로, 명시적으로 본 발명을 한정하는 사항으로 기재하지 않은 경우에 본 발명의 기술적 사상을 한정하는 의미로 사용하는 것이 아님을 주의해야 한다.Prior to the description, the meaning of the terms used in this specification will be briefly described. However, it should be noted that the description of terms is intended to help the understanding of the present specification, and is not used in the sense of limiting the technical spirit of the present invention unless explicitly described as limiting the present invention.

본 명세서에서 신경망, 인공 신경망, 네트워크 함수는 종종 상호 교환 가능하게 사용될 수 있다.In this specification, neural networks, artificial neural networks, and network functions may often be used interchangeably.

또한, 본 명세서에 걸쳐, 뉴럴 네트워크(neural network), 신경망 네트워크, 네트워크 함수는, 동일한 의미로 사용될 수 있다. 뉴럴 네트워크는, 일반적으로 “노드”라 지칭될 수 있는 상호 연결된 계산 단위들의 집합으로 구성될 수 있다. 이러한 “노드”들은, “뉴런(neuron)”들로 지칭될 수도 있다. 뉴럴 네트워크는, 적어도 둘 이상의 노드들을 포함하여 구성된다. 뉴럴 네트워크들을 구성하는 노드(또는 뉴런)들은 하나 이상의 “링크”에 의해 상호 연결될 수 있다.Also, throughout this specification, a neural network, a neural network, and a network function may be used with the same meaning. A neural network may consist of a set of interconnected computational units, which may be generally referred to as “nodes”. These “nodes” may also be referred to as “neurons”. A neural network includes at least two or more nodes. Nodes (or neurons) constituting neural networks may be interconnected by one or more “links”.

도 1은, 본 발명의 일 실시예에 따라, 전자 메시지 검사 방법을 제공하기 위한 동작을 수행하는 컴퓨팅 장치의 블록 구성도를 도시한 도면이다.1 is a block diagram of a computing device that performs an operation to provide a method for checking an electronic message, according to an embodiment of the present invention.

도 1에 도시된 컴퓨팅 장치(100)의 구성은 간략화하여 나타낸 예시일 뿐이다. 본 발명의 일 실시예에서 컴퓨팅 장치(100)는 컴퓨팅 장치(100)의 컴퓨팅 환경을 수행하기 위한 다른 구성들이 포함될 수 있고, 개시된 구성들 중 일부만이 컴퓨팅 장치(100)를 구성할 수도 있다.The configuration of the computing device 100 shown in FIG. 1 is only a simplified example. In one embodiment of the present invention, the computing device 100 may include other components for performing a computing environment of the computing device 100, and only some of the disclosed components may constitute the computing device 100.

컴퓨팅 장치(100)는, 프로세서(110), 메모리(130), 네트워크부(150)를 포함할 수 있다.The computing device 100 may include a processor 110 , a memory 130 , and a network unit 150 .

본 발명에서, 프로세서(110)는, 전자 메시지를 수신 및 저장하고, 저장된 전자 메시지로부터 전자 메일 파일을 추출하며, 추출한 전자 메일 파일의 스팸 검사를 수행하고 그에 상응하는 제1 플래그를 생성하며, 스팸 검사 수행이 완료되면 전자 메일 파일의 첨부 파일 유무를 확인하며, 첨부 파일이 있으면 첨부 파일의 유형에 상응하는 제1 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고 그에 상응하는 제2 플래그를 생성하며, 정적 검사 수행이 완료되면 첨부 파일을 샌드 박스 실행하고, 샌드 박스 실행한 첨부 파일에 대해 특정 지표에 상응하는 제2 특징값을 미리 학습된 제2 뉴럴 네트워크 모델에 입력하여 동적 검사를 수행하고 그에 상응하는 제3 플래그를 생성하며, 제1, 제2, 제3 플래그를 기반으로 전자 메시지를 분류하여 악성 확률 정보를 표시할 수 있다.In the present invention, the processor 110 receives and stores the electronic message, extracts an electronic mail file from the stored electronic message, performs a spam check on the extracted electronic mail file and generates a first flag corresponding thereto, and When the inspection is completed, it is checked whether the e-mail file has an attached file, and if there is an attached file, a first characteristic value corresponding to the type of the attached file is entered into the pre-learned first neural network model to perform a static inspection, and the corresponding When the static inspection is completed, the attached file is sandbox-executed, and a second characteristic value corresponding to a specific indicator for the sandbox-executed attachment is input to the pre-learned second neural network model. It is possible to perform a dynamic inspection, generate a third flag corresponding thereto, classify the electronic message based on the first, second, and third flags, and display malicious probability information.

프로세서(110)는, 전자 메시지를 수신 및 저장할 때, 제1, 제2, 제3 플래그를 생성하는 동안에도 수신되는 전자 메시지를 저장할 수 있다.When receiving and storing an electronic message, the processor 110 may store the received electronic message even while generating the first, second, and third flags.

여기서, 프로세서(110)는, 전자 메시지를 수신 및 저장할 때, 전자 메시지가 수신되면 수신된 전자 메시지의 내용을 제1 데이터베이스에 저장하고, 전자 메시지의 요약 정보와 그의 플래그 정보를 제2 데이터베이스에 저장할 수 있다.Here, when receiving and storing an electronic message, the processor 110 stores the contents of the received electronic message in a first database when the electronic message is received, and stores summary information and flag information of the electronic message in a second database. can

이어, 프로세서(110)는, 저장된 전자 메시지로부터 전자 메일 파일을 추출할 때, 저장된 다수의 전자 메시지들로부터 EML 파일을 추출할 수 있다.Subsequently, when extracting an electronic mail file from stored electronic messages, the processor 110 may extract an EML file from a plurality of stored electronic messages.

경우에 따라, 프로세서(110)는, 저장된 전자 메시지로부터 전자 메일 파일을 추출할 때, 저장된 다수의 전자 메시지들로부터 전자 메일 정보를 수집할 수 있다.In some cases, when extracting an electronic mail file from stored electronic messages, the processor 110 may collect electronic mail information from a plurality of stored electronic messages.

다음, 프로세서(110)는, 제1 플래그를 생성할 때, 추출한 전자 메일 파일이 사용자 스팸룰에 상응하는 스팸인지를 확인하고, 사용자 스팸룰에 상응하는 스팸이면 악성 플래그를 생성할 수 있다.Next, when generating the first flag, the processor 110 checks whether the extracted e-mail file is spam corresponding to the user spam rule, and generates a malicious flag if it is spam corresponding to the user spam rule.

여기서, 프로세서(110)는, 추출한 전자 메일 파일이 사용자 스팸룰에 상응하는 스팸인지를 확인할 때, 사용자 스팸룰에 상응하는 스팸이 아니면 전자 메일 파일이 사용자 스팸룰에 상응하는 광고 또는 프로모션인지를 확인하고, 사용자 스팸룰에 상응하는 광고 또는 프로모션이면 광고 플래그를 생성할 수 있다.Here, the processor 110, when checking whether the extracted e-mail file is spam corresponding to the user spam rule, if it is not spam corresponding to the user spam rule, checks whether the e-mail file is an advertisement or promotion corresponding to the user spam rule. And, if it is an advertisement or promotion corresponding to the user spam rule, an advertisement flag can be generated.

일 예로, 사용자 스팸룰은, 유사 도메인 또는 악성 도메인을 포함하는 메일 도메인 및 IP 차단, 발신인 도메인과 실제 발신인 도메인이 다르면 차단, 악성 URL 차단, 첨부파일 이중 확장자 차단, 안전하지 않는 첨부파일 분류, 사용자 지정 키워드 차단을 포함할 수 있는데, 이는 일 실시예일 뿐, 이에 한정되지 않는다.For example, user spam rules include blocking mail domains and IPs including similar domains or malicious domains, blocking when the sender's domain and the actual sender's domain are different, blocking malicious URLs, blocking attachment double extensions, classifying unsafe attachments, and user spam rules. Blocking of specified keywords may be included, which is only an example, but is not limited thereto.

그리고, 프로세서(110)는, 제2 플래그를 생성할 때, 첨부 파일이 문서 파일 유형이면 그에 상응하는 제1 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 정적 검사에 상응하는 악성 확률값을 예측하며, 예측한 악성 확률값을 기초로 제2 플래그를 생성할 수 있다.Further, when generating the second flag, if the attached file is a document file type, the processor 110 inputs a first characteristic value corresponding thereto to the pre-learned first neural network model to perform static inspection, and static inspection A malicious probability value corresponding to is predicted, and a second flag may be generated based on the predicted malicious probability value.

일 예로, 프로세서(110)는, 제2 플래그를 생성할 때, 첨부 파일이 문서 파일 유형 중 PDF 파일이면 PDF 버전 정보, 상기 PDF 파일 내의 주요 키워드 정보, 사용자 정의 태그 정보, 임의의 태그 정보를 포함하는 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 정적 검사에 상응하는 악성 확률값을 예측하며, 예측한 악성 확률값을 기초로 제2 플래그를 생성할 수 있다.For example, when the processor 110 generates the second flag, if the attached file is a PDF file among document file types, the processor 110 includes PDF version information, main keyword information in the PDF file, user-defined tag information, and arbitrary tag information. A static test may be performed by inputting a feature value of a pre-learned first neural network model, a malicious probability value corresponding to the static test may be predicted, and a second flag may be generated based on the predicted malicious probability value.

다른 일 예로, 프로세서(110)는, 제2 플래그를 생성할 때, 첨부 파일이 문서 파일 유형 중 DOCX, XLSX, HWP 파일이면 전처리를 수행하여 구조적 경로를 포함하는 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 정적 검사에 상응하는 악성 확률값을 예측하며, 예측한 악성 확률값을 기초로 제2 플래그를 생성할 수 있다.As another example, when the processor 110 generates the second flag, if the attached file is a DOCX, XLSX, or HWP file among document file types, the processor 110 performs pre-processing to obtain a pre-learned first neural feature including a structural path. Static inspection may be performed by inputting the data to the network model, a malicious probability value corresponding to the static examination may be predicted, and a second flag may be generated based on the predicted malicious probability value.

여기서, 프로세서(110)는, 전처리를 수행할 때, 마이크로 소프트TM 기반의 워드(DOCX), 엑셀(XLSX) 및 파워포인트(PPT) 형식의 파일을 집파일(Zipfile)로 변환하여 네임리스트(nanelist)로 인수(argument)를 추출하고 중복값을 제외하여 구조적 특징을 추출할 수 있는데, 이는 일 실시예일 뿐, 이에 한정되지 않는다. 또한, 프로세서(110)는, 전처리를 수행할 때, HWP 파일을 스토리지 및 스트림 내의 데이터의 구조적 특징을 추출할 수 있는데, 이는 일 실시예일 뿐, 이에 한정되지 않는다.Here, the processor 110, when performing pre-processing, converts Microsoft TM- based Word (DOCX), Excel (XLSX) and PowerPoint (PPT) format files into Zipfiles to create a name list (nanelist) ) to extract arguments and extract structural features by excluding redundant values, which is only one embodiment, but is not limited thereto. In addition, the processor 110, when performing pre-processing, can extract the structural characteristics of data in the HWP file storage and stream, which is only one embodiment, but is not limited thereto.

다음, 프로세서(110)는, 제2 플래그를 생성할 때, 첨부 파일이 문서 파일 유형이 아니면 첨부 파일을 바로 샌드 박스 실행할 수도 있다.Next, when generating the second flag, if the attached file is not a document file type, the processor 110 may directly sandbox execute the attached file.

일 예로, 제1 뉴럴 네트워크 모델은, 랜덤포레스트(RandomForest) 모델, 서포트 벡터 머신(support vector machine) 모델, 디시젼트리(DecisionTree) 모델, 나이브 베이스(Naive Bayes) 모델 중 적어도 어느 하나일 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.For example, the first neural network model may be at least one of a RandomForest model, a support vector machine model, a DecisionTree model, and a Naive Bayes model, This is only one example, but is not limited thereto.

또한, 프로세서(110)는, 제2 플래그를 생성할 때, 제2 플래그와 함께 제1 악성 확률값 및 제1 뉴럴 네트워크 모델 정확도를 생성할 수 있다.Also, when generating the second flag, the processor 110 may generate a first malicious probability value and a first neural network model accuracy together with the second flag.

그리고, 프로세서(110)는, 제3 플래그를 생성할 때, 샌드 박스 실행한 첨부 파일에 대해 침해 지표로부터 가중치가 높은 콘텐츠 정보를 포함하는 제2 특징값을 미리 학습된 제2 뉴럴 네트워크 모델에 입력하여 동적 검사를 수행하고, 정적 검사에 상응하는 악성 확률값을 예측하며, 예측한 악성 확률값을 기초로 제3 플래그를 생성할 수 있다.Further, when generating the third flag, the processor 110 inputs a second feature value including content information having a high weight from the infringement index for the sandbox-executed attachment to the pre-learned second neural network model. It is possible to perform dynamic inspection, predict a malicious probability value corresponding to the static inspection, and generate a third flag based on the predicted malicious probability value.

예를 들면, 제2 특징값은, 파일 해쉬(file hash) 및 생성 파일(create file) 정보를 포함할 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.For example, the second characteristic value may include file hash and create file information, which is only one embodiment, but is not limited thereto.

즉, 제2 특징값은, 샌드박스 결과 값 중 하나인 API call sequence를 사용할 수 있다.That is, as the second characteristic value, an API call sequence, which is one of sandbox result values, may be used.

또한, 제2 뉴럴 네트워크 모델은, 랜덤포레스트(RandomForest) 모델, 서포트 벡터 머신(support vector machine) 모델, 디시젼트리(DecisionTree) 모델, 나이브 베이스(Naive Bayes) 모델 중 적어도 어느 하나일 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.In addition, the second neural network model may be at least one of a RandomForest model, a support vector machine model, a DecisionTree model, and a Naive Bayes model, which is It is only an example, and is not limited thereto.

경우에 따라, 제2 뉴럴 네트워크 모델은, 제1 뉴럴 네트워크 모델과 다를 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.In some cases, the second neural network model may be different from the first neural network model, but this is only an example, but is not limited thereto.

또한, 프로세서(110)는, 제3 플래그를 생성할 때, 제3 플래그와 함께 제2 악성 확률값 및 제2 뉴럴 네트워크 모델 정확도를 생성할 수 있다.Also, when generating the third flag, the processor 110 may generate a second malicious probability value and a second neural network model accuracy together with the third flag.

이어, 프로세서(110)는, 악성 확률 정보를 표시할 때, 악성 플래그 및 광고 플래그를 포함하는 제1 플래그, 제1 악성 확률값 및 제1 뉴럴 네트워크 모델 정확도를 포함하는 제2 플래그, 제2 악성 확률값 및 제2 뉴럴 네트워크 모델 정확도를 포함하는 제3 플래그를 기반으로 전자 메일 파일을 스팸 메일, 광고 메일 및 정상 메일로 분류하고, 분류한 메일에 악성 확률 정보를 표시할 수 있다.Next, when displaying the malicious probability information, the processor 110 displays a first flag including a malicious flag and an advertisement flag, a first malicious probability value, a second flag including the first neural network model accuracy, and a second malicious probability value. And based on the third flag including the accuracy of the second neural network model, the e-mail file may be classified as spam mail, advertisement mail, and normal mail, and malicious probability information may be displayed on the classified mail.

여기서, 프로세서(110)는, 악성 확률 정보를 표시할 때, 분류한 스팸 메일, 광고 메일 및 정상 메일이 각각 시각적으로 구분되도록 서로 다른 컬러를 갖는 악성 확률 정보를 표시할 수 있다.Here, when displaying the malicious probability information, the processor 110 may display the malicious probability information having different colors so that the classified spam mail, advertisement mail, and normal mail are visually distinguished from each other.

예를 들면, 악성 확률 정보는, 교통 신호등 색상으로 구분하여 해당 메일 리스트 일측에 표시될 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.For example, malicious probability information may be displayed on one side of a corresponding mail list after being classified by the color of a traffic light, but this is only one embodiment, and is not limited thereto.

또한, 전술한 뉴럴 네트워크 모델은, 딥 뉴럴 네트워크일 수 있다. 본 명세서에 걸쳐, 신경망, 네트워크 함수, 뉴럴 네트워크(neural network)는 동일한 의미로 사용될 수 있다. 딥 뉴럴 네트워크(DNN: deep neural network, 심층신경망)는, 입력 레이어와 출력 레이어 외에 복수의 히든 레이어를 포함하는 신경망을 의미할 수 있다. 딥 뉴럴 네트워크를 이용하면 데이터의 잠재적인 구조(latent structures)를 파악할 수 있다. 즉, 사진, 글, 비디오, 음성, 음악의 잠재적인 구조(예를 들어, 어떤 물체가 사진에 있는지, 글의 내용과 감정이 무엇인지, 음성의 내용과 감정이 무엇인지 등)를 파악할 수 있다. 딥 뉴럴 네트워크는 컨벌루셔널 뉴럴 네트워크 (CNN: convolutional neural network), 리커런트 뉴럴 네트워크(RNN: recurrent neural network), 제한 볼츠만 머신(RBM: restricted boltzmann machine), 심층 신뢰 네트워크(DBN: deep belief network), Q 네트워크, U 네트워크, 샴 네트워크 등을 포함할 수 있다.Also, the aforementioned neural network model may be a deep neural network. Throughout this specification, neural network, network function, and neural network may be used interchangeably. A deep neural network (DNN) may refer to a neural network including a plurality of hidden layers in addition to an input layer and an output layer. Deep neural networks can reveal latent structures in data. In other words, it can identify the latent structure of a photo, text, video, sound, or music (e.g., what objects are in the photo, what the content and emotion of the text are, what the content and emotion of the audio are, etc.). . Deep neural networks include a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted boltzmann machine (RBM), and a deep belief network (DBN). , Q network, U network, Siamese network, and the like.

컨벌루셔널 뉴럴 네트워크는, 딥 뉴럴 네트워크의 일종으로서, 컨벌루셔널 레이어를 포함하는 신경망을 포함한다. 컨벌루셔널 뉴럴 네트워크는, 최소한의 전처리(preprocess)를 사용하도록 설계된 다계층 퍼셉트론(multilayer perceptrons)의 한 종류이다. CNN은, 하나 또는 여러 개의 컨벌루셔널 레이어와 이와 결합된 인공 신경망 계층들로 구성될 수 있다. CNN은, 가중치와 풀링 레이어(pooling layer)들을 추가로 활용할 수 있다. 이러한 구조 덕분에 CNN은, 2차원 구조의 입력 데이터를 충분히 활용할 수 있다. 컨벌루셔널 뉴럴 네트워크는, 이미지에서 오브젝트를 인식하기 위하여 사용될 수 있다. 컨벌루셔널 뉴럴 네트워크는, 이미지 데이터를 차원을 가진 행렬로 나타내어 처리할 수 있다. 예를 들어 RGB(red-green-blue)로 인코딩 된 이미지 데이터의 경우, R, G, B 색상별로 각각 2차원(예를 들어, 2 차원 이미지 인 경우) 행렬로 나타내 질 수 있다. 즉, 이미지 데이터의 각 픽셀의 색상 값이 행렬의 성분이 될 수 있으며 행렬의 크기는 이미지의 크기와 같을 수 있다. 따라서, 이미지 데이터는, 3개의 2차원 행렬로(3차원의 데이터 어레이)로 나타내질 수 있다.A convolutional neural network is a type of deep neural network and includes a neural network including a convolutional layer. A convolutional neural network is a type of multilayer perceptron designed to use minimal preprocessing. A CNN may be composed of one or several convolutional layers and artificial neural network layers combined therewith. CNNs can additionally utilize weights and pooling layers. Thanks to this structure, CNNs can fully utilize the two-dimensional structure of the input data. Convolutional neural networks can be used to recognize objects in images. A convolutional neural network can represent and process image data as a matrix having dimensions. For example, in the case of image data encoded in RGB (red-green-blue), each R, G, and B color may be represented as a two-dimensional (eg, two-dimensional image) matrix. That is, the color value of each pixel of the image data can be a component of a matrix, and the size of the matrix can be the same as the size of the image. Thus, image data can be represented by three two-dimensional matrices (a three-dimensional data array).

컨벌루셔널 뉴럴 네트워크에서, 컨벌루셔널 필터를 이동해가며 컨벌루셔널 필터와 이미지의 각 위치에서의 행렬 성분끼리 곱하는 것으로 컨벌루셔널 과정(컨벌루셔널 레이어의 입출력)을 수행할 수 있다. 컨벌루셔널 필터는, n*n 형태의 행렬로 구성될 수 있다. 컨벌루셔널 필터는, 일반적으로 이미지의 전체 픽셀의 수보다 작은 고정된 형태의 필터로 구성될 수 있다. 즉, m*m 이미지를 컨벌루셔널 레이어(예를 들어, 컨벌루셔널 필터의 사이즈가 n*n인 컨벌루셔널 레이어)입력시키는 경우, 이미지의 각 픽셀을 포함하는 n*n 픽셀을 나타내는 행렬이 컨벌루셔널 필터와 성분 곱 (즉, 행렬의 각 성분끼리의 곱) 될 수 있다. 컨벌루셔널 필터와의 곱에 의하여 이 미지에서 컨벌루셔널 필터와 매칭되는 성분이 추출될 수 있다. 예를 들어, 이미지에서 상하 직선 성분을 추출하기 위한 3*3 컨벌루셔널 필터는 [[0,1,0], [0,1,0], [0,1,0]] 와 같이 구성될 수 있다. 이미지에서 상하 직선 성분을 추출하기 위한 3*3 컨벌루셔널 필터가 입력 이미지에 적용되면 이미지에서 컨벌루셔널 필터와 매칭되는 상하 직선 성분이 추출되어 출력될 수 있다. 컨벌루셔널 레이어는 이미지를 나타낸 각각의 채널에 대한 각각의 행렬(즉, R, G, B 코딩 이미지의 경우, R, G, B 색상)에 컨벌루셔널 필터를 적용할 수 있다. 컨벌루셔널 레이어는 입력 이미지에 컨벌루셔널 필터를 적용하여 입력 이미지에서 컨벌루셔널 필터와 매칭되는 피쳐를 추출할 수 있다. 컨벌루셔널 필터의 필터 값(즉, 행렬의 각 성분의 값)은 컨벌루셔널 뉴럴 네트워크의 학습 과정에서 역전파에 의하여 업데이트 될 수 있다.In a convolutional neural network, a convolutional process (input/output of a convolutional layer) can be performed by moving the convolutional filter and multiplying the convolutional filter with matrix components at each position of the image. A convolutional filter may be composed of an n*n matrix. A convolutional filter can consist of a fixed shape filter, which is usually smaller than the total number of pixels in an image. That is, when an m*m image is input to a convolutional layer (for example, a convolutional layer whose size of convolutional filter is n*n), a matrix representing n*n pixels including each pixel of the image It can be component multiplied with this convolutional filter (ie, multiplication of each component of the matrix). A component matching the convolutional filter can be extracted from the image by multiplication with the convolutional filter. For example, a 3*3 convolutional filter to extract top and bottom linear components from an image would be constructed as [[0,1,0], [0,1,0], [0,1,0]] can When a 3*3 convolutional filter for extracting up and down linear components from an image is applied to an input image, up and down linear components matching the convolutional filter may be extracted from the image and output. The convolutional layer may apply a convolutional filter to each matrix for each channel representing an image (ie, R, G, B colors in the case of an R, G, B coded image). The convolutional layer may extract features matching the convolutional filter from the input image by applying the convolutional filter to the input image. The filter value of the convolutional filter (that is, the value of each element of the matrix) may be updated by backpropagation during the learning process of the convolutional neural network.

컨벌루셔널 레이어의 출력에는, 서브샘플링 레이어가 연결되어 컨벌루셔널 레이어의 출력을 단순화하여 메모리 사용량과 연산량을 줄일 수 있다. 예를 들어, 2*2 맥스 풀링 필터를 가지는 풀링 레이어에 컨벌루셔널 레이어의 출력을 입력시키는 경우, 이미지의 각 픽셀에서 2*2 패치마다 각 패치에 포함되는 최대값을 출력하여 이미지를 압축할 수 있다. 전술한 풀링은 패치에서 최소값을 출력하거나, 패치의 평균값을 출력하는 방식일 수도 있으며 임의의 풀링 방식이 본 발명에 포함될 수 있다.A subsampling layer is connected to the output of the convolutional layer to simplify the output of the convolutional layer, thereby reducing memory usage and computational complexity. For example, if the output of the convolutional layer is input to a pooling layer with a 2*2 max pooling filter, the image is compressed by outputting the maximum value included in each patch for each 2*2 patch in each pixel of the image. can The aforementioned pooling may be a method of outputting a minimum value of a patch or an average value of a patch, and any pooling method may be included in the present invention.

컨벌루셔널 뉴럴 네트워크는, 하나 이상의 컨벌루셔널 레이어, 서브 샘플링 레이어를 포함할 수 있다. 컨벌루셔널 뉴럴 네트워크는 컨벌루셔널 과정과 서브샘플링 과정(예를 들어, 전술한 맥스 풀링 등)을 반복적으로 수행하여 이미지에서 피쳐를 추출할 수 있다. 반복적인 컨벌루션널 과정과 서브샘플링 과정을 통해 뉴럴 네트워크는 이미지의 글로벌 피쳐를 추출할 수 있다.A convolutional neural network may include one or more convolutional layers and subsampling layers. A convolutional neural network may extract features from an image by repeatedly performing a convolutional process and a subsampling process (eg, max pooling described above). Through an iterative convolutional process and subsampling process, a neural network can extract global features of an image.

컨벌루셔널 레이어 또는 서브샘플링 레이어의 출력은 풀 커넥티드 레이어(fully connected layer)에 입력될 수 있다. 풀 커넥티드 레이어는 하나의 레이어에 있는 모든 뉴런과 이웃한 레이어에 있는 모든 뉴런이 연결되는 레이어이다. 풀 커넥티드 레이어는 뉴럴 네트워크에서 각 레이어의 모든 노드가 다른 레이어의 모든 노드에 연결된 구조를 의미할 수 있다.An output of the convolutional layer or the subsampling layer may be input to a fully connected layer. A fully connected layer is a layer in which all neurons in one layer are connected to all neurons in neighboring layers. A fully connected layer may refer to a structure in which all nodes of each layer are connected to all nodes of other layers in a neural network.

본 발명의 일 실시예에 따르면, 프로세서(110)는, 하나 이상의 코어로 구성될 수 있으며, 컴퓨팅 장치의 중앙 처리 장치(CPU: central processing unit), 범용 그래픽 처리 장치 (GPGPU: general purpose graphics processing unit), 텐서 처리 장치(TPU: tensor processing unit) 등의 데이터 분석, 딥러닝을 위한 프로세서를 포함할 수 있다. 프로세서(110)는, 메모리(130)에 저장된 컴퓨터 프로그램을 판독하여 본 발명의 일 실시예에 따른 기계 학습을 위한 데이터 처리를 수행할 수 있다. 본 발명의 일실시예에 따라 프로세서(110)는, 신경망의 학습을 위한 연산을 수행할 수 있다. 프로세서(110)는, 딥러닝(DL: deep learning)에서 학습을 위한 입력 데이터의 처리, 입력 데이터에서의 피처 추출, 오차 계산, 역전파(backpropagation)를 이용한 신경망의 가중치 업데이트 등의 신경망의 학습을 위한 계산을 수행할 수 있다. 프로세서(110)의 CPU, GPGPU, 및 TPU 중 적어도 하나가 네트워크 함수의 학습을 처리할 수 있다. 예를 들어, CPU 와 GPGPU가 함께 네트워크 함수의 학습, 네트워크 함수를 이용한 데이터 분류를 처리할 수 있다. 또한, 본 발명의 일 실시예에서 복수의 컴퓨팅 장치의 프로세서를 함께 사용하여 네트워크 함수의 학습, 네트워크 함수를 이용한 데이터 분류를 처리할 수 있다. 또한, 본 발명의 일 실시예에 따른 컴퓨팅 장치에서 수행되는 컴퓨터 프로그램은, CPU, GPGPU 또는 TPU 실행가능 프로그램일 수 있다.According to an embodiment of the present invention, the processor 110 may be composed of one or more cores, a central processing unit (CPU) of a computing device, a general purpose graphics processing unit (GPGPU) ), a processor for data analysis and deep learning, such as a tensor processing unit (TPU). The processor 110 may read a computer program stored in the memory 130 and perform data processing for machine learning according to an embodiment of the present invention. According to an embodiment of the present invention, the processor 110 may perform an operation for learning a neural network. The processor 110 performs neural network learning, such as processing input data for learning in deep learning (DL), extracting features from input data, calculating errors, and updating neural network weights using backpropagation. calculations can be performed for At least one of the CPU, GPGPU, and TPU of the processor 110 may process learning of the network function. For example, the CPU and GPGPU can process learning of network functions and data classification using network functions. In addition, in one embodiment of the present invention, the learning of a network function and data classification using a network function may be processed by using processors of a plurality of computing devices together. In addition, a computer program executed in a computing device according to an embodiment of the present invention may be a CPU, GPGPU or TPU executable program.

본 발명의 일 실시예에 따르면, 메모리(130)는, 의료 텍스트의 노이즈 데이터 필터링 방법을 수행하기 위한 컴퓨터 프로그램을 저장할 수 있으며, 저장된 컴퓨터 프로그램은 프로세서(120)에 의하여 판독되어 구동될 수 있다. 메모리(130)는, 프로세서(110)가 생성하거나 결정한 임의의 형태의 정보 및 네트워크부(150)가 수신한 임의의 형태의 정보를 저장할 수 있다.According to an embodiment of the present invention, the memory 130 may store a computer program for performing a method of filtering noise data of medical text, and the stored computer program may be read and driven by the processor 120 . The memory 130 may store any type of information generated or determined by the processor 110 and any type of information received by the network unit 150 .

본 발명의 일 실시예에 따르면, 메모리(130)는, 플래시 메모리 타입(flash memory type), 하드디스크 타입(hard disk type), 멀티미디어 카드 마이크로 타입(multimedia card micro type), 카드 타입의 메모리(예를 들어 SD 또는 XD 메모리 등), 램(Random Access Memory, RAM), SRAM(Static Random Access Memory), 롬(Read-Only Memory, ROM), EEPROM(Electrically Erasable Programmable Read-Only Memory), PROM(Programmable Read-Only Memory), 자기 메모리, 자기 디스크, 광디스크 중 적어도 하나의 타입의 저장매체를 포함할 수 있다. 컴퓨팅 장치(100)는 인터넷(internet) 상에서 상기 메모리(130)의 저장 기능을 수행하는 웹 스토리지(web storage)와 관련되어 동작할 수도 있다. 전술한 메모리에 대한 기재는 예시일 뿐, 이에 제한되지 않는다.According to an embodiment of the present invention, the memory 130 is a flash memory type, a hard disk type, a multimedia card micro type, or a card type memory (eg SD or XD memory, etc.), RAM (Random Access Memory, RAM), SRAM (Static Random Access Memory), ROM (Read-Only Memory, ROM), EEPROM (Electrically Erasable Programmable Read-Only Memory), PROM (Programmable Memory) Read-Only Memory), a magnetic memory, a magnetic disk, and an optical disk may include at least one type of storage medium. The computing device 100 may operate in relation to a web storage that performs a storage function of the memory 130 on the Internet. The description of the above memory is only an example, and is not limited thereto.

본 발명의 일 실시예에 따른 네트워크부(150)는, 다른 컴퓨팅 장치, 서버 등과 정보를 송수신할 수 있다. 또한, 네트워크부(150)는, 복수의 컴퓨팅 장치 사이의 통신을 가능하게 하여 복수의 컴퓨팅 장치 각각에서 전자 메시지 검사 또는 모델의 학습을 위한 동작들이 분산 수행되도록 할 수 있다. 네트워크부(150)는, 복수의 컴퓨팅 장치 사이의 통신을 가능하게 하여 전자 메시지 검사 또는 네트워크 함수를 사용한 모델 학습을 위한 연산을 분산 처리하도록 할 수 있다.The network unit 150 according to an embodiment of the present invention may transmit and receive information to other computing devices and servers. In addition, the network unit 150 may enable communication between a plurality of computing devices so that operations for electronic message inspection or model learning may be distributedly performed in each of the plurality of computing devices. The network unit 150 may enable communication between a plurality of computing devices to perform distributed processing of an operation for examining an electronic message or learning a model using a network function.

본 발명의 일 실시예에 따른 네트워크부(150)는, 근거리(단거리), 원거리, 유선 및 무선 등과 같은 현재 사용 및 구현되는 임의의 형태의 유무선 통신 기술에 기반하여 동작할 수 있으며, 다른 네트워크들에서도 사용될 수 있다.The network unit 150 according to an embodiment of the present invention may operate based on any type of wired or wireless communication technology currently used and implemented, such as short-distance (short-distance), long-distance, wired, and wireless, and other networks. can also be used in

본 발명의 컴퓨팅 장치(100)는, 출력부 및 입력부를 더 포함할 수도 있다.The computing device 100 of the present invention may further include an output unit and an input unit.

본 발명의 일 실시예에 따른 출력부는, 전자 메시지 검사 방법을 수행하기 위한 사용자 인터페이스(UI, user interface)를 표시할 수 있다. 출력부는, 프로세서(110)가 생성하거나 결정한 임의의 형태의 정보 및 네트워크부(150)가 수신한 임의의 형태의 정보를 출력할 수 있다.The output unit according to an embodiment of the present invention may display a user interface (UI) for performing the electronic message checking method. The output unit may output any type of information generated or determined by the processor 110 and any type of information received by the network unit 150 .

본 발명의 일 실시예에서, 출력부는, 액정 디스플레이(liquid crystal display, LCD), 박막 트랜지스터 액정 디스플레이(thin film transistor-liquid crystal display, TFT LCD), 유기 발광 다이오드(organic light-emitting diode, OLED), 플렉시블 디스플레이(flexible display), 3차원 디스플레이(3D display) 중에서 적어도 하나를 포함할 수 있다. 이들 중 일부 디스플레이 모듈은, 그를 통해 외부를 볼 수 있도록 투명형 또는 광 투과형으로 구성될 수 있다. 이는 투명 디스플레이 모듈이라 지칭될 수 있는데, 상기 투명 디스플레이 모듈의 대표적인 예로는 TOLED(Transparent OLED) 등이 있다.In one embodiment of the present invention, the output unit is a liquid crystal display (liquid crystal display, LCD), thin film transistor liquid crystal display (thin film transistor-liquid crystal display, TFT LCD), organic light-emitting diode (organic light-emitting diode, OLED) , a flexible display, and a 3D display. Some of these display modules may be of a transparent type or a light transmissive type so that the outside can be seen through them. This may be referred to as a transparent display module, and a representative example of the transparent display module is TOLED (Transparent OLED) and the like.

본 발명의 일 실시예에 따른 입력부는, 사용자 입력을 수신할 수 있다. 입력부는, 사용자 입력을 수신받기 위한 사용자 인터페이스 상의 키 및/또는 버튼들, 또는 물리적인 키 및/또는 버튼들을 구비할 수 있다. 입력부를 통한 사용자 입력에 따라 본 발명의 실시예들에 따른 디스플레이를 제어하기 위한 컴퓨터 프로그램이 실행될 수 있다.The input unit according to an embodiment of the present invention may receive a user input. The input unit may include keys and/or buttons on a user interface for receiving user input, or physical keys and/or buttons. A computer program for controlling a display according to embodiments of the present invention may be executed according to a user input through an input unit.

본 발명의 실시예들에 따른 입력부는, 사용자의 버튼 조작 또는 터치 입력을 감지하여 신호를 수신하거나, 카메라 또는 마이크로폰을 통하여 사용자 등의 음성 또는 동작을 수신하여 이를 입력 신호로 변환할 수도 있다. 이를 위해 음성 인식(Speech Recognition) 기술 또는 동작 인식(Motion Recognition) 기술들이 사용될 수 있다.The input unit according to embodiments of the present invention may detect a user's button operation or touch input and receive a signal, or may receive a user's voice or motion through a camera or microphone and convert it into an input signal. For this purpose, speech recognition technology or motion recognition technology may be used.

본 발명의 실시예들에 따른 입력부는, 컴퓨팅 장치(100)와 연결된 외부 입력 장비로서 구현될 수도 있다. 예를 들어, 입력 장비는 사용자 입력을 수신하기 위한 터치 패드, 터치 펜, 키보드 또는 마우스 중 적어도 하나일 수 있으나, 이는 예시일 뿐이며 이에 제한되는 것은 아니다.The input unit according to embodiments of the present invention may be implemented as an external input device connected to the computing device 100 . For example, the input device may be at least one of a touch pad, a touch pen, a keyboard, or a mouse for receiving a user input, but this is only an example and is not limited thereto.

본 발명의 일 실시예에 따른 입력부는, 사용자 터치 입력을 인식할 수 있다. 본 발명의 일 실시예에 따른 입력부는, 출력부와 동일한 구성일 수도 있다. 입력부는, 사용자의 선택 입력을 수신하도록 구현되는 터치 스크린으로 구성될 수 있다. 터치 스크린은, 접촉식 정전용량 방식, 적외선 광 감지 방식, 표면 초음파(SAW) 방식, 압전 방식, 저항막 방식 중 어느 하나의 방식이 사용될 수 있다. 전술한 터치 스크린에 대한 자세한 기재는, 본 발명의 일 실시예에 따른 예시일 뿐이며, 다양한 터치 스크린 패널이 컴퓨팅 장치(100)에 채용될 수 있다. 터치 스크린으로 구성된 입력부는, 터치 센서를 포함할 수 있다. 터치 센서는, 입력부의 특정 부위에 가해진 압력 또는 입력부의 특정 부위에 발생하는 정전 용량 등의 변화를 전기적인 입력신호로 변환하도록 구성될 수 있다. 터치 센서는, 터치 되는 위치 및 면적뿐만 아니라, 터치 시의 압력까지도 검출할 수 있도록 구성될 수 있다. 터치 센서에 대한 터치입력이 있는 경우, 그에 대응하는 신호(들)는 터치 제어기로 보내진다. 터치 제어기는, 그 신호(들)를 처리한 다음 대응하는 데이터를 프로세서(110)로 전송할 수 있다. 이로써, 프로세서(110)는 입력부의 어느 영역이 터치 되었는지 여부 등을 인식할 수 있게 된다.The input unit according to an embodiment of the present invention may recognize a user touch input. The input unit according to an embodiment of the present invention may have the same configuration as the output unit. The input unit may include a touch screen implemented to receive a user's selection input. The touch screen may use any one of a contact capacitive method, an infrared light sensing method, a surface ultrasonic (SAW) method, a piezoelectric method, and a resistive film method. Detailed description of the touch screen described above is only an example according to an embodiment of the present invention, and various touch screen panels may be employed in the computing device 100 . The input unit configured as a touch screen may include a touch sensor. The touch sensor may be configured to convert a change in pressure applied to a specific portion of the input unit or capacitance generated at a specific portion of the input unit into an electrical input signal. The touch sensor may be configured to detect not only the touched position and area, but also the pressure upon touch. When there is a touch input to the touch sensor, the corresponding signal(s) is sent to the touch controller. The touch controller may process the signal(s) and then transmit corresponding data to processor 110 . Accordingly, the processor 110 can recognize which area of the input unit has been touched.

본 발명의 일 실시예에서, 서버는, 서버의 서버 환경을 수행하기 위한 다른 구성들이 포함될 수도 있다. 서버는 임의의 형태의 장치는 모두 포함할 수 있다. 서버는, 디지털 기기로서, 랩탑 컴퓨터, 노트북 컴퓨터, 데스크톱 컴퓨터, 웹 패드, 이동 전화기와 같이 프로세서를 탑재하고 메모리를 구비한 연산 능력을 갖춘 디지털 기기일 수 있다.In one embodiment of the present invention, the server may include other configurations for performing the server environment of the server. The server may include any type of device. The server may be a digital device, such as a laptop computer, a notebook computer, a desktop computer, a web pad, or a mobile phone, equipped with a processor and having an arithmetic capability with a memory.

본 발명의 일 실시예에 따른 전자 메시지 검사 결과를 표시하는 사용자 인터페이스를 사용자 단말로 제공하기 위한 동작을 수행하는 서버(미도시)는, 네트워크부, 프로세서 및 메모리를 포함할 수 있다.A server (not shown) performing an operation for providing a user interface displaying a result of checking an electronic message according to an embodiment of the present invention to a user terminal may include a network unit, a processor, and a memory.

서버는, 본 발명의 실시예들에 따른 사용자 인터페이스를 생성할 수 있다. 서버는, 클라이언트(예를 들어, 사용자 단말)에게 네트워크를 통해 정보를 제공하는 컴퓨팅 시스템일 수 있다. 서버는, 생성한 사용자 인터페이스를 사용자 단말로 전송할 수 있다. 이러한 경우, 사용자 단말은, 서버에 액세스할 수 있는 임의의 형태의 컴퓨팅 장치(100)일 수 있다. 서버의 프로세서는, 네트워크부를 통해 사용자 단말로 사용자 인터페이스를 전송할 수 있다. 본 발명의 실시예들에 따른 서버는 예를 들어, 클라우드 서버일 수 있다. 서버는 서비스를 처리하는 웹 서버일 수 있다. 전술한 서버의 종류는 예시일 뿐이며 이에 제한되지 않는다.The server may generate a user interface according to embodiments of the present invention. The server may be a computing system that provides information to clients (eg, user terminals) over a network. The server may transmit the generated user interface to the user terminal. In this case, the user terminal may be any type of computing device 100 capable of accessing the server. The processor of the server may transmit the user interface to the user terminal through the network unit. A server according to embodiments of the present invention may be, for example, a cloud server. The server may be a web server that processes services. The types of servers described above are examples only and are not limited thereto.

이와 같이, 본 발명은, 전자 메일 파일의 스팸 검사와, 뉴럴 네트워크 모델을 이용하여 첨부 파일의 정적 검사 및 동적 검사를 수행함으로써, 지속적으로 변화하는 다양한 이메일 공격 패턴에 대응하여 최소 시간 및 비용으로 불법 스팸 메일을 정확하게 필터링할 수 있다.In this way, the present invention, by performing spam inspection of e-mail files and static inspection and dynamic inspection of attached files using a neural network model, in response to various email attack patterns that are constantly changing, is illegal with minimum time and cost. Spam mail can be accurately filtered.

또한, 본 발명은, 신호등 형태의 스팸 확률값을 표현하므로 사용자로 하여금 스팸 메일에 대한 경각심을 갖도록 한다.In addition, since the present invention expresses a spam probability value in the form of a traffic light, it makes users aware of spam mail.

또한, 본 발명은, 메일 서버와 분석 서버를 포함할 수 있는데, 분석 서버만 이용함으로써, EML을 추출하여 전자 메일 파일의 스팸 검사와, 뉴럴 네트워크 모델을 이용하여 첨부 파일의 정적 검사 및 동적 검사를 수행할 수 있으므로, 메일 서버에서 메일을 수신 및 저장하는 동안에도 분석 서버에서 전자 메일의 스팸, 정적, 동적 검사를 효율적으로 수행할 수 있다.In addition, the present invention may include a mail server and an analysis server. By using only the analysis server, spam inspection of e-mail files by extracting EML and static inspection and dynamic inspection of attachments using a neural network model are performed. Therefore, spam, static, and dynamic scanning of e-mails can be efficiently performed by the analysis server even while the mails are being received and stored by the mail server.

또한, 본 발명은, 문서 파일 위주의 정적 검사를 수행하므로 샌드 박스에 대한 시간 소요를 최소화할 수 있다.In addition, since the present invention performs static inspection mainly on document files, it is possible to minimize the time required for the sandbox.

또한, 본 발명은, 모델에 대한 악성 파일 자가 학습을 통해 기업 측면에서 유지 보수 비용이 감소할 수 있다.In addition, according to the present invention, maintenance costs can be reduced in terms of companies through self-learning of malicious files for models.

도 2는, 본 발명의 일 실시예에 따라, 전자 메시지 검사 장치를 설명하기 위한 보여주는 개념도이다.2 is a conceptual diagram illustrating an electronic message checking apparatus according to an embodiment of the present invention.

도 2에 도시된 바와 같이, 본 발명의 전자 메시지 검사 장치는, 메일 서버 영역(1100)과 분석 서버 영역(1200)를 포함하는 컴퓨팅 장치(100)일 수 있다.As shown in FIG. 2 , the electronic message inspection apparatus of the present invention may be a computing device 100 including a mail server area 1100 and an analysis server area 1200 .

여기서, 메일 서버 영역(1100)은, 외부 통신 네트워크를 통해 전자 메시지를 수신 및 저장하고, 분석 서버 영역(1200)으로부터 수신되는 전자 메시지의 분류 정보 및 악성 확률 정보를 저장하며, 분류된 전자 메시지의 악성 확률 정보를 표시할 수 있다.Here, the mail server area 1100 receives and stores an electronic message through an external communication network, stores classification information and malicious probability information of the electronic message received from the analysis server area 1200, and analyzes the classified electronic messages. Malicious probability information can be displayed.

일 예로, 메일 서버 영역(1100)은, 메일 서버(1110), 메일 서버 데이터베이스(1120), 웹메일 백엔드 시스템(1130), 웹메일 데이터베이스(1140), 프론트엔드(1150)를 포함할 수 있다.For example, the mail server area 1100 may include a mail server 1110, a mail server database 1120, a webmail backend system 1130, a webmail database 1140, and a front end 1150.

메일 서버 영역(1100)의 메일 서버(1110)는, 외부 통신 네트워크를 통해 수신되는 전자 메시지를 메일 서버 데이터베이스(1120)에 저장하고, 웹메일 백엔드 시스템(1130)에도 전송할 수 있다.The mail server 1110 of the mail server area 1100 may store electronic messages received through an external communication network in the mail server database 1120 and transmit them to the webmail backend system 1130 as well.

여기서, 메일 서버 영역(1100)의 메일 서버(1110)는, 전자 메시지를 수신 및 저장할 때, 분석 서버 영역(1200)의 스팸 필터부(1210), 정적 검사부(1220), 동적 검사부(1240)가 제1, 제2, 제3 플래그를 생성하는 동안에도 수신되는 전자 메시지를 저장할 수 있다.Here, when the mail server 1110 of the mail server area 1100 receives and stores an electronic message, the spam filter unit 1210, the static inspection unit 1220, and the dynamic inspection unit 1240 of the analysis server area 1200 The received electronic message may be stored even while generating the first, second, and third flags.

따라서, 본 발명은, 메일 서버 영역(1100)에서 메일을 수신 및 저장하는 동안에도 분석 서버 영역(1200)에서 전자 메일의 스팸, 정적, 동적 검사를 지속적으로 수행할 수 있으므로, 전체 시스템 동작이 효율적으로 운영될 수 있다.Therefore, since the present invention can continuously perform spam, static, and dynamic inspection of e-mail in the analysis server area 1200 even while receiving and storing mail in the mail server area 1100, the overall system operation is efficient. can be operated as

이어, 메일 서버 영역(1100)의 웹메일 백엔드 시스템(1130)은, 전자 메시지의 일부 정보를 웹메일 데이터베이스(1140)에 저장할 수 있으며, 분석 서버 영역(1200)으로부터 수신되는 전자 메시지의 분류 정보 및 악성 확률 정보를 웹메일 데이터베이스(1140)에 저장할 수 있다.Subsequently, the webmail backend system 1130 of the mail server area 1100 may store some information of the electronic message in the webmail database 1140, and classify information of the electronic message received from the analysis server area 1200 and Malicious probability information may be stored in the webmail database 1140 .

일 예로, 메일 서버 영역(1100)의 메일 서버(1110)는, 수신된 전자 메시지의 내용을 메일 서버 데이터베이스(1120)에 저장할 수 있고, 메일 서버 영역(1100)의 웹메일 백엔드 시스템(1130)은, 전자 메시지의 요약 정보와 그의 플래그 정보를 웹메일 데이터베이스(1140)에 저장할 수 있다.For example, the mail server 1110 of the mail server area 1100 may store the contents of the received electronic message in the mail server database 1120, and the webmail backend system 1130 of the mail server area 1100 may store the contents of the received electronic message in the mail server database 1120. , the summary information of the electronic message and its flag information can be stored in the webmail database 1140.

그리고, 메일 서버 영역(1100)의 웹메일 백엔드 시스템(1130)은, 분류된 전자 메시지의 악성 확률 정보를 표시하여 프론트엔드(1150)를 통해 사용자(10)에게 제공할 수 있다.In addition, the webmail backend system 1130 of the mail server area 1100 may display malicious probability information of the classified electronic message and provide it to the user 10 through the front end 1150 .

다음, 분석 서버 영역(1200)은, 스팸 필터부(1210), 정적 검사부(1220), 샌드박스 실행부(1230), 동적 검사부(1240) 및 분류부(1250)를 포함할 수 있다.Next, the analysis server area 1200 may include a spam filter unit 1210, a static inspection unit 1220, a sandbox execution unit 1230, a dynamic inspection unit 1240, and a classification unit 1250.

여기서, 스팸 필터부(1210)는, 메일 서버 영역(1100)의 메일 서버 데이터베이스(1120)에 저장된 전자 메시지로부터 전자 메일 파일을 추출할 수 있다.Here, the spam filter unit 1210 may extract an e-mail file from an e-mail stored in the mail server database 1120 of the mail server area 1100 .

여기서, 스팸 필터부(1210)는, 저장된 전자 메시지로부터 전자 메일 파일을 추출할 때, 저장된 다수의 전자 메시지들로부터 EML 파일을 추출할 수 있는데, 이는 일 실시예일 뿐, 이에 한정되지는 않는다.Here, the spam filter unit 1210 may extract an EML file from a plurality of stored electronic messages when extracting an electronic mail file from a stored electronic message, which is only one embodiment, but is not limited thereto.

경우에 따라, 스팸 필터부(1210)는, 저장된 전자 메시지로부터 전자 메일 파일을 추출할 때, 저장된 다수의 전자 메시지들로부터 전자 메일 정보를 수집할 수도 있다.In some cases, when extracting an e-mail file from stored electronic messages, the spam filter unit 1210 may collect e-mail information from a plurality of stored electronic messages.

그리고, 스팸 필터부(1210)는, 추출한 전자 메일 파일의 스팸 검사를 수행하고, 그에 상응하는 제1 플래그를 생성할 수 있다.Also, the spam filter unit 1210 may perform a spam check on the extracted e-mail file and generate a first flag corresponding thereto.

여기서, 스팸 필터부(1210)는, 제1 플래그를 생성할 때, 추출한 전자 메일 파일이 사용자 스팸룰에 상응하는 스팸인지를 확인하고, 사용자 스팸룰에 상응하는 스팸이면 악성 플래그를 생성할 수 있다.Here, when generating the first flag, the spam filter unit 1210 checks whether the extracted e-mail file is spam corresponding to the user spam rule, and generates a malicious flag if it is spam corresponding to the user spam rule. .

일 예로, 사용자 스팸룰은, 유사 도메인 또는 악성 도메인을 포함하는 메일 도메인 및 IP 차단, 발신인 도메인과 실제 발신인 도메인이 다르면 차단, 악성 URL 차단, 첨부파일 이중 확장자 차단, 안전하지 않는 첨부파일 분류, 사용자 지정 키워드 차단을 포함할 수 있는데, 이는 일 실시예일 뿐, 이에 한정되지 않는다.For example, user spam rules include blocking mail domains and IPs including similar domains or malicious domains, blocking when the sender's domain and the actual sender's domain are different, blocking malicious URLs, blocking attachment double extensions, classifying unsafe attachments, and user spam rules. Blocking of specified keywords may be included, which is only an example, but is not limited thereto.

경우에 따라, 스팸 필터부(1210)는, 추출한 전자 메일 파일이 사용자 스팸룰에 상응하는 스팸인지를 확인할 때, 사용자 스팸룰에 상응하는 스팸이 아니면 전자 메일 파일이 사용자 스팸룰에 상응하는 광고 또는 프로모션인지를 확인하고, 사용자 스팸룰에 상응하는 광고 또는 프로모션이면 광고 플래그를 생성할 수 있다.In some cases, when the spam filter unit 1210 checks whether the extracted e-mail file is spam corresponding to the user spam rule, if it is not spam corresponding to the user spam rule, the e-mail file is an advertisement or advertisement corresponding to the user spam rule. It is checked whether it is a promotion, and if it is an advertisement or promotion corresponding to the user spam rule, an advertisement flag can be generated.

일 예로, 사용자 스팸룰은, 유사 도메인 또는 악성 도메인을 포함하는 메일 도메인 및 IP 차단, 발신인 도메인과 실제 발신인 도메인이 다르면 차단, 악성 URL 차단, 첨부파일 이중 확장자 차단, 안전하지 않는 첨부파일 분류, 사용자 지정 키워드 차단을 포함할 수 있는데, 이는 일 실시예일 뿐, 이에 한정되지 않는다.For example, user spam rules include blocking mail domains and IPs including similar domains or malicious domains, blocking when the sender's domain and the actual sender's domain are different, blocking malicious URLs, blocking attachment double extensions, classifying unsafe attachments, and user spam rules. Blocking of specified keywords may be included, which is only an example, but is not limited thereto.

예를 들면, 유사 도메인 또는 악성 도메인을 포함하는 메일 도메인은, goog1e.com, dauum.net, qoogle.com 등을 포함할 수 있으며, 첨부파일 이중 확장자는, 회의자료.xlsx.exe, 발췌목록.pdf.exe 등을 포함할 수 있다.For example, mail domains including similar domains or malicious domains may include goog1e.com, dauum.net, qoogle.com, and the like, and attachment file extensions include meeting materials.xlsx.exe and excerpts. It may include pdf.exe, etc.

다음, 정적 검사부(1220)는, 스팸 검사 수행이 완료되면 전자 메일 파일의 첨부 파일 유무를 확인할 수 있다.Next, the static inspection unit 1220, when the spam inspection is completed, may check whether or not there is an attached file in the e-mail file.

이어, 정적 검사부(1220)는, 첨부 파일이 있으면 첨부 파일의 유형에 상응하는 제1 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고 그에 상응하는 제2 플래그를 생성할 수 있다.Subsequently, if there is an attached file, the static checker 1220 inputs a first feature value corresponding to the type of the attached file to the pre-learned first neural network model to perform a static check and generate a second flag corresponding thereto. can

여기서, 정적 검사부(1220)는, 제2 플래그를 생성할 때, 첨부 파일이 문서 파일 유형이면 그에 상응하는 제1 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 정적 검사에 상응하는 악성 확률값을 예측하며, 예측한 악성 확률값을 기초로 제2 플래그를 생성할 수 있다.Here, when generating the second flag, the static checker 1220 performs a static check by inputting a first characteristic value corresponding to the attached file to the pre-learned first neural network model if the attached file is a document file type. A malicious probability value corresponding to the test may be predicted, and a second flag may be generated based on the predicted malicious probability value.

일 예로, 정적 검사부(1220)는, 제2 플래그를 생성할 때, 첨부 파일이 문서 파일 유형 중 PDF 파일이면 PDF 버전 정보, 상기 PDF 파일 내의 주요 키워드 정보, 사용자 정의 태그 정보, 임의의 태그 정보를 포함하는 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 정적 검사에 상응하는 악성 확률값을 예측하며, 예측한 악성 확률값을 기초로 제2 플래그를 생성할 수 있다.For example, when the static inspection unit 1220 generates the second flag, if the attached file is a PDF file among the document file types, PDF version information, main keyword information in the PDF file, user-defined tag information, and arbitrary tag information are displayed. A static test may be performed by inputting the included feature value to the pre-learned first neural network model, a malicious probability value corresponding to the static test may be predicted, and a second flag may be generated based on the predicted malicious probability value.

예를 들면, 상기 PDF 파일 내의 주요 키워드 정보는, 'obj', 'endobj', 'stream', 'endstream', 'xref', 'trailer', 'startxref', '/Page', '/Encrypt', '/ObjStm', '/JS', '/JavaScript', '/AA', '/OpenAction', '/AcroForm', '/JBIG2Decode', '/RichMedia', '/Launch', '/EmbeddedFile', '/XFA', '/Type', '/Catalog', '/Version', '/Pages', '/rovers', '/abdula', '/Kids', '/Count', '/S', '/Filter', '/FlateDecode', '/Length', '/ASCIIHexDecode', '/ASCII85Decode', '/LZWDecode', '/RunLengthDecode', '/CCITTFaxDecode', '/DCTDecode', '/JPXDecode', '/Crypt' 등을 포함할 수 있고, 사용자 정의 태그 정보 및 임의의 태그 정보는, /Colors_2^24, /0, /01, /02, /05, /07, /1, /18, /1999 ,/22 등을 포함할 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지는 않고, 상기 사용자 정의 태그 정보의 명칭은 사용자가 임의로 정의 가능하다.For example, the main keyword information in the PDF file is 'obj', 'endobj', 'stream', 'endstream', 'xref', 'trailer', 'startxref', '/Page', '/Encrypt' , '/ObjStm', '/JS', '/JavaScript', '/AA', '/OpenAction', '/AcroForm', '/JBIG2Decode', '/RichMedia', '/Launch', '/EmbeddedFile' , '/XFA', '/Type', '/Catalog', '/Version', '/Pages', '/rovers', '/abdula', '/Kids', '/Count', '/S' , '/Filter', '/FlateDecode', '/Length', '/ASCIIHexDecode', '/ASCII85Decode', '/LZWDecode', '/RunLengthDecode', '/CCITTFaxDecode', '/DCTDecode', '/JPXDecode' , '/Crypt', etc., user-defined tag information and arbitrary tag information are /Colors_2^24, /0, /01, /02, /05, /07, /1, /18, / 1999,/22, etc., which is only an example, but is not limited thereto, and the name of the user-defined tag information can be arbitrarily defined by the user.

다른 일 예로, 정적 검사부(1220)는, 제2 플래그를 생성할 때, 첨부 파일이 문서 파일 유형 중 DOCX, XLSX, HWP 파일이면 전처리를 수행하여 구조적 경로를 포함하는 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 정적 검사에 상응하는 악성 확률값을 예측하며, 예측한 악성 확률값을 기초로 제2 플래그를 생성할 수 있다.As another example, when the static inspection unit 1220 generates the second flag, if the attached file is a DOCX, XLSX, or HWP file among document file types, the static inspection unit 1220 pre-processes the first pre-learned feature value including the structural path. Static inspection may be performed by inputting the input to the neural network model, a malicious probability value corresponding to the static examination may be predicted, and a second flag may be generated based on the predicted malicious probability value.

여기서, 정적 검사부(1220)는, 전처리를 수행할 때, 마이크로 소프트TM 기반의 워드(DOCX), 엑셀(XLSX) 및 파워포인트(PPT) 형식의 파일을 집파일(Zipfile)로 변환하여 네임리스트(nanelist)로 인수(argument)를 추출하고 중복값을 제외하여 구조적 특징을 추출할 수 있는데, 이는 일 실시예일 뿐, 이에 한정되지 않는다.Here, the static inspection unit 1220 converts Microsoft TM- based Word (DOCX), Excel (XLSX), and PowerPoint (PPT) format files into Zipfiles when performing preprocessing to obtain a name list ( A structural feature may be extracted by extracting an argument with nanelist and excluding duplicate values, which is only one embodiment, but is not limited thereto.

또한, 프로세서(110)는, 전처리를 수행할 때, HWP 파일을 스토리지 및 스트림 내의 데이터의 구조적 특징을 추출할 수 있는데, 이는 일 실시예일 뿐, 이에 한정되지 않는다.In addition, the processor 110, when performing pre-processing, can extract the structural characteristics of data in the HWP file storage and stream, which is only one embodiment, but is not limited thereto.

경우에 따라, 정적 검사부(1220)는, 제2 플래그를 생성할 때, 첨부 파일이 문서 파일 유형이 아니면 첨부 파일을 바로 샌드 박스 실행할 수도 있다.In some cases, when generating the second flag, if the attached file is not a document file type, the static inspection unit 1220 may sandbox the attached file directly.

일 예로, 제1 뉴럴 네트워크 모델은, 랜덤포레스트(RandomForest) 모델, 서포트 벡터 머신(support vector machine) 모델, 디시젼트리(DecisionTree) 모델, 나이브 베이스(Naive Bayes) 모델 중 적어도 어느 하나일 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.For example, the first neural network model may be at least one of a RandomForest model, a support vector machine model, a DecisionTree model, and a Naive Bayes model, This is only one example, but is not limited thereto.

또한, 정적 검사부(1220)는, 제2 플래그를 생성할 때, 제2 플래그와 함께 제1 악성 확률값 및 제1 뉴럴 네트워크 모델 정확도를 생성할 수 있다.Also, when generating the second flag, the static checker 1220 may generate a first malicious probability value and a first neural network model accuracy together with the second flag.

다음, 샌드박스 실행부(1230)는, 정적 검사 수행이 완료된 첨부 파일을 샌드 박스 실행할 수도 있고, 문서 파일 유형이 아닌 첨부 파일을 정적 수행 검사 없이 바로 샌드 박스 실행할 수도 있다.Next, the sandbox executor 1230 may perform sandbox execution of an attached file for which static inspection has been completed, or sandbox execution of an attached file other than a document file type without static inspection.

그리고, 동적 검사부(1240)는, 샌드 박스 실행한 첨부 파일에 대해 특정 지표에 상응하는 제2 특징값을 미리 학습된 제2 뉴럴 네트워크 모델에 입력하여 동적 검사를 수행하고 그에 상응하는 제3 플래그를 생성할 수 있다.In addition, the dynamic inspection unit 1240 inputs a second feature value corresponding to a specific index to the pre-learned second neural network model for the sandbox-executed attachment file, performs dynamic inspection, and generates a third flag corresponding thereto. can create

여기서, 동적 검사부(1240)는, 제3 플래그를 생성할 때, 샌드 박스 실행한 첨부 파일에 대해 침해 지표로부터 가중치가 높은 콘텐츠 정보를 포함하는 제2 특징값을 미리 학습된 제2 뉴럴 네트워크 모델에 입력하여 동적 검사를 수행하고, 정적 검사에 상응하는 악성 확률값을 예측하며, 예측한 악성 확률값을 기초로 제3 플래그를 생성할 수 있다.Here, when generating the third flag, the dynamic inspection unit 1240 assigns a second feature value including content information having a high weight from the infringement index to the sandbox-executed attachment to the pre-learned second neural network model. It is possible to perform dynamic inspection by inputting the input, predict a malicious probability value corresponding to the static inspection, and generate a third flag based on the predicted malicious probability value.

예를 들면, 제2 특징값은, 파일 해쉬(file hash) 및 생성 파일(create file) 정보를 포함할 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.For example, the second characteristic value may include file hash and create file information, which is only one embodiment, but is not limited thereto.

즉, 제2 특징값은, 샌드박스 결과 값 중 하나인 API call sequence를 사용할 수 있다.That is, as the second characteristic value, an API call sequence, which is one of sandbox result values, may be used.

또한, 제2 뉴럴 네트워크 모델은, 랜덤포레스트(RandomForest) 모델, 서포트 벡터 머신(support vector machine) 모델, 디시젼트리(DecisionTree) 모델, 나이브 베이스(Naive Bayes) 모델 중 적어도 어느 하나일 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.In addition, the second neural network model may be at least one of a RandomForest model, a support vector machine model, a DecisionTree model, and a Naive Bayes model, which is It is only an example, and is not limited thereto.

경우에 따라, 제2 뉴럴 네트워크 모델은, 제1 뉴럴 네트워크 모델과 다를 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.In some cases, the second neural network model may be different from the first neural network model, but this is only an example, but is not limited thereto.

또한, 동적 검사부(1240)는, 제3 플래그를 생성할 때, 제3 플래그와 함께 제2 악성 확률값 및 제2 뉴럴 네트워크 모델 정확도를 생성할 수 있다.Also, when generating the third flag, the dynamic inspector 1240 may generate a second malicious probability value and a second neural network model accuracy together with the third flag.

이어, 분류부(1250)는, 제1, 제2, 제3 플래그를 기반으로 전자 메시지를 분류하여 악성 확률 정보를 표시할 수 있다.Subsequently, the classification unit 1250 may display malicious probability information by classifying the electronic message based on the first, second, and third flags.

여기서, 분류부(1250)는, 악성 확률 정보를 표시할 때, 악성 플래그 및 광고 플래그를 포함하는 제1 플래그, 제1 악성 확률값 및 제1 뉴럴 네트워크 모델 정확도를 포함하는 제2 플래그, 제2 악성 확률값 및 제2 뉴럴 네트워크 모델 정확도를 포함하는 제3 플래그를 기반으로 전자 메일 파일을 스팸 메일, 광고 메일 및 정상 메일로 분류하고, 분류한 메일에 악성 확률 정보를 표시할 수 있다.Here, when the classification unit 1250 displays the malicious probability information, the first flag including the malicious flag and the advertisement flag, the second flag including the first malicious probability value and the first neural network model accuracy, and the second malicious Based on the third flag including the probability value and the accuracy of the second neural network model, the e-mail file may be classified as spam mail, advertisement mail, and normal mail, and malicious probability information may be displayed on the classified mail.

일 예로, 분류부(1250), 악성 확률 정보를 표시할 때, 분류한 스팸 메일, 광고 메일 및 정상 메일이 각각 시각적으로 구분되도록 서로 다른 컬러를 갖는 악성 확률 정보를 표시할 수 있다.For example, when the classification unit 1250 displays the malicious probability information, the malicious probability information having different colors may be displayed so that the classified spam mail, advertisement mail, and normal mail are visually distinguished from each other.

예를 들면, 악성 확률 정보는, 교통 신호등 색상으로 구분하여 해당 메일 리스트 일측에 표시될 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.For example, malicious probability information may be displayed on one side of a corresponding mail list after being classified by the color of a traffic light, but this is only one embodiment, and is not limited thereto.

도 3은, 정적 검사를 수행하는 뉴럴 네트워크 모델의 학습 과정을 설명하기 위한 도면이다.3 is a diagram for explaining a learning process of a neural network model that performs a static test.

도 3에 도시된 바와 같이, 본 발명은, 첨부 파일의 유형에 상응하는 특징값을 미리 학습된 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고 그에 상응하는 플래그를 생성할 수 있다.As shown in FIG. 3 , according to the present invention, a static check may be performed by inputting a feature value corresponding to a type of an attached file to a pre-learned neural network model, and a flag corresponding thereto may be generated.

여기서, 정적 검사부(1220)는, 첨부 파일이 문서 파일 유형이면 그에 상응하는 특징값을 미리 학습된 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 정적 검사에 상응하는 악성 확률값을 예측하며, 예측한 악성 확률값을 기초로 플래그를 생성할 수 있다.Here, if the attached file is a document file type, the static inspection unit 1220 performs a static inspection by inputting a corresponding feature value into a pre-learned neural network model, predicts a malicious probability value corresponding to the static inspection, and A flag may be generated based on the malicious probability value.

본 발명의 뉴럴 네트워크 모델은, 원천 데이터를 수집하여 적재하고, 이들을 정제 및 전처리 과정을 거쳐서 데이터를 분할하며, 분할된 데이터를 기반으로 훈련을 수행하고, 모델의 훈련 성능을 평가하며, 평가된 모델의 성능을 도출하고, 상기 모델 자체를 저장함으로써, 모델 훈련 과정을 수행할 수 있다.The neural network model of the present invention collects and loads original data, divides the data through refinement and preprocessing, performs training based on the divided data, evaluates the training performance of the model, and evaluates the model. By deriving the performance of and storing the model itself, the model training process can be performed.

그리고, 본 발명의 뉴럴 네트워크 모델은, 데이터를 수집하여 적재하고, 이들을 정제 및 전처리 과정을 거쳐서 학습된 모델을 기반으로 악성 확률을 추론하여 악성 확률값을 생성할 수 있다.In addition, the neural network model of the present invention collects and loads data, refines and preprocesses the data, infers the probability of maliciousness based on the learned model, and generates a probability of maliciousness.

도 4 내지 도 7은, 정적 검사를 수행하는 뉴럴 네트워크 모델의 성능 평가를 설명하기 위한 도면이다.4 to 7 are diagrams for explaining performance evaluation of a neural network model that performs a static test.

도 4 내지 도 7에 도시된 바와 같이, 정적 검사를 수행하는 뉴럴 네트워크 모델은, 랜덤포레스트(RandomForest) 모델, 서포트 벡터 머신(support vector machine) 모델, 디시젼트리(DecisionTree) 모델, 나이브 베이스(Naive Bayes) 모델을 사용하였고, 앙상블 중에서 보팅(voting) 및 배깅(bagging)을 추가하여 k = 5로 k-fold 교차 검증을 실시한 결과이다.As shown in FIGS. 4 to 7, neural network models that perform static inspection include a RandomForest model, a support vector machine model, a DecisionTree model, and a Naive Base model. This is the result of k-fold cross validation with k = 5 by using the Bayes model and adding voting and bagging among the ensembles.

여기서, 성능평가지표는, 정확도(Accuracy), 정밀도(Precision), 재현율(Recall), F1 스코어(Score), Auc를 포함할 수 있다.Here, the performance evaluation index may include Accuracy, Precision, Recall, F1 Score, and Auc.

일 예로, 정확도(Accuracy)는, 올바르게 예측된 데이터의 수를 전체 데이터의 수로 나눈 값으로서, (TP+TN) / (TP+TN+FP+FN)일 수 있으며, 정밀도(Precision)는, 모델이 트루(True)라고 인식한 데이터의 수로서, TP / TP + FN일 수 있고, F1 스코어는, 정밀도와 재현율의 평균일 수 있으며, Auc는, ROC 커브(curve)의 아래 면적을 나타내는 지표로서, 클래스별 분포가 다를 때, 정확도의 단점을 보완하는 지표이다.For example, accuracy is a value obtained by dividing the number of correctly predicted data by the total number of data, and may be (TP + TN) / (TP + TN + FP + FN), and precision is a model As the number of data recognized as true, it can be TP / TP + FN, the F1 score can be the average of precision and recall, and Auc is an index representing the area under the ROC curve , it is an index that compensates for the disadvantages of accuracy when the distribution by class is different.

도 4는, docx 파일의 k-fold 교차 검증을 실시한 결과로서, 서포트 벡터 머신(support vector machine) 모델의 성능이 가장 우수한 결과를 보이는 것을 알 수 있다.4 is a result of k-fold cross-validation of the docx file, and it can be seen that the performance of the support vector machine model is the best.

도 5는, pdf 파일의 k-fold 교차 검증을 실시한 결과로서, 서포트 벡터 머신(support vector machine) 모델의 성능이 가장 우수한 결과를 보이는 것을 알 수 있다.5 is a result of k-fold cross-validation of the pdf file, and it can be seen that the performance of the support vector machine model is the best.

도 6은, xlsx 파일의 k-fold 교차 검증을 실시한 결과로서, 서포트 벡터 머신(support vector machine) 모델의 성능이 가장 우수한 결과를 보이는 것을 알 수 있다.6 is a result of k-fold cross-validation of the xlsx file, and it can be seen that the performance of the support vector machine model is the best.

도 7은, hwp 파일의 k-fold 교차 검증을 실시한 결과로서, 서포트 벡터 머신(support vector machine) 모델의 성능이 가장 우수한 결과를 보이는 것을 알 수 있다.7 is a result of k-fold cross-validation of the hwp file, and it can be seen that the performance of the support vector machine model is the best.

도 8은, 동적 검사를 수행하는 뉴럴 네트워크 모델에 입력되는 특징값 추출 과정을 설명하기 위한 도면이다.8 is a diagram for explaining a process of extracting feature values input to a neural network model that performs a dynamic inspection.

도 8에 도시된 바와 같이, 동적 검사를 수행하는 뉴럴 네트워크 모델은, 샌드 박스 실행한 첨부 파일에 대해 특정 지표에 상응하는 특징값을 미리 학습된 뉴럴 네트워크 모델에 입력하여 동적 검사를 수행하고 그에 상응하는 플래그를 생성할 수 있다.As shown in FIG. 8, the neural network model performing the dynamic inspection inputs a feature value corresponding to a specific indicator for the sandbox-executed attachment to the pre-learned neural network model to perform the dynamic inspection, and the corresponding flags can be created.

일 예로, 동적 검사를 수행하는 뉴럴 네트워크 모델은, 샌드 박스 실행한 첨부 파일에 대해 침해 지표로부터 가중치가 높은 콘텐츠 정보를 포함하는 특징값을 미리 학습된 뉴럴 네트워크 모델에 입력하여 동적 검사를 수행하고, 정적 검사에 상응하는 악성 확률값을 예측하며, 예측한 악성 확률값을 기초로 플래그를 생성할 수 있다.For example, a neural network model performing dynamic inspection performs dynamic inspection by inputting a feature value including content information having a high weight from an infringement indicator for a sandbox-executed attachment into a pre-learned neural network model, A malicious probability value corresponding to the static test is predicted, and a flag may be generated based on the predicted malicious probability value.

예를 들면, 특징값은, 파일 해쉬(file hash) 및 생성 파일(create file) 정보를 포함할 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.For example, the feature value may include file hash and create file information, which is only one embodiment, but is not limited thereto.

즉, 특징값은, 샌드박스 결과 값 중 하나인 API call sequence를 사용할 수 있다.That is, as a feature value, an API call sequence, which is one of sandbox result values, can be used.

여기서, 동적 검사를 수행하는 뉴럴 네트워크 모델은, 랜덤포레스트(RandomForest) 모델, 서포트 벡터 머신(support vector machine) 모델, 디시젼트리(DecisionTree) 모델, 나이브 베이스(Naive Bayes) 모델 중 적어도 어느 하나일 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.Here, the neural network model performing the dynamic inspection may be at least one of a RandomForest model, a support vector machine model, a DecisionTree model, and a Naive Bayes model. However, this is only an example, and is not limited thereto.

도 9는, 메일 리스트에 표시되는 악성 확률 정보를 설명하기 위한 도면이다.9 is a diagram for explaining malicious probability information displayed on a mail list.

도 9에 도시된 바와 같이, 본 발명은, 악성 플래그 및 광고 플래그를 포함하는 제1 플래그, 제1 악성 확률값 및 제1 뉴럴 네트워크 모델 정확도를 포함하는 제2 플래그, 제2 악성 확률값 및 제2 뉴럴 네트워크 모델 정확도를 포함하는 제3 플래그를 기반으로 전자 메일 파일을 스팸 메일, 광고 메일 및 정상 메일로 분류하고, 분류한 메일에 악성 확률 정보를 표시할 수 있다.As shown in FIG. 9, the present invention provides a first flag including a malicious flag and an advertisement flag, a first malicious probability value and a second flag including a first neural network model accuracy, a second malicious probability value, and a second neural network model. Based on the third flag including network model accuracy, e-mail files may be classified as spam mail, advertisement mail, and normal mail, and malicious probability information may be displayed on the classified mail.

일 예로, 도 9와 같이, 본 발명은, 악성 확률 정보를 표시할 때, 분류한 스팸 메일, 광고 메일 및 정상 메일이 각각 시각적으로 구분되도록 서로 다른 컬러를 갖는 악성 확률 정보를 표시할 수 있다.For example, as shown in FIG. 9 , when displaying malicious probability information, the present invention may display malicious probability information having different colors so that classified spam mail, advertisement mail, and normal mail are visually distinguished from each other.

예를 들면, 악성 확률 정보는, 교통 신호등 색상으로 구분하여 해당 메일 리스트 일측에 표시될 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.For example, malicious probability information may be displayed on one side of a corresponding mail list after being classified by the color of a traffic light, but this is only one embodiment, and is not limited thereto.

도 10은, 본 발명의 일 실시예에 따라, 전자 메시지 검사 방법을 설명하기 위한 흐름도이다.10 is a flowchart illustrating a method of checking an electronic message according to an embodiment of the present invention.

도 10에 도시된 바와 같이, 본 발명의 메일 서버는, 통신 네트워크를 통해 전자 메시지를 수신 및 저장할 수 있다.As shown in FIG. 10, the mail server of the present invention can receive and store electronic messages through a communication network.

그리고, 본 발명의 EML 추출부는, 메일 서버에 저장된 전자 메시지로부터 전자 메일 파일을 추출할 수 있다.And, the EML extraction unit of the present invention can extract an e-mail file from an e-message stored in the mail server.

여기서, 본 발명의 EML 추출부는, 저장된 전자 메시지로부터 전자 메일 파일을 추출할 때, 저장된 다수의 전자 메시지들로부터 EML 파일을 추출할 수 있는데, 이는 일 실시예일 뿐, 이에 한정되지는 않는다.Here, the EML extraction unit of the present invention may extract EML files from a plurality of stored electronic messages when extracting an electronic mail file from stored electronic messages, which is only one embodiment, but is not limited thereto.

다음, 본 발명의 스팸 필터부는, 추출한 전자 메일 파일이 사용자 스팸룰에 상응하는 스팸인지를 확인하고, 사용자 스팸룰에 상응하는 스팸이면 악성 플래그를 생성할 수 있다.Next, the spam filter unit of the present invention checks whether the extracted e-mail file is spam corresponding to the user spam rule, and generates a malicious flag if it is spam corresponding to the user spam rule.

그리고, 본 발명의 스팸 필터부는, 사용자 스팸룰에 상응하는 스팸이 아니면 전자 메일 파일이 사용자 스팸룰에 상응하는 광고 또는 프로모션인지를 확인하고, 사용자 스팸룰에 상응하는 광고 또는 프로모션이면 광고 플래그를 생성할 수 있다.And, the spam filter unit of the present invention, if it is not spam corresponding to the user spam rule, checks whether the e-mail file is an advertisement or promotion corresponding to the user spam rule, and generates an advertisement flag if it is an advertisement or promotion corresponding to the user spam rule. can do.

일 예로, 사용자 스팸룰은, 유사 도메인 또는 악성 도메인을 포함하는 메일 도메인 및 IP 차단, 발신인 도메인과 실제 발신인 도메인이 다르면 차단, 악성 URL 차단, 첨부파일 이중 확장자 차단, 안전하지 않는 첨부파일 분류, 사용자 지정 키워드 차단을 포함할 수 있는데, 이는 일 실시예일 뿐, 이에 한정되지 않는다.For example, user spam rules include blocking mail domains and IPs including similar domains or malicious domains, blocking when the sender's domain and the actual sender's domain are different, blocking malicious URLs, blocking attachment double extensions, classifying unsafe attachments, and user spam rules. Blocking of specified keywords may be included, which is only an example, but is not limited thereto.

이어, 본 발명의 정적 검사부는, 스팸 검사 수행이 완료되면 전자 메일 파일의 첨부 파일 유무를 확인할 수 있다.Then, the static inspection unit of the present invention, when the spam inspection is completed, can check whether or not there is an attached file in the e-mail file.

그리고, 본 발명의 정적 검사부는, 첨부 파일이 있으면 첨부 파일의 유형에 상응하는 제1 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고 그에 상응하는 제2 플래그를 생성할 수 있다.In addition, if there is an attached file, the static inspection unit of the present invention inputs a first characteristic value corresponding to the type of the attached file to the pre-learned first neural network model to perform static inspection and generate a second flag corresponding thereto. can

즉, 본 발명의 정적 검사부는, 제2 플래그를 생성할 때, 첨부 파일이 문서 파일 유형이면 그에 상응하는 제1 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 정적 검사에 상응하는 악성 확률값을 예측하며, 예측한 악성 확률값을 기초로 제2 플래그를 생성할 수 있다.That is, when the static inspection unit of the present invention generates the second flag, if the attached file is a document file type, the static inspection is performed by inputting a first characteristic value corresponding to the attached file to the pre-learned first neural network model. A malicious probability value corresponding to the test may be predicted, and a second flag may be generated based on the predicted malicious probability value.

여기서, 제1 뉴럴 네트워크 모델은, 랜덤포레스트(RandomForest) 모델, 서포트 벡터 머신(support vector machine) 모델, 디시젼트리(DecisionTree) 모델, 나이브 베이스(Naive Bayes) 모델 중 적어도 어느 하나일 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.Here, the first neural network model may be at least one of a RandomForest model, a support vector machine model, a DecisionTree model, and a Naive Bayes model, which is It is only an example, and is not limited thereto.

다음, 본 발명의 샌드박스 실행부는, 정적 검사 수행이 완료된 첨부 파일을 샌드 박스 실행할 수 있다.Next, the sandbox execution unit of the present invention may perform sandbox execution of the attached file for which static inspection has been performed.

그리고, 본 발명의 동적 검사부는, 샌드 박스 실행한 첨부 파일에 대해 특정 지표에 상응하는 제2 특징값을 미리 학습된 제2 뉴럴 네트워크 모델에 입력하여 동적 검사를 수행하고 그에 상응하는 제3 플래그를 생성할 수 있다.In addition, the dynamic inspection unit of the present invention inputs a second characteristic value corresponding to a specific index to the pre-learned second neural network model for the sandboxed attached file, performs dynamic inspection, and generates a third flag corresponding thereto. can create

여기서, 동적 검사부는, 샌드 박스 실행한 첨부 파일에 대해 침해 지표로부터 가중치가 높은 콘텐츠 정보를 포함하는 제2 특징값을 미리 학습된 제2 뉴럴 네트워크 모델에 입력하여 동적 검사를 수행하고, 정적 검사에 상응하는 악성 확률값을 예측하며, 예측한 악성 확률값을 기초로 제3 플래그를 생성할 수 있다.Here, the dynamic inspection unit performs dynamic inspection by inputting a second feature value including content information having a high weight from the infringement index for the sandbox-executed attachment to a pre-learned second neural network model, and performs a dynamic inspection on the static inspection. A corresponding malicious probability value may be predicted, and a third flag may be generated based on the predicted malicious probability value.

여기서, 제2 뉴럴 네트워크 모델은, 랜덤포레스트(RandomForest) 모델, 서포트 벡터 머신(support vector machine) 모델, 디시젼트리(DecisionTree) 모델, 나이브 베이스(Naive Bayes) 모델 중 적어도 어느 하나일 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.Here, the second neural network model may be at least one of a RandomForest model, a support vector machine model, a DecisionTree model, and a Naive Bayes model, which is It is only an example, and is not limited thereto.

이어, 본 발명의 분류부는, 제1, 제2, 제3 플래그를 기반으로 전자 메시지를 분류하여 악성 확률 정보를 표시할 수 있다.Subsequently, the classification unit of the present invention may display malicious probability information by classifying the electronic message based on the first, second, and third flags.

여기서, 본 발명의 분류부는, 악성 확률 정보를 표시할 때, 악성 플래그 및 광고 플래그를 포함하는 제1 플래그, 제1 악성 확률값 및 제1 뉴럴 네트워크 모델 정확도를 포함하는 제2 플래그, 제2 악성 확률값 및 제2 뉴럴 네트워크 모델 정확도를 포함하는 제3 플래그를 기반으로 전자 메일 파일을 스팸 메일, 광고 메일 및 정상 메일로 분류하고, 분류한 메일에 악성 확률 정보를 표시할 수 있다.Here, when the classification unit of the present invention displays the malicious probability information, a first flag including a malicious flag and an advertisement flag, a second flag including a first malicious probability value and a first neural network model accuracy, and a second malicious probability value And based on the third flag including the accuracy of the second neural network model, the e-mail file may be classified as spam mail, advertisement mail, and normal mail, and malicious probability information may be displayed on the classified mail.

일 예로, 분류부는, 악성 확률 정보를 표시할 때, 분류한 스팸 메일, 광고 메일 및 정상 메일이 각각 시각적으로 구분되도록 서로 다른 컬러를 갖는 악성 확률 정보를 표시할 수 있다.For example, when displaying the malicious probability information, the classification unit may display the malicious probability information having different colors so that the classified spam mail, advertisement mail, and normal mail are visually distinguished from each other.

예를 들면, 악성 확률 정보는, 교통 신호등 색상으로 구분하여 해당 메일 리스트 일측에 표시될 수 있는데, 이는 일 실시예일 뿐, 이에 한정하지 않는다.For example, malicious probability information may be displayed on one side of a corresponding mail list after being classified by the color of a traffic light, but this is only one embodiment, and is not limited thereto.

이와 같이, 본 발명은, 전자 메일 파일의 스팸 검사와, 뉴럴 네트워크 모델을 이용하여 첨부 파일의 정적 검사 및 동적 검사를 수행함으로써, 지속적으로 변화하는 다양한 이메일 공격 패턴에 대응하여 최소 시간 및 비용으로 불법 스팸 메일을 정확하게 필터링할 수 있다.In this way, the present invention, by performing spam inspection of e-mail files and static inspection and dynamic inspection of attached files using a neural network model, in response to various email attack patterns that are constantly changing, is illegal with minimum time and cost. Spam mail can be accurately filtered.

또한, 본 발명은, 신호등 형태의 스팸 확률값을 표현하므로 사용자로 하여금 스팸 메일에 대한 경각심을 갖도록 한다.In addition, since the present invention expresses a spam probability value in the form of a traffic light, it makes users aware of spam mail.

또한, 본 발명은, 메일 서버와 분석 서버를 포함할 수 있는데, 분석 서버만 이용함으로써, EML을 추출하여 전자 메일 파일의 스팸 검사와, 뉴럴 네트워크 모델을 이용하여 첨부 파일의 정적 검사 및 동적 검사를 수행할 수 있으므로, 메일 서버에서 메일을 수신 및 저장하는 동안에도 분석 서버에서 전자 메일의 스팸, 정적, 동적 검사를 효율적으로 수행할 수 있다.In addition, the present invention may include a mail server and an analysis server. By using only the analysis server, spam inspection of e-mail files by extracting EML and static inspection and dynamic inspection of attachments using a neural network model are performed. Therefore, spam, static, and dynamic scanning of e-mails can be efficiently performed by the analysis server even while the mails are being received and stored by the mail server.

또한, 본 발명은, 문서 파일 위주의 정적 검사를 수행하므로 샌드 박스에 대한 시간 소요를 최소화할 수 있다.In addition, since the present invention performs static inspection mainly on document files, it is possible to minimize the time required for the sandbox.

또한, 본 발명은, 모델에 대한 악성 파일 자가 학습을 통해 기업 측면에서 유지 보수 비용이 감소할 수 있다.In addition, according to the present invention, maintenance costs can be reduced in terms of companies through self-learning of malicious files for models.

이상에서 전술한 본 발명의 일 실시예에 따른 방법은, 하드웨어인 서버와 결합되어 실행되기 위해 프로그램(또는 어플리케이션)으로 구현되어 매체에 저장될 수 있다.The method according to an embodiment of the present invention described above may be implemented as a program (or application) to be executed in combination with a server, which is hardware, and stored in a medium.

상기 전술한 프로그램은, 상기 컴퓨터가 프로그램을 읽어 들여 프로그램으로 구현된 상기 방법들을 실행시키기 위하여, 상기 컴퓨터의 프로세서(CPU)가 상기 컴퓨터의 장치 인터페이스를 통해 읽힐 수 있는 C, C++, JAVA, 기계어 등의 컴퓨터 언어로 코드화된 코드(Code)를 포함할 수 있다. 이러한 코드는 상기 방법들을 실행하는 필요한 기능들을 정의한 함수 등과 관련된 기능적인 코드(Functional Code)를 포함할 수 있고, 상기 기능들을 상기 컴퓨터의 프로세서가 소정의 절차대로 실행시키는데 필요한 실행 절차 관련 제어 코드를 포함할 수 있다. 또한, 이러한 코드는 상기 기능들을 상기 컴퓨터의 프로세서가 실행시키는데 필요한 추가 정보나 미디어가 상기 컴퓨터의 내부 또는 외부 메모리의 어느 위치(주소 번지)에서 참조되어야 하는지에 대한 메모리 참조관련 코드를 더 포함할 수 있다. 또한, 상기 컴퓨터의 프로세서가 상기 기능들을 실행시키기 위하여 원격(Remote)에 있는 어떠한 다른 컴퓨터나 서버 등과 통신이 필요한 경우, 코드는 상기 컴퓨터의 통신 모듈을 이용하여 원격에 있는 어떠한 다른 컴퓨터나 서버 등과 어떻게 통신해야 하는지, 통신 시 어떠한 정보나 미디어를 송수신해야 하는지 등에 대한 통신 관련 코드를 더 포함할 수 있다.The aforementioned program is C, C++, JAVA, machine language, etc. It may include a code coded in a computer language of. These codes may include functional codes related to functions defining necessary functions for executing the methods, and include control codes related to execution procedures necessary for the processor of the computer to execute the functions according to a predetermined procedure. can do. In addition, these codes may further include memory reference related codes for which location (address address) of the computer's internal or external memory should be referenced for additional information or media required for the computer's processor to execute the functions. there is. In addition, when the processor of the computer needs to communicate with any other remote computer or server in order to execute the functions, the code uses the computer's communication module to determine how to communicate with any other remote computer or server. It may further include communication-related codes for whether to communicate, what kind of information or media to transmit/receive during communication, and the like.

상기 저장되는 매체는, 레지스터, 캐쉬, 메모리 등과 같이 짧은 순간 동안 데이터를 저장하는 매체가 아니라 반영구적으로 데이터를 저장하며, 기기에 의해 판독(reading)이 가능한 매체를 의미한다. 구체적으로는, 상기 저장되는 매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광 데이터 저장장치 등이 있지만, 이에 제한되지 않는다. 즉, 상기 프로그램은 상기 컴퓨터가 접속할 수 있는 다양한 서버 상의 다양한 기록매체 또는 사용자의 상기 컴퓨터상의 다양한 기록매체에 저장될 수 있다. 또한, 상기 매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장될 수 있다.The storage medium is not a medium that stores data for a short moment, such as a register, cache, or memory, but a medium that stores data semi-permanently and is readable by a device. Specifically, examples of the storage medium include ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc., but are not limited thereto. That is, the program may be stored in various recording media on various servers accessible by the computer or various recording media on the user's computer. In addition, the medium may be distributed to computer systems connected through a network, and computer readable codes may be stored in a distributed manner.

본 발명의 실시예와 관련하여 설명된 방법 또는 알고리즘의 단계들은 하드웨어로 직접 구현되거나, 하드웨어에 의해 실행되는 소프트웨어 모듈로 구현되거나, 또는 이들의 결합에 의해 구현될 수 있다. 소프트웨어 모듈은 RAM(Random Access Memory), ROM(Read Only Memory), EPROM(Erasable Programmable ROM), EEPROM(Electrically Erasable Programmable ROM), 플래시 메모리(Flash Memory), 하드 디스크, 착탈형 디스크, CD-ROM, 또는 본 발명이 속하는 기술 분야에서 잘 알려진 임의의 형태의 컴퓨터 판독가능 기록매체에 상주할 수도 있다.Steps of a method or algorithm described in connection with an embodiment of the present invention may be implemented directly in hardware, implemented in a software module executed by hardware, or implemented by a combination thereof. A software module may include random access memory (RAM), read only memory (ROM), erasable programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, hard disk, removable disk, CD-ROM, or It may reside in any form of computer readable recording medium well known in the art to which the present invention pertains.

이상, 첨부된 도면을 참조로 하여 본 발명의 실시예를 설명하였지만, 본 발명이 속하는 기술분야의 통상의 기술자는 본 발명이 그 기술적 사상이나 필수적인 특징을 변경하지 않고서 다른 구체적인 형태로 실시될 수 있다는 것을 이해할 수 있을 것이다. 그러므로, 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며, 제한적이 아닌 것으로 이해해야만 한다.Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art to which the present invention pertains can be implemented in other specific forms without changing the technical spirit or essential features of the present invention. you will be able to understand Therefore, it should be understood that the embodiments described above are illustrative in all respects and not restrictive.

Claims (10)

전자 메시지 검사 장치의 전자 메시지 검사 방법에 있어서,
전자 메시지를 수신 및 저장하는 단계;
상기 저장된 전자 메시지로부터 전자 메일 파일을 추출하는 단계;
상기 추출한 전자 메일 파일의 스팸 검사를 수행하고, 그에 상응하는 제1 플래그를 생성하는 단계;
상기 스팸 검사 수행이 완료되면 전자 메일 파일의 첨부 파일 유무를 확인하는 단계;
상기 첨부 파일이 있으면 상기 첨부 파일의 유형에 상응하는 제1 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 그에 상응하는 제2 플래그를 생성하는 단계;
상기 정적 검사 수행이 완료되면 첨부 파일을 샌드 박스 실행하는 단계;
상기 샌드 박스 실행한 첨부 파일에 대해 특정 지표에 상응하는 제2 특징값을 미리 학습된 제2 뉴럴 네트워크 모델에 입력하여 동적 검사를 수행하고, 그에 상응하는 제3 플래그를 생성하는 단계; 및
상기 제1, 제2, 제3 플래그를 기반으로 상기 전자 메시지를 분류하여 악성 확률 정보를 표시하는 단계를 포함하는 것을 특징으로 하는 전자 메시지 검사 방법.
An electronic message checking method of an electronic message checking device, comprising:
receiving and storing electronic messages;
extracting an electronic mail file from the stored electronic message;
performing a spam check on the extracted e-mail file and generating a first flag corresponding thereto;
checking whether or not there is an attached file in the e-mail file when the spam check is completed;
if the attached file exists, performing a static test by inputting a first characteristic value corresponding to the type of the attached file to a pre-learned first neural network model, and generating a second flag corresponding thereto;
sandboxing the attached file when the static inspection is completed;
performing a dynamic inspection by inputting a second characteristic value corresponding to a specific indicator of the sandbox-executed attachment to a pre-learned second neural network model, and generating a third flag corresponding thereto; and
and displaying malicious probability information by classifying the electronic message based on the first, second, and third flags.
제1 항에 있어서,
상기 제2 플래그를 생성하는 단계는,
상기 첨부 파일이 문서 파일 유형이면 그에 상응하는 제1 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 상기 정적 검사에 상응하는 악성 확률값을 예측하며, 상기 예측한 악성 확률값을 기초로 제2 플래그를 생성하는 것을 특징으로 하는 전자 메시지 검사 방법.
According to claim 1,
Generating the second flag,
If the attached file is a document file type, a first characteristic value corresponding thereto is input to the first pre-learned neural network model to perform a static scan, a malicious probability value corresponding to the static scan is predicted, and the predicted malicious probability value An electronic message inspection method comprising generating a second flag based on
제2 항에 있어서,
상기 제2 플래그를 생성하는 단계는,
상기 첨부 파일이 문서 파일 유형 중 PDF 파일이면 PDF 버전 정보, 상기 PDF 파일 내의 주요 키워드 정보, 사용자 정의 태그 정보, 임의의 태그 정보를 포함하는 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 상기 정적 검사에 상응하는 악성 확률값을 예측하며, 상기 예측한 악성 확률값을 기초로 제2 플래그를 생성하는 것을 특징으로 하는 전자 메시지 검사 방법.
According to claim 2,
Generating the second flag,
If the attached file is a PDF file among document file types, feature values including PDF version information, main keyword information in the PDF file, user-defined tag information, and arbitrary tag information are input to the first neural network model trained in advance to generate static static An electronic message inspection method comprising: performing inspection, predicting a malicious probability value corresponding to the static inspection, and generating a second flag based on the predicted malicious probability value.
제2 항에 있어서,
상기 제2 플래그를 생성하는 단계는,
상기 첨부 파일이 문서 파일 유형 중 DOCX, XLSX, HWP 파일이면 전처리를 수행하여 구조적 경로를 포함하는 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 상기 정적 검사에 상응하는 악성 확률값을 예측하며, 상기 예측한 악성 확률값을 기초로 제2 플래그를 생성하는 것을 특징으로 하는 전자 메시지 검사 방법.
According to claim 2,
Generating the second flag,
If the attached file is a DOCX, XLSX, or HWP file among document file types, preprocessing is performed to input a feature value including a structural path into a pre-learned first neural network model to perform a static inspection, and a static inspection corresponding to the static inspection is performed. An electronic message inspection method comprising predicting a malicious probability value and generating a second flag based on the predicted malicious probability value.
제1 항에 있어서,
상기 제3 플래그를 생성하는 단계는,
상기 샌드 박스 실행한 첨부 파일에 대해 침해 지표로부터 가중치가 높은 콘텐츠 정보를 포함하는 제2 특징값을 미리 학습된 제2 뉴럴 네트워크 모델에 입력하여 동적 검사를 수행하고, 상기 정적 검사에 상응하는 악성 확률값을 예측하며, 상기 예측한 악성 확률값을 기초로 제3 플래그를 생성하는 것을 특징으로 하는 전자 메시지 검사 방법.
According to claim 1,
Generating the third flag,
For the sandbox-executed attachment, a dynamic inspection is performed by inputting a second feature value including content information having a high weight from an infringement indicator into a pre-learned second neural network model, and a malicious probability value corresponding to the static inspection. and generating a third flag based on the predicted malicious probability value.
제5 항에 있어서,
상기 제2 특징값은,
파일 해쉬(file hash) 및 생성 파일(create file) 정보를 포함하는 것을 특징으로 하는 전자 메시지 검사 방법.
According to claim 5,
The second feature value is,
An electronic message inspection method comprising file hash and create file information.
제1 항에 있어서,
상기 악성 확률 정보를 표시하는 단계는,
상기 악성 플래그 및 광고 플래그를 포함하는 제1 플래그, 제1 악성 확률값 및 제1 뉴럴 네트워크 모델 정확도를 포함하는 제2 플래그, 제2 악성 확률값 및 제2 뉴럴 네트워크 모델 정확도를 포함하는 제3 플래그를 기반으로 전자 메일 파일을 스팸 메일, 광고 메일 및 정상 메일로 분류하고, 상기 분류한 메일에 악성 확률 정보를 표시하는 것을 특징으로 하는 전자 메시지 검사 방법.
According to claim 1,
In the step of displaying the malicious probability information,
Based on a first flag including the malicious flag and advertisement flag, a second flag including a first malicious probability value and a first neural network model accuracy, and a third flag including a second malicious probability value and a second neural network model accuracy An electronic message inspection method characterized by classifying e-mail files into spam mail, advertisement mail, and normal mail, and displaying malicious probability information for the classified mail.
제7 항에 있어서,
상기 악성 확률 정보를 표시하는 단계는,
상기 분류한 스팸 메일, 광고 메일 및 정상 메일이 각각 시각적으로 구분되도록 서로 다른 컬러를 갖는 악성 확률 정보를 표시하는 것을 특징으로 하는 전자 메시지 검사 방법.
According to claim 7,
In the step of displaying the malicious probability information,
and displaying malicious probability information having different colors so that the classified spam mail, advertisement mail, and normal mail are visually distinguished from each other.
하드웨어인 컴퓨터와 결합되어, 상기 제1 항 내지 제8 항 중 어느 한 항의 전자 메시지 검사 방법을 수행시키기 위해 매체에 저장된, 전자 메시지 검사 장치의 전자 메시지 검사 방법을 제공하는 컴퓨터 프로그램.A computer program that provides an electronic message checking method of an electronic message checking device, combined with a computer that is hardware, stored in a medium to execute the electronic message checking method according to any one of claims 1 to 8. 전자 메시지 검사 방법을 제공하기 위한 컴퓨팅 장치로서,
하나 이상의 코어를 포함하는 프로세서; 및
메모리;
를 포함하고,
상기 프로세서는,
전자 메시지를 수신 및 저장하고,
상기 저장된 전자 메시지로부터 전자 메일 파일을 추출하며,
상기 추출한 전자 메일 파일의 스팸 검사를 수행하고, 그에 상응하는 제1 플래그를 생성하며,
상기 스팸 검사 수행이 완료되면 전자 메일 파일의 첨부 파일 유무를 확인하고,
상기 첨부 파일이 있으면 상기 첨부 파일의 유형에 상응하는 제1 특징값을 미리 학습된 제1 뉴럴 네트워크 모델에 입력하여 정적 검사를 수행하고, 그에 상응하는 제2 플래그를 생성하며,
상기 정적 검사 수행이 완료되면 첨부 파일을 샌드 박스 실행하고,
상기 샌드 박스 실행한 첨부 파일에 대해 특정 지표에 상응하는 제2 특징값을 미리 학습된 제2 뉴럴 네트워크 모델에 입력하여 동적 검사를 수행하고, 그에 상응하는 제3 플래그를 생성하며,
상기 제1, 제2, 제3 플래그를 기반으로 상기 전자 메시지를 분류하여 악성 확률 정보를 표시하는 것을 특징으로 하는 컴퓨팅 장치.
A computing device for providing a method for inspecting electronic messages, comprising:
a processor comprising one or more cores; and
Memory;
including,
the processor,
receive and store electronic messages;
extracting an electronic mail file from the stored electronic message;
Perform spam checking of the extracted e-mail file, and generate a first flag corresponding thereto;
When the spam inspection is completed, the presence or absence of an attachment of the e-mail file is checked,
If there is the attached file, a first feature value corresponding to the type of the attached file is input to a pre-learned first neural network model to perform a static test, and a second flag corresponding thereto is generated;
When the static inspection is completed, sandbox the attached file,
For the sandbox-executed attachment, a second feature value corresponding to a specific indicator is input to a pre-learned second neural network model to perform a dynamic inspection, and a third flag corresponding thereto is generated;
The computing device characterized in that the electronic message is classified based on the first, second and third flags and malicious probability information is displayed.
KR1020210178300A 2021-12-14 2021-12-14 Method, apparatus and program for checking electronic message based on machine learning KR102630272B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020210178300A KR102630272B1 (en) 2021-12-14 2021-12-14 Method, apparatus and program for checking electronic message based on machine learning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020210178300A KR102630272B1 (en) 2021-12-14 2021-12-14 Method, apparatus and program for checking electronic message based on machine learning

Publications (2)

Publication Number Publication Date
KR20230089691A true KR20230089691A (en) 2023-06-21
KR102630272B1 KR102630272B1 (en) 2024-01-29

Family

ID=86989825

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210178300A KR102630272B1 (en) 2021-12-14 2021-12-14 Method, apparatus and program for checking electronic message based on machine learning

Country Status (1)

Country Link
KR (1) KR102630272B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080067352A (en) * 2005-11-18 2008-07-18 마이크로소프트 코포레이션 Voicemail and fax filtering
KR101005643B1 (en) 2003-11-27 2011-01-05 주식회사 케이티 E-mail management system and method for preventing spam mail

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101005643B1 (en) 2003-11-27 2011-01-05 주식회사 케이티 E-mail management system and method for preventing spam mail
KR20080067352A (en) * 2005-11-18 2008-07-18 마이크로소프트 코포레이션 Voicemail and fax filtering

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
‘EISS 전자메시지 면역 보안 시스템’, Proceedings of KIIT Conference. 640-642페이지, 2021.11.* *

Also Published As

Publication number Publication date
KR102630272B1 (en) 2024-01-29

Similar Documents

Publication Publication Date Title
US11138378B2 (en) Intelligently summarizing and presenting textual responses with machine learning
US20200410335A1 (en) Detecting and Purifying Adversarial Inputs in Deep Learning Computing Systems
US11301732B2 (en) Processing image-bearing electronic documents using a multimodal fusion framework
US10565523B2 (en) Security classification by machine learning
US20220138217A1 (en) Data processing method, electronic equipment and storage medium
KR102093275B1 (en) Malicious code infection inducing information discrimination system, storage medium in which program is recorded and method
US20200106988A1 (en) Behavioral influence system in socially collaborative tools
Mishra et al. Implementation of ‘smishing detector’: an efficient model for smishing detection using neural network
WO2024102205A1 (en) Privacy preserving identity resolution via page content
KR102280490B1 (en) Training data construction method for automatically generating training data for artificial intelligence model for counseling intention classification
KR102630272B1 (en) Method, apparatus and program for checking electronic message based on machine learning
Kwon et al. Detecting textual adversarial examples through text modification on text classification systems
CN109472518B (en) Block chain-based sales behavior evaluation method and device, medium and electronic equipment
US20230143430A1 (en) Image Localizability Classifier
Borra et al. Oecnet: Optimal feature selection-based email classification network using unsupervised learning with deep cnn model
Han et al. Innovative deep learning techniques for monitoring aggressive behavior in social media posts
Wang et al. Mitigating demographic bias of machine learning models on social media
WO2023167727A1 (en) Story message generation
CN114238968A (en) Application program detection method and device, storage medium and electronic equipment
Banerjee et al. Quote examiner: verifying quoted images using web-based text similarity
CN113127858A (en) Anomaly detection model training method, anomaly detection method and anomaly detection device
Kroll ACM TechBrief: Facial Recognition
Zhang A deep learning based framework for detecting and visualizing online malicious advertisement
Butijn Introduction to Advanced Information Technology
Kuo et al. Malware Detection Based on Image Conversion

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