Training Graph Neural Networks (GNNs) Using Meta-Path Neighborhood Sampling and Contrastive Learning
The unsupervised learning of GNNs using contrastive representation and metapath sampling addresses the challenge of heterogeneous graph representation, enabling accurate anomaly detection in complex network activities by comparing vector embeddings of temporal and attack patterns.
Patent Information
- Application Number
- JP2024517447
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-09-20
- Filing Date
- 2022-07-25
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-07-25
AI Technical Summary
Existing graph neural networks (GNNs) struggle to effectively learn latent representations of heterogeneous graphs in unsupervised learning settings due to the dissimilarity of adjacent nodes, making it difficult to detect anomalous behavior in complex, real-world network activities.
An unsupervised learning approach using contrastive representation learning and metapath neighborhood sampling is employed to train GNNs, facilitating similar representations between metapath neighborhoods and dissimilar representations between non-metapath neighborhoods in heterogeneous graphs, enabling efficient anomaly detection.
This method allows for effective detection of anomalous behavior in computing systems by comparing vector representations of temporal graphs with attack patterns, enhancing the accuracy and efficiency of cyber threat hunting without relying on labeled data.
Smart Images

Figure 2024534507000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates generally to computer network and system security, and more particularly to techniques for characterizing and determining user behavior. [Background technology]
[0002] Cyber threat hunting is an active defense technique that monitors system / network activity and determines whether the current activity is malicious or benign. These techniques typically use graph-based automation. In such an automated approach, threat discovery is transformed into a graph computation problem. In detail, security logs, traces, and alerts are viewed as an ever-growing graph (or a set of such graphs). The graph records the history of the monitored system, including benign and malicious activities, as interconnected entities and events. Threat discovery then becomes a graph computation problem of identifying subgraphs within it that represent threats or attacks.
[0003] In reality, one of the main challenges in cyber threat hunting is how to efficiently compare a large number of graphs (i.e., system / network activities) with some predefined graph patterns (i.e., malicious activity patterns). In recent years, several deep learning techniques using graph neural networks (GNNs) have been developed and applied to this problem. Such works include Deepwalk, which uses language modeling methods to learn latent representations for each graph node by considering a random walk of the graph as a sentence; GraphSage, which learns node embeddings in a constructive learning manner through aggregating features from a set of sample neighboring nodes; and Heterogeneous Graph Attention Network (HAN), which uses meta-path-level hierarchical attention to learn node embeddings in a supervised learning setting. However, Deepwalk and GraphSage only work on homogeneous graphs where adjacent nodes are similar. Although HAN works on heterogeneous graphs, this approach can only be applied in a supervised learning setting.
[0004] In many real-world applications, graphs generated from streams of data contain numerous types of nodes and edges, have complex structures, and often lack high-level semantics. Moreover, adjacent nodes in heterogeneous graphs are dissimilar. Therefore, it is very challenging for graph neural networks (GNNs) to learn latent representations of such heterogeneous graphs in an unsupervised learning setting.
[0005] The techniques herein address this problem. Summary of the Invention
[0006] The techniques herein provide an unsupervised learning approach for heterogeneous graphs that uses contrastive representation learning. The approach herein promotes similar representations between "meta-path" neighbors and dissimilar representations between non-meta-path representations, where a meta-path is a sequence of edges connecting a source node type to a target node type in a heterogeneous graph.
[0007] According to this approach, a method for detecting anomalous behavior in a computing system begins by training a graph neural network (GNN) in an unsupervised manner by applying contrastive representation learning to a set of positive samples and a set of negative samples derived from one or more heterogeneous graphs using meta-path sampling. Following training, a time graph derived from events generated by the system is received. The GNN is used to embed the time graph into a vector representation in a vector space. The trained GNN is also used to embed a set of attack pattern graphs into corresponding vector representations in the vector space. For anomaly detection, the representation corresponding to the time graph is compared to the representation corresponding to the attack pattern graph. In one embodiment, the comparison is implemented using a fuzzy pattern matching algorithm. If a fuzzy match is found, an indication is output that the time graph is associated with anomalous behavior (e.g., a potential attack) in the computing system. One or more mitigation or other remedial actions may then be taken. In a preferred embodiment, a set of subgraphs is derived from the time graph, and each subgraph is embedded into a vector representation by the GNN. Fuzzy matching is then performed on the vector representation by comparing the subgraph with the pattern graph.
[0008] The above has outlined some of the more relevant features of the present subject matter. These features should be construed as merely exemplary. Many other beneficial results can be attained by applying the disclosed subject matter in a different manner or by modifying the subject matter as will be described below.
[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] FIG. 1 illustrates an exemplary block diagram of a distributed data processing environment in which exemplary aspects of the illustrative embodiments may be implemented. [Diagram 2] 1 illustrates an exemplary block diagram of a data processing system in which exemplary aspects of the illustrative embodiments may be implemented; [Diagram 3] FIG. 1 is a diagram of a security intelligence platform in which the techniques of the present disclosure may be implemented. [Figure 4] FIG. 1 is a diagram of an Advanced Persistent Threat (APT) platform in which the techniques of the present disclosure may be implemented. [Diagram 5] FIG. 1 is a diagram of 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] FIG. 1 illustrates a representative malicious behavior graph abstraction and several inter-process activity graphs that are matched with the graph abstraction. [Figure 7] FIG. 1 illustrates a representative inter-process graph constructed by monitoring activity between entities at an endpoint and how various matching techniques are performed on that graph by an endpoint protection system in accordance with the technology herein. [Figure 8] FIG. 1 is a diagram of one implementation of an endpoint inter-process activity extraction and pattern matching system. [Figure 9] Representative activity graphs for host level activity. [Figure 10] Representative activity graphs for a set of network-level activities. [Figure 11] FIGURE 1 shows a representative activity graph for a set of process-level activities. [Figure 12] FIG. 1 illustrates an automated method according to the present disclosure that operates to identify intent of an associated behavior in response to reporting an alert. [Figure 13] FIG. 13 is a diagram of an example of a meta-path neighborhood graph construction according to the present disclosure. [Figure 14] Fig. 1 illustrates training a graph neural network (GNN) to embed subgraphs derived from a heterogeneous graph to generate vector representations. [Figure 15] FIG. 1 illustrates a cyber hunting technique of the present disclosure in which multiple subgraphs are processed by a trained GNN into vector representations that facilitate fuzzy matching against vector representations of a set of attack patterns. [Figure 16] FIG. 13 is a diagram of a dynamic growth time graph. [Figure 17] FIG. 17 graphically illustrates a process for extracting information from a subgraph of the time graph shown in FIG. 16 using moving convolution filters. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] As described below, the techniques herein employ machine learning to derive semantic models of system events that are used to provide behavior-based malware detection. Typically, machine learning algorithms and associated mechanisms are implemented as software, e.g., one or more computer programs, that execute on one or more computing machines. By way of background, the following describes representative computing machines and systems that may be utilized to perform the learning process and use the derived system event models. Several execution environments (FIGS. 3-5) are also described.
[0012]
[0023] Referring now to the drawings, and in particular to Figures 1-2, exemplary diagrams of data processing environments are provided in which exemplary embodiments of the present disclosure may be implemented. It should be appreciated that Figures 1-2 are merely exemplary 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 scope of the present invention.
[0013] Referring now to the drawings, Figure 1 illustrates 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 wires, wireless communications links, or fiber optic cables.
[0014] In the illustrated example, 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, etc. In the illustrated example, server 104 provides data, such as boot files, operating system images, and applications, to clients 110, 112, and 114. Clients 110, 112, and 114 are clients to server 104 in the illustrated example. Distributed data processing system 100 may include additional servers, clients, and other devices not shown.
[0015] In the depicted example, distributed data processing system 100 is the Internet, where network 102 represents a worldwide collection of networks and gateways that communicate with one another using the Transmission Control Protocol / Internet Protocol (TCP / IP) suite of protocols. At the core of the Internet is a backbone of high-speed data communication lines between major nodes or host computers, consisting of thousands of commercial, government, educational, and other computer systems that route data and messages. Of course, distributed data processing system 100 may be implemented to include a number of different types of networks, such as 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 an architectural limitation for various embodiments of the disclosed subject matter, and thus the specific elements illustrated in FIG. 1 should not be considered as limiting with regard to the environments in which an exemplary embodiment of the invention may be implemented.
[0016] Referring now 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 invention may be located.
[0017] Referring now 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 server 104 or client 110 of Figure 1, in which computer usable program code or instructions implementing processes for the exemplary embodiments may be located. In this illustrative example, data processing system 200 includes a communications fabric 202, which provides communications between a processor unit 204, a memory 206, persistent storage 208, a communications unit 210, an input / output (I / O) unit 212, and a display 214.
[0018] The processor unit 204 serves to execute instructions of 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 in which a main processor resides on a single chip along with secondary processors. 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. Storage devices are hardware capable of storing information temporarily or permanently, or a combination thereof. Memory 206 in these examples may be, for example, a random access memory or any 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 of a device. 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 be removable. For example, a removable hard drive may be used as persistent storage 208.
[0020] The communications unit 210 in these examples provides for communication with other data processing systems or devices. In these examples, the communications unit 210 is a network interface card. The communications unit 210 may provide for communication through the use of 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 through a keyboard and mouse. Additionally, input / output unit 212 may send output to a printer. Display 214 provides a mechanism for displaying information to a user.
[0022] Instructions for the operating system and applications or programs are located in persistent storage 208. These instructions may be loaded into memory 206 for execution by processor unit 204. The processes of the different embodiments may be executed by processor unit 204 using computer-implemented instructions that 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 of processor unit 204. The program code in the different embodiments may be embodied in different physical or tangible computer readable media, such as memory 206 or persistent storage 208.
[0023] The program code 216 is located in the form of functions on a selectively removable computer readable medium 218 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 that 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 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 is also referred to as a computer recordable storage medium. In some examples, the computer recordable medium 218 may not be removable.
[0024] Alternatively, program code 216 may be transferred to data processing system 200 from computer readable medium 218 through a communications link to communications unit 210 or through a connection to input / output unit 212, or both. The communications link and / or connection may be physical or wireless in illustrative examples. The computer readable medium may take the form of a non-tangible medium, such as a communications link or a wireless transmission containing the program code. The various components illustrated for data processing system 200 are not intended to provide architectural limitations to the manner in which different embodiments may be implemented. Different illustrative embodiments may be implemented in a data processing system including components in addition to or in place of the components illustrated for data processing system 200. Other components illustrated in FIG. 2 may vary from the illustrative example shown. By way of example, storage in data processing system 200 is any hardware device that may store data. Memory 206, persistent storage 208, and computer readable medium 218 are examples of storage in a tangible form.
[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 various components or devices attached to the bus system. In addition, a communications unit may include one or more devices used to transmit and receive 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 program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java®™, Smalltalk®, C++, and procedural programming languages such as the “C” programming language or similar programming languages. The program code may run entirely on the user's computer, partly on the user's computer, partly on the user's computer and partly on a remote computer, or entirely on a remote computer or server, as a stand-alone software package. 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 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-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-2. Additionally, the processes of the exemplary embodiments may be applied to multiprocessor data processing systems other than the SMP systems described above without departing from the scope of the disclosed subject matter.
[0028] As will be appreciated, the techniques described herein may operate within a standard client-server framework as illustrated 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 as illustrated in FIG. 2, comprising hardware and software, 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, without limitation, 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 develops and maintains these standards, and further information about HTTP and XML is available from the Internet Engineering Task Force (IETF). Familiarity with these standards is assumed.
[0029] Computing machines such as those described above may be capable of machine learning. As is well known, machine learning involves the use of analytical models and algorithms that allow a computer to find insights in data by iteratively learning from the data without being explicitly programmed where to look. Machine learning may be supervised or unsupervised. Supervised machine learning involves the use of training examples from which the machine can learn how to do a given task. In contrast, unsupervised machine learning involves providing unlabeled data objects that the machine 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 to subsets, called "clusters", where the observations in a cluster have some 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 data and the centroids of the corresponding clusters. Unsupervised machine learning via 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 forensic intelligence to aid in the investigation of security incidents. In relevant part, the platform 300 includes a set of packet capture devices 302, an incident forensic module device 304, a distributed database 306, and a security intelligence console 308. The packet capture devices and module devices may be configured as network devices, or they may be configured as virtual devices. The packet capture devices 302 operate to capture packets from the 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 forensic module 304 and the security intelligence console 308. The packet capture devices operate in a session-oriented manner to capture all packets in a flow and index the metadata and payload to enable fast, search-driven data exploration. The database 306 provides a forensic repository; this distributed, heterogeneous data set includes information collected by packet capture devices. The console 308 provides a web or cloud accessible user interface (UI) that exposes a "Forensics" dashboard tab that facilitates incident investigation workflow by investigators. Using the dashboard, the investigator selects a security incident. The incident forensics module 304 retrieves all packets (including metadata, payload, etc.) related to the selected security incident and reconstructs the session for analysis.A representative commercial product that implements this type of incident investigation workflow is IBM® Security QRadar® Incident Forensics V7.2.3 (or later). Using this platform, investigators search across distributed and heterogeneous data sets stored in a database and receive a unified list of search results. Search results may be merged into a grid and they may be visualized with a "digital impressions" tool to allow users to explore relationships between identities.
[0032] Typically, appliances for use in the systems described above are implemented as non-display devices connected to a network. For example, appliances purpose-built to perform traditional middleware service oriented architecture (SOA) functions are prevalent in certain computing environments. SOA middleware appliances can help simplify, secure, or speed up the deployment of XML and Web services while extending existing SOA infrastructure across an enterprise. The use of hardware and lightweight middleware stacks for middleware purposes can address the performance burden experienced with traditional software solutions. Additionally, the appliance form factor provides a secure, consumable packaging for implementing middleware SOA functions. One particular 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 vault for sensitive information. Typically, the devices are manufactured, preloaded with software, and then deployed in or with respect to an enterprise or other network operating environment; alternatively, the boxes may be provisioned with standard or customized middleware virtual images that can be placed locally and then securely deployed and managed, for example, in a private or on-premise cloud computing environment. The devices may optionally include hardware and firmware cryptographic support for encrypting data on the hard disk.
[0033] This type of device can facilitate Security Information Event Management (SIEM). For example, as noted above, IBM® Security QRadar® SIEM is an enterprise solution that includes a packet data capture device that can be configured as this type of device. 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. It 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, the system, as shown in Figure 4, is configured to collect event and flow data and generate reports. Users (e.g., SOC analysts) can then investigate disruptions and determine the root cause of network problems.
[0034] In generalization, security information and event management (SIEM) tools provide a variety of services to analyze, manage, monitor, and report IT security events and vulnerabilities. Such services typically include collection of events related to monitored access and unexpected occurrences in data networks and analyzing them in a correlational context to determine their contribution to profiled higher-level security events. They may 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 active attack paths 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 general network information model. The result is a locational organization that can be used for security threat simulation, firewall filter behavior analysis, and other uses. However, the primary device criteria are entirely based on networks and network configurations. While there are several methods of initiating discovery capabilities for the assets / systems being managed, and inclusion in the user interface is managed semi-automatically (i.e., a user interface approach that allows for semi-automated human input based deployment, where the topology and its display and formatting are data-driven based on discovery of both the initial configuration and changes / removals in the underlying network), nothing is offered in terms of fully automated deployment analysis and proposal-generating deployment analysis.
[0035] Advanced Persistent Threat Prevention APT mitigation 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 credential protection.
[0036] FIG. 4 illustrates a typical embodiment, where an APT solution is generally structured 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 application states when an application 406 performs a sensitive action, such as writing a file to a file system. In general, the agent 400 uses a whitelist of legitimate application states to verify that the sensitive action is performed (or not performed) under known legitimate states. An exploit attempts to perform the sensitive action under unknown (non-whitelisted) states, and is therefore blocked. 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" can be any code-based module, program, process, component, thread, etc.
[0037] Figure 4 shows how an APT attack typically unfolds and the points at which an APT solution acts to thwart the intrusion. For example, here, an attacker 408 uses a spear phishing email 410 to send an employee a weaponized document that contains hidden exploit code 412. When the user opens the document in a viewer such as Adobe Acrobat® or Word, the exploit code executes and, by association with a vulnerability in the application, surreptitiously downloads malware to the employee computer 402. The employee never notices this download. Another option is to send the user a link 414 to a malicious site. This could be a malicious website 416 that contains the exploit code, or it could be a legitimate website that has been compromised (e.g., through a watering hole attack). When the employee clicks on the link and the browser renders the HTML content, the exploit code executes and, by association with a vulnerability in the browser (or browser plugin), surreptitiously downloads malware to the employee computer. The link may also direct the user to a phishing site (such as a fake web app login page) 418 to get the user to submit corporate credentials. By infecting the computer 402 with advanced malware or compromising corporate credentials, the attacker 408 has established a foothold within the corporate network and can then proceed with the attack.
[0038] As shown, agent 400 protects the enterprise from such attacks at several junctures: (1) exploit prevention 420, which prevents exploit attempts from compromising user computers; (2) exfiltration prevention 422, which prevents malware from communicating with and exfiltrating information to attackers if the machine is already infected with malware; and (3) credential protection 424, which prevents users from using corporate credentials on unauthorized company sites (e.g., including phishing and / or public sites such as social networks and e-commerce). In one known approach, the agent performs these and related actions by monitoring applications and their actions using a whitelist of legitimate application states.
[0039] As additional background, information stealing malware may be installed directly by a user on an endpoint without the need for an exploit. To exfiltrate data, the malware must typically communicate with the Internet, either directly or through a compromised application process. Advanced malware uses several evasion techniques to circumvent detection. For example, it may compromise another legitimate application process and communicate with the attacker through a legitimate website (such as Forums or Google® Docs). The agent 400 also operates to prevent the execution of untrusted code that exhibits data exfiltration conditions. To this end, it preferably ensures 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 conditions and malicious communication channels and block them. Because the agent monitors activity on the host itself, it has a good view and can accurately detect and block such exfiltration conditions.
[0040] References to specific commercial products herein are not intended to be limiting, as the approaches herein may be implemented in conjunction with any APT solution or functionality (even if incorporated into other systems).
[0041] Cognitive Cybersecurity Analysis 5 illustrates a basic operating environment including a cognitive cybersecurity intelligence center 500 and an endpoint 502. Endpoint 502 is a networked device that runs system management code (software) that allows 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 other management solutions. Thus, for example, known commercial 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. Commercial systems of this type may be augmented to include the endpoint inter-process activity extraction and pattern matching techniques of the present disclosure, or such techniques may be implemented within a product or system dedicated to this purpose.
[0043] In a typical implementation, 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 with multiple machines and application software. Typically, the intelligence center supports cybersecurity analysis, for example using machine learning. The intelligence center may operate in a dedicated manner to support multiple endpoints or as an "as-a-service" on behalf of multiple enterprises, each with their own endpoints. Typically, the endpoint machines communicate with the intelligence center in a client-server framework as shown in FIG. 1 and described above. The intelligence center may be located and accessed within 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 allows for an efficient and systematic (as opposed to merely ad-hoc) mechanism to record endpoint activity, for example via inter-process events, to abstractly describe malicious or suspicious behavior of interest (network graph), and to match concrete activity (represented in the recorded events) with the abstract patterns. This matching allows the system to act on the malicious / suspicious behavior (e.g., by terminating the involved process, alerting, dropping ongoing network sessions, stopping ongoing disk operations, etc.), as well as assist security analysts in finding activity of interest (e.g., threat hunting) or determining next steps that may be taken in a workflow to address the suspicious or malicious activity.
[0045] In this approach, both direct and indirect inter-process activities are typically extracted at the endpoint and compared with predefined malicious behavior patterns to be detected. Direct and indirect inter-process activities typically include control flows such as process spawns and information exchanges via channels such as files, sockets, messages, shared memory, etc. Inter-process activities reveal the purpose of processes and their specific execution paths. In this approach, they may be matched with malicious inter-process behaviors to detect attack instances. Preferably, malicious behavior patterns are predefined in abstraction to characterize the main steps in a cyber attack. These malicious behavior patterns are typically stored at the endpoint, and they can be updated as needed.
[0046] FIG. 6 illustrates how a graph can be used to facilitate behavior-based detection / inference in accordance with the above techniques. In this approach, typically an individual (e.g., software developer, security analyst, etc.) describes malicious or interesting behavior as an abstract graph pattern 600. In this injection, a DLL injection attack is modeled by a process 602 that executes an event (Type-thread creation) 604, which spawns another process 606. Generalizing, the graph pattern 600 includes nodes (processes 602 and 606 in this example) and edges (event 604 connecting the two nodes in this example). In operation, a pattern matching algorithm may return concrete activities at a host endpoint that match the pattern. The concrete activities at the endpoint are also preferably modeled by a graph to facilitate pattern matching. Two such example activity graphs 608 and 610 are shown that are consistent with the abstract graph behavior 600, derived from the inter-process activities of the endpoint. In the first example activity graph 608, process rundll.exe execution event Syscall 10 spawns process Isass.exe, and in the second example activity graph 610, process Firefox.exe execution event Syscall 11 spawns process explorer.exe. This is an example of topology matching.
[0047] FIG. 7 shows a more complex example where a graph 700 is generated as a result of inter-process activity monitoring. As shown in legend 702, the graph typically includes a set of entities: processes 704, files 706, network resources 708, and events 710. Preferably, each entity in an endpoint system is associated with a label (or "tag") that describes the category and nature of the entity, e.g., an installed Firefox® (a process entity) is a "browser", an installed Firefox® is "64-bit", etc. The label may be assigned manually, e.g., "browser", or may be automatically generated, e.g., if it is a 64-bit executable, or may be calculated via a function, e.g., if a process meets certain requirements, it is assigned the label "trusted". The label may replace the entity name to create a behavior pattern for a category of processes. The graph 700 of FIG. 7 shows and includes a set of entities, each entity typically having an associated label (tag) that is defined in an offline fashion. Inter-process activity is monitored at the endpoints, and activity between entities is recorded, e.g., via system call monitoring, kernel hooking, system monitoring services, etc. Typically, a relatively constrained set of system calls or events needs to be monitored to obtain the information needed to build the graph. One example (assuming Linux® as the operating system) are the system calls that relate one entity to another, e.g., sys_open and stub_execve. Graphs are typically constructed (and updated as needed) by connecting the entities and the activities that are monitored, an example being graph 700. Preferably, the graph is stored on disk and cached in memory.
[0048] In generalization, the activity graph represents a real-time inter-process activity extraction occurring at an endpoint. As also shown in FIG. 7, this extraction then facilitates behavior matching using one or more matching techniques (usually performed in a detection server running at an intelligence center). These matching techniques typically include one or more of topology matching 712, label matching 714, and optionally specific signature matching 716. As pointed out above, the inter-process activities depicted in the graph (and their associated labeling) reveal the purpose of one or more processes as well as their specific execution paths. Matching the generated graph with malicious inter-process behaviors (also defined in the form of a graph) enables the system to detect and respond to attack instances. As pointed out, preferably, the malicious behavior patterns are predefined with some degree of abstraction to characterize key steps in a cyber attack.
[0049] More formally, an abstract pattern graph (such as graph 600 in FIG. 6) against which monitored inter-process activity is compared may be referred to as a pattern graph (PG). A PG may contain one or more constraints, which are typically Boolean functions on the elements of the graph or on element relationships. Typically, there are two types of constraints: single-element constraints (e.g., properties / classes / concepts of vertices / edges in the pattern graph PG) and one or more element-relationship constraints (i.e., how one element is related to another, e.g., direct connection, rather than the latter, connection in "n" steps, etc.). The monitored activity of a host (endpoint) is instantiated as a graph, sometimes referred to herein as an activity graph (AG). In FIG. 6, graphs 608 and 610 represent the AG. The goal of pattern patching is then to find all subgraphs of AG that satisfy the PG.
[0050] FIG. 8 illustrates an exemplary embodiment of a detection system in which the endpoint inter-process activity extraction and pattern matching techniques described above may be implemented. As shown, some functionality is located in an intelligence center 800 (e.g., a security management platform, an APT solution, an endpoint management solution, etc.) and some functionality is located in an endpoint 802. This location of functionality is preferred but is not intended to be limiting. As noted above, the intelligence center 800 may be dedicated to a network of endpoints (e.g., located within an enterprise) or may operate as a service provider (or more generally, a "service") on behalf of multiple enterprises, each of which has its own endpoints. In a typical implementation, the cyber security intelligence center is accessible by a network and deployed within a cloud-based operating environment, but this is not a limitation. Moreover, typically, each of the functional blocks identified in FIG. 8 is implemented in software, i.e., as a set of computer program instructions executed on a processor. The functions identified in FIG. 8 are provided for illustrative purposes only, and certain of these functions may be combined or otherwise rearranged as desired.
[0051] As shown, the intelligence center 800 performs several functions: label generation 804 (step 1), and malicious behavior discovery and encoding 806 (step (4)). As shown, these activities are typically informed by and based on existing attack information available at the intelligence center, such as threat reports 808, expert knowledge 810, and information derived from threat sandboxing and evaluation 812. This set of information is typically available to or otherwise obtained by a security analyst. As described above with respect to FIG. 7, in label generation 804, each entity in an endpoint system is associated with one or more labels that describe the category and nature of that entity. The labels are applied manually, automatically, programmatically, or the like, or some combination. Label generation 804 may be performed periodically or upon predetermined occurrences. Malicious behavior discovery and encoding 806 derives malicious (or otherwise suspicious) graph patterns from existing attacks. As noted, typically these patterns are determined by human analysts, other security detection mechanisms, machine learning systems, or a combination thereof. As also shown, a set of malicious patterns (808, 810, 812) generated from a knowledge base of attack sources is stored in a database of malicious patterns 814.
[0052] Functional block 816 (step 2) represents inter-process activity extraction, which typically involves monitoring 818 (step 2.1) and labeling 820 (step 2.2). The monitoring function records activity between entities, for example, via monitoring system calls, kernel hooking, system monitoring services, etc. Thus, the monitoring function 818 may leverage existing endpoint service functions. As noted, it is not required that the monitoring 818 monitors all system calls or events, and the calls and events it monitors are configurable as needed. The labeling function of step 2.2 takes the behavioral signatures created by the labeling function (step 1) and builds abstract / labeled behavioral signatures. This abstraction is desirable because the abstract / labeled behavioral signatures represent the attack logic in a more general form, thereby covering one or more attack variants with respect to a particular attack, and also allows for efficient matching of labels or concrete vertices / edges during subsequent matching operations (described below).
[0053] Functional block 822 (step 3) provides for the construction of an activity graph. This process typically involves ingesting 824 (step 3.1), which expands the graph as new activity occurs and is monitored, and aging 826 (step 3.2), in which a vertex / edge of the graph is discarded (thinned) if it is older than a configurable threshold or its distance to the newly expanded graph is greater than a configurable threshold. This inter-process activity graph generated by activity graph construction function 822 is stored in a database 828. Typically, the inter-process activity graph evolves, preferably continuously, as the monitoring, ingest, and aging functions operate.
[0054] As also shown, the endpoint supports an attack subgraph matching function 830 (step 5). Using this function, the endpoint protection system continuously performs graph pattern matching between the evolving inter-process activity graph and malicious behavior graph patterns. These patterns are provided by the malicious pattern database 814 of the intelligence center 800 and are stored in a local malicious pattern cache 832. As explained above, the attack subgraph matching function searches for graph substructures that match the malicious behavior graph patterns stored in the local cache 832. Thus, in this approach, the endpoint detection system function compares the evolving activity graph with the malicious inter-process graph patterns. Based on this match, a mitigation and resilience function 834 (step 6) may then be invoked. The function 834 includes a reporting function 836 (step 6.1) and a reacting function 838 (step 6.2). Thus, function 834 provides post-detection actions, which typically include stopping the involved process, issuing an alert, moving the involved process to a sandbox for further evaluation, abandoning ongoing network sessions, stopping ongoing disk operations, passing the matched subgraph to a user to determine next steps, passing the matched subgraph to a security analyst for further investigation, training a machine learning classifier, etc. These are just some representative post-detection actions.
[0055] 8, the information flow among the endpoint functions is typically continuous, whereas the mitigation and resilience functions 834 typically interact with the intelligence center 800 on an on-demand basis. One or more functions at an endpoint may be performed periodically, in response to an occurrence, or on-demand.
[0056] The techniques described above enable a robust method for monitoring and protecting endpoints by recording inter-process events, creating an inter-process activity graph based on the recorded inter-process events, matching the inter-process activity (represented in the activity graph) with known malicious or suspicious behavior (embodied as a set of pattern graphs), and taking post-detection actions in response to matching the inter-process activity with the known malicious or suspicious behavior patterns. Preferably, the matching involves matching a sub-graph in the activity graph with the known malicious or suspicious behavior patterns represented in the pattern graph. During this process, preferably, both direct and indirect inter-process activity at an endpoint (or across a set of endpoints) are compared to known behavior patterns.
[0057] A pattern graph (PG) (such as graph 600 in FIG. 6) may be specified visually (i.e., by drawing a graph), although this is not a requirement. Pattern graphs (or graph patterns) may also be specified in other ways, for example by a programming language.
[0058] The following provides additional details regarding the construction of the Activity Graph (AG) described above. An Activity Graph typically represents computations on one or more computing devices (which may include endpoints) as a time graph. As such, an Activity Graph is sometimes referred to herein as a Computation Graph (CG) since it represents an abstraction of computation. The concepts of "Activity Graph" and "Connectivity Graph" are used interchangeably. As explained above, the basic elements of an AG / CG are entities (e.g., processes, files, network sockets, registry keys, GPS sensors, accelerometers, etc.) and events (e.g., file reads, process forks, etc.). An entity is any system element that can either send or receive information. An event is any information / control flow that connects two or more entities. An event is typically an information flow between a pair of entities at a particular time. Events may be captured in the form of system calls, etc. An event has a unique timestamp (when it happened) and the direction of the information flow (directional, bidirectional, non-directional). An indegree entity of an event can be one or two entities of that event based on its direction. An outdegree entity of an event can be one or two entities of that event based on its direction. A timestamp is an integer or real number that records the time of an event, and a joinpoint (or checkpoint) is a tuple of <entity, timestamp>. Thus, an AG / CG refers to a history of computations that include any entity or event related to an attack or threat. Security-related data such as alerts, IOCs, and intermediate threat analysis results are subgraphs that can be represented as labels on elements of an AG / CG, where elements are typically aliases that refer to entities or events. As a result, threat detection becomes a graph computation problem whose solution is to iteratively infer threat-inducing subgraphs in the AG / CG.
[0059] More generally, an activity graph is a labeled semi-directed time graph that objectively records both intrusive and non-intrusive computations on a computing device along with any security knowledge associated with the computations. A particular label on the graph typically represents one of several categories, such as the following labels: element attribute, element relationship, and security knowledge. An element attribute label is objective information derived from the computation record (explained above), and this type of label identifies a set of elements that have a particular attribute, e.g., event type READ. An element relationship label is objective information derived from the computation record, and this type of label represents some relationship between a set of elements, e.g., a provenance association between a READ event and a WRITE event of a process that connects multiple READ / WRITE events. This label embeds fine-grained provenance information into the PG at the inter-process level. A security knowledge label (if used) is subjective information about security and privacy goals and inference procedures, and this type of label marks a group of elements with some security knowledge. Security knowledge labels can be generated either as intermediate / final results of threat reasoning, or as anomaly scores imported from organizational policies, IOCs, or external detection systems, e.g. a set of credential files, or IP addresses marked as command or control servers.
[0060] Enterprises and organizations typically examine computations at multiple levels for threat detection. AG / CG typically describe computations at a selected monitoring level, such as network, host, or process level. Given a monitoring level, e.g., network, the internal activity of an entity, e.g., process communication within a host, is typically outside the monitoring scope and is not represented in the CG. Fine-grained computation information is typically represented in lower level CGs, e.g., host-level CGs, or embedded in the CGs as labels, e.g., provenance labels.
[0061] Figure 9 shows a representative host-level AG / CG, e.g., processes and files. The graph provides a computation history as a time grid, with horizontal lines representing entities and vertical lines representing events. In Figure 9, system activity is logged, e.g., via syscall monitoring and program instrumentation. Entities in this CG consist of subjects (e.g., processes and threads) and objects (e.g., files, pipes, and network sockets). In this example, security data is embedded in labels and lb 1 Confidentiality: f2 contains confidential information, and lb 2 :Unreliable is en p3 This means that the company has not certified the en p3 It's en f2 Data leakage occurs when a URL can be traversed from
[0062] Figure 10 shows a representative AG / CG at the network level. In this example, metadata of link layer communications of a small network are logged for threat intelligence computation. As shown, 1 The entity en σ2 ,en σ3 ,en σ4 The link lb is an origin label that relates the four events between 1 en σ3 anden σ4 It helps identify causal chains between and among hosts, avoiding unlikely paths. Attack steps such as port scans and lateral movement across hosts can be identified and inferred on this connectivity graph.
[0063] Figure 11 shows a process-level AG / CG, where activity involving a process is monitored, e.g., by dynamic program analysis. In this graph, entities are memory addresses of code and data, and events are instructions (e.g., calls) or syscalls (nmap). The infinity of Θ (the space of entities that can be monitored or tracked) supports the representation of recursive calls, e.g., an instance of foo( ) can be en foo ,en' foo , ... Software exploitation activities such as return-to-libc and return-oriented programming (ROP) can be captured and examined on this connectivity graph. These are just some representative examples.
[0064] Assuming an activity / connection graph that records an objective computational history on both intrusive and non-intrusive data, threat discovery becomes a graph query problem of iteratively computing closure over a subset of security-relevant subgraphs in the AG / CG, ultimately obtaining a subgraph that describes a threat or intrusion. Graph queries can be programmed into an IDS or behavioral anomaly detection system, or can be achieved through on-demand agile hypothesis development. Threat hunting involves creating a sequence of graph queries to iteratively and interactively conceive, verify, revise, and confirm threat hypotheses.
[0065] The process of creating graph queries and executing them in the activity / connection graph is a graph computation. During this computation, variables that refer to a subgraph are also labels for the set of entities and events in that subgraph, and the variables can be stored as labels in the AG / CG. Since the result of each iterated graph computation step is a subgraph or label, each step can be implemented natively in a graph computation language or as a black box in an external module that outputs a set of events and entities as a subgraph. Thus, threat intelligence is generated in graph queries when a threat is discovered. Queries, especially graph patterns, can be executed to describe a threat and search for that particular threat in other activity / connection graphs.
[0066] Graph pattern matching is at the core of graph queries. Generalizing, a graph pattern is essentially a set of constraints that describe the subgraph to be matched, where the constraints on graph elements describe (1) a single graph element (e.g., the labels / properties of an entity), or (2) element relationships (e.g., an entity is connected to an event). Pattern creation allows human domain knowledge to be embedded in the reasoning procedure. Simple examples of patterns that can be expressed by most graph languages include typical DLL injection behavior (e.g., two entities with PROCESS label are connected by an event with label CREATE_THREAD), untrusted execution behavior (e.g., an entity with FILE label but no TRUSTED_EXE label connects to an event labeled EXECUTE, which then connects to an entity labeled PROCESS), and data leakage behavior (e.g., an entity labeled SENSITIVE connects to an entity labeled NETFLOW within a given number of hops). These are representative, but non-limiting, examples.
[0067] In summary, the approach described above transforms threat discovery into a graph computation problem, where security logs, traces, and alerts are stored in a time graph or computation graph (CG). The CG records the history of the monitored system, including benign and malicious activities, as interconnected entities and events. Threat discovery then becomes a graph computation problem of identifying a subgraph of the CG that represents a threat or attack, preferably with the help of alerts and security domain knowledge stored as element labels.
[0068] Automatically Understanding User Behavior Using Intent Learning By way of further background, it is also known to provide machine learning-based methods that aim to automatically identify the intent of a behavior when an alert is reported. The nature and operation of an alerting system is not necessarily a component of this approach, but this approach may be implemented natively in such systems.
[0069] The technique starts with a labeled semi-directed time (event) graph, typically derived from events generated by the system or host as described above, which objectively records both intrusive and non-intrusive computations on a computing device. This type of time graph provides useful insights for threat detection, but it describes only raw process activity that necessarily lacks semantics (context). The time (event) graph may be further mined to reveal this semantic knowledge (intent). To this end, a set of one or more process-centric subgraphs is derived from the time graph, where each process-centric subgraph consists of all events related to a given process represented by that subgraph. The subgraphs are then processed to identify one or more atomic operations shared by all processes, where an atomic operation comprises a set of events generated by the system that provides the objective context of interest. An atomic operation is typically a small set of common actions used by two or more processors. An atomic operation may describe a sequence of events generated by the system, but this is not a requirement. An atomic operation can be described as a graph, as part of a larger semi-directed time graph that records all computations. An example atomic operation is a user visiting a website, where this behavior includes a set of common actions shared by different browsers (different processes using the same set of common actions), namely: (i) a DNS lookup, (ii) a TCP connection to the website's IP address, (iii) an HTTP(S) session established with the site, (iv) the main HTML fetch, (v) additional data fetches (images, CSS, JS, etc.), (vii) additional data fetches from related websites (at different IP addresses), etc.As another example, the atomic actions of a simple file save operation (e.g., in Microsoft(R) Word) consist of many events or system calls: (i) opening the file, (ii) writing the file (which are multiple events but have the same type because each write syscall writes only a limited amount of data to disk), and (iii) closing the file. Of course, these are just a few examples of atomic actions.
[0070] After mining for atomic operations, the time graph is then reconstructed, preferably by substituting the identified atomic operations derived from the process-centric subgraph for edges in the original subgraph, thereby generating a reconstructed time (event) graph. Using graph embedding, the reconstructed graph data is then converted into a vector-based representation suitable for further machine learning. Graph embedding functions (converting a graph into a vector representation) are known. Machine learning may then be implemented using deep neural networks (DNNs). By training the DNN, the system then learns the intent underlying the time (event) graph, thereby modeling the intent of the computer system processes themselves. This approach works to understand the execution behavior of programs (and especially the underlying processes) and classify them, thereby enabling the detection of potentially malicious behavior.
[0071] The approach described above extracts a set of desired atomic actions (a set of events generated by the system) from the time graph, embeds those actions in the time graph, and then uses the resulting reconstructed representation of the time graph to train a machine learning model to label the intent of the time graph.
[0072] Figure 12 illustrates the basic operation of the technique described above. In one embodiment, the technique is implemented as software running in an intelligence center such as that shown in Figure 8, typically in a suitable physical or virtual machine. As noted above, the technique may be associated with some other security system or device, such as an alert system, although this is not a requirement. The technique may also be implemented in a computer system that acts as a front end to another security device or system.
[0073] In step 1200, the system receives as input event records generated by one or more systems, e.g., from a system log. In step 1202, a semi-directional time (event) graph is constructed based on timestamps, process identifiers (ids), object (files, sockets, sources, sinks) ids, and system calls between processes (threads) and objects. Thus, this graph can represent any coexisting systems, devices, programs, processes, etc., in or associated with the computer system or network of interest. A time graph typically includes a set of nodes, a set of directed edges ordered by their respective timestamps, a set of labels assigned to the nodes, and a set of timestamps that are integer values on the edges. In step 1204, for each given process represented in the time graph, a process-centric subgraph is constructed. The process-centric subgraph typically includes events related to the given process. It is not required that all events related to the given process be used. This step is performed to find common patterns and extract atomic behaviors. In step 1206, one or more sets of events (between any two and / or more processes and objects) are extracted from each process-centric subgraph. As pointed out in several examples above, typically, an atomic operation is some small set of common actions used by two or more processes. Based on these sequences, one or more statistical methods are then applied to find a set of atomic operations that are shared by all (or a given subset) of the processes and represent the sequences. Exemplary statistical methods include, without limitation, frequency analysis and co-occurrence analysis. In step 1208, the system reconstructs the semi-directed time graph constructed in step 1202, preferably leaving the nodes unchanged but replacing edges or other entities from that graph with atomic operations. This operation is sometimes referred to herein as "modifying" the original time graph.In step 1210, a graph embedding operation is then performed to project the modified time graph (derived in step 1210) into one or more vectors, which may be referred to herein as a vector representation. In step 1212, machine learning is then applied to the vector representation. In an exemplary embodiment, a deep neural network (DNN) is applied to learn the intent from the labeled data using the vectors generated in step 1210 as input.
[0074] As explained, the technique shown in FIG. 12 and described above extracts intended atomic operations, which typically consist of a set of system events common to a process. The intended atomic operations provide the basic semantics, and then statistical learning is performed on a training data set, which is typically quite large since it contains system events associated with programs and processes that are used quite frequently within the enterprise. Time graph embedding and intent learning is facilitated by reconstructing the time graph using the atomic operations (step 1208) and projecting the modified time graph into a vector representation using graph embedding (step 1210).
[0075] The approach described above allows for the hierarchical construction of common patterns that represent behavior. In particular, during the process described in FIG. 12, multiple atomic operations can be merged into a common pattern, which may then appear repeatedly in the underlying time graph. A graph embedding is then typically performed on this common pattern, thereby embedding low / high level behaviors (atomic operations or larger common patterns) into vectors. The vectors are then provided to supervised machine learning, for example for intrusion detection (or other security-related) purposes.
[0076] Training Graph Neural Networks (GNNs) on Heterogeneous Graphs Using Meta-Path Neighborhoods While the techniques described above offer advantages, they typically involve supervised learning, where the graph is homogenous and the graph is labeled. However, for tasks where labels are not available for a large number of data samples (such as cyber threat hunting), unsupervised training of neural networks is desirable. The techniques of this disclosure address this problem, and will now be described.
[0077] According to the present disclosure, unsupervised learning is provided to enable a Graph Neural Network (GNN) to efficiently learn a mathematical representation of a heterogeneous graph without labels. A Graph Neural Network (GNN) is a class of neural networks for processing data represented by a graph data structure. In the approach herein, a GNN is trained on a heterogeneous graph in an unsupervised manner using contrastive learning. Such learning is designed to learn an embedding space (usually a vector space) in which similar sample pairs remain close to each other (with respect to embedding distance) and dissimilar sample pairs are far apart. Samples that are close to each other are referred to herein as positive samples, and samples that are far apart are referred to herein as negative samples. According to the present disclosure, and with respect to a heterogeneous graph (or subgraph), a set of positive samples and a set of negative samples are generated for each node using a specific type of sampling referred to herein as "meta-path neighborhood" sampling. The meta-path neighborhood is a specific graph configuration defined as follows: In particular, a meta-path is a pattern of paths (i.e., a sequence of edges) that connect specified source and target node types. When a source node type is the same as a target node type, the source and target nodes are said to be meta-path neighbors. As shown in the example graph 1300 of FIG. 13, several nodes (h 0 , h 2 , and h 4) are of the same node type (represented by a circle). Thus, a meta-path is defined here as a path from a circle node type to a circle node type. In this example, there are two meta-paths, the first one corresponding to edges 1302 and 1304, and the second one corresponding to edges 1302 and 1306. In other words, the nodes h 0 For, its meta-path neighborhood is node h 2 and h 4 As can be seen, meta-path neighbors are not necessarily directly connected.
[0078] In our unsupervised learning approach, meta-path sampling provides a set of positive and negative samples. An objective function is then calculated that minimizes the embedding distance between positive samples and maximizes the embedding distance between negative samples. As we will explain later, this learning approach then promotes similar representations (e.g., in vector space) between meta-path neighbors and dissimilar representations between non-meta-path representations.
[0079] The objective function is a contrastive learning loss function calculated on the graph as follows: Given a node, a set of positive samples that are expected to have similar embeddings to the specified node and a set of negative samples that are expected to have dissimilar embeddings are generated. This operation is sometimes referred to herein as positive / negative sampling. To generate positive samples, the graph is traversed (e.g., using a breadth-first-search (BFS) algorithm) from the specified node until another node with the same node type is reached. The BFS search guarantees a minimum distance between the positive samples and the specified node, since nodes with closer distances have more similar embeddings. To generate negative samples, a node with a different node type than the specified node is randomly selected. Across different epochs, the negative samples can be different nodes, which avoids overfitting to a single negative sample.
[0080] The control learning loss computation then proceeds as follows: Given a graph, for each edge (tuple (src node , dst node ) and then define the set of source nodes of the meta path as src node and set the set of target nodes of the meta path to nodes of type src node On the other hand, if the first edge of the meta path is the same as the selected edge (src node ,dst node ). By looping the learning loss algorithm edge-by-edge instead of node-by-node, the local structure of the nodes in the graph is fully explored since a node can have multiple neighbors and the meta-path neighborhood can be found through each neighbor. The meta-path neighborhood based on positive / negative sampling and then the contrastive learning loss of the graph is defined as: L=-log(S pos )-log(1-S neg ). This contrastive learning loss minimizes the representative distance between a specified node and positive samples while maximizing the representative distance between a specified node and negative samples. In other words, contrastive representation learning for meta-path neighborhoods results in similar representations for positive samples (meta-path neighborhoods) and contrastive representations for negative samples (non-meta-path neighborhoods). The loss function described above, while preferred, is not intended to be limiting, as the objective function may include one or more other parameters and weightings.
[0081] As noted above, graph embedding is used to convert the graph into a vector-based representation. Non-vector-based representations may also be used. Figure 14 illustrates this process. In particular, a graph 1400 is applied as input to a GNN 1402, trained using contrastive learning loss on meta-path neighborhoods as described above. The graph embedding function converts the graph 1400 into a vector representation 1404. A similar graph embedding is performed for a set of attack pattern graphs, each of which represents one attack pattern. Thus, for a set of attack pattern graphs, there is a set of vector representations (in vector space) generated by the GNN. Armed with these vector representations, cyber threat hunting is then performed on a particular heterogeneous graph using fuzzy pattern matching of the vector representations. Figure 15 illustrates this operation. In particular, a GNN 1500 is trained as described above. Using graph embedding, one or more attack pattern graphs (one of which is shown in 1502) are applied as input to the GNN 1500 to generate one or more corresponding vector representations (one of which is shown in 1504). The graph embedding into the attack pattern graphs can be done in advance. The heterogeneous graph pattern of interest (to be evaluated) is decomposed into a set of subgraphs 1506a-c. Each subgraph 1506 is embedded by the GNN 1500 into its own corresponding vector representation 1508a-c. A fuzzy pattern match 1510 is then performed between each attack pattern vector representation, such as vector representation 1502, and the vector representation corresponding to each of the subgraphs. As shown, a fuzzy pattern match is shown for vectors {1703} and {1702}, showing that subgraph 1 1506a is a candidate match with the attack pattern 1502 shown. Other pattern matching techniques may be used if representations other than vector-based are output from the GNN embedding.
[0082] Subgraphs may be generated from an incoming time graph in various ways. Recall that the time graphs herein, e.g., AG / CG, are dynamically growing time graphs where new portions of the graph are added over time. FIG. 16 is an example diagram illustrating such a dynamically growing time graph, where again the horizontal lines represent entities in the AG / CG and the vertical arrows or edges represent events. As shown in FIG. 16, during a first time point t0, the time graph, e.g., AG / CG, is as shown in element 1610. At a later time t1, the time graph becomes as shown in element 1620, where there are additional nodes and events 1621-1625 due to additional activities between the entities that occurred between time t0 and time t1. The same is true for further time points t2 and t3, as shown in elements 1630 and 1640 of FIG. 16. At each time point, the portion of the time graph indicated by the dotted box represents a new portion of the time graph, and this new portion will be processed to determine whether it, alone or in combination with a previously processed graph portion, constitutes a subgraph matching a pattern graph indicative of an intrusion, attack, or threat.
[0083] FIG. 17 illustrates one way of generating a subgraph from a time graph. In this embodiment, which is not intended to be limiting, a sliding window advances along the time axis of the time graph, outputting the portion of the time graph within the window as the subgraph. In particular, FIG. 17 is an example diagram that diagrammatically illustrates a process of extracting information from a subgraph of a time graph, e.g., AG / CG, using a moving convolution filter. The process illustrated in FIG. 17 may be performed at predetermined time points, e.g., t0, t1, t2, etc., to evaluate the nodes and events that have occurred since the previous time point at which the process was performed, and generate vector representations of the nodes and events that have occurred between the time points, e.g., during the period represented as the dotted box in FIG. 16. The process collects the vector representations that fall within the window so that they can be compared to vector representations of pattern graphs that indicate intrusions, attacks, or threats, or simply activity that an analyst, developer, or automated computing component would like to search for in the time graph.
[0084] As shown in FIG. 17, a convolution filter 1710, shown as a moving filter window 1710, is defined and centered on an entity (horizontal line) of the time graph. The subgraph within the moving filter window is computed as a vector, i.e., a graph embedding. In the example shown in FIG. 17, the filter 1710 is moved around a selected entity 1712, and the subgraph of the filter window is summarized before and after the center entity 1712. As the filter 1710 is moved along the selected entity 1712 in the time graph from a previous time point where embedding occurred to a second time point where current embedding occurs, a vector representation of the filter window corresponding to the filter 1712 is generated and stored for the range of time points of the filter window. In this embodiment, the graph embedding is implemented as a convolution filter 1710 with time bounds, e.g., how many time points (horizontal axis) are included in the filter window, and reachability constraints, e.g., how many direct / indirect events to / from a selected entity 1712 are in the filter window (vertical axis). Various filters of different sizes, e.g., 1 hop, 2 hops, 3 hops before / after a central selected entity, smaller / larger time intervals, etc., may be defined to perform the embedding of time graphs. Thus, the horizontal limits of the filter window 1710 are defined by the range of time points desired for the implementation, and the vertical limits of the filter window 1710 are defined by the reachability constraints, e.g., the number of hops from a central entity, e.g., 1712 or 1714 in FIG. 17, within which events should be considered for embedding purposes.
[0085] By restricting the problem to node embedding with time bounds and reachability constraints, non-temporal graph node embedding mechanisms can be used to embed information within the filter window. For example, node2vec embedding (distance embedding), Graph Convolutional Network (GCN) embedding (graph is represented as a normalized graph Laplacian matrix), Graph Neural Network (neighborhood of a vertex is summarized based on the summary of vertices (in layers) connected to it), etc. may be used to actually embed the information contained in the filter window. As shown in FIG. 17, a central selected entity 1712 may be repeated for a given number of entities in the time graph according to the size of the filter, e.g., the number of filter "hops". For example, the illustration of the moving filter window at time points (1)-(3) is from a first time point (denoted as (1)) to a second time point (denoted as (2)) to a third time point (denoted as (3)) relative to the selected entity 1712. When the filter window movement reaches a temporal boundary, the filter window is re-centered around the new selected entity, such as selected entity 2714, and the process is repeated as shown for time points (4)-(6) in Figure 17. As pointed out above, the result of this process is a vector representation of the temporal graph, based on a distance embedding technique such as node2vec, or an embedding performed by a trained neural network mechanism, e.g., a GNN or a multi-layer CNN.
[0086] The sliding window technique of Figure 17 is not intended to be limiting, as there are other ways to segment subgraphs, such as extracting all connected entities to each selected entity (e.g., process) as a subgraph.
[0087] In summary, according to the present invention, a GNN model is trained by generating a set of positive and negative samples for each node in the graph through meta-path neighborhood sampling, followed by contrastive representation learning. The training is performed in an unsupervised manner without any labels. After training, the model is used to embed the graph into a vector representation that facilitates one or more security-related tasks, such as cyber threat hunting. For example, the input of a cyber threat hunting system is streaming system / network activity in the form of a large heterogeneous time graph as shown in FIG. 16. The time graph is partitioned into multiple subgraphs. The subgraphs are then fed into a GNN trained as described above to generate vector representations. A similar embedding is also performed for attack patterns. After graph embedding, the similarity of those graph embeddings in the vector space is compared. If fuzzy-matching vectors are identified, a potential attack is found. One or more mitigation or other remedial actions may then be taken depending on security or other policies.
[0088] The approaches herein may be leveraged for various types of use cases, including, without limitation, allowing a security analyst to find instances of attacks that are similar to known attacks described in graph patterns, allowing a security analyst to find suspicious processes that share similar behavior to those described in graph patterns, and allowing a security analyst to describe suspicious behavior in a manner that allows the analyst to search for suspicious behavior across various implementations of an attack, but not necessarily specifically.
[0089] The techniques described above offer a significant advantage, namely, providing a novel approach for training, in an unsupervised manner, GNNs with heterogeneous nodes that typically cannot be trained using conventional methods.
[0090] In a representative but non-limiting embodiment, the technique may be implemented in a behavior-based malware detection system operating in the context of a monitored computing system or network. The monitored computing system may be implemented as described above with respect to FIG. 2 and is assumed to include a set of processes executing (at run-time). Host-based or system events, such as system calls and API invocations of each process, are continuously monitored and recorded. The specific manner in which host or system events are monitored, identified, and stored is not an aspect of this disclosure. In a typical implementation, this type of system activity is logged, for example, by the operating system or by syscall monitoring and program instrumentation. The malware detection system is configured to run in any of the operating system environments described above, for example, in FIG. 3, FIG. 4, FIG. 5, or FIG. 8. One or more components of the malware detection system may be implemented in a cloud-based architecture. In a variant implementation, the malware detection system runs natively on the computing system whose system events are being monitored.
[0091] Typically, each such module is implemented in software, i.e., as a set of computer program instructions, running on one or more hardware processors. These modules may be integrated with each other, co-located or distributed, or otherwise implemented as one or more computing entities. One or more of these functions may be implemented in the cloud.
[0092] The techniques herein may be used to facilitate malware detection for computing systems other than the computing system whose system events were recorded and used to facilitate construction of the model.
[0093] The approaches herein are designed to be implemented in an automated manner within or in conjunction with a security system, such as the SEIM device or system of FIG. 3, the APT platform shown in FIG. 4, the cloud-based cybersecurity analysis system of FIG. 5, or any other execution environment in which system events are captured and available for mining and investigation. However, the particular operating platform or computing environment in which the event modeler techniques are implemented is not a limitation. The machine learning itself may be provided "as-a service" using a machine learning platform or service.
[0094] Alternatively, the functionality described above may be implemented as a stand-alone approach, e.g., software-based functionality executed by a processor, or may be 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 intended to limit the scope of the described subject matter.
[0095] The graph-based techniques described herein are not limited to use with Deep Neural Network (DNN) models, but may be extended to be used as a front-end to any machine learning model that has internal processing state, including but not limited to Support Vector Machines (SVM), Logistic Regression (LR) models, etc., and may be extended for use with decision tree-based models.
[0096] More generally, computing devices in the context of the disclosed subject matter are each data processing systems (such as that shown in FIG. 2) equipped with hardware and software, 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, without limitation, support for HTTP, FTP, SMTP, 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 well-known standards and protocols is assumed.
[0097] The techniques described herein may be implemented in or in conjunction with a variety of server-side architectures, including simple n-tier architectures, web portals, federated systems, etc. The techniques herein may be practiced in loosely coupled server (including "cloud" based) environments.
[0098] Still more generally, the subject matter described herein may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment containing both hardware and software elements. In a preferred embodiment, the functionality is implemented as software, including but not limited to firmware, resident software, microcode, and the like. Furthermore, as noted 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 that provides program code for use by or in connection with a computer or any instruction execution system. For purposes of this description, a computer usable or computer readable medium may be any apparatus that can hold 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(R). A computer readable medium is a tangible item.
[0099] A computer program product may be a product having program instructions (or program code) for implementing one or more of the described functions. These instructions or code may be stored in a computer readable storage medium of 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 of a server data processing system and adapted to be downloaded over a network to a remote system for use in the computer readable storage medium in the remote data processing system.
[0100] In an exemplary embodiment, the machine learning based techniques are implemented in a special purpose computer, preferably in software executed by 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. Collectively, this special purpose hardware and software constitute the functionality described above.
[0101] While the above describes particular orders of operations performed by certain embodiments of the present invention, it should be understood that such orders are exemplary and that alternative embodiments may perform operations in different orders, combine certain operations, overlap certain operations, etc. Reference to a given embodiment herein means that the embodiment being described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include that particular feature, structure, or characteristic.
[0102] Finally, although certain components of the system have been described individually, those skilled in the art will recognize that some of the functionality may be combined or shared in a given set of instructions, program sequences, code portions, etc.
[0103] The technology herein provides an improvement to another technology or technology field, among others, threat intelligence systems, malware detectors, endpoint management systems, APT solutions, security incident and event management (SIEM) systems, and cybersecurity analytics solutions.
[0104] Without intending to be limiting, the heterogeneous graph used to train the GNN may be the same as the time graph itself. As a concrete example, assume that a machine / host is monitored over a given period (e.g., 6 months). In that case, the first 3 months of logs (time graph) may correspond to the heterogeneous graph used for training. As the system is deployed, the model may be continuously trained on the neural network to learn the best embedding, assuming that the distribution changes in the underlying data over time. In generalization, training as used herein refers to establishing a suitable embedding space for the time graph. Once the embedding is established, it is straightforward to find similar subgraphs given a graph pattern, for example using fuzzy or other types of matching.
[0105] Having described the subject matter above, what is claimed is as follows.
Claims
1. 1. A method for detecting anomalous behavior in a computing system, comprising: training a graph neural network (GNN) in an unsupervised manner by applying contrastive representation learning to a set of positive and negative samples derived from one or more heterogeneous graphs using meta-path sampling; receiving a time graph derived from events generated by the system following training; embedding the temporal graph into a representation using the trained GNN; comparing the representation to a set of one or more representations generated by the trained GNN and corresponding to one or more pattern graphs; and outputting an indication that the time graph is associated with potential anomalous behavior within the computing system based on the comparison.
2. 2. The method of claim 1, wherein meta-path sampling identifies a meta-path in one of the heterogeneous graphs, where a meta-path is a sequence of edges connecting a source node type to a target node type.
3. The method of claim 1 , wherein the meta-path sampling minimizes an embedding distance in a representation space between pairs of positive samples and maximizes an embedding distance in the representation space between pairs of negative samples.
4. 2. The method of claim 1, wherein meta-path sampling generates the positive sample by traversing one of the heterogeneous graphs relative to a specified node to reach one or more nodes that have a node type in common with the specified node, and generates the negative sample by randomly selecting a node that has a different node type than the specified node.
5. The contrastive representation learning is performed by a loss function L = -log(S pos ) -log(1-S neg ) and S pos is the set of positive samples, S neg The method of claim 1 , wherein x is the set of negative samples.
6. The method of claim 1 , wherein the expressions are vectors and comparing the expressions uses fuzzy pattern matching.
7. deriving a set of subgraphs from the temporal graph; embedding each subgraph of the set of subgraphs into a vector representation; Further comprising: The method of claim 1 , wherein the comparing compares each vector representation corresponding to a subgraph with a vector representation corresponding to a pattern graph.
8. 1. An apparatus comprising: A processor; and a computer memory holding computer program instructions for execution by said processor, said computer program instructions configured to detect anomalous behavior in a computer system, said computer program instructions comprising: training a graph neural network (GNN) in an unsupervised manner by applying contrastive representation learning to a set of positive and negative samples derived from one or more heterogeneous graphs using meta-path sampling; Following training, receive a time graph derived from the events generated by the system; Embedding the temporal graph into a representation using the trained GNN; comparing the representation to a set of one or more representations generated by the trained GNN and corresponding to one or more pattern graphs; Based on the comparison, outputting an indication that the time graph is associated with potential anomalous behavior within the computing system. An apparatus comprising program code configured to:
9. 10. The apparatus of claim 8, wherein meta-path sampling comprises computer program code configured to identify a meta-path in one of the heterogeneous graphs, a meta-path being a sequence of edges connecting a source node type to a target node type.
10. The apparatus of claim 8 , wherein the meta-path sampling minimizes an embedding distance in a representation space between pairs of positive samples and maximizes an embedding distance in the representation space between pairs of negative samples.
11. 10. The apparatus of claim 8, wherein meta-path sampling comprises computer program code for generating the positive sample by traversing one of the heterogeneous graphs relative to a designated node to reach one or more nodes having a node type in common with the designated node and generating the negative sample by randomly selecting a node having a different node type than the designated node.
12. The contrastive representation learning is performed by a loss function L = -log(S pos ) -log(1-S neg ) and S pos is the set of positive samples, S neg The apparatus of claim 8 , wherein x is the set of negative samples.
13. 9. The apparatus of claim 8, wherein the representations are vectors, and the computer program code configured to compare representations comprises computer program code implementing a fuzzy pattern matching algorithm.
14. The computer program code further comprises: Deriving a set of subgraphs from the temporal graph; Embed each subgraph of the set of subgraphs into a vector representation. The method further comprises: The apparatus of claim 8 , wherein the computer program code is further configured to compare each vector representation corresponding to a subgraph with a vector representation corresponding to a pattern graph.
15. A computer program product in a non-transitory computer readable medium for use with a data processing system, said computer program product carrying computer program instructions that, when executed by said data processing system, are configured to detect anomalous behavior within the computer system, said computer program instructions comprising: training a graph neural network (GNN) in an unsupervised manner by applying contrastive representation learning to a set of positive and negative samples derived from one or more heterogeneous graphs using meta-path sampling; Following training, receive a time graph derived from the events generated by the system; Embedding the temporal graph into a representation using the trained GNN; comparing the representation to a set of one or more representations generated by the trained GNN and corresponding to one or more pattern graphs; Based on the comparison, outputting an indication that the time graph is associated with potential anomalous behavior within the computing system.
2. A computer program product comprising program code configured to:
16. 16. The computer program product of claim 15, wherein meta-path sampling comprises computer program code configured to identify a meta-path in one of the heterogeneous graphs, a meta-path being a sequence of edges connecting a source node type to a target node type.
17. 16. The computer program product of claim 15, wherein the meta-path sampling minimizes an embedding distance in a representation space between pairs of positive samples and maximizes an embedding distance in the representation space between pairs of negative samples.
18. 16. The computer program product of claim 15, wherein meta-path sampling comprises computer program code for generating the positive sample by traversing one of the heterogeneous graphs relative to a designated node to reach one or more nodes having a node type in common with the designated node and for generating the negative sample by randomly selecting a node having a different node type than the designated node.
19. The contrastive representation learning is performed by a loss function L = -log(S pos ) -log(1-S neg ) and S pos is the set of positive samples, S neg 16. The computer program product of claim 15, wherein x is the set of negative samples.
20. 16. The computer program product of claim 15, wherein the representations are vectors, and the computer program code configured to compare representations comprises computer program code implementing a fuzzy pattern matching algorithm.
21. The computer program code further comprises: Deriving a set of subgraphs from the temporal graph; Embed each subgraph of the set of subgraphs into a vector representation. The method further comprises:
16. The computer program product of claim 15, wherein the computer program code is further configured to compare each vector representation corresponding to a subgraph with a vector representation corresponding to a pattern graph.
Citation Information
Patent Citations
Adaptive data positional relationship learning device, adaptive data positional relationship learning method, and adaptive data positional relationship learning program
JP2021120802A
Unknown malicious program behavior detection using a graph neural network
US20200137083A1
Fuzzy cyber detection pattern matching
WO2021155971A1
