Method and system for performing fingerprint identification on malicious behaviors
By using signal and noise training sets and training sets that do not contain signals in the training phase of the neural network model, combined with autoencoder-decoder technology, the problem of insufficient robustness of the neural network model in the existing technology is solved, and the More efficient anomaly detection.
Patent Information
- Application Number
- CN202280090438.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2021-12-15
- Filing Date
- 2022-10-25
- Publication Date
- 2024-09-06
AI Technical Summary
In the field of anomaly detection, existing neural network models have insufficient robustness due to the presence of a large amount of noise in huge data sets. Moreover, processing these data sets requires a large amount of computing resources and lacks effective training systems and methods.
Coarse and noisy machine learning single-class classifiers are trained by using a first training set containing signal and noise and a second training set containing no signal during the training phase, combined with applying the model ensemble to create a third training set representing the signal, and The second training phase uses this set to train the final machine learning single-class classifier, using techniques such as autoencoder-decoder to improve the robustness of the model.
It improves the robustness of anomaly detection, reduces the demand for computing resources, can detect signals and filter noise more effectively, and improves the robustness and efficiency of the model.
Smart Images

Figure CN118613796A
Abstract
Description
Technical Field
[0001] The present application relates generally to neural networks, and more particularly to training neural networks based on impure data. Background Art
[0002] Anomaly detection is of vital importance in many fields including malware detection, video surveillance, and network monitoring.
[0003] In the field of anomaly detection, methods used to train neural network models to detect anomalies usually rely on unsupervised learning models, which require huge datasets for training. Since there may be a lot of noise in these huge datasets, these models may not be robust. In addition, processing huge datasets may also require a lot of computing resources.
[0004] It would be advantageous to provide enhanced robustness for neural network models and more efficient systems and methods for training neural network models. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] Reference will now be made, by way of example, to the accompanying drawings, which show example embodiments of the present application, in which:
[0006] Figure 1 shows a schematic diagram illustrating an operating environment of an example embodiment;
[0007] Figure 2 It's a picture. Figure 1 A block diagram of components of an example embodiment of a computing device;
[0008] Figure 3 An example data facility of a computing device is shown in block diagram form;
[0009] Figure 4 An example of training data at various stages of preprocessing is schematically shown;
[0010] Figure 5 is a block diagram illustrating a simplified example computing device 500 that may implement methods and apparatus according to the present description;
[0011] Figure 6 A flowchart illustrating a simplified example method of developing a neural network model; and
[0012] Figure 7 A flowchart illustrating a simplified example method of creating a refined training set; and
[0013] Figure 8 A flow chart illustrating a simplified example method of detecting a signal in impure data.
[0014] The same reference numerals may be used in different drawings to denote the same components. DETAILED DESCRIPTION
[0015] In a first aspect, the present application describes a computer-implemented method for training a neural network. The method may include, in a first training phase, training a coarse machine learning one-class classifier using a first training set, the first training set including a signal and noise; and training a noisy machine learning one-class classifier using a second training set, the second training set not including the signal; applying a model set including the noisy machine learning one-class classifier and the coarse machine learning one-class classifier to the first training set to create a third training set representing the signal for a second training phase; and in the second training phase, training a final machine learning one-class classifier using the third training set representing the signal.
[0016] In some implementations, the final machine learning one-class classifier can include an autoencoder-decoder.
[0017] In some implementations, the final machine learning one-class classifier may include a long short-term memory autoencoder-decoder.
[0018] In some implementations, the third training set representing the signal can include information detectable by the coarse classifier but undetectable by the noise classifier.
[0019] In some implementations, applying the set of models can include identifying data points detectable by the coarse-tuned classifier but not detectable by the noise classifier; and aggregating the identified data points to create a third training set representing the signal.
[0020] In some implementations, the final machine learning one-class classifier can be capable of detecting or configured to detect a signal in information collected using a first operating system that is different from a second operating system used to collect a second training set that does not include the signal.
[0021] In some implementations, the first training stage may include training each specific classifier in a plurality of coarse-tuned machine learning one-class classifiers using a corresponding training set in a plurality of training sets, wherein each specific training set in the plurality of training sets may include a signal and noise, and wherein the plurality of coarse-tuned machine learning one-class classifiers may include a coarse-tuned machine learning one-class classifier and the plurality of training sets may include a first training set, and the model set may include a plurality of coarse-tuned machine learning one-class classifiers.
[0022] In some implementations, the method may further include applying the model set to the plurality of training sets to create a third training set representing the signal for a second training stage, wherein applying the model set to the plurality of training sets includes applying the model set to the first training set.
[0023] In some implementations, applying the model set to the multiple training sets may include applying each specific classifier from the multiple coarse-tuned machine learning one-class classifiers to each specific training set in the multiple training sets; and applying a noisy machine learning one-class classifier to each specific training set in the multiple training sets.
[0024] In another aspect, a system for training a neural network can be provided. The system can include a processor and a memory, the memory being coupled to the processor and storing processor-readable instructions, which, when executed, cause the processor to: in a first training phase, train a coarse machine learning single-class classifier using a first training set, the first training set including a signal and noise; and train a noise machine learning single-class classifier using a second training set, the second training set not including a signal; apply a model set including the noise machine learning single-class classifier and the coarse machine learning single-class classifier to the first training set to create a third training set representing the signal for a second training phase; and in the second training phase, train a final machine learning single-class classifier using the third training set representing the signal.
[0025] In some embodiments, the processor may further be configured to, in a first training phase, train each specific classifier in a plurality of coarse-tuned machine learning single-class classifiers using a corresponding training set in a plurality of training sets, wherein each specific training set in the plurality of training sets may include a signal and noise, and wherein the plurality of coarse-tuned machine learning single-class classifiers may include a coarse-tuned machine learning single-class classifier and the plurality of training sets may include a first training set, and the model set may include a plurality of coarse-tuned machine learning single-class classifiers.
[0026] In some embodiments, the processor may be further configured to apply the model set to multiple training sets to create a third training set representing the signal for a second training stage, wherein applying the model set to multiple training sets may include applying the model set to the first training set.
[0027] In some embodiments, when the instructions are executed, the processor may apply the model set to multiple training sets, and may also cause the processor to apply each specific classifier among multiple coarse-tuned machine learning single-class classifiers to each specific training set among multiple training sets; and apply a noisy machine learning single-class classifier to each specific training set among multiple training sets.
[0028] In yet another aspect, a computer-implemented method for fingerprinting malicious behavior can be provided. The method can include: in a first training phase, training a coarse-tuned machine learning one-class classifier to detect a first event dataset, the first event dataset including an event dataset representing malicious behavior and an event dataset representing non-malicious behavior; and training a benign machine learning one-class classifier to detect a second event dataset, the second event dataset not including an event dataset representing malicious activity; applying a model set including the benign machine learning one-class classifier and the coarse-tuned machine learning one-class classifier to the first event dataset to create a third training set representing malicious behavior for a second training phase; and in the second training phase, using the third training set representing malicious behavior to train a final machine learning one-class classifier, the final machine learning one-class classifier representing a fingerprint of the malicious behavior.
[0029] In some implementations, the method may further include applying the final machine learning one-class classifier to the event sample dataset to evaluate whether the event sample dataset includes malicious behavior.
[0030] In some implementations, the method may also include collecting a second set of event data when malware corresponding to the malicious behavior is not running or executing.
[0031] In some implementations, the first event data set can include a system call event trace.
[0032] In some implementations, the first event data set can include a system-wide trace including data corresponding to a plurality of non-malicious processes.
[0033] In some implementations, the final machine learning one-class classifier may be capable of determining or configured to determine whether the data includes an event dataset related to a malware behavior category.
[0034] In some implementations, the final machine learning one-class classifier may be capable of detecting or configured to identify malware classes associated with malicious behavior.
[0035] In some implementations, the first event data set can include a sequence of events ordered based on process and thread information.
[0036] In some implementations, a third training set representing malicious behavior for the second training phase can include event sequences ordered based on at least process information associated with the event sequences.
[0037] In some implementations, the final machine learning one-class classifier can be capable of detecting malicious behavior in data that includes non-malicious events associated with a software application, where the detection can be independent of the software application associated with the non-malicious event.
[0038] In another aspect, a system for fingerprinting malicious behavior can be provided. The system can include a processor and a memory, the memory being coupled to the processor and storing processor-readable instructions, which, when executed, cause the processor to: in a first training phase, train a coarse-tuned machine learning single-class classifier to detect a first event dataset, the first event dataset including an event dataset representing malicious behavior and an event dataset representing non-malicious behavior; and train a benign machine learning single-class classifier to detect a second event dataset, the second event dataset not including an event dataset representing malicious activity; apply a model set including a benign machine learning single-class classifier and a coarse-tuned machine learning single-class classifier to the first event dataset to create a third training set representing malicious behavior for a second training phase; and in the second training phase, use the third training set representing malicious behavior to train a final machine learning single-class classifier, the final machine learning single-class classifier representing the fingerprint of the malicious behavior.
[0039] In some embodiments, the processor may be further configured to apply the final machine learning one-class classifier to the event sample dataset to evaluate whether the sample event dataset includes malicious behavior.
[0040] In some embodiments, the processor may be further configured to collect a second set of event data when malware corresponding to the malicious behavior is not executing.
[0041] In yet another aspect, the present application describes a non-transitory computer-readable storage medium storing processor-readable instructions that, when executed, configure the processor to perform any of the methods described herein. The present application also describes a computing device that includes: a processor, a memory, and an application containing processor-executable instructions that, when executed, cause the processor to perform at least one of the methods described herein. In this regard, the term processor is intended to include all types of processing circuits or chips that are capable of executing program instructions.
[0042] Other aspects and features of the present application will be understood by one of ordinary skill in the art by reviewing the following description of examples in conjunction with the accompanying drawings.
[0043] In this application, the terms "about", "approximately" and "substantially" are intended to encompass variations in the upper and lower limits of a range of values, such as variations in properties, parameters and dimensions. In a non-limiting example, the terms "about", "approximately" and "substantially" may mean plus or minus 10% or less.
[0044] In the present application, the term "and / or" is intended to cover all possible combinations and subcombinations of the listed elements, including any one element, any subcombination or all of the elements listed individually, and does not necessarily exclude additional elements.
[0045] In the present application, the phrase "at least one of... or..." is intended to cover any one or more of the listed elements, including any one of the listed elements alone, any subcombination, or all of the elements, but does not necessarily exclude any additional elements, and not necessarily requires all elements.
[0046] In this application, reference is made to the term "single-class classifier model". A single-class classifier may be a classifier that is trained to assess whether an input to the classifier belongs to a particular class. In contrast, a binary classifier may assess whether an input belongs to one of two different classes, and a multi-class classifier may assess whether an input belongs to one of multiple classes. For example, a binary classifier may predict whether an input belongs to class X or class Y, while a single-class classifier may predict whether an input belongs to class X, and may not have any intent of class Y.
[0047] In this application, reference may be made to the term "behavior". Behavior may refer to the manner in which a computing device operates, runs, or performs, or may include the manner in which a software module or script executed on a computing device operates, runs, or performs. Behavior may be or include an activity, operation, or event that occurs on a computing device and / or an activity, operation, or event that is caused or performed by a software module or script.
[0048] In this application, reference may be made to the term "malicious behavior". Malicious behavior may refer to malicious activities, operations, or events that occur on a computing device. Malicious activities, operations, or events may include harmful activities, operations, or events that should be prevented from occurring on the computing device. Malicious behavior may cause or trigger one or more events to occur. In some embodiments, such events may be referred to as malicious events. Typically, malicious behavior refers to behavior that is not permitted by the device manufacturer, operating system provider, and / or the enterprise that manages the device.
[0049] Malicious behavior may include actions performed by a computing device as a result of an attack on the computing device by an attacker or malicious actor, which may include a person or entity that is not authorized to use the computing device. Malicious behavior may correspond to an attack category, or be classified based on an attack category. An attack category may be defined by the tactics, techniques, and / or procedures (TTPs) used by the malicious actor. In other words, a TTP may identify or represent a behavioral pattern of an attack. A strategy may refer to the attacker's goals. A strategy may be implemented using one or more techniques, and a technique may be implemented using one or more programs. In general, the term "strategy" may refer to a high-level description of a technique and the term "technique" may refer to a high-level description of a program.
[0050] Example policy in MITRE The attacker tactics and techniques are listed in the Knowledge Base and include "command and control" tactics where attackers try to communicate with a compromised computing system to control it; "discovery" tactics where attackers try to figure out the computing system's environment; "exfiltration" tactics where attackers try to steal data; "privilege escalation" tactics where attackers try to gain higher-level permissions; "credential access" tactics where attackers try to steal account names and passwords; "execution" tactics where attackers try to run malicious code and "reconnaissance" tactics where attackers try to gather information they can use to plan future operations.
[0051] In this application, reference may be made to the term "malware". Malware may refer to a software application or module or file (such as a script) that intentionally causes harm to a computing device and / or causes the computing device to operate, run, or execute in a manner that should be blocked. In other words, malware may intentionally cause a computing device to exhibit defined malicious behavior. Malware may be associated with a specific attack class and / or malicious behavior. Malware may include spyware, computer viruses, MITRE malware that emulates a specific strategy, or other malicious behavior. Scripts, etc.
[0052] Now refer to Figure 1 , Figure 1 An example system 100 is schematically illustrated in which methods and apparatus according to the present description may be implemented. The system 100 includes two client devices 102 and a remote server 104 in this example.
[0053] Although the client device 102 and the remote server 104 are described as being implemented by specific devices such as laptop computers and desktop computers, it is understood that the device 102 and the remote server 104 may be implemented by one or more computing devices, including a server, a personal computer, a tablet computer, a smartphone, an Internet of Things (IoT) device, or any other type of computing device that can be configured to store data and software instructions and execute software instructions to perform operations consistent with the disclosed embodiments.
[0054] The system 100 also includes a network 106. The network 106 allows communication between the client device 102 and the remote server 104.
[0055] The client device 102 may be configured to automatically collect data and transmit the data to the remote server 104. The client device may include a data collection agent that is configured to continuously monitor the behavior of the client device and collect data. Specifically, the client device 102 may transmit information related to device behavior, digital media, or other data to the remote server 104 for storage, processing, analysis, and / or monitoring of the client device 102 by the remote server 104.
[0056] The remote server 104 may be configured to receive communications from the client device 102 and respond to communications from the client device 102. The remote server may be further configured to manage and / or control the client device 102. For example, the remote server 104 may communicate commands or notifications to the client device 102. In some embodiments, the remote server 104 may include a plurality of computing devices, such as, for example, a database server, a file transfer protocol (FTP) server, etc. More generally, the remote server 104 may include infrastructure for controlling the client device 102 and / or collecting data from the client device 102.
[0057] The remote server 104 may be further configured to ingest and aggregate data received from the client devices 102. The remote server 104 may also be configured to train a machine learning one-class classifier model and apply the one-class classifier model to the data received from the client devices 102 to evaluate whether the received data includes a particular class of information.
[0058] refer to Figure 2 , Figure 2 Picture shows Figure 1 A block diagram of an example embodiment of each specific computing device (i.e., client device 102 and remote server 104). In an example embodiment, Figure 2The computing device 200 can be configured for two-way communication, with data and optional voice communication capabilities, as well as the ability to communicate with other computer systems, for example, via the Internet. In some embodiments, the computing device 200 can take other forms, such as a smart watch, a computer, a tablet, a laptop, or any other electronic device configured to connect via a wireless network.
[0059] Figure 2 The computing device 200 may include a housing (not shown) that houses the components of the computing device 200. The internal components of the computing device 200 may be constructed on a printed circuit board (PCB). The computing device 200 includes a controller that includes at least one processor 240 (such as a microprocessor) that controls the overall operation of the computing device 200. The processor 240 interacts with a device subsystem (such as a wireless communication subsystem 211) to exchange radio frequency signals using a wireless network to perform communication functions. The processor 240 interacts with additional device subsystems, which include one or more input interfaces (which may include, but are not limited to, any of the following: one or more cameras 280, a keyboard, one or more control buttons, one or more microphones 258, a gesture sensor and / or a touch-sensitive overlay associated with a touch screen display), flash memory 244, random access memory (RAM) 246, read-only memory (ROM) 248, an auxiliary input / output (I / O) subsystem 250, a data port 252 (which may be a serial data port, such as a universal serial bus (USB) data port), one or more output interfaces (such as a display 204), one or more speakers 256, or other output interfaces), a short-range communication subsystem 262, and other device subsystems, collectively designated as 264.
[0060] In some example embodiments, the auxiliary input / output (I / O) subsystem 250 may include an external communication link or interface, such as an Ethernet connection. The communication subsystem 211 may include other wireless communication interfaces for communicating with other types of wireless networks, such as cellular, WLAN, WPAN, Near Field Communication (NFC) and Radio Frequency Identification (RFID).
[0061] In some example embodiments, the computing device 200 also includes a removable memory module 230 (typically including flash memory) and a memory module interface 232. Network access can be associated with a subscriber or user of the computing device 200 via the memory module 230, which can be a subscriber identity module (SIM) card used in a cellular network (e.g., Global System for Mobile Communications (GSM), Universal Mobile Telecommunications Service (UMTS), Long Term Evolution (LTE), or 5G) or other types of memory modules used in related wireless network types. The memory module 230 can be inserted into or connected to the memory module interface 232 of the computing device 200.
[0062] The computing device 200 may store the data 277 in an erasable persistent memory, which in one example embodiment is the flash memory 244. In some example embodiments, the data 227 may include service data having information required by the computing device 200 to establish and maintain communications with a wireless network. The data 227 may also include user application data, such as messages (e.g., emails, texts, multimedia messages, etc.), address book and contact information, calendar and schedule information, notepad documents, image files, and other commonly stored user information and other data stored on the computing device 200 by its user.
[0063] The data 227 stored in the persistent memory (e.g., flash memory 244) of the computing device 200 can be organized at least in part into several databases or data repositories, each database or data repository containing data items of the same data type or data items associated with the same application. For example, the identifiers can be stored in separate files within the computing device 200 memory.
[0064] The short-range communication subsystem 262 provides for communication between the computing device 200 and different systems or devices, which are not necessarily similar devices. For example, the short-range communication subsystem 262 may include an infrared device and associated circuits and components, a communication mechanism that complies with a wireless bus protocol (such as a A communication module for providing communication with similarly enabled systems and devices) and / or a near field communication (NFC) interface.
[0065] The computing device 200 includes one or more cameras 280. The camera 280 is configured to generate camera data, such as images in the form of still photographs and / or video data. The camera data may be captured in the form of electronic signals generated by an image sensor associated with the camera 280. More specifically, the image sensor is configured to generate an electronic signal based on received light. The image sensor is configured to convert an optical image into an electronic signal, which may be output from the image sensor via one or more electrical connectors associated with the image sensor. The electronic signal represents electronic image data, which may be referred to as camera data.
[0066] A set of applications that control basic device operations (including data and possibly voice communications applications) may be installed on the computing device 200 during or after manufacture. Additional applications and / or upgrades to the operating system 222 or software applications 224 may also be loaded onto the computing device 200 via wireless networks, auxiliary I / O subsystems 250, data ports 252, short-range communications subsystems 262, or other suitable device subsystems 264. Downloaded programs or code modules may be permanently installed; for example, written to a program memory (e.g., flash memory 244) or written to and executed from RAM 246 for execution by the processor 240 at run time.
[0067] The processor 240 operates under stored program control and executes software modules 220 stored in a memory such as a persistent memory (eg, in the flash memory 244). Figure 2 As shown, software module 220 may include operating system software 222 and one or more applications 224 (or modules). Software module 220 may be off-the-shelf or custom. Specific examples of applications that may reside on computing device 200 include sensor application 260, which is used to collect or capture data using sensors included in the computing device. Sensor application 260 may include camera application for using camera 280 to capture one or more forms of digital media including images, videos and / or sounds. Another specific example of an application that may reside on computing device 200 includes hypervisor application 270.
[0068] The operating system software 222 may provide a file system for storing, modifying, and accessing files stored in a persistent memory (e.g., flash memory 244) of the computing device 200. The file system may be accessed by other programs running on the processor 240 via a programming interface provided by the operating system software 222. Specific examples of the operating system software 222 include Android TM Operating System and Windows TM 10 Operating system. Operating system software 222 may be proprietary or non-proprietary.
[0069] Hypervisor application 270 may manage and run one or more virtual machines 272. Each of virtual machines 272 may include one or more software modules, such as software module 220.
[0070] Reference now Figure 3 , Figure 3 An example data facility 300 of a computing device is partially illustrated. The data facility may be, for example, Figure 2 The computing device may be a flash memory 244 of the example computing device 200 or a data facility external to the computing device. Figure 1 1. The remote server 104 of the example system 100. Not all components of the data facility 300 are illustrated.
[0071] Data facility 300 may store data related to malware in malware object 302. Malware object 302 may be a data structure and may include a category identifier representing a malware category. The identifier may, for example, represent or map to a specific attack category or malware family. Examples of malware families include MimiKatz, Dridex, and Kovter malware families.
[0072] The data facility 300 may store data related to the trace in a raw trace object 304. The raw trace object 304 may be a data structure and may include a tag and details of a sequence of traced events. In some embodiments, the tag may correspond to an identifier of malware associated with the events included in the trace. For example, if the trace was collected for the Kovter malware family, the trace is labeled Kovter. If the trace includes only noise, the tag may indicate that the trace is related to noise.
[0073] Example details for a trace event include: a timestamp; a process identifier (PID) of the process that triggered or initiated the event; a thread identifier (TID) of the thread within the process that triggered the event; an event identifier (EID) for the event, which may include the name of the subsystem in which the event occurred and / or the name of the event; an event message; and event fields that may be used to populate variables in the message and provide detailed information about the event.
[0074] A trace event may correspond to a system call. A system call may include a request made by a process and / or software module to an operating system that is executing the process or software module. The request may be for a service provided by the operating system and may be for the operating system to perform a hardware action on behalf of the process and / or software module. In other words, a service may include a service associated with hardware.
[0075] The trace events may include details of the system calls. Example details include the type of system call and the system call parameters passed to the operating system. System call types may include file management, device management, information management, and communication system calls. File management system calls may include system calls for creating, deleting, reading, writing, moving, or closing files. Device management system calls may include system calls for requesting, releasing, reading, writing, or relocating devices. Devices may be or include resources. Resources may include, for example, physical devices (such as video cards) or abstract devices (such as files). Information management system calls may include system calls for time, date, or information about operating system processes. Communication system calls may include inter-process communication system calls for passing messages from one process to another, or for creating or obtaining access rights to a memory area owned by another process.
[0076] The raw trace object 304 may be preprocessed to create an ordered trace object 306 and a time series object 308. The ordered trace object 306 may be an ordered form of the raw trace object 304, which in turn may be used to create a time series object 308 for training a single class classifier model. The labels included in the associated raw trace set, ordered trace, and time series objects may be the same and used to perform supervised learning of the single class classifier model.
[0077] Reference now Figure 4 , Figure 4 An example of training data 400 in various preprocessing stages is schematically shown. Training data 400 may include an original data set 402, a reordered data set 404, and a time series data set 406. The original data set 402 may be preprocessed to create the reordered data set 404 and the time series data set 406. The reordered data set 404 may be a sorted form of the original data set 402, which in turn may be used to create the time series data set 406 for training a single-class classifier model.
[0078] As shown, raw data set 402 includes a simplified sequence of trace events listed in chronological order. Each specific trace event in the event sequence can be represented by a string such as "P1-T1-E1", which can represent a tuple separated by a dash, and the tuple includes a process identifier, a thread identifier, and an event type. Raw data set 402 can be in a human-readable format or a binary format. The trace event can include additional detailed information, such as system call parameters. Raw data set 402 includes events from multiple processes and threads that are interlaced and mixed.
[0079] The sequence in the original data set 402 can be reordered to create a reordered data set 404. More specifically, the original data set 402 can be ordered based on processes and threads associated with the processes. More specifically, the events in the original data set 402 can be ordered by process identifiers and then ordered by thread identifiers based on the process identifiers. In other words, the original data set 402 can be transformed from a time-ordered sequence to a process and thread-ordered sequence in the form of the reordered data set 404. The ordering should be performed in a manner that maintains the order of events within the thread.
[0080] It will be appreciated that although the same thread identifier (e.g., "T1") may be Figure 4 , but the thread associated with a particular process is different from the thread associated with another thread of another process. The thread identifier "T1", for example, may refer to the first thread associated with a particular process. In other words, thread identifiers may be reused across different processes. A thread may be uniquely identified at the system level using a combination of a process identifier and a thread identifier.
[0081] By sorting the raw data set 402 based on processes and threads, a final model may be trained that is independent of changes in software application scheduling events on the system on which the raw data set 402 was collected.
[0082] The reordered data set 404 can be used to create a time series data set 406, which is in a form suitable for training a single-class classifier model. Each specific event in the reordered data set 404 can correspond to a specific data point in the time series data set 406. In the example data set 406, the string "D1" in the time series data set 406 can represent a specific data point. The time series data set 406 can have a fixed time window. Each specific time window can include, for example, ten events.
[0083] Now also refer to Figure 5 , Figure 5 A simplified example of a computing device 500 that can implement methods and devices according to the present description is illustrated. In some examples, the computing device 500 can be configured to train a one-class classifier based on impure data and apply the one-class classifier to the data to determine whether the data belongs to a particular class. The computing device 500 is or includes Figure 1 The remote server 104 in the example system 100 described in .
[0084] Computing device 500 may, in some cases, include sensor application 260 for collecting or capturing information. Information collected by sensor application 260 may be stored as training data 508 in raw form.
[0085] In one example, sensor application 502 includes a monitoring application for monitoring the behavior of a computing device. In other words, the monitoring application can monitor activities on a computing device. For example, sensor application 502 can include a tracking facility for collecting event information that indicates the behavior of software modules running on computing device 200.
[0086] The trace facility can be a proprietary or non-proprietary application or a command provided by the operating system. Using a Linux system example, a command such as "sysdig" can be used to list trace events, which include system call events and other system-level events, thereby providing a system-level information set. Using Windows TM System examples for Windows TM The Event Tracker (ETW) of the Blackberry TM Optics.
[0087] The tracing facility may be configured to collect "process-specific" information or "system-wide" information. The term "process-specific information" may refer to information that is limited to corresponding to a specific process. On the other hand, the term "system-wide information" may refer to information that corresponds to processes across a computing device and is not limited to a specific process. In other words, system-wide tracing may collect event information across the system and is not limited to a specific instance of a running software application. System-wide tracing may list multiple events, such as system calls, triggered by multiple processes.
[0088] The computing device 500 may, in some cases, include a simulation engine 504 that is configured to run malware. In other words, the simulation engine 504 triggers defined malicious behavior to occur on the computing device 500. Generally speaking, the simulation engine 504 modifies the behavior of the computing device 500 and / or causes one or more processes or processes to occur for performing one or more computing events (such as, for example, system calls).
[0089] Computing device 500 may include virtual machine 506. Virtual machine 506 may run its own operating system, sometimes referred to as a "virtual" or "guest" operating system. Virtual machine 506 may be used to run malware in a secure sandbox environment. Because virtual machine 506 is separate from the rest of host computing device 500, software running virtual machine 506 should not harm host computing device 500. More specifically, virtual machine 506 includes emulation engine 504 to sandbox malicious behavior when emulation engine 504 installs and / or runs malware.
[0090] Virtual machine 506 also includes sensor application 502 to collect information about the behavior of virtual machine 506 when infected with malware. Sensor application 502 can collect normal system-wide behavior in addition to malicious behavior.
[0091] The collected information may include malicious tracking data and benign (i.e., non-malicious) tracking data. Malicious tracking data may include one or more malicious original tracking collected when malware is running and / or computing device 500 exhibits malicious behavior associated with malware. Benign tracking data may include one or more benign original tracking collected when malware is not running and / or computing device 500 does not exhibit malicious behavior associated with malware.
[0092] Malware can be run one or more times in virtual machine 506. In some embodiments, a new instance of virtual machine 506 is created for each run of the malware. In this way, each time the malware runs, it does so in a clean, "uninfected" operating environment. Each time the malware runs, a single "malicious" raw trace can be collected. "Benign" traces (such as new instances of virtual machine 506 that have malware installed or running) should be collected in the operating environment to ensure that malicious trace events are not included in the benign traces.
[0093] Malicious raw trace may be referred to as "impure" data or "tainted" data because it may include not only trace events associated with malware, but may also include unwanted trace events that are not related to malware. In other words, in addition to malicious behavior, tainted trace data may also include information related to benign behavior. Trace events associated with malware are sometimes referred to as "signals" and other trace events are sometimes referred to as "noise."
[0094] The raw trace may be stored in the form of a log as training data 508 , which may be, for example, a file.
[0095] The training data 508 may include a significant amount of noise. The term "noise" may refer to information that is not interesting, is not needed, and / or may negatively impact the training of the accuracy or performance of the single-class classifier model 512. In some embodiments, the training data may take the form of event information that includes labels for behavior categories, such as, for example, a set of malicious events associated with a particular attack strategy.
[0096] In some implementations, computing device 500 may not include virtual machine 506, simulation engine 504, and / or sensor application 502, and training data 508 may be generated by another device using some other process.
[0097] The computing device 500 includes an artificial intelligence or machine learning engine 510 capable of receiving training data 508. The training data 508 may be received in raw form and pre-processed by the machine learning engine 510 into a time series form suitable for training a single class classifier model 512.
[0098] The machine learning engine 510 implements a two-stage training process. Generally speaking, in the first training stage, two types of data sets should be used. The first type can be labeled / traced data, including noise and signals for which the final model is developed. The second type can include a noisy data set that can be used in noise suppression. For example, in order to build a final model corresponding to a "command and control" strategy, the first data set type can include one or more contaminated (i.e., noise and signal) tracks associated with the "command and control" strategy, and the second data set type can include benign (i.e., noise) tracks. In the second training stage, the refined (i.e., signal) data set can be used to train the final model.
[0099] In some embodiments, in a first training phase, the machine learning engine 510 is configured to output a one-class classifier model 512 for each raw trace collected by the virtual machine 506. In a second training phase, the machine learning engine 510 is configured to output a final one-class classifier model 512, which is trained using a refined data set created by applying the set of one-class classifiers trained in the first training phase. The final one-class classifier model 512 can be trained to detect behavior and is sometimes referred to as a fingerprint of the behavior. In some embodiments, the behavior is associated with malware. For example, the final model can be trained to detect behavior corresponding to a specific policy. In this case, the final model can be referred to as a fingerprint of the policy.
[0100] The computing device 500 includes a single-class classifier model 512. It will be appreciated that, although for ease of illustration, Figure 5A single model is shown in FIG. 5 , but the machine learning engine 510 can train many single-class classifier models 512. As shown, the single-class classifier model 512 includes a machine learning neural network autoencoder-decoder. The autoencoder-decoder is a neural network that automatically learns encoding and decoding. The autoencoder-decoder can be a long short-term memory (LSTM) autoencoder-decoder and includes an encoder 514 and a decoder 516. The encoder 514 can encode the input into an encoded form by transforming the high-dimensional input into a low-dimensional format. The decoder 516 can read and decode the encoded state. In other words, the encoder 514 reduces the dimension of the input data so that the original information is compressed. The decoder 516 reconstructs or decompresses the original input information from the compressed data. In this way, the model learns to map the input to the output and captures the correlation between data points or events so that the input of the model can be the same as the output during training. The input of the single-class classifier model 512 can be labeled training data. The training data can be fed into the single-class classifier model 512 as an event sequence based on each process and each thread.
[0101] The computing device 500 includes an analysis engine 518 that can receive endpoint behavior information 520 in real time. The endpoint can be or include Figure 1 The computing device 500 may include one of the client devices 102 in the example system 100 described in . The endpoint behavior information 520 may include one or more traces collected on the endpoint. The analysis engine 518 may use the final single-class classifier to continuously analyze endpoint activity to detect malware and other threats. The analysis engine 518 may apply the final model to the endpoint behavior information 520 to determine whether the endpoint behavior information 520 belongs to a specific class. For example, the specific class may be a behavior category, which may, for example, correspond to a specific attack strategy. The computing device 500 may transmit the determination result 522 to the endpoint.
[0102] Many of the embodiments described herein focus on detecting malicious behavior. However, it will be appreciated that the present application is not limited to such embodiments, and the described embodiments can be easily extended to detect non-malicious behavior in general. For example, if the final model should be a fingerprint of a specific non-malicious behavior that should be monitored, the simulation engine 504 can execute non-malicious software applications that cause non-malicious behavior instead of executing malware. In the first training phase, tracking or other signs of non-malicious behavior can be collected and used.
[0103] Many embodiments described herein focus on fingerprint recognition behavior. However, it is understood that the present application is not limited to such embodiments, and the described embodiments can generally be easily extended to fingerprints in other fields. As an example, computing device 500 can be configured for traffic monitoring. Training data can be collected in the form of digital media, including images and / or videos. A first training data set can be collected, and the first training data set includes cars (i.e., signals) and non-car activities (noise), such as individuals walking on the road or objects such as birds flying in the air. A second training data set that only includes non-car activities can also be collected. Two types of data sets can be used in the first training stage to create a refined data set representing a car. The refined data set can be used to train the final model representing the car fingerprint. More generally, the final model can be the fingerprint of a specific object represented by one or more forms of digital media (including images, videos and / or sounds).
[0104] Now refer to Figure 6 , Figure 6 A simplified example of a method 600 for training a neural network model based on impure data is shown in the form of a flowchart. The example method 600 may be implemented by one or more computing devices that are appropriately programmed to perform the functions described. In the example method 600, the computing device may be composed of Figure 1 The example system 100 described in the example is implemented by the remote server 104.
[0105] Method 600 includes two training phases. In the first training phase, the model set is trained using the training set group. At least one of the training sets in the training set group may include a signal and noise. At least one of the training sets in the training set group may include only noise. Each specific model in the model set is trained using a corresponding training set in the training set group. In this way, a model is created for each specific training set in the training set group. The model set is applied to each specific training set in the training set group that includes a signal to create a refined training set representing the signal. In the second training phase, the final model is trained using the refined training set created by applying the model set.
[0106] In operation 602, a computing device obtains a first training set including a signal and noise. The first training set may be associated with digital media or a trace, for example. In some embodiments, the computing device may enable system-wide tracing and execute malware to collect system call events (i.e., signals) related to the malware in a raw trace. The raw trace may include system call events (i.e., noise) that are not caused by the malware or otherwise associated with the malware. The raw trace may then be preprocessed with a time series suitable for training a single-class classifier. The first training set may be or include a preprocessed raw trace. In some embodiments, the malware may be executed multiple times, and each time the malware is executed, a separate trace including the same signal and possibly different noise may be generated. In other words, the noise in multiple contaminated training sets may vary from one particular training set to another.
[0107] In operation 604, the computing device obtains a second training set. Signals included in the first training set may be excluded from the second training set. In some embodiments, the second training set may be obtained by collecting traces when the malware is not executing or causing the computing device to generate system calls associated with the malware. In other words, the second training set may be collected when the computing device is idle.
[0108] In operation 606, in a first training phase, the computing device trains a coarse-tuned machine learning single-class classifier model using the first training set, and trains a noisy machine learning single-class classifier model using the second training set. In some embodiments, the computing device trains multiple coarse-tuned machine learning single-class classifier models. Each specific classifier in the multiple coarse-tuned classifiers can be trained using a corresponding one of the multiple contaminated training sets. The coarse-tuned machine learning single-class classifier model trained using the first training set can be included in the multiple coarse-tuned classifiers.
[0109] In operation 608, the computing device applies a set of machine learning one-class classifier models to the first training set to create a third training set representing the signal for the second training phase. The set of models may include a noisy machine learning one-class classifier model and a coarse-tuned machine learning one-class classifier model. In some embodiments, the set of models may include multiple coarse-tuned classifiers.
[0110] In operation 610, in the second training phase, the computing device trains a final model using a third training set representing the signal. The term "final" does not mean that the computing device cannot train further models. Instead, it only indicates that the model is the model trained in the second training phase. The final model can be referred to as, for example, a "second phase" model.
[0111] In this way, ultimately a robust supervised learning model can be trained to detect anomalies based on impure data. Although supervised learning autoencoder-decoder models may generally be less suitable for anomaly detection because the quality of these models may depend on the quality of the training data rather than the quality of the training data, using two training stages can facilitate the development of robust autoencoder-decoder models even when only a small amount of impure labeled training data is available.
[0112] In addition, method 600 provides a method for training a supervised learning model using system-wide traces. This may be particularly useful in situations where system-wide traces are needed to capture malware interactions with other processes. Method 600 does not assume the existence of pure traces, and does not require malware traces to be collected only for specific malware processes.
[0113] Now refer to Figure 7 , Figure 7 A simplified example method 700 for creating a refined training set is shown in flowchart form. The method 700 may correspond to Figure 6 The example method 700 may be implemented by one or more computing devices that are appropriately programmed to perform the functions described. In the example method 700, the computing device may be Figure 1 The example system 100 described in the example is implemented by the remote server 104.
[0114] In operation 702, the computing device obtains a training set for training a coarse-tuning model in a first training phase. The training set may correspond to Figure 6 The first training set or multiple training sets described in . Each training set may include a sequence of data points. In some embodiments, there may be a single contaminated training set for training a single coarse-tuned model, or there may be multiple contaminated training sets for training corresponding sets or multiple coarse-tuned models, where each specific coarse-tuned model in the multiple coarse-tuned models is trained using a corresponding training set in the multiple training sets. In other words, the computing device can obtain one or more training set groups, one or more training set groups are used to train one or more coarse-tuned model groups, and each training set corresponds to a corresponding coarse-tuned model in the coarse-tuned model group. In some embodiments, the computing device only obtains a subset (e.g., one or more subsets) of the training set used to train the coarse-tuned model in the first training stage.
[0115] In operation 704, the computing device applies each coarse-tuned model to each acquired training set. In other words, each training set is sequentially fed into each coarse-tuned model. Each training set may include a sequence of data points, which are fed into each coarse-tuned model.
[0116] In operation 706, the computing device applies the noise model trained in the first training phase to each acquired training set. In other words, each training set is sequentially fed into the noise model.
[0117] In operation 708 , the computing device selects a particular data point fed into each coarse-tuned model starting from a first data point of a first training set fed into each coarse-tuned model to determine whether the particular data point should be added to the refined data set.
[0118] In operation 710, the computing device determines whether a particular data point is detected by each coarse-tuned model. When a data point is input into a particular coarse-tuned model, the particular coarse-tuned model generates a corresponding output. If the output matches the input training point, the coarse-tuned model is considered to have detected the data point.
[0119] If each of the coarse-tuned training models does not detect a particular data point, the computing device may not add the particular data point to the refined data set and may select the next data point in the sequence of data points fed to each coarse-tuned model in operation 708 to determine whether the next data point should be added to the refined data set.
[0120] If each coarse-tuned training model detects a particular data point, the computing device 712 may determine whether the particular data point is detected by the noise model in operation 712. When a data point is input into the noise model, the noise model generates a corresponding output. If the output matches the input training point, the noise model is considered to have detected the data point.
[0121] If the noise model detects a particular data point, the computing device may not add the particular data point to the refined data set, and the computing device 708 may select the next data point in the sequence of data points fed into each coarse-tuned model to determine whether the next data point should be added to the refined data set.
[0122] If the noise model does not detect a particular data point, then the particular data point is added to the refined data set in operation 714. The computing device may then select the next data point in the sequence of data points fed into each coarse model in operation 708 to determine whether the next data point should be added to the refined data set.
[0123] It is understood that operations 708, 710, 712 and 714 can be performed for each data point in the data points fed to the coarse model and the noise model. In this way, noise that may exist in the contaminated training set can be filtered from the training set to create a refined data set.
[0124] Now refer to Figure 8 , Figure 8A simplified example of a method 800 of detecting signals in non-pure data is shown in flowchart form. The example method 800 may be implemented by one or more computing devices and / or servers that are appropriately programmed to perform the functions described.
[0125] The example method 800 refers to three separate computing systems that collect data sets. The computing systems can be or include computing devices and / or virtual machines installed on computing devices. In the example method 800, the first computing system can be Figure 1 The second computing system can be implemented by installing a virtual machine on the remote server 104 in the example system 100 described in Figure 1 The example system 100 described in the example may be implemented by a single client device among the plurality of client devices 102 .
[0126] The computing system may include one or more software modules installed. In some cases, the software module is an operating system software or an application. The software module may be off-the-shelf software or customized software. The two computing systems in the example method 800 may each include a different set of software modules installed and running. For example, the first computing system may be running Windows TM 10 operating system, and the second computing system may be running Android TM operating system.
[0127] In operation 802, a first computing system collects a first training data set, the first training data set including a signal and a first noise training data set, and also collects a second training data set, the second training data set including a second noise training data set and not including the signal. The first noise training data set or the second noise data set may include noise training data items or events associated with a first software module installed on the first computing system. For example, the first noise data item may correspond to a system call called by a running instance of the first software module.
[0128] In operation 804, the computing device trains a final machine learning single-class classifier based on the first training data set and the second training data set. The model can be, for example, Figure 1 The remote server 104 in the example system 100 described in Figure 6 The method is 600 to train. Figure 6The method 600 filters noise from a training set used to train a final machine learning one-class classifier, so that the final machine learning one-class classifier may be independent of the system that generated the training set, which in some embodiments includes traces. Therefore, in some embodiments, the final machine learning one-class classifier may be able to detect malicious behavior in data, the malicious behavior including non-malicious events associated with software applications, wherein the detection is independent of the software application associated with the non-malicious events.
[0129] In operation 806, the second computing system collects a first sample data set, the first sample data set including the signal and a first sample noise data set. The first sample noise data set may not include data included in the second training noise data set, and vice versa. For example, the first sample noise data set may not include the first noise data item.
[0130] In operation 808, the computing device applies the final machine learning one-class classifier to the first sample data set to determine whether the first classified data set includes a signal. The determination can be made independent of a specific software application that is associated only with noise and not with a signal.
[0131] It is understood that some or all of the operations of the various exemplary methods described above can be performed in an order other than the order illustrated and / or can be performed simultaneously without changing the overall operation of the methods. It is also understood that some or all of the operations of the various exemplary methods described above can be performed in response to other operations described above.
[0132] It will be appreciated that the application, module, routine, process, thread or other software component that implements the described method / process may be implemented using standard computer programming techniques and languages. The present application is not limited to a specific processor, computer language, computer programming convention, data structure or other such implementation details. Those skilled in the art will recognize that the described process may be implemented as part of a computer executable code stored in a volatile or non-volatile memory, as part of an application specific integrated circuit (ASIC), etc.
[0133] Although many of the above examples refer to "objects" when discussing data structures, it is understood that this does not necessarily limit the application to implementations using object-oriented programming languages, and does not necessarily mean that the data structure is of a specific type or format. In different software paradigms, data structures may have different names.
[0134] Certain adaptations and modifications may be made to the described embodiments.Therefore, the embodiments discussed above are considered to be illustrative rather than restrictive.
Claims
1. A computer-implemented method for fingerprinting malicious behavior, the method include: In the first training phase: training a coarse-tuned machine learning single-class classifier to detect a first event dataset, the first event dataset comprising an event dataset representing malicious behavior and an event dataset representing non-malicious behavior; as well as training a benign machine learning one-class classifier to detect a second event dataset that does not include the event dataset indicative of malicious activity; applying a model set including the benign machine learning one-class classifier and the coarse-tuned machine learning one-class classifier to the first event dataset to create a third training set representing the malicious behavior for a second training phase; as well as In the second training phase, the third training set representing the malicious behavior is used to train a final machine learning one-class classifier, wherein the final machine learning one-class classifier represents a fingerprint of the malicious behavior.
2. The method according to claim 1 further includes applying the final machine learning single-class classifier to an event sample dataset to evaluate whether the event sample dataset includes the malicious behavior.
3. The method according to claim 1 also includes collecting the second event data set when the malware corresponding to the malicious behavior is not running. The method of claim 1 , wherein the first event data set comprises a system call event trace. 5 . The method of claim 1 , wherein the first set of event data comprises a system-wide trace comprising data corresponding to a plurality of non-malicious processes.
6. The method of claim 1, wherein the final machine learning one-class classifier is capable of determining whether the data includes an event dataset related to a malware behavior category.
7. The method of claim 1, wherein the final machine learning one-class classifier is capable of detecting a malware class associated with the malicious behavior.
8. The method of claim 1, wherein the first event data set comprises a sequence of events ordered based on process and thread information.
9. The method of claim 1, wherein the third training set representing the malicious behavior for a second training phase includes the event sequences ordered based at least on process information associated with the event sequences.
10. The method of claim 1, wherein the final machine learning one-class classifier is capable of detecting the malicious behavior in the data, the malicious behavior comprising non-malicious events associated with a software application, the detection being independent of the software application associated with the non-malicious events.
11. A system for fingerprinting malicious behavior, the system include: processor; a memory storing processor-executable instructions that, when executed by the processor, cause the processor to: In the first training phase: training a coarse-tuned machine learning single-class classifier to detect a first event dataset, the first event dataset comprising an event dataset representing malicious behavior and an event dataset representing non-malicious behavior; as well as training a benign machine learning one-class classifier to detect a second event dataset that does not include the event dataset indicative of malicious activity; applying a model set including the benign machine learning one-class classifier and the coarse-tuned machine learning one-class classifier to the first event dataset to create a third training set representing the malicious behavior for a second training phase; as well as In the second training phase, the third training set representing the malicious behavior is used to train a final machine learning one-class classifier, wherein the final machine learning one-class classifier represents a fingerprint of the malicious behavior.
12. The system of claim 11, wherein the instructions, when executed, further cause the processor to apply the final machine learning single-class classifier to an event sample dataset to evaluate whether the event sample dataset includes the malicious behavior.
13. The system of claim 11, wherein the instructions, when executed, further cause the processor to collect the second event data set when malware corresponding to the malicious behavior is not running.
14. The system of claim 11, wherein the first event data set comprises a system call event trace.
15. The system of claim 11, wherein the first set of event data comprises a system-wide trace comprising data corresponding to a plurality of non-malicious processes.
16. The system of claim 11, wherein the final machine learning one-class classifier is capable of determining whether the data includes an event dataset related to a malware behavior category.
17. The system of claim 11, wherein the final machine learning one-class classifier is capable of detecting a malware class associated with the malicious behavior.
18. The system of claim 11, wherein the first event data set comprises a sequence of events ordered based on process and thread information.
19. The system of claim 11, wherein the third training set representing the malicious behavior for a second training phase includes the event sequences ordered based at least on process information associated with the event sequences.
20. A non-transitory computer-readable storage medium storing processor-executable instructions for fingerprinting malicious behavior, wherein the processor-executable instructions, when executed by a processor, cause the processor to: In the first training phase: Training a coarse-tuned machine learning single-class classifier to detect a first event dataset, the first event dataset comprising an event dataset representing malicious behavior and an event dataset representing non-malicious behavior ; as well as training a benign machine learning one-class classifier to detect a second event dataset that does not include the event dataset indicative of malicious activity; applying a model set including the benign machine learning one-class classifier and the coarse-tuned machine learning one-class classifier to the first event dataset to create a third training set representing the malicious behavior for a second training phase; as well as In the second training phase, the third training set representing the malicious behavior is used to train a final machine learning one-class classifier, wherein the final machine learning one-class classifier represents a fingerprint of the malicious behavior.
