Automatic Semantic Modeling of System Events

The behavior-based malware detection system uses machine learning to model system events semantically, addressing the limitations of static signature matching by capturing event relationships, enhancing the detection of stealthy attacks and advanced persistent threats.

JP7575842B2Active Publication Date: 2024-10-30INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2022535464
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-12-12
Filing Date
2020-11-25
Publication Date
2024-10-30
Estimated Expiration
2040-11-25

AI Technical Summary

Technical Problem

Existing malware detection systems struggle to effectively identify stealthy attacks and advanced persistent threats due to incomplete observations and reliance on static signature matching, which fail to capture the detailed behavior of malware, especially in modern computing environments.

Method used

A behavior-based malware detection system that utilizes machine learning to derive semantic models of system events by normalizing, extracting features, and encoding processes into vector spaces, capturing semantic relationships between events to detect malicious activities.

Benefits of technology

The system efficiently identifies and classifies malware by understanding the semantic relationships between system events, providing robust detection of stealthy attacks and advanced persistent threats with reduced computational complexity and domain knowledge requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007575842000001
    Figure 0007575842000001
  • Figure 0007575842000002
    Figure 0007575842000002
  • Figure 0007575842000003
    Figure 0007575842000003
Patent Text Reader

Abstract

A method for detecting anomalous behavior in an execution environment is disclosed. A set of system events captured from a monitored computing system is received. A model is trained using machine learning using the received system events. The model is trained to automatically extract one or more features for the received set of system events, where the system event features are determined by semantic analysis and represent semantic relationships between or among groups of system events observed to co-occur in the observation samples. The observation samples are associated with operational scenarios that occurred in the execution environment. Once trained, and using the features, the model is used to detect anomalous behavior. As an optimization, the set of system events is pre-processed into a reduced set of system events prior to training. The modeler comprises a component of a malware detection system.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates generally to computer network security, and more particularly, to behavior-based techniques for characterizing malware. [Background technology]

[0002] Intrusion and anomaly detection products, systems and services are well known. Indeed, intrusion detection methods and antivirus solutions have been introduced decades ago. Most traditional host-based and network-based attack / intrusion detection products utilize a static signature matching approach. For example, traditional antivirus, firewalls, intrusion detection systems (IDS), etc. rely on real binary or network communication signatures to identify attacks. The detection steps typically include (i) attack discovery, (ii) signature selection, (iii) signature distribution, and (iv) endpoint signature matching.

[0003] A new class of detection mechanisms tries to implant more intelligence into the endpoint. However, these mechanisms typically focus on single-process detection. In-process behavior modeling and detection is also well known, as seen in the literature on program anomaly detection, as well as state-of-the-art commercial endpoint intrusion detection products. These mechanisms essentially monitor system events, e.g., system calls and / or Windows APIs, for each process, and determine whether the process is malicious or not based on the behavior model. This kind of solution can be defeated if the attack is performed stealthily across processes, or if the attacker exploits benign processes to achieve their attack goals.

[0004] Because modern computing platforms typically operate as black boxes, the detailed behavior of malware or intrusion activities is usually not visible. Thus, even with advanced behavior-based malware detection systems, incomplete observation can severely limit the ability to detect attacks, especially long-lasting Advanced Persistent Threats (APTs). In particular, they cannot be easily observed by commonly used detection techniques such as those based on data flow graphs and control flow graphs. Rather, only system call traces can be monitored.

[0005] System calls are insufficient to understand the detailed behavior of the underlying program, but can reveal the attacker's activities and intent at a high level. For example, disk operations can be recorded by tracing API calls, and writes (e.g., to rundll32.exe) suggest that malicious code is injected into a system file. Except for disk operations, other behaviors, e.g., communication with remote servers, registry modifications, process creation, etc., are usually presented through system calls, and these behaviors can be recorded by monitoring systems. In other words, it is typically practical and potentially important to detect attacks at the level of API calls and system events.

[0006] Prior art studies have shown the usefulness of system events in modeling malware, especially in malware classification and evasive malware detection. For example, Mohasisen et al. describe the use of n-grams of system events as features to classify malware families. In the context of big data, however, n-gram modeling without optimization is impractical. In another approach, Mohasisen et al. use counts of system events as features, however, this approach is disadvantageous because it removes detail from system events and this missing detail is very informative. For example, system DLLs are used in different scenarios and cannot simply be modeled as DLLs. Bayer et al. model samples as a set of system events and the similarity is calculated using the Jaccard index. Gionis et al. describe the use of Locality Sensitive Hashing (LSH) to efficiently calculate pairwise similarity, however, in this approach every system event is considered independent and contributes equally to the similarity measure. Similarly, Lindorfer et al. model samples as a set of system events, and they describe using the Jaccard coefficient as a distance metric. In this latter study, evasive malware is identified by comparing system events monitored from different environments. Kirat et al. describe comparing system events by mapping the events into a tree structure, where parent nodes capture important components (e.g., the behavior of the event) and child nodes represent less important components (e.g., the name of the event). A similarity metric is then determined by the hierarchy. However, such a hierarchical structure does not capture the activity underlying the system events. For example, a process that loads crypt32.dll is very likely to retrieve certificate revocation lists from a remote server.However, such relationships cannot be captured simply by examining the underlying event behavior types and event object names. In Xu et al., redundant system events are removed based on their time patterns. However, this approach cannot determine event relationships in the absence of time dependency.

[0007] Thus, there remains a need to provide a behavior-based malware detection system and method that can detect malware attacks, preferably by evaluating system events in a manner and at a level that exposes more useful information to the detection process. Summary of the Invention

[0008] The present invention, as claimed, provides a method, apparatus and computer program product for detecting anomalous behavior in an execution environment.

[0009] For a more complete understanding of the disclosed subject matter and its advantages, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which: [Brief description of the drawings]

[0010] [Figure 1] 1 is an example block diagram of a distributed data processing environment in which example aspects of the example embodiments may be implemented; [Diagram 2] 1 is an exemplary block diagram of a data processing system in which exemplary aspects of the illustrative embodiments may be implemented; [Diagram 3] 1 illustrates a security intelligence platform in which the techniques of the present disclosure may be implemented. [Figure 4] 1 illustrates an advanced persistent threat (APT) platform in which the techniques of the present disclosure may be implemented. [Diagram 5] 1 illustrates an operating environment in which a cognitive cybersecurity intelligence center is used to manage endpoint machines and in which the techniques of the present disclosure may be implemented. [Figure 6] 1 illustrates a malware detection system and a system event modeler according to the present disclosure. [Figure 7] 1 shows the cost function of the event feature extractor. [Figure 8] 4 shows the probability function calculated by the event feature extractor. [Figure 9] 1 illustrates the cosine similarity function used by the semantic prototype extractor of the event modeler of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] As described below, the techniques herein employ machine learning to derive semantic models of system events for use in providing behavior-based malware detection. Typically, machine learning algorithms and associated mechanisms execute in software, e.g., as one or more computer programs executing on one or more computer machines. By way of background, the following describes representative computer machines and systems that may be utilized to perform the learning process and to use the derived system event models. Several execution environments (FIGS. 3-5) are also described.

[0012] With reference to the drawings, and in particular with reference to Figures 1 and 2, exemplary diagrams of data processing environments are provided in which exemplary embodiments of the present disclosure may be implemented. Figures 1 and 2 are exemplary only and are not intended to assert or imply any limitation with respect to the environments in which aspects or embodiments of the disclosed subject matter may be implemented. Many modifications to the depicted environments may be made without departing from the spirit and scope of the present invention.

[0013] Referring now to the drawings, Figure 1 depicts a pictorial representation of an exemplary distributed data processing system in which aspects of the exemplary embodiments may be implemented. Distributed data processing system 100 may include a network of computers in which aspects of the exemplary embodiments may be implemented. Distributed data processing system 100 includes at least one network 102, which is the medium used to provide communications links between the various devices and computers connected together within distributed data processing system 100. Network 102 may include connections such as wire, wireless communication links, or fiber optic cables.

[0014] In the illustrated embodiment, server 104 and server 106 are connected to network 102 along with storage unit 108. In addition, clients 110, 112, and 114 are also connected to network 102. These clients 110, 112, and 114 may be, for example, personal computers, network computers, and the like. In the illustrated embodiment, server 104 provides data to clients 110, 112, and 114, such as boot files, operating system images, and applications. Clients 110, 112, and 114 are clients to server 104 in the illustrated embodiment. Distributed data processing system 100 may include additional servers, clients, and other devices not shown.

[0015] In the depicted embodiment, distributed data processing system 100 is the Internet with network 102, which represents a worldwide collection of networks and gateways that utilize the Transmission Control Protocol / Internet Protocol (TCP / IP) suite to communicate with one another. At its core, the Internet is a backbone of high-speed data communication lines between major nodes or host computers, consisting of countless commercial, government, educational and other computer systems that route data and messages. Of course, distributed data processing system 100 may be implemented to include many different types of networks, such as, for example, an intranet, a local area network (LAN), a wide area network (WAN), etc. As noted above, FIG. 1 is intended as an example, and not as an architectural limitation for different embodiments of the disclosed subject matter, and thus the specific elements illustrated in FIG. 1 should not be construed as limitations with respect to the environments in which exemplary embodiments of the present invention may be implemented.

[0016] Referring to Figure 2, a block diagram of an exemplary data processing system in which aspects of the exemplary embodiments may be implemented is shown. Data processing system 200 is an example of a computer, such as client 110 of Figure 1, in which computer usable code or instructions implementing processes for the exemplary embodiments of the present disclosure may be located.

[0017]

[0023] Referring now to Figure 2, a block diagram of a data processing system in which exemplary embodiments may be implemented is shown. Data processing system 200 is an example of a computer, such as server 104 or client 110 of Figure 1, in which computer usable program code or instructions implementing processes may be located for exemplary embodiments. In the illustrative example, data processing system 200 includes a communications fabric 202 that provides communications between a processor unit 204, a memory 206, a persistent storage 208, a communications unit 210, an input / output (I / O) unit 212, and a display 214.

[0018] The processor unit 204 functions to execute instructions for software that may be loaded into the memory 206. The processor unit 204 may be a set of one or more processors or may be a multi-processor core, depending on the particular implementation. Additionally, the processor unit 204 may be implemented using one or more heterogeneous processor systems with a main processor and secondary processors on a single chip. As another illustrative example, the processor unit 204 may be a symmetric multi-processor (SMP) system that includes multiple processors of the same type.

[0019] Memory 206 and persistent storage 208 are examples of storage devices. A storage device is any hardware capable of storing information on a temporary or persistent basis or both. Memory 206, in these examples, may be, for example, a random access memory or other suitable volatile or non-volatile storage device. Persistent storage 208 may take various forms depending on the particular implementation. For example, persistent storage 208 may include one or more components or devices. For example, persistent storage 208 may be a hard drive, a flash memory, a rewritable optical disk, a rewritable magnetic tape, or some combination of the above. The medium used by persistent storage 208 may also be removable. For example, a removable hard drive may be used for persistent storage 208.

[0020] Communications unit 210, in these examples, provides for communication with other data processing systems or devices. In these examples, communications unit 210 is a network interface card. Communications unit 210 may provide communications using either or both physical and wireless communications links.

[0021] Input / output unit 212 allows for the input and output of data with other devices that may be connected to data processing system 200. For example, input / output unit 212 may provide a connection for user input via a keyboard and mouse. Additionally, input / output unit 212 may provide output to a printer. Display 214 provides a mechanism for displaying information to a user.

[0022] Instructions or programs for the operating system and applications are located on persistent storage 208. These instructions may be loaded into memory 206 for execution by processor unit 204. The processes of the various embodiments may be executed by processor unit 204 using computer-implemented instructions, which may be located in a memory, such as memory 206. These instructions are referred to as program code, computer usable program code, or computer readable program code, which may be read and executed by a processor in processor unit 204. The program code in the various embodiments may be embodied on different physical or tangible computer readable media, such as memory 206 or persistent storage 208.

[0023] The program code 216 is functionally disposed on a computer readable medium 218, which is selectively removable, and may be loaded or transferred to the data processing system 200 for execution by the processor unit 204. The program code 216 and the computer readable medium 218 form a computer program product 220, in these examples. In one example, the computer readable medium 218 may be in a tangible form, such as an optical or magnetic disk, which is inserted or placed into a drive or other device that is part of the persistent storage 208 for transfer to a storage device, such as a hard drive that is part of the persistent storage 208. In a tangible form, the computer readable medium 218 may also take the form of persistent storage, such as a hard drive, thumb drive, or flash memory, connected to the data processing system 200. The tangible form of the computer readable medium 218 may also be referred to as a computer recordable storage medium. In some examples, the computer readable medium 218 may not be removable.

[0024] Alternatively, program code 216 may be transferred to data processing system 200 from computer readable medium 218 via a communications link to communications unit 210 or via a connection to input / output unit 212, or both. The communications link or connection, or both, may be physical or wireless in the illustrative example. The computer readable medium may also take the form of non-tangible media, such as a communications link or wireless transmission that contains the program code. The different components illustrated for data processing system 200 are not meant to provide architectural limitations to the manner in which different illustrative embodiments may be implemented. Different illustrative embodiments may be implemented in a data processing system including components in addition to or in place of those illustrated for data processing system 200. Other components depicted in FIG. 2 may be changed from the illustrated illustrative example. By way of example, a storage device in data processing system 200 is any hardware apparatus capable of storing data. Memory 206, persistent storage 208, and computer readable medium 218 are examples of storage devices in tangible forms.

[0025] In another example, a bus system may be used to implement communications fabric 202 and may be comprised of one or more buses, such as a system bus or an input / output bus. Of course, the bus system may be implemented using any suitable type of architecture that provides for a transfer of data between different components or devices attached to the bus system. In addition, a communications unit may include one or more devices used for transmitting and receiving data, such as a modem or a network adapter. Further, a memory may be, for example, memory 206 or a cache such as found in an interface and memory controller hub that may be present in communications fabric 202.

[0026] Computer readable program instructions for carrying out the operations of the present invention may be written in any combination of one or more programming languages, including object oriented languages ​​such as Java, Smalltalk, C++, and traditional procedural languages ​​such as C or similar programming languages. The program code may be executed as a stand-alone software package, entirely on the user's computer, partially on the user's computer, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (e.g., through the Internet using an Internet Service Provider).

[0027] Those skilled in the art will appreciate that the hardware in Figures 1 and 2 may vary depending on the implementation. Other internal hardware or peripheral devices, such as flash memory, equivalent non-volatile memory, or optical disk drives, may be used in addition to or in place of the hardware depicted in Figures 1 and 2. Additionally, the processing of the illustrative embodiments may be applied to multiprocessor data processing systems other than the SMP systems described above without departing from the spirit and scope of the disclosed subject matter.

[0028] As shown below, the techniques described herein can operate within a standard client-server paradigm as shown in FIG. 1, where a client machine communicates with an Internet-accessible web-based portal running on a set of one or more machines. End users operate Internet-enabled devices (e.g., desktop computers, notebook computers, Internet-enabled mobile devices, etc.) that can access and interact with the portal. Typically, each client or server machine is a data processing system, including hardware and software, as shown in FIG. 2, and these entities communicate with each other over a network, such as the Internet, an intranet, an extranet, a private network, or any other communication medium or link. A data processing system typically includes one or more processors, an operating system, one or more applications, and one or more utilities. Applications on the data processing system provide native support for web services, including, but not limited to, support for HTTP, SOAP, XML, WSDL, UDDI, and WSFL, among others. Information about SOAP, WSDL, UDDI and WSFL is available from the World Wide Web Consortium (W3C), which is responsible for developing and maintaining these standards, and further information about HTTP, FTP, SMTP and XML is available from the Internet Engineering Task Force (IETF). Familiarity with these known standards and protocols is assumed.

[0029] Computing machines such as those described above can provide machine learning. As is well known, machine learning involves the use of analytical models and algorithms that iteratively learn from data, thus enabling a computer to find insights in data without being explicitly programmed where to look. Machine learning can be supervised or unsupervised. Supervised machine learning involves the use of training examples that allow a machine to learn how to perform a given task. In contrast, unsupervised machine learning involves providing unlabeled data objects that the machine then processes to determine the organization of the data. One well-known type of unsupervised machine learning is clustering, which refers to the concept of assigning a set of observations into subsets called "clusters" such that the observations within a cluster have a certain degree of similarity. A common approach to clustering is k-means clustering, which is an algorithm that classifies or groups objects into k groups based on attributes or features, typically by minimizing the sum of squared distances between the centroids of the data and the corresponding clusters. Unsupervised machine learning using clustering provides a method for classifying data. Other clustering algorithms are well known.

[0030] Security Intelligence Platform with Incident Forensics An exemplary security intelligence platform in which the techniques of the present disclosure may be implemented is shown in FIG.

[0031] In general, the platform provides search-driven data exploration, session reconstruction, and forensics intelligence to aid in security incident investigations. In relevant part, the platform 300 includes a set of packet capture appliances 302, an incident forensics module appliance 304, a distributed database 306, and a security intelligence console 308. The packet capture and module appliances may be configured as network appliances or as virtual appliances. The packet capture appliances 302 operate to capture packets from a network (using known packet capture (pcap) application programming interfaces (APIs) or other known techniques) and provide such data (e.g., real-time log events and network flows) to the distributed database 306, where the data is stored and made available for analysis by the forensics module 304 and the security intelligence console 308. The packet capture appliance operates in a session-oriented manner, capturing all packets in a flow and indexing the metadata and payload, enabling fast, search-driven data exploration. The database 306 provides a forensic repository, a distributed, heterogeneous data set, containing information collected by the packet capture appliance. The console 308 provides a web-accessible or cloud-accessible user interface (UI) that exposes forensic dashboard tabs to facilitate incident investigation workflow by investigators. Investigators use the dashboard to select security incidents.The Incident Forensics module 304 reads all packets (including metadata, payloads, etc.) related to a selected security incident and reconstructs the session for analysis. A typical commercial product that enables this type of incident investigation workflow is IBM® Security QRadar® Incident Forensics V7.2.3 (or higher). Investigators use this platform to search across distributed heterogeneous data sets stored in a database and receive a unified search result list. Search results may be merged in a grid and they can be visualized in a "digital impression" tool to allow users to explore relationships between identities.

[0032] Typically, the appliances used in the above-mentioned systems are implemented as network-attached, non-display devices. For example, appliances built to perform traditional middleware service-oriented architecture (SOA) functions are prevalent in certain computing environments. SOA middleware appliances can assist or facilitate simplifying and securing the deployment of XML and web services while extending existing SOA infrastructures across the enterprise. The use of hardware for middleware and lightweight middleware stacks can address the performance burden experienced by traditional software solutions. Additionally, the appliance form factor provides a secure, consumable packaging for implementing middleware SOA functions. One unique advantage these types of devices provide is offloading processing from back-end systems. This type of network appliance is typically a rack-mounted device. The device includes physical security that allows the appliance to act as a secure repository for sensitive information. Typically, the appliance is manufactured and preloaded with software and then deployed within or in association with an enterprise or other network operating environment, alternatively, the box may be provided with standard or customized middleware virtual images that can be located locally and then securely deployed and managed, for example, in a private or on-premise cloud computing environment. The appliance may optionally include hardware and firmware encryption support for encrypting data on the hard disk.

[0033] This type of appliance can facilitate Security Information Event Management (SIEM). For example, the IBM® Security QRadar® SIEM mentioned above is an enterprise solution that includes a packet data capture appliance that can be configured as this type of appliance. Such a device can, for example, operate to capture real-time Layer 4 network flow data from which Layer 7 application payloads can be analyzed, for example, using deep packet inspection and other techniques. This provides situational awareness and compliance assistance using a combination of flow-based network knowledge, security event correlation and asset-based vulnerability assessment. In a basic QRadar SIEM installation, a system such as that shown in Figure 4 is configured to collect event and flow data and generate reports. Users (e.g., SOC analysts) can investigate violations and determine the root cause of network issues.

[0034] In generalization, security information and event management (SIEM) tools provide a variety of services to analyze, manage, monitor and report on IT security events and vulnerabilities. Such services typically include collection of events on monitored access and unexpected occurrences across data networks and analyzing these in a correlated context to determine their contribution to profiled higher level security events. They also include analysis of firewall configurations, network topology and connectivity visualization tools to view current and potential network traffic patterns, correlation of asset vulnerabilities with network configurations and traffic to identify valid attack vectors and high risk assets, and support for policy compliance monitoring of network traffic, topology and vulnerability exposure. Some SIEM tools have the ability to build topologies of managed network devices such as routers, firewalls and switches based on transformation analysis of device configurations processed through a common network information model. The result is a locational organization that can be used for security threat simulation, firewall filter behavior analysis and other applications. The primary device criteria, however, are entirely network and network configuration based. While there are many ways to invoke discovery capabilities for managed assets / systems, and the content within the user interface can be semi-automatically managed (i.e., approaches via the user interface that allow for semi-automated human input based placement with topology and its display and formatting to be data driven based on discovery of both initial configuration and changes / deletions in the underlying network), nothing is provided for fully automated placement analysis and recommendation generating placement analysis.

[0035] Advanced persistent threat (APT) prevention APT mitigation and prevention techniques are well known. For example, IBM® Trusteer Apex® is an automated solution that prevents exploits and malware from compromising enterprise endpoints and extracting information. This type of solution typically provides several layers of security: exploit prevention, data exfiltration prevention, and credentials protection.

[0036] FIG. 4 shows an exemplary embodiment, where the APT solution is generally designed as agent code 400 running on enterprise endpoints 402, along with a web-based console 404 that allows IT security to manage the deployment (on both managed and unmanaged endpoints) from a central control location. The agent code 400 operates by monitoring the state of the application 406 when it performs a sensitive operation, e.g., writing a file to a file system. Generally, the agent 400 verifies that the sensitive operation was performed under known legitimate conditions using a whitelist of legitimate application states. Since an exploit attempts to perform the sensitive operation under unknown (non-whitelisted) conditions, it will be stopped. This approach allows the APT agent to accurately detect and block both known and zero-day exploits without knowing anything about the threat or the exploited vulnerability. An "agent" may be any code-based module, program, process, component, thread, etc.

[0037] Figure 4 shows how an APT attack typically unfolds and when an APT solution can act to stop the intrusion. For example, here, an attacker 408 uses a spear-phishing email 410 to send an employee a weaponized document, i.e., one that contains hidden exploit code 412. When the user opens the document with a viewer such as Adobe Acrobat or Word, the exploit code executes and hooks onto an application vulnerability to silently download malware onto the employee computer 402. The employee is not aware of this download. Another option is to send the user a link 414 to a malicious site. It could be a malicious website 416 that contains the exploit code or a legitimate website that has been compromised (e.g., through a watering hole attack). If the employee clicks on the link and the browser renders the HTML content, the exploit code executes and launches onto a vulnerability in the browser (or browser plugin) to silently download malware onto the employee computer. The link may also direct the user to a phishing site (a fake web application login page) 418 to convince the user to submit their corporate credentials. After infecting the computer 402 with advanced malware or compromising the corporate credentials, the attacker 408 may establish a base within the corporate network and then proceed with the attack.

[0038] As shown, agent 400 protects enterprises from such threats at several junctions: (1) exploit prevention 420, which prevents exploit attempts from compromising user computers, (2) exfiltration prevention 422, which prevents malware from communicating with attackers and exfiltrating information if the machine is already infected with malware, and (3) credential protection 424, which prevents users from using corporate credentials on unauthorized enterprise sites (including, for example, phishing or public sites such as social networks or e-commerce). In one known approach, the agent performs these and related actions by monitoring applications and their behavior using a whitelist of legitimate application states.

[0039] As additional background, information stealing malware may be installed directly on an endpoint without requiring an exploit. To exfiltrate data, the malware typically needs to communicate with the Internet, either directly or through a compromised application process. Advanced malware uses a small number of evasion techniques to avoid detection. For example, it may compromise other legitimate application processes and communicate with the attacker over legitimate websites (such as Forums and Google Docs). The agent 400 also operates to stop the execution of untrusted code that indicates a data exfiltration state. To this end, it preferably verifies that only trusted programs are allowed to communicate with the external network using data exfiltration techniques. The agent preferably uses several techniques to identify unauthorized exfiltration states and malicious communication channels and block them. Because it monitors activity on the host itself, it has good visibility and can accurately detect and block these exfiltration states.

[0040] References herein to specific commercially available products are not intended to be limiting, and the approaches herein may be implemented using APT solutions or functionality (even if embedded in other systems).

[0041] Cognitive Cybersecurity Analytics 5 illustrates a basic operating environment including a cognitive cybersecurity intelligence center 500 and an endpoint 502. The endpoint 502 is a network device that runs system management code (software) that enables the intelligence center 500 to manage and monitor the endpoint.

[0042] An endpoint is typically a data processing system as described above in FIG. 2. Intelligence center 500 may be implemented as a security management platform as shown in FIG. 3, in conjunction with an APT solution as shown in FIG. 4, or in other management solutions. Thus, for example, known commercially available products and systems that provide endpoint management include IBM® BigFix®, which provides remote control, patch management, software distribution, operating system deployment, network access protection, and hardware and software inventory capabilities to system administrators. Such commercially available systems may be extended to include the endpoint inter-process activity extraction and pattern matching techniques of the present disclosure, or such techniques may be implemented in a dedicated product or system for this purpose.

[0043] In a typical embodiment, the endpoints are physical or virtual machines or devices running operating systems such as Windows, Mac OS X, VMware ESX, Linux, UNIX, and various mobile operating systems such as Windows Phone, Symbian, iOS, and Android. A cybersecurity intelligence center typically operates as a network-accessible security management platform that includes multiple machines and application software. Typically, the intelligence center supports cybersecurity analysis using, for example, machine learning. The intelligence center may operate in a dedicated manner to support multiple endpoints, or may operate "as-a-service" on behalf of multiple enterprises, each with its own endpoints. Typically, the endpoint machines communicate with the intelligence center in a client-server paradigm, as shown in FIG. 1 and described above. The intelligence center may be located and accessed in a cloud-based operating environment.

[0044] In this approach, events, such as inter-process events, are sent from endpoints, such as endpoint 502, to a detection server running in intelligence center 500, where such events are analyzed. Preferably, attack detection occurs at the detection server. This approach provides an efficient and systematic (as opposed to merely ad-hoc) mechanism to record endpoint activity, e.g., via inter-process events, describe malicious or suspicious behavior of interest with abstractions (network graphs), and match abstraction patterns to concrete activities (as represented in the recorded events). This matching allows the system to act on the malicious / suspicious behavior (e.g., by stopping involved processes, raising alerts, deleting ongoing network sessions, stopping ongoing disk operations, etc.) and to assist security analysts in locating the activity of interest (e.g., threat hunting) or to determine next steps to implement in a workflow to address the suspicious or malicious activity.

[0045] Automatic Semantic Modeling of System Events With this as background, the disclosed system event modeling technique and its use for behavior-based anomaly detection will now be described.

[0046] A behavior-based malware detection system 600 in which the techniques of the present disclosure are implemented with respect to a monitored computing system 601 is shown in FIG. 6. The monitored computing system 605 may be implemented as described above in relation to FIG. 2 and is assumed to include a set of (runtime) processes 603 running. System events, e.g., system calls and API calls of each process 603, are continuously monitored and recorded, e.g., in a data store 607. The particular manner in which system events are monitored, identified, and stored is not an aspect of the present disclosure. In a typical implementation, this type of system activity is logged, e.g., by an operating system or via syscall monitoring and program instrumentation. The malware detection system 600 of the present disclosure is configured to execute in any of the operating system environments described above, e.g., FIG. 3, FIG. 4, or FIG. 5. One or more components of the malware detection system 600 may be executed in a cloud-based architecture. In an alternative implementation, the malware detection system may be implemented natively in the computing system in which the system events are monitored.

[0047] As also shown in FIG. 6, an exemplary processing pipeline of the system event modeler of the present disclosure includes three illustrated modules: (1) event normalizer 602, (2) event feature extractor 604, and (3) process encoder 606. Typically, each such module is implemented as software, i.e., as a set of computer program instructions, and executed on one or more hardware processors. These modules may be integrated with one another, co-located, distributed, or otherwise implemented on one or more computing entities. One or more of these functions may be realized in the cloud.

[0048] In operation, the event normalizer 602 scans the raw system events collected in the data store 607 (e.g., a database that stores system event logs). The event normalizer 602 normalizes the event names, as its name suggests, using statistical methods, such as domain knowledge 608 and a directory hierarchy 610. This operation is advantageous because it reduces the number of unique system events to be processed by the remaining modules. In operation, the event normalizer significantly reduces the number of these singleton events, thereby providing computational and storage efficiencies. As described in more detail below, the event feature extractor 604 extracts one or more features of the system events, preferably using an event co-occurrence strategy and by performing context-based event modeling. The process encoder 606 projects the process 603 (consisting of multiple system events) into a feature vector space. The output of the system event modeler is a semantic system event model 616. As shown, the model is incorporated by a malware detector 618, which operates to provide behavior-based malware detection.

[0049] Each of the above System Event Modeler modules is described in further detail below.

[0050] As mentioned above, the basic purpose of the event normalizer process 602 is to reduce event variation. The normalizer 602 processes raw system events and reduces the data set of system events through domain knowledge 608 and statistical analysis 610. Preferably, both domain knowledge and statistical analysis are used by the module, but this is not a requirement. This behavior is seen in the following example, which utilizes a sample of system events from a Windows OS. This is merely a representative use case and is not intended to be limiting. In Windows, a file or registry may have multiple different names, and this example is a scenario in which it is useful to address event name inconsistencies by applying domain knowledge 608. In this example, it is assumed that the domain knowledge 608 provides the following detailed rules for event name normalization: (1) Identify the SID, GUID and hash and convert it to a <sid>and <md5>(2) replace full directories with their corresponding system environment variables; (3) identify universal naming conventions, e.g., renaming "\\?\C:\windows\system32\" to "C:\windows\system32"; (4) replace "HKEY_CLASSES_ROOT" with "HKEY_LOCAL_MACHINE\Software\Classes"; and (5) remove paths from URLs and keep only the fully qualified domain name (FQDN) for the remote server. In addition to applying domain knowledge 608, the event normalizer (in this example) applies one or more statistical methods 610 to reduce the variation in event names. Thus, for example, here, the event normalizer process 602 counts occurrences of the event name (i.e., file names and registry keys) as well as all ancestors in the directory hierarchy. The process then sets a threshold for minimal occurrences (or the threshold is preconfigured) and the process then replaces the singleton event with the closest parent that meets the requirement. As mentioned, these are just representative actions of the event normalizer for the use case of Windows OS system events. For example, by using domain knowledge 608, it is known that in the Windows operating system, "\\?\C:\windows\system32\" is equivalent to "C:\windows\system32\". Using a statistical approach 610, for example, the system would remove the application name from the registry "hkey_current_user\software\microsoft\windows\currentversion\run".

[0051] Generalizing, the domain knowledge and statistical methods applied by the event normalizer process are typically implementation specific, and have the overarching goal of reducing the dataset of raw system events to a manageable size for subsequent processing.

[0052] The event feature extraction module 604 extracts one or more features of system events (normalized by the event normalizer 602), preferably via event co-occurrence, where semantics are inferred from the co-occurrence of certain events during training. Thus, for example, the semantics of a configuration file can be expressed as vector("vim")-vector("vimrc")+vector("Bash")=vector("Bashrc"). As another example, the semantics of a receive-n-save procedure can be expressed as vector("nginx receiving data from an IP")-vector("nginx writing to a file")+vector("sendmail receiving data from an IP")=vector("sendmail writing to a file"). Of course, these are merely representative examples.

[0053] The feature extractor is configured to project the events into a vector space and then apply context-based event modeling. Preferably, as described, the context-based event modeling is derived from the skip-gram model in word2vec, which is based on the insight that events are related if they appear in the same sample of observations. The feature extractor preferably implements an objective probability error function, as described below.

[0054] In particular, let N samples S = {s1, s2, …, s N Assume that we have a set of system events s = {e}, e∈E, where E is the set of all system events. The cost function C is then defined as shown in Figure 7, i.e., the sum of the log-likelihood of a target system event e given its context event e'. In this formula, the probability e|e' is determined by the characteristics of the event, where f e is a characteristic of event e, and f' e Let f be the auxiliary weight of event e. The probability is then modeled as shown in Figure 8, where f e f e’ f e and f e’ The features and auxiliary weights are preferably trained using, for example, gradient descent.

[0055] As mentioned above, preferably, the event feature extractor module extracts features of system events. According to a preferred approach herein, the model is derived from the Skip-gram model first proposed by Mikolov et al. in natural language processing. As is known, natural language processing (NLP) is the syntactic analysis and semantic interpretation of text, which allows a system to learn, analyze and understand human language. Text representation plays an important role in many natural language processing (NLP) tasks such as document classification and clustering, ambiguity disambiguation, machine translation and document matching. In the Mikolov approach, distributional or contextual information along with a simple neural network model is used to obtain a vector space representation of words and phrases. One of these is word2Vec, which refers to a class of models that represent words in a large text corpus as vectors in an n-dimensional space (or n-dimensional feature space) such that similar words are close to each other. One particular model is the Skip-gram model. Skip-gram models attempt to predict the source context words (surrounding words) given a target word (center word). In this model, the context words are determined by a sliding window.

[0056] According to this disclosure, and as described below, this concept is extended to automatically extract features of system events. In particular, in the model described herein, preferably all other events in the same observation sample are considered to be the "context" of the target event. The described technique then preferably enumerates all of the potential pairs in each observation sample, thereby providing the associated "context" or semantic meaning. In the formula shown in FIG. 8, an auxiliary weight f' is used because the algorithm simulates a neural network model, and the auxiliary weight corresponds to the weight in the output layer of the neural network.

[0057] The process encoder module 606 operates to project a process consisting of multiple system events into a feature vector space. To this end, the process encoder module 606 defines one or more semantic prototypes as representative events that cover all other events within a distance threshold dt in the feature space. Typically, there are several solutions to discover semantic prototypes. The first solution is denoted as Semantic Prototype Extractor 612 and proceeds as follows: During each iteration, the encoder selects one event e as a prototype. p randomly picks up events e', and removes all events e' where the distance between e and e' is less than dt. If any events remain, the routine returns, picks up another prototype event, and the process repeats until completion. The second solution, shown as statistical features 616, instead uses hierarchical clustering to determine semantic prototypes, and the clustering algorithm is stopped when the distance between clusters is greater than dt. The former approach efficiently identifies prototypes that preserve the spatial structure of the feature space, while the latter approach focuses on finding optimal and accurate semantic prototypes. By identifying semantic prototypes, the process encoder 606 removes redundant events, but still maintains the spatial relationships of the event feature space.

[0058] After removing redundant events, the process encoder then determines features of the observable samples, preferably by measuring the similarity between the semantic prototypes and the system events of the process. Formally, let E be a set of M semantic prototypes, p ={e1,e2,…e M }There are l target samples, e s ={e'1,e'2,e' L }. Let Sim(e,e') be the cosine similarity between events e and e'. Then, as shown in FIG. 9, we define the sample features f f The i-th element of is calculated. Preferably, the process encoder estimates the statistical metric using coarse-grained features f c In addition, the process encoder calculates the percentage of rare events not present in the training set along with the percentage of events for each behavior. These features are useful for catching programs with unknown behavior. To complete the process, the program features are divided into fine-grained features f f and the coarse-grained feature f c It is calculated as the concatenation of both.

[0059] 6, the automatic generation of a semantic model 616 of system events is performed synchronously or asynchronously, on-demand or in response to an occurrence, and the semantic model is typically updated periodically, continuously, or at a given occurrence. As described above, the semantic model 616 of system events is then used in a behavior-based malware detector 618 to provide go-forward malware detection for the computing system.

[0060] Semantic models of system events may be used to facilitate malware detection for computing systems other than the computing systems where those system events were recorded and used to facilitate the model construction.

[0061] The disclosed system event modeling technique, which automatically extracts features of system events, has important advantages. First, it captures the semantic relationships between and among these events. Training is automatic and requires little domain knowledge. In particular, as described above, semantic relationships among the embedded event(s) are learned automatically, although to make learning more effective, it is preferable that there is a pre-processing step (i.e., an event normalizer) before the raw data is fed into the model training phase. The only domain knowledge required is that required to realize the normalization function.

[0062] In addition, the training algorithm is computationally efficient, especially in the context of large data sets (big data), which makes it suitable for processing even huge and sparse data sets. As mentioned above, the disclosed technique exploits the idea that event features should be close in vector space if they frequently appear in the same observable samples. If two events are likely to occur in the same scenario (e.g., checking network connectivity, stopping antivirus services, etc.), they are close in feature space. As mentioned, the model can reconstruct the probability of co-occurrence between or among system events, where the probability is determined by the features of the system events. Due to this assumption, the features capture the semantic relationships among system events and group events that are likely to appear in the same scenario. An alternative approach to finding semantic relationships, principal component analysis (PCA), does not meet these requirements due to computational complexity and human intuition. PCA is computationally expensive, especially when both the number of observations and feature dimensions are large. Now, if we consider system events as binary features, the feature vector is rather sparse, and therefore PCA does not have a good performance. Moreover, the results from PCA are not intuitive to human analysts. The new feature vector after dimensionality reduction is a linear combination of the original features, which lacks semantic meaning and is not easily interpretable by humans.

[0063] Techniques for system event modeling are implemented to automatically extract one or more features that are used to classify and detect malware. As described above, the approach herein involves building a semantic model, which is a type of information model that supports modeling of entities, in this case system events, and their relationships. The described model captures semantic relationships among events. Furthermore, training of the model is automatic and requires little domain knowledge, making the approach (preferably including pre-processing before training) efficient.

[0064] As also mentioned, the techniques herein preferably apply a methodology similar to the Skip-gram model in word2Vec in natural language processing, where context words are determined by a sliding window. The event modeler here deals with events rather than words. In the models described herein, all other events in the same observable sample are considered to be the context of the target event. The described techniques then preferably enumerate all of the potential pairs in each observed sample. This approach theoretically increases the training set, but the sparsity of the events ensures that the number of actual pair enumerations does not impact computational efficiency.

[0065] As mentioned, a key assumption of the described technique is that event features should be close in vector space if they frequently appear in the same sample. Once trained as above, the model has the ability to reconstruct the co-occurrence probability between or among system events, where the probability is determined by the features of the system events. Due to this assumption, the features capture the semantic relationship(s) among system events and group events that are likely to appear in the same scenario.

[0066] As also noted, the present technique preferably utilizes a concept from neural networks known as a Skip-gram, where other events in the same sample are considered to be the context of the target event. To build the model, all of the potential pairs in each observed sample are enumerated. In the model, given a set of system events and a sample containing a target system event, the other events in the sample are considered to be the "context" of the target event, and all potential system event pairs are enumerated.

[0067] Also, as described, before training the model, preferably both domain knowledge and statistically based techniques are applied to reduce the number of singleton events.

[0068] The techniques herein enable machines to automatically understand machine events in a semantic context. This approach preferably utilizes high-dimensional vector processing, which is more comprehensive and efficiently processes large numbers of events, even in sparse datasets.

[0069] The approaches herein are designed to be automatically implemented within or in conjunction with a security system, such as the SEIM device or system of FIG. 3, an APT platform as shown in FIG. 4, a cloud-based cybersecurity analysis system in FIG. 5, or other execution environment in which system events are captured and available for mining and testing. The system event modeler described above (or any component thereof) may reside on any of these devices, systems, or platforms. The particular operating platform or computing environment on which the event modeler techniques are implemented is not, however, a limitation. The machine learning itself may be provided "as-a-service" using a machine learning platform or service.

[0070] Alternatively, the functionality described above may be implemented in a stand-alone approach, e.g., as software-based functions executed by a processor, or may be made available as a managed service (including as a web service via a SOAP / XML interface). Details of specific hardware and software implementations described herein are for illustrative purposes only and are not meant to limit the scope of the described subject matter.

[0071] More generally, within the context of the disclosed subject matter, computing devices are data processing systems each including hardware and software (as shown in FIG. 2), and these entities communicate with each other over a network, such as the Internet, an intranet, an extranet, a private network, or any other communications medium or link. Applications on the data processing systems provide native support for Web and other known services and protocols, including, among others, but not limited to, support for HTTP, FTP, SMTP, SOAP, XML, WSDL, UDDI, and WSFL. Information regarding SOAP, WSDL, UDDI, and WSFL is available from the World Wide Web Consortium (W3C), which is responsible for developing and maintaining these standards, and further information regarding HTTP, FTP, SMTP, and XML is available from the Internet Engineering Task Force (IETF). Familiarity with these known standards and protocols is assumed.

[0072] The schemes described herein may be implemented in or in combination with a variety of server-side architectures, including simple N-tier architectures, web portals, federated systems, etc. The techniques herein may also be practiced in loosely coupled server (including "cloud-based") environments.

[0073] Or more generally, the subject matter described herein may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment including both hardware and software elements. In a preferred embodiment, the functionality is implemented in software, including but not limited to firmware, resident software, microcode, and the like. Furthermore, as discussed above, the identity context based access control functionality may take the form of a computer program product accessible from a computer usable or computer readable medium providing program code for use by or in connection with a computer or any other instruction execution system. For purposes of this description, a computer usable or computer readable medium may be any apparatus that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The medium may be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device). Examples of computer readable media include semiconductor or solid state memory, magnetic tape, removable computer diskettes, random access memory (RAM), read only memory (ROM), rigid magnetic disks, and optical disks. Current examples of optical disks include Compact Disk-Read-Only Memory (CD-ROM), Compact Disk-Read / Write (CD-R / W), and DVD. A computer-readable medium is a tangible product.

[0074] The computer program product may be a product having program instructions (or program code) for performing one or more of the described functions. These instructions or code may be stored in a computer readable storage medium in a data processing system after being downloaded over a network from a remote data processing system. Alternatively, these instructions or code may be stored in a computer readable storage medium in a server data processing system and adapted to be downloaded over a network to a remote data processing system for use in the computer readable storage medium in the remote system.

[0075] In an exemplary embodiment, the machine learning based techniques are implemented in software executed by a special purpose computer, preferably one or more processors. The software may be maintained in one or more data stores or memories associated with the one or more processors, and the software may be implemented as one or more computer programs. This special purpose hardware and software collectively provide the functionality described above.

[0076] While the above describes a particular order of operations performed by certain embodiments of the present invention, it should be understood that alternative embodiments may perform operations in a different order, combine certain operations, overlap certain operations, etc. Reference to a given embodiment herein indicates that the described embodiment may include a particular feature, structure, or characteristic, but not all embodiments will include the particular feature, structure, or characteristic.

[0077] Finally, although certain components of the system have been described separately, those skilled in the art will appreciate that certain functionality may be combined or shared within a given instruction, program sequence, code portion, etc.

[0078] The technology herein provides improvements to other technologies or technology fields: malware detectors, endpoint management systems, APT solutions, security incident and event management (SIEM), and cybersecurity analytics solutions, among others.

[0079] The system event modeler techniques herein may be used to discover and act on activities other than the enterprise's endpoint machines. Additionally, as will be appreciated by those skilled in the art, the semantic models described herein direct events into a vector space at run time while maintaining all of the semantic relationships between them. This provides the important advantage of not requiring a human to explicitly specify any semantic relationships, thereby reducing dependency on domain knowledge. The approach herein is generally applicable to aid system administrators, security analysts, software developers, and others in better understanding the behavior of software of interest. Thus, for example, software developers (after providing the analyst with the model results) may use the approach herein to discover bugs or undefined functionality in the software. System administrators may use the approach to uncover behavior that is inconsistent with a particular policy or defined use. Security analysts may use the approach to detect malware, attacks, advanced persistent threats (APTs), and the like. In summary, the models and methodologies described provide a core encoding / embedding functionality that can be used in multiple applications and use cases.

[0080] Sponsored Research Statement This invention was made with Government support under Contract FA8650-15-C-7561 awarded by the Defense Advanced Research Projects Agency (DARPA). The United States Government has certain rights in this invention. < / sid>

Claims

1. 1. A method for detecting anomalous behavior in an execution environment, comprising: receiving a set of captured system events from a monitored computing system; training a model for automatically extracting one or more features for the received set of system events, the system event features representing semantic relationships between or within groups of system events that are observed to co-occur in a sample of observations; detecting anomalous behavior using the model; and training the model includes utilizing semantic analysis to determine co-occurrences for the target system event in the observation sample by defining remaining system events other than a target system event among a plurality of system events included in the observation sample as a context of the target system event.

2. normalizing the received set of system events to a reduced set of system events prior to the training step. The method of claim 1 further comprising:

3. The method of claim 2 , wherein the normalizing step comprises one of applying domain knowledge and applying one or more statistical methods.

4. A method according to any one of claims 1 to 3, wherein the remaining system events include all system events of the plurality of system events other than the target system event, and wherein using the semantic analysis includes a pair-wise enumeration of the target system event with respect to each of all other system events in the observation sample representing the context.

5. 5. The method of claim 1, wherein the characteristics of the system events are determined by measuring the similarity of the set of system events to one or more semantic prototypes defined as representative events for the observation sample.

6. 6. The method of claim 5, wherein the semantic prototypes are associated with a vector space, and features of the system events are observed by the model to co-occur in the observed samples due to the proximity of system events in the vector space.

7. The method of any one of claims 1 to 6, wherein the observation samples are associated with operational scenarios in the execution environment.

8. A system comprising means adapted to carry out each step of the method according to any one of claims 1 to 7.

9. A computer program comprising instructions for carrying out each step of the method according to any one of claims 1 to 7, said computer program being executed on a computer system.

Citation Information

Patent Citations

  • Generation method and device for characteristic vectors of dynamic behaviors of application program

    CN104392174A

  • Task processing method and device based on semantic representation model

    CN110427627A

  • Software operation monitoring device and software operation monitoring method

    JP2006053788A

  • Methods and systems for real-time whitelisting behavior-specific activation

    JP2018522321A

  • Method for calculating entity similarities

    US20110258193A1