Consolidation of binary files and extraction of feature information from binary files using wavelet signal processing
By converting binary files to a fixed size using techniques like padding and hidden Markov models, followed by wavelet signal processing, the method ensures uniform feature extraction, addressing inconsistencies in existing methods and improving malicious code detection accuracy.
Patent Information
- Application Number
- JP2024514694
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-11-25
- Filing Date
- 2022-07-15
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2042-07-15
AI Technical Summary
Existing methods for extracting feature information from binary files face challenges due to varying file structures across different operating systems, and the extraction process is not uniform, especially when dealing with packed and obfuscated files, leading to inconsistent and incomplete feature extraction.
A method that converts binary files into a fixed size using techniques like padding, slicing, and hidden Markov models, followed by wavelet signal processing to extract feature information uniformly, regardless of file structure or system environment.
Enables the static extraction of meaningful feature information from binary files of varying sizes, enhancing the accuracy of malicious code detection by ensuring consistent and uniform feature extraction, thus improving the performance of network models in identifying malicious code.
Smart Images

Figure 2024535757000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to detection of malicious code, and more particularly to a method of converting a binary file into data of a fixed size and statically extracting feature information by wavelet signal processing. [Background technology]
[0002] A large amount of malicious code is circulating in cyberspace around the world, and it is necessary to quickly extract characteristic information from binary files and detect whether the code is malicious or not. Summary of the Invention [Problem to be solved by the invention]
[0003] However, depending on the operating system environment, the binary file may have a structure such as PE (Portable Executable) or ELF (Executable and Linkable Format). Therefore, when extracting feature information from a binary file, the extraction process of the feature information may need to be changed according to the structure of the binary file. In addition, when feature information is extracted from a binary file that is not packed and obfuscated and a binary file that is packed and obfuscated, there may be a limitation that it is difficult to extract meaningful feature information from the packed and obfuscated binary file. Furthermore, in order to extract feature information from a binary file, it may be necessary to perform a data conversion process such as imaging, grayscale, and array conversion on the binary file. However, when converting a binary file, the size of the binary file varies, so the form of the converted binary file is not fixed, and therefore there may be a limitation in extracting a uniform level of feature information from binary files that vary in size. Furthermore, when extracting feature information from a binary file by wavelet signal processing, there may be a problem that the extracted feature information varies depending on the size of the binary file.
[0004] The present disclosure has been devised in response to the above-mentioned background technology, and in order to quickly extract characteristic information of a binary file, the characteristic information extracted in a static characteristic information extraction process is used to detect whether or not the code is malicious.
[0005] Furthermore, it is possible to execute a single feature information extraction process for any binary file and extract feature information, regardless of the binary file structure, which may differ depending on the operating system environment.
[0006] It also extracts a uniform level of meaningful binary file feature information from both unpacked and unobfuscated binary files and packed and obfuscated binary files.
[0007] It also applies methods such as padding, slicing, histogram, hidden Markov, etc. to binary files to generate data of a fixed size.
[0008] In addition, the hidden Markov concept is applied to read a binary file byte by byte, and the probability values relating to the concatenation (continuation) of the current byte to the next byte are arranged in an array, thereby converting multiple binary files of different sizes into data of a fixed form.
[0009] Also, from a plurality of binary files of different sizes that have been converted into data in a fixed format, meaningful feature information for detecting malicious code is extracted by wavelet signal processing.
[0010] The technical problems in the present disclosure are not limited to the above-mentioned technical problems, and a person skilled in the art can clearly understand problems other than the above-mentioned technical problems based on the following description. [Means for solving the problem]
[0011] According to an embodiment of the present disclosure for solving the above-mentioned problems, a method for extracting file characteristic information is disclosed, which is executed by a computing device including at least one processor. The method for extracting file characteristic information executed may include converting input data in the form of a binary file into data of a preset size; and extracting characteristic information of the input data from the data of the preset size.
[0012] In addition, the step of converting the input data in the form of a binary file into data of a preset size may include converting the input data into data of the preset size by using a hidden Markov model.
[0013] In addition, the step of converting the input data in the form of a binary file into data of a preset size may include a step of dividing and recognizing the input data into first units representing the size of a storage device; a step of counting the number of data recognized in the first units; and a step of converting the input data into data of the preset size based on the number of data of the first units.
[0014] In addition, the step of converting the input data in the form of a binary file into data of a preset size may include the steps of: recognizing the input data in units of bytes; counting the number of each of the recognized plurality of bytes; and converting the input data into data of the preset size based on the number of each of the plurality of bytes.
[0015] Furthermore, the step of converting the input data into data of the predetermined size based on the number of each of the plurality of bytes may include the steps of: calculating an occurrence probability of each of the plurality of bytes in all data based on the number of each of the plurality of bytes; and converting the input data into data of the predetermined size based on the occurrence probability.
[0016] In addition, the step of converting the input data in the form of a binary file into data of a predetermined size may include the steps of: recognizing the input data in units of bytes; calculating the number of occurrences of a unique concatenated structure between a plurality of bytes, in which a first byte is concatenated followed by a second byte among the recognized plurality of bytes, the number of occurrences being calculated for at least a portion of the recognized plurality of bytes; and converting the input data into data of the predetermined size based on the number of occurrences.
[0017] Furthermore, the step of converting the input data into data of the predetermined size based on the number of occurrences may include: calculating a concatenation probability between a plurality of bytes that the second byte appears following the first byte based on the number of occurrences; and converting the input data into data of the predetermined size based on the concatenation probability.
[0018] In addition, the step of extracting feature information of the input data from the data of the predetermined size may include the step of extracting feature information from the data of the predetermined size by using a wavelet transform method.
[0019] In addition, the step of extracting feature information from the data of the predetermined size using the wavelet transform method may include: performing the wavelet transform on the data of the predetermined size and extracting a wavelet coefficient matrix, the wavelet coefficient matrix including an approximation coefficient matrix and a detail coefficient matrix; and extracting feature information of the input data based on the wavelet coefficient matrix.
[0020] Moreover, the detailed coefficient matrix may include at least one of a horizontal coefficient matrix, a vertical coefficient matrix, or a diagonal coefficient matrix.
[0021] In addition, the data of the preset size is data having a matrix structure, and the feature information includes at least one of a first feature related to the approximation coefficient matrix extracted by performing a first number of wavelet transforms so that the data of the preset size has a 1x1 matrix structure; a second feature related to values of the diagonal coefficient matrix extracted by performing a second number of wavelet transforms within a first number range (number range) that is equal to or greater than a first critical number and equal to or less than the first number; a third feature related to the diagonal coefficient matrix extracted by performing a third number of wavelet transforms within a second number range (number range) that is equal to or greater than the first critical number and less than the first number; or a fourth feature related to the diagonal coefficient matrix extracted by performing a fourth number of wavelet transforms within a third number range (number range) that is equal to or greater than a second critical number and less than the first number, which is less than the first critical number; in this case, the first critical number may be less than the first number.
[0022] In addition, the third feature may include at least one of a 3-1 feature related to a ratio of the diagonal coefficient matrix extracted by performing the third number of wavelet transforms, or a 3-2 feature related to a first standard deviation of the diagonal coefficient matrix extracted by performing the third number of wavelet transforms.
[0023] In addition, the fourth feature may include at least one of a 4-1 feature related to a sum of values of the diagonal coefficient matrix extracted by performing the fourth wavelet transform, a 4-2 feature related to a skewness of values of the diagonal coefficient matrix extracted by performing the third wavelet transform, a 4-3 feature related to a second standard deviation of the diagonal coefficient matrix extracted by performing the third wavelet transform, or a 4-4 feature related to an average value of the diagonal coefficient matrix extracted by performing the third wavelet transform.
[0024] Also, the method may further include a step of: training a network model using the feature information as training data so as to detect malicious code from input data in the form of a binary file.
[0025] In addition, a computing device for extracting file characteristic information may include a binary file conversion unit that converts input data in the form of a binary file into data of a predetermined size; and a signal processing unit that extracts characteristic information of the input data from the data of the predetermined size.
[0026] Also, a computer program stored on a computer-readable storage medium, which, when executed by one or more processors, performs a method for extracting characteristic information of a file, the method may include the steps of converting input data in the form of a binary file into data of a predetermined size; and extracting characteristic information of the input data from the data of the predetermined size. Effect of the Invention
[0027] The technical solutions obtained from the present disclosure are not limited to the solutions described above, and a person having ordinary skill in the art to which the present disclosure pertains can clearly understand solutions other than the solutions described above from the following description. It is possible to quickly detect whether a binary file contains malicious code by statically extracting characteristic information, and since the binary file is not executed, the risk of infection with malicious code can be avoided.
[0028] Furthermore, it is possible to extract feature information from any binary file, regardless of the operating system environment.
[0029] It is also possible to extract a uniform level of feature information regardless of whether the binary file is packed and obfuscated.
[0030] In addition, when extracting feature information from a binary file, the input binary file is converted into data of a fixed format by the data conversion process of the present invention, making it possible to extract a uniform level of feature information even if the sizes of the binary files vary.
[0031] Furthermore, it is possible to extract meaningful feature information for detecting malicious code from data in a fixed form obtained by the data conversion process through wavelet signal processing.
[0032] The effects obtained from the present disclosure are not limited to the effects described above, and a person having ordinary knowledge in the technical field to which the present disclosure pertains can clearly understand effects other than those described above based on the contents of the following description. [Brief description of the drawings]
[0033] Various aspects are described with reference to the drawings. In the following description of the drawings, like drawing numbers are generally used to refer to like components. In the following examples, for purposes of explanation, numerous specific details are provided to facilitate an overall understanding of one or more aspects. However, it will be apparent that such aspect(s) can be practiced without such specific details. In other instances, well-known structures and devices are shown in block diagram form to facilitate the description of one or more aspects.
[0034] FIG. 1 is a block diagram illustrating an example of a computing device according to some embodiments of the present disclosure. FIG. 2 is a flowchart illustrating an example of a method for a computing device to extract feature information from input data in multiple embodiments of the present disclosure. FIG. 3 is a flowchart illustrating an example of a method in which a computing device in accordance with several embodiments of the present disclosure converts input data into data of a preset size based on the number of each of a plurality of bytes. FIG. 4 is a flowchart illustrating an example of a method in which a computing device in several embodiments of the present disclosure converts input data into data of a preset size based on the occurrence probability of each of a number of bytes. FIG. 5 is a flowchart illustrating an example of a method in which a computing device in several embodiments of the present disclosure converts input data into data of a preset size based on the occurrence count of a unique concatenation structure between several bytes. FIG. 6 is a flowchart illustrating an example of a method for converting input data into data of a preset size based on a connection probability between multiple bytes by a computing device in multiple embodiments of the present disclosure. FIG. 7 is a flowchart illustrating an example of a method for a computing device to extract feature information from data of a predetermined size using a wavelet transform method. FIG. 8 is a general schematic diagram of an exemplary computing environment in which embodiments of the present disclosure can be implemented. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0035] Various embodiments and / or aspects are disclosed below with reference to the accompanying drawings. In the following description, for purposes of explanation, numerous specific details are disclosed to aid in the overall understanding of one or more aspects. However, one of ordinary skill in the art of the present disclosure will recognize that such aspect(s) can be practiced without such specific details. The following description and accompanying drawings set forth certain exemplary aspects of one or more aspects in detail. However, these aspects are illustrative, and any of the various methods based on the principles of the various aspects may be utilized, and the description set forth herein is intended to include all such aspects and their equivalents. In particular, any aspect or design described in the "embodiment", "example", "aspect", or "example" herein should not be construed as superior or advantageous over other aspects or designs.
[0036] Hereinafter, the same or similar components are denoted by the same reference numerals, regardless of the reference numerals in the drawings, and duplicated descriptions thereof will be omitted. In addition, when describing the embodiments disclosed in this specification, if it is determined that a detailed description of a related known technology may make the gist of the embodiments disclosed in this specification unclear, the detailed description will be omitted. In addition, the attached drawings are merely intended to facilitate understanding of the embodiments disclosed in this specification, and the technical ideas disclosed in this specification are not limited by the attached drawings.
[0037] Although expressions such as "first" and "second" are used to describe various elements or components, these elements or components are not limited by these terms. These terms are used merely to distinguish one element or component from another element or component. Therefore, a first element or component described below may also be a second element or component within the technical concept of the present invention.
[0038] Unless otherwise defined, all terms (including technical and scientific terms) used in this specification can be used in a commonly understood sense by a person having ordinary knowledge in the technical field to which the present invention belongs. Furthermore, terms defined in a general dictionary are not to be interpreted ideally or excessively unless otherwise defined.
[0039] Additionally, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or." That is, unless otherwise specified or clear from the context, "X utilizes A or B" is intended to mean one of the natural inclusive permutations. That is, if X utilizes A; X utilizes B; or X utilizes both A and B, then "X utilizes A or B" can apply to any of these. Additionally, the term "and / or" as used herein refers to and includes all possible combinations of one or more of the associated listed items.
[0040] Additionally, the term "comprise" as a predicate and / or the modifier "comprise" are understood to mean the presence of the stated feature and / or component, but not to exclude the presence or addition of one or more other features, components and / or groups thereof. Additionally, unless a specific number is specified or the context is clear that a singular number is indicated, the singular number should generally be construed in this specification and claims to mean "one or more."
[0041] Also, as used herein, the terms "information" and "data" may be used interchangeably.
[0042] When a component is described as being "connected," "coupled," or "connected" to another component, it should be understood that the component may be directly connected, coupled, or connected to the other component, but that there may be other components between them. On the other hand, when a component is described as being "directly connected," "directly coupled," or "directly connected" to another component, it should be understood that there are no other components between them.
[0043] The suffixes "module" and "section" used in the following description are used or mixed together for the sole purpose of facilitating the writing of the specification, and these suffixes themselves do not have any specific different meanings or roles.
[0044] The objectives and effects of the present disclosure, as well as the technical configuration for achieving them, will become clear by referring to the following detailed examples together with the accompanying drawings. In the description of the present disclosure, if it is determined that a specific description of a known function or configuration may make the gist of the present disclosure unclear, the detailed description will be omitted. The terms described below are defined in consideration of the functions in the present disclosure, and may change depending on the intentions or practices of users or operators.
[0045] However, the present disclosure is not limited to the embodiments disclosed below, and can be embodied in various forms. These embodiments are provided solely for the purpose of making the present disclosure complete and allowing those skilled in the art to fully understand the scope of the disclosure, and the present disclosure is defined by the scope of the claims. Therefore, the definition should be determined based on the contents described throughout this specification.
[0046] In the present disclosure, a computing device is capable of converting input data in the form of a binary file into data of a preset size. A binary file is a file encoded for the purpose of storing and processing data, and may have a different structure depending on the operating system environment. As an example, a binary file in a Windows operating system may be in PE (Portable Executable) format, and a binary file in a Unix operating system may be in ELF (Executable and Linkable Format) format. Conventionally, it has been possible to extract feature information from a binary file by changing a process depending on the operating system environment. In this case, there may be a problem that the extracted feature information is not uniform. In the present disclosure, input data in the form of a binary file is preprocessed, thereby making it possible to convert the data into data of a preset size. The preprocessing performed in the present disclosure can be the same preprocessing regardless of the operating system environment. Therefore, when extracting feature information of the input data from the converted data of a preset size, it is possible to ensure the uniformity of the extracted multiple feature information. Furthermore, a computing device is capable of statically extracting feature information without executing a binary file. Therefore, it is possible to avoid the risk of infection with malicious code. The method for a computing device to extract characteristic information of a file will be described below with reference to FIGS.
[0047] FIG. 1 is a block diagram illustrating an example of a computing device according to some embodiments of the present disclosure.
[0048] 1, the computing device 100 may include a processor 110, a binary file converter 120, and a signal processor 130. However, the above components are not essential for implementing the computing device 100, and the computing device 100 may include more or fewer components than the above components.
[0049] The computing device 100 may include any type of computer system or device, such as, for example, a microprocessor, a mainframe computer, a digital processor, a handheld device or device controller, or the like.
[0050] The processor 110 is capable of processing the overall operation of the computing device 100. The processor 110 is capable of processing signals, data, information, etc. input or output through components included in the computing device 100, and of running application programs stored in the storage unit, thereby providing or processing appropriate information or functions to a user.
[0051] The binary file converter 120 can convert input data in the form of a binary file into data of a preset size. The data of the preset size can be data with a matrix structure. As an example, the data of the preset size can be data with a matrix structure of 256x256. However, the data of the preset size is not limited thereto, and can be data with a matrix structure of various sizes. As an example, the data of the preset size can be data with a matrix structure of 512x512, or data with a matrix structure of 128x128.
[0052] According to various embodiments of the present disclosure, the binary file converter 120 may divide and recognize the input data into first units representing the size of a storage device in order to convert the input data into data of a preset size. In one embodiment, the first units may include a storage unit of a computing device. The first units may be, for example, a byte, a page, a block, or a bit. The binary file converter 120 may count the number of pieces of data recognized in the first unit. The binary file converter 120 may convert the input data into data of a preset size based on the number of pieces of data recognized in the first unit.
[0053] According to several embodiments of the present disclosure, the binary file converter 120 may include a binary file reader, a byte probability calculator, and a fixed data generator.
[0054] The binary file reading unit is capable of recognizing input data in the form of a binary file by dividing it into first units. As an example, the binary file reading unit is capable of recognizing input data in the form of a binary file by dividing it into byte units.
[0055] When the input data is recognized by the binary file reader on a byte-by-byte basis, the byte probability calculator can count the number of each of the recognized bytes. The byte probability calculator can calculate the occurrence probability of each of the multiple bytes in all the data based on the number of each of the multiple bytes. The occurrence probability can be a probability indicating how often each of the multiple bytes appears in all the data. As an example, the first occurrence probability calculated for the first byte of the multiple bytes can be a value indicating the ratio of the first byte to the multiple bytes.
[0056] The fixed data generating unit can convert the input data into data of a preset size based on the occurrence probability calculated by the byte probability calculating unit. An example of a method in which the binary file converting unit (120) converts input data in the form of a binary file into data of a preset size will be described below with reference to Figures 2 to 6.
[0057] Meanwhile, the signal processing unit 130 can extract characteristic information of the input data from the data of a preset size. The characteristic information can be information used to detect whether the input data in the form of a binary file is malicious code or not.
[0058] As an example, the processor 110 may train a network model to detect malicious code from input data in the form of a binary file using the extracted feature information as training data. When a network model is trained using the feature information extracted by the method according to the present disclosure as training data, it can be demonstrated that the accuracy of the trained network model in detecting malicious code is improved, as shown in Tables 1 to 3 below. [Table 1] [Table 2] [Table 3]
[0059] Table 1 may be a result of performance evaluation on KISA2017 malicious code data. Table 2 may be a result of performance evaluation on KISA2018 malicious code data. Table 3 may be a result of performance evaluation on KISA2019 malicious code data. KISA malicious code may be data provided by Korea Internet & Security Agency. In Tables 1 to 3, 0 may be benign code and 1 may be malicious code. Macro AVG may be a value obtained by calculating TP (True Positive), FN (False Negative), FP (False Positive) and TN (True Negative) and then adding them up. Weighted AVG may be a value obtained by averaging the number of data corresponding to each class after a preset weight is assigned.
[0060] Table 1 shows that the accuracy is 0.9460 and the AUC (Area Under the Curve) Score is 0.9274. Table 2 shows that the accuracy is 0.9513 and the AUC Score is 0.9341. Table 3 shows that the accuracy is 0.9649 and the AUC Score is 0.9641.
[0061] The accuracy may be a value calculated as shown in Equation 1 below, and it may be evaluated that the higher the accuracy, the higher the performance of the model.
number
[0062] As shown in Tables 1 to 3 above, when feature information extracted by the method according to the present disclosure is used as training data to train a network model, the accuracy of the trained network model in detecting and predicting malicious code can be improved.
[0063] On the other hand, in the present disclosure, the network model trained using feature information as training data may be a Convolutional Neural Network (CNN), an Artificial Neural Network (ANN), a Deep Neural Network (DNN), a Recurrent Neural Network (RNN), or the like.
[0064] The following describes how the computing device (100) of the present disclosure extracts feature information from input data.
[0065] FIG. 2 is a flowchart illustrating an example of a method for a computing device to extract feature information from input data in multiple embodiments of the present disclosure.
[0066] Referring to FIG. 2, the binary file converter 120 of the computing device 100 can convert input data in the form of a binary file into data of a preset size (S110).
[0067] In the embodiment, the binary file conversion unit 120 can recognize input data by dividing it into first units that represent the size of a storage device. The binary file conversion unit 120 can count the number of recognized first unit data, and convert the input data into data of a preset size based on the number of first unit data.
[0068] According to several embodiments of the present disclosure, the binary file conversion unit (120) can convert the input data into data of a preset size using a hidden Markov model. The hidden Markov model is a statistical model, and can be a model that can convert the input data based on a concatenation probability between a plurality of bytes when the input data is recognized in units of bytes. The concatenation probability can be a probability that a second byte appears and concatenates a first byte among the plurality of bytes. In the embodiment, the binary file conversion unit (120) can convert the input data into data of a preset size using a method such as padding, slicing, or histogram. Hereinafter, an example of a method in which the binary file conversion unit (120) converts the input data into data of a preset size using a hidden Markov model will be described with reference to FIG. 5 and FIG. 6.
[0069] The signal processing unit (130) is capable of extracting feature information of the input data from data of a preset size (S120).
[0070] Specifically, the signal processing unit 130 may extract feature information from data of a preset size by using a wavelet transform method. The wavelet transform method is a signal processing method that can be used to extract information from various types of data, such as audio signals, images, or videos, and may be a method capable of time-frequency analysis. The wavelet transform is capable of simultaneously and variably handling time or spatial transitions by using a long interval for analyzing low-frequency information and a short interval for analyzing high-frequency information. Another signal processing method, the Fourier transform method, is also capable of time-frequency analysis and is capable of converting functions related to time or space into time information or spatial frequency information. However, in the case of the Fourier transform method, the time information or spatial frequency information may change depending on how the user sets the time axis. For example, in the Fourier transform method, if the user sets the time axis so that a lot of time information is extracted, a loss of spatial information may occur. Conversely, in the Fourier transform method, if the user sets the time axis so that a lot of spatial information is extracted, a loss of time information may occur. On the other hand, the wavelet transform can extract both time information and spatial information equally, in other words, it can solve the above-mentioned shortcomings of the Fourier transform. Therefore, in the present disclosure, it is possible to extract feature information from data of a preset size by using the wavelet transform method. Hereinafter, an example of a method in which the signal processing unit (130) extracts feature information from data of a preset size by using the wavelet transform method will be described with reference to FIG. 7.
[0071] In the above configuration, the computing device (100) can convert input data in the form of binary files, which differ depending on the operating system environment, into data of a preset size. The computing device can then extract feature information of the input data from the data of the preset size. Therefore, even if data in different operating system environments is input, the computing device (100) can extract meaningful feature information of a uniform level.
[0072] Further description is provided below regarding an example in which the computing device (100) converts input data into data of a preset size.
[0073] Fig. 3 is a flowchart for explaining an example of a method in which a computing device in a plurality of embodiments of the present disclosure converts input data into data of a preset size based on the number of each of a plurality of bytes. Fig. 4 is a flowchart for explaining an example of a method in which a computing device in a plurality of embodiments of the present disclosure converts input data into data of a preset size based on the occurrence probability of each of a plurality of bytes.
[0074] Referring to FIG. 3, the binary file converter 120 of the computing device 100 is capable of recognizing input data on a byte-by-byte basis (S111).
[0075] For example, input data in the form of a binary file may contain values between 0 and 255. The binary file conversion unit (120) may recognize multiple values between 0 and 255 on a byte-by-byte basis. As an example, the binary file conversion unit (120) may recognize values between 0 and 255 on a byte-by-byte basis, such as 0, 1, 2, 3, etc.
[0076] The binary file conversion unit (120) can count the number of each of the recognized bytes (S112).
[0077] For example, the binary file conversion unit (120) can count the number of each of a plurality of bytes, such as how many 0 values there are, how many 1 values there are, and so on.
[0078] The binary file conversion unit (120) can convert the input data into data of a preset size based on the number of each of the multiple bytes (S113).
[0079] For example, the binary file conversion unit (120) can convert the input data into data of a size corresponding to each number of multiple bytes.
[0080] Meanwhile, referring to Fig. 4, when the number of each of the plurality of bytes is counted, the binary file conversion unit (120) can calculate the occurrence probability of each of the plurality of bytes in all the data based on the number of each of the plurality of bytes (S1131). The occurrence probability can be a probability indicating how often each of the plurality of bytes appears in all the data. As an example, the first occurrence probability calculated for the first byte of the plurality of bytes can be a value indicating the ratio of the first byte to the plurality of bytes.
[0081] For example, the binary file conversion unit (120) can calculate, among values between 0 and 255, what percentage of values 0 appear, what percentage of values 1 appear, or what percentage of values 2 appear.
[0082] The binary file conversion unit (120) can convert the input data into data of a preset size based on the occurrence probability (1132).
[0083] For example, the binary file conversion unit (120) can convert the input data into data of a size corresponding to the occurrence probability of each of a number of bytes.
[0084] In the above configuration, the computing device (100) can convert input data in the form of binary files that differ depending on the operating system environment into data of a preset size. In other words, even if input data in the form of binary files that differ depending on the operating system environment is input, the computing device (100) can convert all input data into data of a uniform size. As a result, the feature information of the input data extracted by the computing device (100) can also be uniform.
[0085] The following describes another example in which the computing device 100 converts input data into data of a preset size.
[0086] 5 is a flowchart for explaining an example of a method for converting input data into data of a preset size based on the occurrence frequency of a unique link structure between multiple bytes by a computing device in multiple embodiments of the present disclosure. FIG. 6 is a flowchart for explaining an example of a method for converting input data into data of a preset size based on a link probability between multiple bytes by a computing device in multiple embodiments of the present disclosure.
[0087] According to some embodiments of the present disclosure, the binary file converter (120) of the computing device (100) can convert input data into data of a preset size using a hidden Markov model. The hidden Markov model can be a model that can convert input data based on a connection probability between multiple bytes included in the input data. The connection probability can be a probability that a second byte appears and is connected after a first byte among the multiple bytes.
[0088] Specifically, referring to FIG. 5, the binary file conversion unit (120) can recognize input data in units of bytes (S210).
[0089] The binary file conversion unit (120) can calculate the number of occurrences of a unique concatenation structure between multiple bytes, in which a first byte is concatenated (followed) by a second byte among the recognized multiple bytes (S220). In this case, the first byte and the second byte are distinguished for ease of explanation, and are not limited to specific bytes. As an example, the binary file conversion unit (120) can calculate the number of occurrences for at least a portion of the recognized multiple bytes.
[0090] The unique concatenation structure is a unique concatenation structure between at least two multiple bytes, and can be understood to be distinct from concatenation structures between at least two other multiple bytes.
[0091] For example, the binary file conversion unit (120) can determine, as a unique concatenated structure, a structure in which a first byte having a value of 0 is concatenated followed by a second byte having a value of 1. As another example, the binary file conversion unit (120) can determine, as a unique concatenated structure, a structure in which a second byte having a value of 1 is concatenated followed by a third byte having a value of 2.
[0092] The number of occurrences may represent the number of times that a unique concatenated structure occurs in the recognized bytes.
[0093] For example, the binary file conversion unit (120) can calculate the number of occurrences of a unique concatenation structure in which a first byte having a value of 0 is concatenated followed by a second byte having a value of 1. As another example, the binary file conversion unit (120) can calculate the number of occurrences of a unique concatenation structure in which a second byte having a value of 1 is concatenated followed by a third byte having a value of 2.
[0094] The binary file conversion unit (120) can convert the input data into data of a preset size based on the number of occurrences of a unique concatenated structure between multiple bytes (S230).
[0095] In an embodiment, the binary file converter 120 can convert the input data into data with a matrix structure having a size of 256 x 256. However, the preset size is not limited to 256 x 256 and can be larger or smaller.
[0096] 6, the binary file conversion unit (120) can calculate a concatenation probability between a plurality of bytes that a second byte appears after a first byte based on the number of occurrences of a unique concatenation structure between the plurality of bytes (S231). The concatenation probability can be the probability that a second byte appears and concatenates a first byte among the plurality of bytes.
[0097] For example, the binary file conversion unit (120) can calculate the concatenation probability that a first byte having a value of 0 is followed by a second byte having a value of 1. The binary file conversion unit (120) can calculate the concatenation probability that a second byte having a value of 1 is followed by a third byte having a value of 2.
[0098] The binary file conversion unit (120) is capable of converting the input data into data of a preset size based on the connection probability (S232).
[0099] In an embodiment, the binary file converter 120 can convert the input data into data with a matrix structure having a size of 256 x 256. However, the preset size is not limited to 256 x 256 and can be larger or smaller.
[0100] In the above configuration, the computing device (100) can convert input data in the form of a binary file, which varies depending on the environment of the operating system, into data of a preset size. In this case, the data of the preset size can be data with a matrix structure. Thus, the computing device (100) can extract feature information from the data of the preset size using a wavelet transform method. The method of the computing device (100) for extracting feature information from data of a preset size using a wavelet transform method will be described below.
[0101] FIG. 7 is a flowchart illustrating an example of a method in which a computing device extracts feature information from data of a predetermined size using a wavelet transform method.
[0102] Referring to Fig. 7, the signal processing unit (130) of the computing device (100) may perform a wavelet transform on data of a preset size and extract a wavelet coefficient matrix (S310). The wavelet coefficients may be coefficients obtained by performing a wavelet transform on the data. The wavelet coefficient matrix may be a matrix constructed using the wavelet coefficients.
[0103] The wavelet coefficient matrix may include an approximation coefficient matrix and a detail coefficient matrix. The approximation coefficient matrix may include information related to a low frequency region of the data of a preset magnitude. The detail coefficient matrix may include information related to a high frequency region of the data of a preset magnitude.
[0104] According to some embodiments of the present disclosure, the detail coefficient matrix may include at least one of a horizontal coefficient matrix, a vertical coefficient matrix, or a diagonal coefficient matrix. Thus, the detail coefficient matrix may include at least one of horizontal information related to a high frequency region of data of a preset size, vertical information related to a high frequency region of data of a preset size, or diagonal information related to a high frequency region of data of a preset size.
[0105] The signal processing unit (130) can extract characteristic information of the input data based on the wavelet coefficient matrix (S320). The characteristic information can be information used to detect whether the input data in the form of a binary file is malicious code or not.
[0106] The feature information may include a first feature related to an approximate coefficient matrix extracted by performing a first number of wavelet transforms so that data of a preset size has a 1x1 matrix structure. In an embodiment, the data of a preset size may be data with a matrix structure of 256x256. Thus, the signal processor (130) may perform eight wavelet transforms so that the data of the preset size has a 1x1 matrix structure. However, the first number is not limited to eight, and may be a number of times that data of matrix structures of various sizes has a 1x1 matrix structure. As an example, when the data of a preset size is data with a matrix structure of 512x512, the signal processor (130) may perform nine wavelet transforms so that the data of the preset size has a 1x1 matrix structure.
[0107] The feature information may include a second feature related to values of a diagonal coefficient matrix extracted by performing a second wavelet transform within a first number range (number range) that is equal to or larger than a first critical number and equal to or smaller than the first number. In this case, the first critical number may be smaller than the first number.
[0108] As an example, the first number may be 8, and the first critical number may be 4. In this case, the first number range (number range) may be 8 to 4, and the second number may be 8, 7, 6, 5, and 4. Therefore, the signal processor 130 may perform wavelet transform 8, 7, 6, 5, and 4 times on data of a preset size, and extract a second feature related to values of a diagonal coefficient matrix.
[0109] As another example, the first number may be 8, and the first critical number may be 7. In this case, the first number range (number range) may be from 8 to 7, and the second number may be 8 and 7. Therefore, the signal processor 130 may perform wavelet transform 8 and 7 times on data of a preset size, and extract a second feature related to values of a diagonal coefficient matrix.
[0110] According to some embodiments of the present disclosure, the first critical number may be determined based on the performance of the computing device (100). For example, the signal processing unit (130) may determine that the first critical number is 1 if the performance of the computing device (100) is sufficient. If the first critical number is 1, the first number range (number range) may be 8 to 1, and based thereon, the second number may be 8, 7, 6, 5, 4, 3, 2, and 1. When the signal processing unit (130) performs wavelet transform 8, 7, 6, 5, 4, 3, 2, and 1 times, extracts values of a diagonal coefficient matrix, and extracts feature information of the input data based on the extracted values of the diagonal coefficient matrix, the number of feature information may increase. Or, the feature information may become more diverse. Therefore, when the extracted feature information is used as learning data to learn a network model, the performance of the learned network model may be improved.
[0111] As another example, when the performance of the computing device 100 is insufficient, the signal processor 130 may determine that the first critical number is 4. In this case, the speed at which the signal processor 130 performs wavelet transform on data of a preset size may be improved, and resources may be saved.
[0112] The feature information may include a third feature related to a diagonal coefficient matrix extracted by performing a third wavelet transform within a second number range (number range) that is equal to or greater than the first critical number and less than the first number.
[0113] As an example, the first number may be 8, and the first critical number may be 4. In this case, the second number range (number range) may be 7 to 4, and the third number may be 7, 6, 5, and 4. Therefore, the signal processor 130 may perform wavelet transform 7, 6, 5, and 4 times on data of a preset size, and extract a third feature related to a diagonal coefficient matrix.
[0114] As another example, the first number of times may be 8, and the first threshold number of times may be 6. In this case, the second number range (number of times range) may be 7 to 6, and the third number of times may be 7 and 6. Therefore, the signal processing unit 130 may perform wavelet transform 7 and 6 times on data of a preset size, and extract a third feature related to a diagonal coefficient matrix.
[0115] According to several embodiments of the present disclosure, the third feature related to the diagonal coefficient matrix extracted by performing eight wavelet transforms on data of a preset size can always extract the same result value.
[0116] Specifically, the third feature may include at least one of a 3-1 feature related to a ratio of diagonal coefficient matrices extracted by performing a third wavelet transform, or a 3-2 feature related to a first standard deviation of diagonal coefficient matrices extracted by performing a third wavelet transform. The ratio of diagonal coefficient matrices may be a ratio of diagonal coefficient matrices among a plurality of wavelet coefficient matrices extracted by performing a wavelet transform on data of a preset size. The first standard deviation of the diagonal coefficient matrices may be a standard deviation related to a diagonal coefficient matrix extracted by performing a wavelet transform on data of a preset size. However, the result values of the 3-1 feature and the 3-2 feature extracted by the signal processing unit (130) performing eight wavelet transforms on data of a preset size may always be fixed. An operation of the signal processing unit (130) performing eight wavelet transforms on data of a preset size to extract the 3-1 feature and the 3-2 feature may lead to a waste of resources. Therefore, the signal processing unit (130) can perform the wavelet transform a third number of times within a second number range (number range) less than the first number of times, and extract a third feature related to the diagonal coefficient matrix.
[0117] According to some embodiments of the present disclosure, the first critical number may be determined based on the performance of the computing device 100. For example, the signal processor 130 may determine that the first critical number is 1 if the performance of the computing device 100 is sufficient. If the first critical number is 1, the second number range may be 7 to 1, and the third number may be 7, 6, 5, 4, 3, 2, and 1 based thereon. As another example, the signal processor 130 may determine that the first critical number is 4 if the performance of the computing device 100 is insufficient. If the first critical number is 4, the second number range may be 7 to 4, and the third number may be 7, 6, 5, and 4 based thereon.
[0118] The feature information may include a fourth feature related to a diagonal coefficient matrix extracted by performing a fourth wavelet transform within a third number range (number range) that is equal to or greater than a second critical number, which is less than the first critical number, and less than the first number.
[0119] As an example, the first number may be 8, the first critical number may be 7, and the second critical number may be 1. In this case, the second number range (number range) may be 7 to 1, and the fourth number may be 7, 6, 5, 4, 3, 2, and 1. Therefore, the signal processor 130 may perform wavelet transform 7, 6, 5, 4, 3, 2, and 1 times on data of a preset size, and extract a fourth feature related to a diagonal coefficient matrix.
[0120] According to several embodiments of the present disclosure, the fourth feature relates to a diagonal coefficient matrix extracted by performing eight wavelet transforms on data of a preset size, and it is possible to always extract the same result value.
[0121] Specifically, the fourth feature may include at least one of a 4-1 feature related to a sum of values of a diagonal coefficient matrix extracted by performing a fourth wavelet transform, a 4-2 feature related to a skewness of values of a diagonal coefficient matrix extracted by performing a fourth wavelet transform, a 4-3 feature related to a second standard deviation of a diagonal coefficient matrix extracted by performing a fourth wavelet transform, a 4-4 feature related to a total average value of a diagonal coefficient matrix extracted by performing a fourth wavelet transform, or a 4-5 feature related to a histogram percentage of a diagonal coefficient matrix extracted by performing a fourth wavelet transform. The sum of values of a diagonal coefficient matrix may be a sum of values of a diagonal coefficient matrix extracted by performing a wavelet transform on data of a preset size. The skewness of values of a diagonal coefficient matrix may be a skewness of values of a diagonal coefficient matrix extracted by performing a wavelet transform on data of a preset size. The second standard deviation of a diagonal coefficient matrix may be a standard deviation of a diagonal coefficient matrix extracted by performing a wavelet transform on data of a preset size. The average value of the diagonal coefficient matrix may be the average value of all the values of the diagonal coefficient matrix extracted by performing wavelet transform on data of a preset size. However, the 4-1 feature extracted by the signal processor (130) performing wavelet transform eight times on data of a preset size and the second feature related to the value of the diagonal coefficient matrix extracted by performing wavelet transform eight times on data of a preset size may be the same. The 4-2 feature, the 4-3 feature, the 4-4 feature, and the 4-5 feature extracted by the signal processor (130) performing wavelet transform eight times on data of a preset size may always be the same result value. Specifically, the 4-2 feature is a feature related to skewness, the 4-3 feature is a feature related to standard deviation, the 4-4 feature is a feature related to average value, and the 4-5 feature is a feature related to histogram percentage, and this may be because the result value extracted by performing wavelet transform eight times always has only one value.Therefore, the operation of the signal processing unit (130) performing eight wavelet transforms on data of a preset size and extracting the fourth feature may lead to a waste of resources. Therefore, the signal processing unit (130) can extract the fourth feature related to the diagonal coefficient matrix extracted by performing the fourth wavelet transform.
[0122] In the present disclosure, the feature information may include a fifth feature related to data of a preset size that has not been subjected to wavelet transformation. As an example, the fifth feature may include a fifth feature related to a histogram percentage of the data of the preset size, a fifth feature related to a standard deviation of the data of the preset size, and a fifth feature related to a total standard deviation of the data of the preset size.
[0123] As described above, the signal processing unit 130 can extract various kinds of feature information from the input data based on the wavelet coefficient matrix. The extracted feature information can be used as learning data for a network model that is trained to detect malicious code from the input data. Thus, the network model can be trained to have high accuracy in detecting and predicting malicious code.
[0124] FIG. 8 is a general schematic diagram of an exemplary computing environment in which embodiments of the present disclosure can be implemented.
[0125] Although the subject matter of this disclosure has generally been described in terms of computer-executable instructions that may be executed on one or more computers, those skilled in the art will appreciate that the subject matter of this disclosure may also be embodied in combination with other program modules and / or as a combination of hardware and software.
[0126] Generally, modules herein include routines, procedures, programs, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Those skilled in the art will also appreciate that the methods of the present disclosure can be practiced with other computer system configurations, including single-processor or multi-processor computer systems, minicomputers, mainframe computers, as well as personal computers, handheld computing devices, microprocessor-based or programmable consumer electronics, etc., each of which can operate in conjunction with one or more associated devices.
[0127] The embodiments described in this disclosure may also be practiced in distributed computing environments where certain tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.
[0128] A computer typically includes a variety of computer-readable media. Computer-accessible media include volatile and non-volatile media, transitory and non-transitory media, mobile and non-mobile media. By way of example and not limitation, computer-readable media can include computer-readable storage media and computer-readable transmission media.
[0129] Computer-readable storage media includes volatile and non-volatile, transitory and non-transitory, removable and non-removable media embodied in any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data, including, but not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital video disk (DVD) or other optical disk storage devices, magnetic cassettes, magnetic tape, magnetic disk storage devices or other magnetic storage devices, or any other medium that can be accessed by a computer and used to store information.
[0130] Computer-readable transmission media typically embodies computer-readable instructions, data structures, program modules or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and includes all information delivery media. The term modulated data signal means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, computer-readable transmission media include wired media, such as a wired network or direct-wired connection, and wireless media, such as acoustic, RF, infrared and other wireless media. Combinations of any of the above media should also be included within the scope of computer-readable transmission media.
[0131] An exemplary environment (1100) for implementing various aspects of the present disclosure is shown including a computer (1102) including a processing unit (1104), a system memory (1106), and a system bus (1108). The system bus (1108) couples system components, including but not limited to the system memory (1106), to the processing unit (1104). The processing unit (1104) can be any of a variety of commercially available processors. Dual processors and other multi-processor architectures can also be utilized as the processing unit (1104).
[0132] The system bus (1108) can be any of several types of bus structures that can be further interconnected to a memory bus, a peripheral bus, and a local bus using any of a variety of commercially available bus architectures. The system memory (1106) includes read only memory (ROM) (1110) and random access memory (RAM) (1112). The basic input / output system (BIOS) is stored in non-volatile memory (1110), such as ROM, EPROM, or EEPROM, and contains the basic routines that support the exchange of information between the various components within the computer (1102), such as during start-up. The RAM (1112) can also include high-speed RAM, such as static RAM, for caching data.
[0133] The computer 1102 also includes an internal hard disk drive (HDD) 1114 (e.g., EIDE, SATA) - although the internal hard disk drive 1114 can also be configured for external use in a suitable chassis (not shown) - a magnetic floppy disk drive (FDD) 1116 (e.g., for reading from and writing to a removable diskette 1118), and an optical disk drive 1120 (e.g., for reading from CD-ROM disks 1122 and for reading from and writing to other high capacity optical media such as DVDs). The hard disk drive 1114, magnetic disk drive 1116, and optical disk drive 1120 can be connected to the system bus 1108 by a hard disk drive interface 1124, a magnetic disk drive interface 1126, and an optical drive interface 1128, respectively. The interface (1124) for implementing an external drive includes, for example, at least one or both of the Universal Serial Bus (USB) and IEEE 1394 interface technologies.
[0134] These drives and their associated computer-readable media provide non-volatile storage of data, data structures, computer-executable instructions, and the like. In the case of computer 1102, the drives and media accommodate the storage of any data in a suitable digital format. Although the above description of computer-readable storage media refers to HDDs, removable magnetic disks, and removable optical media such as CDs or DVDs, those skilled in the art will appreciate that other types of computer-readable storage media, such as zip drives, magnetic cassettes, flash memory cards, cartridges, and the like, can also be used in the exemplary operating environment, and further that any such media can contain computer-executable instructions for performing the methods of the present disclosure.
[0135] A number of program modules may be stored in the drives and RAM (1112), including an operating system (1130), one or more application programs (1132), other program modules (1134), and program data (1136). All or portions of the operating system, applications, modules, and / or data may also be cached in RAM (1112). It will be appreciated that the present disclosure may be implemented with any of a variety of commercially available operating systems, or a combination of multiple operating systems.
[0136] A user may enter commands and information into the computer 1102 through one or more wired or wireless input devices, such as a keyboard 1138 and a pointing device, such as a mouse 1140. Other input devices (not shown) may include a microphone, an IR remote control, a joystick, a game pad, a stylus pen, a touch screen, and the like. These and other input devices are often connected to the processing unit 1104 through an input device interface 1142 that is connected to the system bus 1108, but may also be connected through other interfaces, such as a parallel port, an IEEE 1394 serial port, a game port, a USB port, an IR interface, and the like.
[0137] A monitor 1144 or other type of display device is also connected to the system bus 1108 via an interface, such as a video adapter 1146. In addition to the monitor 1144, computers typically include other peripheral output devices (not shown), such as speakers, printers, etc.
[0138] The computer 1102 may operate in a networked environment using logical connections to one or more remote computers, such as remote computer(s) 1148, via wired and / or wireless communications. The remote computer(s) 1148 may be a workstation, a server computer, a router, a personal computer, a handheld computer, a microprocessor-based entertainment device, a peer device, or other conventional network node, and typically includes many or all of the components depicted for the computer 1102, although for simplicity, only a memory storage device 1150 is illustrated. The logical connections depicted include wired and / or wireless connections to a local area network (LAN) 1152 and / or larger networks, such as a long-range network (WAN) 1154. Such LAN and WAN networking environments are commonplace in offices and companies and facilitate enterprise-wide computer networks, such as intranets, all of which may connect to computer networks around the world, such as the Internet.
[0139] When used in a LAN networking environment, the computer 1102 connects to the local network 1152 through a wired and / or wireless communication network interface, or adapter 1156. The adapter 1156 can facilitate wired or wireless communication to the LAN 1152, which also includes a wireless access point installed thereon for communicating with the wireless adapter 1156. When used in a WAN networking environment, the computer 1102 can include a modem 1158 or have other means for establishing communications over the WAN 1154, such as connecting to a communications server on the WAN 1154 or through the Internet. The modem 1158, which can be internal or external and can be a wired or wireless device, connects to the system bus 1108 through the serial port interface 1142. In a networked environment, program modules depicted relative to computer 1102, or portions thereof, may be stored in a remote memory / storage device 1150. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between computers may be used.
[0140] The computer 1102 is operable to communicate with any wireless device or unit arranged and operating in wireless communication, such as printers, scanners, desktop and / or handheld computers, portable data assistants (PDAs), communication satellites, any equipment or location associated with a wirelessly detectable tag, and telephones. This includes at least Wi-Fi and Bluetooth wireless technologies. Thus, communication can be in a predefined structure, such as a traditional network, or simply ad hoc communication between at least two devices.
[0141] Wi-Fi (Wireless Fidelity) allows devices to connect to the Internet without being wired. Wi-Fi is a wireless technology like cell phones that allows such devices, e.g., computers, to send and receive data indoors or outdoors, anywhere within range of a base station. Wi-Fi networks use IEEE 802.11 (a, b, g, etc.) radio technology to provide secure, reliable, and fast wireless connections. Wi-Fi can be used to connect computers to each other, to the Internet, and to wired networks (using IEEE 802.3 or Ethernet). Wi-Fi networks can operate in the unlicensed 2.4 and 5 GHz radio bands, at data rates of, e.g., 11 Mbps (802.11a) or 54 Mbps (802.11b), or in products that include both bands (dual band).
[0142] Those of ordinary skill in the art will appreciate that the various exemplary logic blocks, modules, processors, means, circuits, and algorithm steps described in the description of the embodiments disclosed herein may be embodied in electronic hardware, various forms of program or design code (for convenience, referred to herein as "software"), or a combination of all of these. To clearly illustrate such interoperability of hardware and software, various exemplary components, blocks, modules, circuits, and steps have been generally described above with a focus on their functionality. Whether such functionality is implemented as hardware or software is determined by design constraints imposed on the particular application and the overall system. Those of ordinary skill in the art will appreciate that the described functionality may be embodied in various ways for each particular application, and such implementation decisions should not be interpreted as departing from the scope of the present disclosure.
[0143] The various embodiments described herein may be embodied as a method, apparatus, or article of manufacture using standard programming and / or engineering techniques. The term "article of manufacture" includes any computer program or media accessible by a computer readable device. For example, computer readable storage media include, but are not limited to, magnetic storage devices (e.g., hard disks, floppy disks, magnetic strips, etc.), optical disks (e.g., CDs, DVDs, etc.), smart cards, and flash memory devices (e.g., EEPROM, cards, sticks, key drives, etc.). The term "machine readable medium" includes, but is not limited to, wireless channels and various other media capable of storing, carrying, and / or transmitting instruction(s) and / or data.
[0144] The description of the embodiments set forth herein is provided to enable any person of ordinary skill in the art to use or practice the present disclosure. Various modifications to such embodiments will be apparent to those of ordinary skill in the art to which the present disclosure pertains, and the general principles defined herein may be applied to other embodiments without departing from the scope of the present disclosure. Thus, the present disclosure is not intended to be limited by the embodiments set forth herein, but is to be accorded the broadest scope consistent with the principles and novel features set forth herein.
[0145] As described above, the related content has been described in the best mode for carrying out the invention. [Industrial Applicability]
[0146] In order to quickly extract characteristic information of a binary file, the characteristic information extracted by the static characteristic information extraction process can be used in devices and programs that detect whether or not the code is malicious. [Explanation of symbols]
[0147] 100 Computing Devices 110 Processor 120 Binary File Converter 130 Signal Processing Section
Claims
1. 1. A method for extracting characteristic information of a file executed by a computing device including at least one processor, comprising: Converting input data in the form of a binary file into data of a preset size; and extracting feature information of the input data from the data of the preset size; Including, How to extract characteristic information from a file.
2. In claim 1, The step of converting the input data in the form of a binary file into data of a preset size includes: converting the input data into data of the predetermined size using a hidden Markov model; Including, How to extract characteristic information from a file.
3. In claim 1, The step of converting the input data in the form of a binary file into data of a preset size includes: dividing and recognizing the input data into a first unit representing a size of a storage device; Counting the number of data recognized in the first unit; and converting the input data into data of the predetermined size based on the number of data of the first unit; Including, How to extract characteristic information from a file.
4. In claim 1, The step of converting the input data in the form of a binary file into data of a preset size includes: recognizing the input data byte by byte; counting the number of each of the plurality of bytes recognized; and converting the input data into data of the preset size based on the number of each of the plurality of bytes; Including, How to extract characteristic information from a file.
5. In claim 4, converting the input data into the data of the preset size based on the number of each of the plurality of bytes, calculating a probability of occurrence of each of the plurality of bytes in the entire data based on the number of each of the plurality of bytes; and converting the input data into data of the predetermined size based on the occurrence probability; Including, How to extract characteristic information from a file.
6. In claim 1, The step of converting the input data in the form of a binary file into data of a preset size includes: recognizing the input data byte by byte; calculating the number of occurrences of unique concatenations between the recognized bytes, in which a first byte is followed by a second byte, the number of occurrences being calculated for at least a portion of the recognized bytes; and converting the input data into data of the predetermined size based on the number of occurrences; Including, How to extract characteristic information from a file.
7. In claim 6, The step of converting the input data into data of the predetermined size based on the number of occurrences includes: calculating a concatenation probability between a plurality of bytes that the second byte appears next to the first byte based on the number of occurrences; and converting the input data into data of the predetermined size based on the connection probability; Including, How to extract characteristic information from a file.
8. In claim 1, The step of extracting feature information of the input data from the data of the preset size includes: extracting feature information from the data of the predetermined size using a wavelet transform method; Including, How to extract characteristic information from a file.
9. In claim 8, The step of extracting feature information from the data of the predetermined size by using a wavelet transform method includes: performing the wavelet transform on the data of the predetermined size to extract a wavelet coefficient matrix, the wavelet coefficient matrix including an approximation coefficient matrix and a detail coefficient matrix; and extracting feature information of the input data based on the wavelet coefficient matrix; Including, How to extract characteristic information from a file.
10. In claim 9, The detailed coefficient matrix is At least one of a horizontal coefficients matrix, a vertical coefficients matrix, or a diagonal coefficients matrix; How to extract characteristic information from a file.
11. In claim 10, The data of the predetermined size is data having a matrix structure, The characteristic information is the first feature is related to the approximation coefficient matrix extracted by performing a first number of wavelet transforms so that the data of the preset size has a 1x1 matrix structure; the second feature is related to values of the diagonal coefficient matrix extracted by performing a second number of wavelet transforms within a first number range that is equal to or greater than a first critical number and equal to or less than the first number; the third feature is related to the diagonal coefficient matrix extracted by performing a third number of wavelet transforms within a second number range that is equal to or greater than the first critical number and less than the first number; or the fourth feature is related to the diagonal coefficient matrix extracted by performing a fourth number of wavelet transforms within a third number range that is equal to or greater than a second critical number and less than the first number, the first critical number being less than the first critical number, in which case the first critical number is less than the first number; How to extract characteristic information from a file.
12. In claim 11, The third feature is at least one of a third-1 feature related to a ratio of the diagonal coefficient matrix extracted by performing the third wavelet transform, or a third-2 feature related to a first standard deviation of the diagonal coefficient matrix extracted by performing the third wavelet transform, How to extract characteristic information from a file.
13. In claim 11, The fourth feature is the fourth feature includes at least one of a fourth feature related to a sum of values of the diagonal coefficient matrix extracted by performing the fourth number of wavelet transforms, a fourth feature related to a skewness of values of the diagonal coefficient matrix extracted by performing the third number of wavelet transforms, a fourth feature related to a second standard deviation of the diagonal coefficient matrix extracted by performing the third number of wavelet transforms, and a fourth feature related to an average value of the diagonal coefficient matrix extracted by performing the third number of wavelet transforms; How to extract characteristic information from a file.
14. In claim 1, training a network model using the feature information as training data so as to detect malicious code from input data in the form of a binary file; Further comprising: How to extract characteristic information from a file.
15. 1. A computing device for extracting characteristic information of a file, comprising: A binary file converter that converts input data in the form of a binary file into data of a preset size; and a signal processing unit that extracts feature information of the input data from the data of the preset size; Including, Computing device.
16. A computer program stored on a computer readable storage medium, the computer program, when executed by one or more processors, performing a method for extracting file characteristic information, the method comprising: Converting input data in the form of a binary file into data of a preset size; and extracting feature information of the input data from the data of the preset size; Including, A computer program stored on a computer readable storage medium.
Citation Information
Patent Citations
Apparatus for detecting variant malicious code based on neural network learning, method therefor, and computer-readable recording medium having recorded thereon a program for executing the method
JP2019527447A
Dhash-based Malicious Code Analysis Apparatus and method thereof
KR102185831B1
Systems and methods for executable code detection, automatic feature extraction and position independent code detection
US10762200B1
Method and apparatus for activating a particular wireless communication device to accept speech and / or voice commands
US20140122087A1
Automated feature extraction and artificial intelligence (AI) based detection and classification of malware
US20200045063A1
