Data security situation awareness system and method based on deep learning

Using deep learning technology to conduct semantic clustering analysis and coding of malware, and using hash domain co-space matching features, it solves the problem of traditional defense methods being unable to deal with complex threats, achieves intelligent malware identification and risk judgment, and improves efficiency. Data security defense capabilities.

CN118378254BActive Publication Date: 2024-09-20FUJIAN ZHONGXIN NET SAFETY INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410813686.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-20
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

Traditional static defense methods cannot effectively deal with complex network attacks and the rapid evolution of malware, and cannot meet the needs of modern data security.

Method used

A data security situational awareness system based on deep learning is used to conduct semantic clustering analysis and coding of malware codes to extract their essential features, and use the hash domain common space for feature matching to intelligently determine the potential malicious risks of the software to be detected. .

Benefits of technology

It achieves intelligent identification and risk judgment of malware, improves data security defense capabilities, and adapts to the evolution of complex threats.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118378254B
    Figure CN118378254B
Patent Text Reader

Abstract

The present application discloses a data security situation awareness system and method based on deep learning, which uses deep learning technology to conduct in-depth analysis on the software code of malware, extract its essential semantic clustering meaning information and the overall situation of the malware, and semantically encode the software code of the software to be detected. By introducing the hash domain common space, the software semantic features of the malware and the software semantic features of the software to be detected can be directly compared and matched, thereby realizing intelligent judgment on whether the software to be detected has the potential risk of malicious behavior.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data security, and more specifically, to a data security situation awareness system and method based on deep learning. Background Art

[0002] With the rapid development of the Internet and information technology, the threat of malware is increasing, bringing serious security risks to individuals, enterprises and even the entire society. At the same time, with the continuous evolution of network attack methods and the continuous change of malware forms, traditional static defense methods can no longer meet the needs of combating complex security threats.

[0003] Therefore, an optimized data security situation awareness system and method are desired. Summary of the invention

[0004] In order to solve the above technical problems, this application is proposed. The embodiment of this application provides a data security situation awareness system and method based on deep learning, which uses deep learning technology to deeply analyze the software code of malware, extract its essential semantic clustering meaning information and the overall situation of malware, and semantically encode the software code of the software to be detected, and through the introduction of hash domain common space, the software semantic features of the malware and the software semantic features of the software to be detected can be directly compared and matched, thereby realizing intelligent judgment of whether the software to be detected has the potential risk of malicious behavior.

[0005] According to one aspect of the present application, a data security situation awareness system based on deep learning is provided, which includes:

[0006] A malware code acquisition module, used to acquire a set of software codes marked as malware;

[0007] A malware code semantic clustering analysis module, configured to perform semantic clustering analysis on the set of software codes marked as malware to obtain a malware code semantic clustering representation feature vector;

[0008] A module for acquiring the software code to be detected, used for acquiring the software code of the software to be detected;

[0009] A semantic coding module for the software code to be detected, used for semantically coding the software code of the software to be detected to obtain a semantic coding feature vector of the software to be detected; and

[0010] A measurement and perception module, used for processing the malware code semantic clustering representation feature vector and the to-be-detected software semantic encoding feature vector using a semantic difference measurement module to determine whether the to-be-detected software is malware;

[0011] The malware code semantic clustering analysis module includes:

[0012] a malware code semantic encoding unit, configured to semantically encode each software code marked as malware in the set of software codes marked as malware to obtain a set of malware code semantic encoding feature vectors; and

[0013] A joint clustering analysis unit, configured to perform a joint clustering analysis on the set of malware code semantic encoding feature vectors to obtain the malware code semantic clustering representation feature vector;

[0014] Wherein, the joint clustering analysis unit is used to:

[0015] The sequence of the malware code semantic encoding feature vectors is processed using the following joint clustering analysis formula to obtain the malware code semantic clustering representation feature vector; wherein the joint clustering analysis formula is:

[0016]

[0017] in, is the first in the sequence of semantic encoding feature vectors of the malware code malware code semantic encoding feature vectors, is the first in the sequence of semantic encoding feature vectors of the malware code malware code semantic encoding feature vectors, represents the 1-norm of the eigenvector, The length of the sequence of the malware code semantic encoding feature vector - 1, a representation of a sequence of feature vectors encoding semantics of the malware code, represents the characteristic difference coefficient, Indicates masking processing. represents the feature difference coefficient after masking, represents the natural exponential function operation, represents the total number of feature difference coefficients after masking, A feature vector is generated for semantic clustering of the malware code.

[0018] According to another aspect of the present application, a data security situation awareness method based on deep learning is provided, which includes:

[0019] Obtaining a collection of software code that has been labeled as malware;

[0020] Performing semantic clustering analysis on the set of software codes marked as malware to obtain a malware code semantic clustering representation feature vector;

[0021] Obtaining software code of the software to be tested;

[0022] Performing semantic coding on the software code of the software to be detected to obtain a semantic coding feature vector of the software to be detected; and

[0023] Using a semantic difference measurement module, the malware code semantic clustering representation feature vector and the to-be-detected software semantic encoding feature vector are processed to determine whether the to-be-detected software is malware;

[0024] The step of performing semantic clustering analysis on the set of software codes marked as malware to obtain a semantic clustering representation feature vector of the malware code includes:

[0025] Performing semantic coding on each software code marked as malware in the set of software codes marked as malware to obtain a set of malware code semantic coding feature vectors;

[0026] Performing a joint cluster analysis on the set of malware code semantic encoding feature vectors to obtain the malware code semantic cluster representation feature vector;

[0027] The method of performing a joint cluster analysis on the set of malware code semantic encoding feature vectors to obtain the malware code semantic cluster representation feature vectors includes:

[0028] The sequence of the malware code semantic encoding feature vectors is processed using the following joint clustering analysis formula to obtain the malware code semantic clustering representation feature vector; wherein the joint clustering analysis formula is:

[0029]

[0030] in, is the first in the sequence of semantic encoding feature vectors of the malware code malware code semantic encoding feature vectors, is the first in the sequence of semantic encoding feature vectors of the malware code malware code semantic encoding feature vectors, represents the 1-norm of the eigenvector, The length of the sequence of the malware code semantic encoding feature vector - 1, a representation of a sequence of feature vectors encoding semantics of the malware code, represents the characteristic difference coefficient, Indicates masking processing. represents the feature difference coefficient after masking, represents the natural exponential function operation, represents the total number of feature difference coefficients after masking, A feature vector is generated for semantic clustering of the malware code.

[0031] Compared with the prior art, the present application provides a data security situation awareness system and method based on deep learning, which uses deep learning technology to conduct in-depth analysis of the software code of malware, extract its essential semantic clustering meaning information and the overall situation of the malware, and semantically encode the software code of the software to be detected. By introducing the hash domain common space, the software semantic features of the malware and the software semantic features of the software to be detected can be directly compared and matched, thereby realizing intelligent judgment of whether the software to be detected has the potential risk of malicious behavior. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0033] Figure 1 A block diagram of a data security situation awareness system based on deep learning according to an embodiment of the present application;

[0034] Figure 2 A system architecture diagram of a data security situation awareness system based on deep learning according to an embodiment of the present application;

[0035] Figure 3 It is a block diagram of a malware code semantic clustering analysis module in a data security situation awareness system based on deep learning according to an embodiment of the present application;

[0036] Figure 4 A block diagram of a measurement and perception module in a data security situation awareness system based on deep learning according to an embodiment of the present application;

[0037] Figure 5 This is a flowchart of a data security situation awareness method based on deep learning according to an embodiment of the present application. DETAILED DESCRIPTION

[0038] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.

[0039] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0040] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, any number of different modules can be used and run on the user terminal and / or server. The modules are only illustrative, and different aspects of the system and method can use different modules.

[0041] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously as required. Meanwhile, other operations may also be added to these processes, or a certain step or several steps of operations may be removed from these processes.

[0042] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.

[0043] As mentioned in the background technology section, with the continuous evolution of network attack methods and the continuous change of malware forms, traditional static defense methods can no longer meet the needs of combating complex security threats. Ordinary technicians in this field should understand that deep learning is an advanced machine learning technology that processes and analyzes large amounts of data by simulating the neural network structure of the human brain. This technology can automatically identify complex patterns and features in data without human intervention. In the field of data security situation awareness, deep learning technology can be used to quickly identify potential threats and abnormal behaviors from massive network data, providing a new solution for optimizing data security situation awareness.

[0044] In the technical solution of the present application, a data security situation awareness system based on deep learning is proposed. Figure 1 It is a block diagram of a data security situation awareness system based on deep learning according to an embodiment of the present application. Figure 2 : is a system architecture diagram of a data security situation awareness system based on deep learning according to an embodiment of the present application. Figure 1 and Figure 2As shown, according to an embodiment of the present application, a data security situation awareness system 300 based on deep learning includes: a malware code acquisition module 310, used to acquire a set of software codes marked as malware; a malware code semantic clustering analysis module 320, used to perform semantic clustering analysis on the set of software codes marked as malware to obtain a malware code semantic clustering representation feature vector; a software code acquisition module 330 to be detected, used to acquire the software code of the software to be detected; a software code semantic encoding module 340 to be detected, used to perform semantic encoding on the software code of the software to be detected to obtain a semantic encoding feature vector of the software to be detected; and a measurement and perception module 350, used to use a semantic difference measurement module to process the malware code semantic clustering representation feature vector and the software to be detected semantic encoding feature vector to determine whether the software to be detected is malware.

[0045] In particular, the malware code acquisition module 310 is used to acquire a set of software codes marked as malware. Here, by acquiring the set of software codes marked as malware, the semantic connotation information of various types of malware can be identified and learned, thereby extracting the essential features of the malware code to facilitate comparison with the software code of the software to be detected. In an embodiment of the present application, the set of software codes marked as malware can be acquired through a database containing various types of malware samples from some security agencies and research institutions.

[0046] In particular, the malware code semantic clustering analysis module 320 is used to perform semantic clustering analysis on the set of software codes marked as malware to obtain a malware code semantic clustering representation feature vector. In particular, in a specific example of the present application, Figure 3 As shown, the malware code semantic clustering analysis module 320 includes: a malware code semantic encoding unit 321, used to perform semantic encoding on each software code marked as malware in the set of software codes marked as malware to obtain a set of malware code semantic encoding feature vectors; and a joint clustering analysis unit 322, used to perform joint clustering analysis on the set of malware code semantic encoding feature vectors to obtain the malware code semantic clustering representation feature vector.

[0047] Specifically, the malware code semantic encoding unit 321 is used to semantically encode each software code marked as malware in the set of software codes marked as malware to obtain a set of malware code semantic encoding feature vectors. Here, each software code marked as malware can be converted into a vector representation with semantic information through semantic encoding, so as to understand the semantic meaning of each software code marked as malware. For example, feature information such as malicious behavior characteristics, malicious code signatures, or malware family characteristics of malware can be obtained through semantic encoding. More specifically, semantic encoding is performed on each piece of software code marked as malware in the set of software codes marked as malware to obtain a set of malware code semantic encoding feature vectors, including: performing word segmentation processing on each piece of software code marked as malware in the set of software codes marked as malware to convert each piece of software code marked as malware in the set of software codes marked as malware into a word sequence composed of multiple words; using an embedding layer of a semantic encoder including an embedding layer to map each word in the word sequence into a word embedding vector to obtain a sequence of word embedding vectors; using a converter of the semantic encoder including an embedding layer to perform global context semantic encoding on the sequence of word embedding vectors based on the converter idea to obtain a set of malware code semantic encoding feature vectors.

[0048] Specifically, the joint clustering analysis unit 322 is used to perform a joint clustering analysis on the set of malware code semantic encoding feature vectors to obtain the malware code semantic clustering representation feature vector. Considering that although obtaining the set of software codes marked as malware and performing semantic encoding on them can capture the diverse feature information about malware contained therein, the set of software codes marked as malware itself may contain some redundant information or background information, which will cause a deviation in the expression of the core semantic connotation of the malware. For example, different malware authors or malware families may have different coding styles and habits, and these style differences may be regarded as redundant information rather than the core features of the malware. For another example, malware may use various dependent libraries and frameworks to implement its functions, and the codes of these dependent libraries and frameworks may be regarded as background information rather than the key features of the malware. In the technical solution of the present application, it is expected to perform a joint clustering analysis on the set of malware code semantic encoding feature vectors to capture the core semantic expression of the set of malware code semantic encoding feature vectors and the essential features of the malware, thereby obtaining the malware code semantic clustering representation feature vector. Specifically, in the process of performing joint clustering analysis on the set of malware code semantic encoding feature vectors, the contribution and importance of each malware code semantic encoding feature vector are highlighted by measuring the overall difference information between each malware code semantic encoding feature vector and other malware code semantic encoding feature vectors, and the contribution and importance are screened and distilled in combination with the gating mechanism, so as to automatically select and emphasize features that have a greater contribution to the target task, reduce the interference of redundant information and unimportant background information, and suppress the deviation of feature distribution. In this way, the malware code semantic clustering representation feature vector obtained after clustering can reveal the essential pattern and overall structure between different malware samples. More specifically, the sequence of malware code semantic encoding feature vectors is processed with the following joint clustering analysis formula to obtain the malware code semantic clustering representation feature vector; wherein, the joint clustering analysis formula is:

[0049]

[0050] in, is the first in the sequence of semantic encoding feature vectors of the malware code malware code semantic encoding feature vectors, is the first in the sequence of semantic encoding feature vectors of the malware code malware code semantic encoding feature vectors, represents the 1-norm of the eigenvector, The length of the sequence of the malware code semantic encoding feature vector - 1, a representation of a sequence of feature vectors encoding semantics of the malware code, represents the characteristic difference coefficient, Indicates masking processing. represents the feature difference coefficient after masking, represents the natural exponential function operation, represents the total number of feature difference coefficients after masking, A feature vector is generated for semantic clustering of the malware code.

[0051] It is worth mentioning that in other specific examples of the present application, semantic clustering analysis can be performed on the set of software codes marked as malware in other ways to obtain a semantic clustering representation feature vector of the malware code, for example: inputting the set of software codes marked as malware; converting the software code into a vector representation by using a word embedding model (such as Word2Vec, GloVe or FastText) to map words or tags in the code into dense vectors; converting the code snippets into a fixed-length vector representation by averaging, maximum pooling or using a recursive neural network (RNN) or a convolutional neural network (CNN) on the word embedding vectors; and inputting the extracted feature vector into the selected clustering algorithm to divide the software code samples into different clusters to obtain the semantic clustering representation feature vector of the malware code.

[0052] In particular, the software code acquisition module 330 and the software code semantic coding module 340 are used to acquire the software code of the software to be detected; and to semantically encode the software code of the software to be detected to obtain the semantic coding feature vector of the software to be detected. In the technical solution of the present application, similarly, the semantic information in the software code of the software to be detected is characterized and expressed in a semantic coding manner, and the code data that is difficult to be recognized and analyzed by the model is converted into a structured vector representation, so as to compare and analyze the semantic feature information of the software code of the software to be detected with the semantic meaning information and essential pattern of the malware.

[0053] In particular, the measurement and perception module 350 is used to use the semantic difference measurement module to process the malware code semantic clustering representation feature vector and the to-be-detected software semantic encoding feature vector to determine whether the to-be-detected software is malware. In particular, in a specific example of the present application, Figure 4As shown, the measurement and perception module 350 includes: a common space mapping change unit 351, which is used to perform a common space mapping transformation on the malware code semantic clustering representation feature vector and the semantic encoding feature vector of the software to be detected to obtain a hash transformation malware code semantic clustering representation feature vector and a hash transformation software to be detected semantic feature vector; a semantic distance quantization unit 352, which is used to calculate the Hamming distance between the hash transformation malware code semantic clustering representation feature vector and the hash transformation software to be detected semantic feature vector; and a malicious perception unit 353, which is used to determine whether the software to be detected is malware based on a comparison between the Hamming distance and a predetermined threshold.

[0054] Specifically, the common space mapping change unit 351 is used to perform a common space mapping transformation on the malware code semantic clustering representation feature vector and the semantic coding feature vector of the software to be detected to obtain a hash transformed malware code semantic clustering representation feature vector and a hash transformed software semantic feature vector to be detected. Since the malware code semantic clustering representation feature vector and the semantic coding feature vector of the software to be detected come from different data sources, they may have different dimensions. Direct comparison may result in dimension mismatch, thereby affecting the accuracy of the comparison and matching between the two. Therefore, in the technical solution of the present application, the malware code semantic clustering representation feature vector and the semantic coding feature vector of the software to be detected are further passed through a hash domain common space mapper based on a hash function to obtain a hash transformed malware code semantic clustering representation feature vector and a hash transformed software semantic feature vector to be detected.

[0055] Specifically, the semantic distance quantization unit 352 is used to calculate the Hamming distance between the hash-transformed malware code semantic clustering representation feature vector and the hash-transformed software to be detected semantic feature vector. It should be understood that in traditional applications, the Hamming distance is used to represent the number of different characters corresponding to the same position of two strings of equal length. In the field of retrieval, the calculation of the Hamming distance can be used to measure the similarity between two vectors. In the technical solution of the present application, the calculation of the Hamming distance between the hash-transformed malware code semantic clustering representation feature vector and the hash-transformed software to be detected semantic feature vector can be used to measure the similarity between the essential pattern of malware and the semantic features of the software to be detected. Generally, the smaller the Hamming distance, the more similar the two are, and the larger the Hamming distance, the greater the difference between the two. In this way, based on the comparison between the Hamming distance and the predetermined threshold, it is determined whether the software to be detected is malware.

[0056] In the technical solution of the present application, the set of malware code semantic coding feature vectors expresses the coding semantic features of a set of software codes marked as malware. Thus, after performing a joint clustering analysis on the set of malware code semantic coding feature vectors, the malware code semantic clustering representation feature vector will express the joint clustering coding semantic features of the software code set based on the coding semantic features, that is, the local feature distribution is non-uniform with enriched aggregated semantic distribution based on multi-sample domain coding semantic features.

[0057] Therefore, when the malware code semantic clustering representation feature vector and the software to be detected semantic coding feature vector are spatially mapped through a hash domain common space mapper based on a hash function, and the Hamming distance between the hash-transformed malware code semantic clustering representation feature vector and the hash-transformed software to be detected semantic feature vector is further calculated, relative to the single-sample encoding semantic feature representation of the software code of the software to be detected by the software semantic coding feature vector, the malware code semantic clustering representation feature vector will cause local overflow features due to its non-uniform local feature distribution, thereby affecting the mapping consistency of the hash-transformed malware code semantic clustering representation feature vector and the hash-transformed software to be detected semantic feature vector to the common semantic Hamming distance representation space under cross-sample domains, and affecting the calculation accuracy of the Hamming distance between the hash-transformed malware code semantic clustering representation feature vector and the hash-transformed software to be detected semantic feature vector.

[0058] In a preferred embodiment, the semantic distance quantization unit is used to: optimize the hash-transformed malware code semantic clustering representation feature vector and the hash-transformed software to be detected semantic feature vector to obtain an optimized hash-transformed malware code semantic clustering representation feature vector and an optimized hash-transformed software to be detected semantic feature vector; calculate the Hamming distance between the optimized hash-transformed malware code semantic clustering representation feature vector and the optimized hash-transformed software to be detected semantic feature vector.

[0059] Thus, the hash-transformed malware code semantic clustering representation feature vector and the hash-transformed software to be detected semantic feature vector are optimized to obtain optimized hash-transformed malware code semantic clustering representation feature vector and optimized hash-transformed software to be detected semantic feature vector, including the following optimization steps: cascading the hash-transformed malware code semantic clustering representation feature vector and the hash-transformed software to be detected semantic feature vector into a cascaded feature vector; calculating a mean representation matrix and a variance representation matrix of the cascaded feature vector, wherein the value of each position of the mean representation matrix is ​​the mean of a pair of eigenvalues ​​of two positions of the cascaded feature vector corresponding to the position coordinates respectively, and the value of each position of the variance representation matrix is ​​the variance of a pair of eigenvalues ​​of two positions of the cascaded feature vector corresponding to the position coordinates respectively; The transposed vector of the cascade feature vector is matrix-multiplied with the mean representation matrix to obtain the mean representation vector, and the variance representation matrix is ​​matrix-multiplied with the cascade feature vector to obtain the variance representation vector, wherein the cascade feature vector is a column vector; the matrix product of the mean representation matrix and the variance representation matrix is ​​calculated, and the transposed vector of the cascade feature vector is matrix-multiplied with the matrix product, and then further dot-multiplied with the mean representation vector and the variance representation vector to obtain an optimized cascade feature vector; the optimized cascade feature vector is split into an optimized hash-transformed malware code semantic clustering representation feature vector and an optimized hash-transformed software semantic feature vector based on the concatenation of the hash-transformed malware code semantic clustering representation feature vector and the hash-transformed software semantic feature vector to be detected.

[0060] Based on this, the mean representation matrix and variance representation matrix of the group aggregation statistical evaluation of the local distribution of the feature value granularity of the cascade feature vector used for the joint semantic representation of the hash transformed malware code semantic clustering representation feature vector and the hash transformed software semantic feature vector to be detected are used as the retrieval and response distribution enhancements of the cascade feature vector, and a reference-free distribution retrieval response framework based on the group aggregation feature distribution open domain of the cascade feature vector is constructed to avoid the distribution response redundancy caused by the local overflow characteristics of the cascade feature vector through response superposition, so as to achieve the faithfulness constraint of the response self-aggregation statistics related to the cascade feature vector to the target common semantic Hamming distance representation space, improve the mapping consistency of the hash transformed malware code semantic clustering representation feature vector and the hash transformed software semantic feature vector to be detected to the common semantic Hamming distance representation space under cross-sample domains, and improve the calculation accuracy of the Hamming distance between the hash transformed malware code semantic clustering representation feature vector and the hash transformed software semantic feature vector to be detected.

[0061] In a preferred embodiment, calculating the Hamming distance between the optimized hash-transformed malware code semantic clustering representation feature vector and the optimized hash-transformed software to be detected semantic feature vector comprises: processing the optimized hash-transformed malware code semantic clustering representation feature vector and the optimized hash-transformed software to be detected semantic feature vector using the following Hamming distance calculation formula to obtain the Hamming distance; wherein the Hamming distance calculation formula is:

[0062]

[0063] in, The optimized hash transformation malware code semantic clustering representation feature vector is The eigenvalue at position, The optimized hash transform is the first The eigenvalue at position, Indicates XOR processing, The length of the feature vector representing the semantic clustering of the optimized hash transformation malware code, is the Hamming distance.

[0064] Specifically, the malicious perception unit 353 is used to determine whether the software to be detected is malware based on the comparison between the Hamming distance and a predetermined threshold. In a specific example, the calculated Hamming distance is compared with the predetermined threshold. If the Hamming distance is less than or equal to the predetermined threshold, the software to be detected can be marked as malware; if the Hamming distance is greater than the predetermined threshold, the software to be detected can be marked as normal software.

[0065] It is worth mentioning that in other specific examples of the present application, the semantic difference measurement module can also be used in other ways to process the malware code semantic clustering representation feature vector and the software to be detected semantic coding feature vector to determine whether the software to be detected is malware, for example: input the malware code semantic clustering representation feature vector and the software to be detected semantic coding feature vector; select a suitable semantic difference measurement function to measure the semantic difference between the two feature vectors. Commonly used measurement functions include cosine similarity, Euclidean distance, Manhattan distance, etc.; set a threshold value to determine whether the software to be detected is malware based on the calculated semantic difference value; if the semantic difference value between the semantic coding feature vector of the software to be detected and a certain malware code semantic clustering representation feature vector is lower than the set threshold, the software to be detected can be marked as malware.

[0066] As described above, the data security situation awareness system 300 based on deep learning according to the embodiment of the present application can be implemented in various wireless terminals, such as a server with a data security situation awareness algorithm based on deep learning. In one possible implementation, the data security situation awareness system 300 based on deep learning according to the embodiment of the present application can be integrated into the wireless terminal as a software module and / or a hardware module. For example, the data security situation awareness system 300 based on deep learning can be a software module in the operating system of the wireless terminal, or it can be an application developed for the wireless terminal; of course, the data security situation awareness system 300 based on deep learning can also be one of the many hardware modules of the wireless terminal.

[0067] Alternatively, in another example, the deep learning-based data security situation awareness system 300 and the wireless terminal may also be separate devices, and the deep learning-based data security situation awareness system 300 may be connected to the wireless terminal via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.

[0068] Furthermore, a data security situation awareness method based on deep learning is also provided.

[0069] Figure 5 Flowchart of a data security situation awareness method based on deep learning according to an embodiment of the present application. Figure 5 As shown, according to the data security situation awareness method based on deep learning according to the embodiment of the present application, the steps include: S1, obtaining a set of software codes marked as malware; S2, performing semantic clustering analysis on the set of software codes marked as malware to obtain a malware code semantic clustering representation feature vector; S3, obtaining the software code of the software to be detected; S4, performing semantic encoding on the software code of the software to be detected to obtain a semantic encoding feature vector of the software to be detected; and, S5, using a semantic difference measurement module to process the malware code semantic clustering representation feature vector and the software to be detected semantic encoding feature vector to determine whether the software to be detected is malware.

[0070] In summary, according to the embodiment of the present application, the data security situation awareness method based on deep learning is explained, which uses deep learning technology to conduct in-depth analysis of the software code of the malware, extracts its essential semantic clustering meaning information and the overall situation of the malware, and semantically encodes the software code of the software to be detected. By introducing the hash domain common space, the software semantic features of the malware and the software semantic features of the software to be detected can be directly compared and matched, thereby realizing intelligent judgment of whether the software to be detected has the potential risk of malicious behavior.

[0071] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A data security situation awareness system based on deep learning, characterized in that: include: A malware code acquisition module, used to acquire a set of software codes marked as malware; A malware code semantic clustering analysis module, configured to perform semantic clustering analysis on the set of software codes marked as malware to obtain a malware code semantic clustering representation feature vector; A module for acquiring the software code to be detected, used for acquiring the software code of the software to be detected; A semantic coding module for the software code to be detected, used for semantically coding the software code of the software to be detected to obtain a semantic coding feature vector of the software to be detected; as well as A measurement and perception module, used for processing the malware code semantic clustering representation feature vector and the to-be-detected software semantic encoding feature vector using a semantic difference measurement module to determine whether the to-be-detected software is malware; The malware code semantic clustering analysis module includes: a malware code semantic encoding unit, configured to semantically encode each software code marked as malware in the set of software codes marked as malware to obtain a set of malware code semantic encoding feature vectors; and A joint clustering analysis unit, configured to perform a joint clustering analysis on the set of malware code semantic encoding feature vectors to obtain the malware code semantic clustering representation feature vector; Wherein, the joint clustering analysis unit is used to: The sequence of the malware code semantic encoding feature vectors is processed using the following joint clustering analysis formula to obtain the malware code semantic clustering representation feature vector; wherein the joint clustering analysis formula is: in, is the first in the sequence of semantic encoding feature vectors of the malware code malware code semantic encoding feature vectors, is the first in the sequence of semantic encoding feature vectors of the malware code malware code semantic encoding feature vectors, represents the 1-norm of the eigenvector, The length of the sequence of the malware code semantic encoding feature vector minus one, a representation of a sequence of feature vectors encoding semantics of the malware code, represents the characteristic difference coefficient, Indicates masking processing. represents the feature difference coefficient after masking, represents the natural exponential function operation, represents the total number of feature difference coefficients after masking, A semantic clustering representation feature vector for the malware code; Wherein, the measurement and perception module includes: A common space mapping change unit, used for performing a common space mapping transformation on the malware code semantic clustering representation feature vector and the to-be-detected software semantic coding feature vector to obtain a hash transformation malware code semantic clustering representation feature vector and a hash transformation to-be-detected software semantic coding feature vector; A semantic distance quantization unit, used for calculating the Hamming distance between the hash-transformed malware code semantic clustering representation feature vector and the hash-transformed to-be-detected software semantic encoding feature vector; The malicious perception unit is used to determine whether the software to be detected is malicious software based on a comparison between the Hamming distance and a predetermined threshold.

2. The data security situation awareness system based on deep learning according to claim 1 is characterized in that: The malware code semantic encoding unit is used to: a word segmentation subunit, configured to perform word segmentation processing on each software code marked as malware in the set of software codes marked as malware so as to convert each software code marked as malware in the set of software codes marked as malware into a word sequence consisting of a plurality of words; A word embedding subunit, configured to map each word in the word sequence to a word embedding vector using an embedding layer of a semantic encoder including an embedding layer to obtain a sequence of word embedding vectors; The context encoding subunit is used to use a converter including a semantic encoder of an embedding layer to perform global context semantic encoding based on the converter idea on the sequence of word embedding vectors to obtain a set of malware code semantic encoding feature vectors.

3. The data security situation awareness system based on deep learning according to claim 2 is characterized in that: The common space mapping change unit is used to: The malware code semantic clustering representation feature vector and the to-be-detected software semantic coding feature vector are passed through a hash domain common space mapper based on a hash function to obtain the hash-transformed malware code semantic clustering representation feature vector and the hash-transformed to-be-detected software semantic coding feature vector.

4. The data security situation awareness system based on deep learning according to claim 3 is characterized in that: The semantic distance quantization unit is used to: Optimizing the hash-transformed malware code semantic clustering representation feature vector and the hash-transformed software to be detected semantic coding feature vector to obtain an optimized hash-transformed malware code semantic clustering representation feature vector and an optimized hash-transformed software to be detected semantic coding feature vector; The Hamming distance between the optimized hash-transformed malware code semantic clustering representation feature vector and the optimized hash-transformed to-be-detected software semantic encoding feature vector is calculated.

5. The data security situation awareness system based on deep learning according to claim 4 is characterized in that: Calculating the Hamming distance between the optimized hash-transformed malware code semantic clustering representation feature vector and the optimized hash-transformed to-be-detected software semantic encoding feature vector, comprising: The optimized hash transformation malware code semantic clustering characterization feature vector and the optimized hash transformation to-be-detected software semantic encoding feature vector are processed using the following Hamming distance calculation formula to obtain the Hamming distance; wherein the Hamming distance calculation formula is: in, The optimized hash transformation malware code semantic clustering representation feature vector is The eigenvalue at position, The optimized hash transformation software semantic encoding feature vector is The eigenvalue at position, Indicates XOR processing, The length of the feature vector representing the semantic clustering of malware code for the optimized hash transformation, is the Hamming distance.

6. A data security situation awareness method based on deep learning, characterized in that: include: Obtaining a collection of software code that has been labeled as malware; Performing semantic clustering analysis on the set of software codes marked as malware to obtain a malware code semantic clustering representation feature vector; Obtaining software code of the software to be tested; Performing semantic coding on the software code of the software to be detected to obtain a semantic coding feature vector of the software to be detected; as well as Using a semantic difference measurement module, the malware code semantic clustering representation feature vector and the to-be-detected software semantic encoding feature vector are processed to determine whether the to-be-detected software is malware; The step of performing semantic clustering analysis on the set of software codes marked as malware to obtain a semantic clustering representation feature vector of the malware code includes: Performing semantic coding on each software code marked as malware in the set of software codes marked as malware to obtain a set of malware code semantic coding feature vectors; Performing a joint cluster analysis on the set of malware code semantic encoding feature vectors to obtain the malware code semantic cluster representation feature vector; The method of performing a joint cluster analysis on the set of malware code semantic encoding feature vectors to obtain the malware code semantic cluster representation feature vectors includes: The sequence of the malware code semantic encoding feature vectors is processed using the following joint clustering analysis formula to obtain the malware code semantic clustering representation feature vector; wherein the joint clustering analysis formula is: in, is the first in the sequence of semantic encoding feature vectors of the malware code malware code semantic encoding feature vectors, is the first in the sequence of semantic encoding feature vectors of the malware code malware code semantic encoding feature vectors, represents the 1-norm of the eigenvector, The length of the sequence of the malware code semantic encoding feature vector minus one, a representation of a sequence of feature vectors encoding semantics of the malware code, represents the characteristic difference coefficient, Indicates masking processing. represents the feature difference coefficient after masking, represents the natural exponential function operation, represents the total number of feature difference coefficients after masking, A semantic clustering representation feature vector for the malware code; The method of using a semantic difference measurement module to process the malware code semantic clustering representation feature vector and the to-be-detected software semantic coding feature vector to determine whether the to-be-detected software is malware includes: Performing a common space mapping transformation on the malware code semantic clustering representation feature vector and the to-be-detected software semantic coding feature vector to obtain a hash-transformed malware code semantic clustering representation feature vector and a hash-transformed to-be-detected software semantic coding feature vector; Calculating the Hamming distance between the hash-transformed malware code semantic clustering representation feature vector and the hash-transformed to-be-detected software semantic encoding feature vector; Based on the comparison between the Hamming distance and a predetermined threshold, it is determined whether the software to be detected is malware.