Real-time detection of malicious activity by collaborative filtering

Through model-based collaborative filtering technology and implicit feedback data sets, using singular value decomposition and alternating least squares method, the problem of low efficiency of malicious activity detection in the existing technology is solved, and fast and accurate detection of new open ports is achieved.

CN118673490APending Publication Date: 2024-09-20MICROSOFT TECHNOLOGY LICENSING LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410938058.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2019-04-01
Filing Date
2020-02-26
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing network intrusion detection systems rely on pre-configured rules and are difficult to quickly adapt to changes in the frequency and deceptive behavior of malicious attackers, resulting in low efficiency in detecting malicious activities.

Method used

Model-based collaborative filtering technology is used to construct a matrix of entity port pairs through implicit feedback data sets, singular value decomposition and alternating least squares are used to predict whether new open ports are used for malicious activities, and recommendation scores are generated to detect abnormal ports in real time.

Benefits of technology

It achieves rapid detection of malicious activities, does not rely on static rules, and can analyze network behavior in real time, improving the detection efficiency and accuracy of malicious activities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673490A
    Figure CN118673490A
Patent Text Reader

Abstract

A machine that is low resistant to malicious activity is detected by identifying an anomalous port that is open on an entity of a network. The anomalous port is detected by collaborative filtering using an open port of an entity on the network using a usage pattern derived from normal network traffic. Collaborative filtering employs an alternating least square method with singular value decomposition to generate a recommendation score that identifies whether an entity with a new open port is likely to be used for malicious activity.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Related Applications

[0002] This application is a divisional application of the invention patent application with an international application date of February 26, 2020, which entered the Chinese national stage on September 29, 2021, with Chinese national application number 202080026439.5, and invention name “Real-time detection of malicious activities through collaborative filtering”. Background Art

[0003] Detecting machines that are subject to malicious activity is a challenging task as malicious actors have improved their ability to evade detection. Most malicious actors communicate over a network in search of vulnerable targets. Bad actors often perform network scans and / or port scans before launching an attack to gain information about the structure and behavior of a network. Network scans are used to detect all active hosts on a network and their IP addresses. Port scans are used to identify open ports and services of a host. Ports are often targeted by cybercriminals. Cybercriminals seek open ports in order to access applications and services behind them.

[0004] Due to the complexity of networks and the number of open ports, network attacks are not always immediately identifiable. Network intrusion detection systems and firewalls are often used to detect such malicious scans: they usually rely on pre-configured rules. The pre-configured rules are based on knowledge of previous attacks. However, malicious actors have learned to evade these types of detection techniques by varying the frequency of scans, accessing ports out of order, and / or spoofing their source addresses. Summary of the invention

[0005] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

[0006] Real-time detection of malicious activity on the network is performed by identifying anomalous activity on open ports. A model-based recommendation system is used to represent normal activity on open ports of entities in the network. A model-based recommendation system is used to determine the likelihood that a new open port of an existing entity is a non-anomalous port being used for legitimate workloads or an anomalous port being used for malicious activity. The likelihood is based on the similarity that the new open port on other entities is being used for legitimate workloads.

[0007] In one aspect, collaborative filtering using an implicit feedback data set is used to predict whether a newly opened port is used for malicious activity. A model or matrix of entity port pairs is constructed from analysis of network traffic to determine ports used in legitimate workloads. Entity port pairs are represented by frequencies, which are the frequencies at which entities use open ports based on TCP SYN-ACK settings in transmissions captured from network flow traffic. The original observations are transformed into preference and confidence pairs.

[0008] The model is then decomposed using singular value decomposition using alternating least squares to predict missing values.When a new open port is detected on an existing entity, a recommendation score is calculated and used to indicate whether the new open port is an anomalous port that is used for malicious activities.

[0009] These and other features and advantages will become apparent by reading the following description and reviewing the associated drawings.It is to be understood that both the foregoing general description and the following detailed description are explanatory only and are not restrictive of the aspects, as claimed. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 An exemplary system for detecting malicious activity in real time through collaborative filtering is illustrated.

[0011] Figure 2 is a flow chart illustrating an exemplary method for generating a collaborative filtering model using an implicit feedback dataset.

[0012] Figure 3 is a flow chart illustrating an exemplary method for detecting anomalous ports through a collaborative filtering model.

[0013] Figure 4 is a block diagram illustrating an exemplary computing or operating environment. DETAILED DESCRIPTION

[0014] Overview

[0015] The disclosed subject matter relates to a mechanism for detecting whether a machine (e.g., a virtual machine, a computing device, a server, etc.) is compromised by detecting anomalous activity on an open port. The mechanism employs a model-based recommendation system to represent normal activity on an open port of each entity of a network in order to determine the likelihood that a new open port of the entity is a non-anomalous port being used for legitimate workloads or an anomalous port being used for malicious activity. The likelihood is based on a recommendation score derived from the model-based recommendation system.

[0016] This technique generates a physical port pair r ui A model or matrix A, where u is an entity and i is an open port on entity u. The entity port pair rui The frequency with which entity u uses port i to transmit and / or receive traffic. The TCP SYN-ACK settings in the traffic captured in the network flow data are used to determine whether port i is an open port. The raw observation value r ui is transformed into preference p ui , and then transformed to the confidence level c ui .

[0017] The matrix A of size m x n is then decomposed into two smaller matrices using singular value decomposition: X of size m x f; and Y of size f x n. X and Y are generated by randomly assigning values ​​in X and Y and iteratively using alternating least squares to optimize X with Y fixed, and vice versa, until the best approximation of A is achieved. The vectors in X and the vectors in Y map entities and ports into a common latent factor space where they can be compared.

[0018] The technology disclosed herein is advantageous in several respects. The technology does not utilize an agent (e.g., component, extension, or module) inside an entity. Instead, the technology uses network flow data captured within a network without interfering with the operation of the entity. The technology does not rely on pre-configured rules that cannot be quickly changed to adapt to changes in network behavior. Instead, the technology is able to analyze network behavior in real time so that malicious activity can be quickly detected.

[0019] Attention now turns to a more detailed description of an exemplary system for detecting anomalous ports using model-based collaborative filtering techniques and implicit datasets.

[0020] system

[0021] Figure 1 An exemplary system 100 is illustrated that is configured to support detection of vulnerable machines through collaborative filtering. In one aspect, system 100 includes a computing device 102 that is communicatively coupled to a network entity or entity 104 of a network 106. Entity 104 may be coupled to subnetworks 108A-108C (collectively, "108") and / or a router 110 having the capability to transmit data packets to computing device 102 through network 106.

[0022] The computing device 102 may be a single computing device 102 or implemented as multiple servers. For example, such a server may be part of a particular organization or company associated with the network 106 and / or subnet 108, or may include a cloud-based server configured to provide network analysis and / or monitoring services to multiple organizations. The computing device 102 may include one or more of such server devices and / or other computing devices that are co-located or remotely located from one another. Furthermore, although Figure 1 A single computing device 102 is depicted, but it should be understood that implementations may include any number of computing devices.

[0023] The network 106 and the sub-network 108 may each include one or more of any of a local area network (LAN), a wide area network (WAN), a personal area network (PAN), a combination of communication networks, such as the Internet, and / or a virtual network. The computing device 102 may be communicatively coupled to the entity 104 via a network and / or a sub-network. Communications between computing devices, routers, networks, and sub-networks may be performed via application programming interfaces and other techniques and interfaces. The computing device 102, router 110, network 106, sub-network 108, and entity 104 may each include at least one communication interface that supports communications between each other.

[0024] Entity 104 may include a node of network 106 and / or subnetwork 108. Entity 104 may include any electronic device or machine (physical or virtual) coupled to any of network 106 and / or subnetwork 108. In an example embodiment, network 106 and / or subnetwork 108 may collectively include a network of an organization (including, but not limited to, a company, an enterprise, or a cloud-based subscription), and entity 104 may include a node (e.g., a physical device or machine or a virtual node) coupled to network 106. In some further example embodiments, network 106 and / or subnetwork 108 may include a virtual or cloud-based network, and entity 104 may include one or more virtual machines or nodes of the virtual or cloud-based network.

[0025] In some other examples, any entity 104 may include a desktop computer, a laptop computer, a smart phone, a tablet computer, a wearable computing device (e.g., a smart watch, a smart headset), a mixed and / or virtual reality device (e.g., a Microsoft HoloLens TM ) or any other processing device. In some other example embodiments, network 106 and / or subnet 108 may collectively comprise a cloud computing network, and entity 104 may be a node coupled to the cloud computing network. Entity 104 is not limited to a processing device in embodiments, and may include other resources on a network, such as a storage device (e.g., a physical storage device, a local storage device, a cloud-based storage device, a hard drive, a solid-state drive, a random access memory (RAM) device, etc.), a database, a virtual machine, etc.

[0026] Each entity 104 is associated with at least one port. A port allows an entity 104 to support multiple communication sessions with other entities on a network over a specific protocol. A port is associated with an IP address of the entity 104. A port has a port number that identifies the protocol it is associated with.

[0027] In the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP), port numbers range from 1 to 65535. There are three types of port numbers: (1) Port numbers 1 to 1023 are well-known ports that are associated with system processes for widely used network services; (2) Port numbers 1024 to 49151 are registered ports that are assigned by the Internet Assigned Numbers Authority (IANA) and are used with specific protocols or applications; (3) Port numbers 49152 to 65535 are dedicated or dynamic ports that are active for a specific session.

[0028] Common port numbers include the following:

[0029] 21: File Transfer Protocol (FTP)

[0030] 22: Secure Shell (SSH)

[0031] 23: telnet remote login service

[0032] 25: Simple Mail Transfer Protocol (SMTP)

[0033] 53: Domain Name System (DNS) service

[0034] 80: Hypertext Transfer Protocol (HTTP)

[0035] 110: Post Office Protocol (POP3)

[0036] 119: Network News Transfer Protocol (NNTP)

[0037] 123: Network Time Protocol (NTP)

[0038] 143: Internet Message Access Protocol (IMAP)

[0039] 161: Simple Network Management Protocol (SNMP)

[0040] 194: Internet Relay Chat (IRC)

[0041] 443: HTTP Secure (HTTPS)

[0042] The computing device 102 receives sampled network flow data (i.e., network traffic) 112 from a network device, such as a router, switch, and / or firewall. The network flow data 112 represents network packets transmitted to and from the entity 104 belonging to the same connection. The sampled network flow data 112 can be obtained using a network flow component 109 that operates according to a network flow protocol, such as the Internet Protocol Flow Information Export (IPFIX) protocol. The IPFIX protocol defines the manner in which network flow data is formatted and transmitted from a collector to a controller, such as from a router (i.e., collector) 110 to the computing device 102 (i.e., controller).

[0043] In one aspect, the system 100 uses a router 110 to forward data packets between computer networks to aggregate and format network flow data according to the IPFIX protocol. However, it should be noted that the system is not limited to routers, and other network devices (e.g., switches, firewalls, etc.) can be used to forward network flow data. In addition, the system is not limited to the IPFIX protocol. Other network flow protocols that provide the same functionality can be utilized.

[0044] The computing device 102 may include an entity port mapping component 114, a collaborative filtering component 118, and a port recommendation component 122. The entity port mapping component 114 generates an entity port matrix or model 116 that tracks the use of open ports for legitimate workloads (i.e., non-malicious activities) for each entity of the network. The entity port mapping component 114 uses the network flow data 112 to generate the following frequency r ui : Port i on entity u is open and used for frequency r of non-anomalous workload ui .

[0045] The collaborative filtering component 118 converts the frequency r ui Transformed into preference and confidence pairs 126. Preference and confidence pairs 126 are used in an alternating least squares approximation to predict missing values ​​in the entity port matrix 116. The entity port matrix 116 is typically a sparse matrix with values ​​derived from settings in the network grouping. Missing values ​​do not indicate whether the open port is used for malicious activity or for legitimate workloads. Instead, the collaborative filtering component 118 predicts these missing values ​​through an alternating least squares technique.

[0046] The collaborative filtering component 118 uses singular value decomposition 128 to decompose the entity port matrix 116 into two smaller matrices X and Y, which are used to generate a recommendation score indicating whether the activity on each port is part of a legitimate workload. Specifically, collaborative filtering is used to detect patterns in network traffic that indicate correlations between entities utilizing the same open ports.

[0047] The port recommendation component 122 uses the X and Y matrices 120 to make recommendations on the feasibility of a particular open port being used for a legitimate purpose. The port recommendation component 124 receives real-time network flow data 112 that is analyzed for the presence of new open ports on existing entities. The port recommendation component 120 generates a recommendation score that indicates the likelihood that the entity will use the new open port for a legitimate workload. The recommendation score is based on the X and Y matrices 120. u *Y T 130. When the recommendation score is below a threshold, the newly opened port is predicted to be an abnormal port and an alarm 124 is issued.

[0048] It should be noted that Figure 1 Components of a system in one aspect of an environment in which various aspects of the invention may be practiced are shown. However, Figure 1 The exact configuration of the components shown may not be required in practice. Figure 1 Various aspects and variations of the configurations shown in the drawings and types of components may be determined without departing from the spirit or scope of the invention.

[0049] Attention is now turned to a description of various exemplary methods of utilizing the systems and devices disclosed herein.

[0050] method

[0051] The operation of these aspects can be further described with reference to various exemplary methods. It will be appreciated that, unless otherwise indicated, the representative methods do not necessarily have to be performed in the order presented or in any particular order. In addition, the various activities described with respect to the methods can be performed in a serial or parallel manner or in any combination of serial and parallel operations. In one or more aspects, the methods illustrate the operation of the systems and devices disclosed herein.

[0052] Recommender systems are information filtering techniques designed to predict user preferences for items. Recommender systems are used to generate recommendations of items of interest based on user preferences for other items. There are two main types of recommender systems: collaborative filtering; and content-based filtering. Content-based filtering recommends items based on a comparison of the items' content with a user's profile.

[0053] Collaborative filtering builds a model or matrix based on the aggregated behavior of a large number of users on items to recommend relevant items to a specific user. Models can be further classified into implicit and explicit feedback-based methods. Explicit feedback methods use explicit information about the user's item preferences (usually in the form of ratings). Implicit feedback is derived from the user's history of utilizing the item (such as the user's use of the item).

[0054] Collaborative filtering techniques can be classified into memory-based techniques and model-based techniques. Memory-based techniques use arithmetic operations (such as cosine similarity and Pearson correlation coefficient) to find the closest similar users or similar items. Model-based techniques generate a matrix or model to capture user-item preferences. The matrix is ​​usually sparse because there are no values ​​for each user-item preference. Missing values ​​are predicted instead of being set to zero. Since the matrix is ​​very large, the matrix is ​​decomposed into smaller feature spaces by matrix factorization in order to find a hidden feature space in which users and items have closely aligned feature vectors.

[0055] Matrix factorization is applied to the original matrix to mathematically reduce the dimension of the original matrix to the product of two lower dimensional matrices. The two lower dimensional matrices represent all users for a specific item dimension and all items for a specific user dimension. The main obstacle of matrix factorization is estimating the missing values ​​for user-item pairs. This is done by repeatedly using a linear regression method to estimate the parameter values ​​and minimize the error between the predicted values ​​and the actual values.

[0056] In one aspect of the present disclosure, a collaborative filtering technique using an implicit feedback dataset is used to detect vulnerable machines in real time based on port similarity. The technique generates entity-port pairs r ui A model or matrix A, where u is an entity and i is an open port on entity u. The entity port pair r ui Indicates the frequency with which entity u uses port i to transmit and / or receive transmissions. And the port i is open based on the TCP SYN-ACK setting in the transmission captured in the network flow data to identify whether the port i is an open port.

[0057] Original observation r ui is transformed into two values ​​with different interpretations: preference p ui and confidence level c ui . Preference ui indicates that entity u uses port i for legitimate workloads. When the raw data indicates that entity u frequently uses port i, then p is preferred. ui is positive, and when entity u has not used port i, then p is preferred ui is zero. Therefore, the preference p ui is calculated as follows:

[0058] p ui =1, r ui >0 and p ui =0, r ui =0.

[0059] Confidence level c uiis associated with entity u and port i to indicate a confidence level of preference for being used for legitimate workloads. The confidence level may be expressed as c ui =1+∝r ui , where ∝ controls the growth rate. The confidence level is based on the magnitude of the feedback data, whereby the more times an entity uses an open port, the greater the confidence generated.

[0060] Then, the matrix A of size mxn is decomposed into two smaller matrices using singular value decomposition: X, of size mx f; and Y, of size fxn. X and Y have weights of how correlated each entity port pair is. X and Y are generated by randomly assigning values ​​in X and Y and iteratively using alternating least squares to optimize X and fix Y, and vice versa, until the best approximation of A is achieved.

[0061] The goal is then to find a vector x for each entity u that will decompose the entity preference u and the vector y for each port i i Entity preference is the inner product Vector x u The vectors yi are considered entity factors, while the vectors yi are considered port factors. These vectors map entities and ports into a common latent factor space where they can be compared. These factors are calculated by minimizing the following cost function:

[0062]

[0063] For x that minimizes the cost function (1) u The expression is as follows:

[0064] x u =(Y T C u Y+λI) -1 Y T C u p(u) (2)

[0065] The expression of yi for minimizing the cost function (1) is as follows:

[0066] y i =(X T C u X+λI) -1 X T C i p(i) (3)

[0067] Port factor y i are collected in the nxf matrix Y. The entity factors x u are collected in the fxm matrix X.

[0068] To calculate the similarity between entities, a recommendation score is generated which is the dot product between the entity vector and the transpose of the port vector X u *Y T , where X u is the entity vector for entity u, and Y T is the transpose of the port vector. The result provides a recommendation score for entity u and each port. The recommendation score indicates whether the port should be opened. When the recommendation score for entity u and port i is below a threshold, the recommendation score indicates that the port should not be opened. The threshold is determined by cross-validation. In this case, an alarm is generated. The alarm can be a message transmitted to a network administrator or entity administrator of the affected entity.

[0069] Steering Figure 2 , an exemplary method for generating a collaborative filtering model of network activity using an implicit data set is shown. Entities communicating within a network are monitored by analyzing packets transmitted to and from each entity. In one aspect, a network flow component 109 resident on a designated network entity (such as a router, switch, or firewall) collects data about packets received from and transmitted through the network. The network flow component 109 aggregates the data and transmits it to a controller, such as a computing device 102 (block 202).

[0070] The network flow component 109 can utilize a network data flow protocol, such as IPFIX, which indicates how the data will be formatted and transmitted to the controller. The IPFIX data includes information about the source IPv4 address of the packet, the destination IPv4 address, the source transport port, the destination transport port, and the TCP control bits. The TCP control bits include the SYN and ACK flags. The SYN and ACK flags are set during a TCP connection initiated with a client requesting a connection. The client sends a SYN message to the server. The server acknowledges the request with a SYN-ACK message returned to the client from a specific port, thereby indicating that the port is open. When both the SYN and ACK flags are set in the TCP control bits, the corresponding source transport port is considered open, and the corresponding entity port is considered open to the client. ui is updated in the physical port matrix 116 .

[0071] The computing device 102 collects network flow data 112 over a specified time period (block 204). During the specified time period, the entity port mapping component 114 generates an entity port matrix 116 that tracks, for each entity, the number of times a packet was transmitted to or from an open port on the entity (block 204). In one aspect, the entity port matrix 116 is configured to have a row for each entity and a column for each available port. An entity may be identified by an IP address, and there is an entry in the entity port matrix for each source IP4 address and for each destination IP4 address. The value r for the entity port pair ui A count representing the number of times port i has received packets from or sent packets to entity u is generated (block 204). ui Incremented when there is a setting of the SYN-ACK bit (block 204).

[0072] After a threshold amount of network flow data has been collected, observe r ui is transformed into a preference confidence pair, preference p ui and confidence level c ui (Block 206). Preference p ui Instructs entity u to use port i for legitimate workloads. Preference p ui The calculation is as follows: ui =1, r ui >0 and p ui =0,r ui = 0. Confidence level c ui is associated with entity u and port i to indicate a confidence level of preference for being used for legitimate workloads. The confidence level may be expressed as c ui =1+∝r ui , where ∝ controls the growth rate.

[0073] Next, the collaborative filtering component uses the alternating least squares method to use singular value decomposition to generate an entity vector and a port vector that minimize the cost function for the entity factor and the cost function for the port factor (box 206). As described above, the cost functions (2) to (3) are iteratively calculated within a predetermined number of iterations to generate an entity vector and a port vector, which are stored in matrices X and Y (box 206).

[0074] It should be noted that the X and Y matrices may be initially generated and updated at periodic intervals. When these matrices need to be updated to reflect current network data flows, blocks 202 to 206 are repeated to reflect the current entity / port status of the network.

[0075] Steering Figure 3, illustrates an exemplary method for the port recommendation component 124 to determine whether a newly opened port is abnormal. The port recommendation component 124 obtains network flow data 112 in real time (block 302). The port recommendation component 124 identifies a new open port on an existing entity from the network flow data 112 (block 304).

[0076] The port recommendation component 120 uses the X and Y matrices to generate a recommendation score for the entity with the new open port (block 306). The recommendation score for entity u is compared to a threshold to determine whether the new open port is an abnormal port used for malicious activity or an open port for a legitimate purpose (block 306).

[0077] When the newly opened port is determined to be an abnormal port, an alarm 124 is issued (box 308). The alarm indicates that there is a probability that the newly opened port may be used for malicious activities. Otherwise, the system continues to analyze network flow data for other newly opened ports.

[0078] Operating Environment

[0079] Attention now turns to a discussion of an exemplary operating environment. It should be noted that operating environment 400 is exemplary and is not intended to imply any limitation on the functionality of the embodiments. The embodiments may be applied to operating environment 400 utilizing a computing device coupled to network 404.

[0080] The computing device 402 can be any type of electronic device, such as, but not limited to, a mobile device, a personal digital assistant, a mobile computing device, a smart phone, a cellular phone, a handheld computer, a server, a server array or server farm, a web server, a network server, a blade server, an Internet server, a workstation, a minicomputer, a mainframe computer, a supercomputer, a network appliance, a web appliance, a distributed computing system, a multiprocessor system, or a combination thereof. The operating environment 400 can be configured in a network environment, a distributed environment, a multiprocessor environment, or a stand-alone computing device capable of accessing a remote or local storage device.

[0081] The computing device 402 may include one or more processors 406, memory 414, communication interface 408, storage device 410, and input / output device 412. Processor 406 may be any commercially available processor and may include dual microprocessor and multi-processor architectures. Communication interface 408 supports wired or wireless communication between computing device 402 and other devices. Storage device 410 may be a computer-readable medium that does not contain a propagation signal (such as a modulated data signal transmitted by a carrier wave). Examples of storage device 410 include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage device, cassette, tape, disk storage device, all of which do not contain a propagation signal, such as a modulated data signal transmitted by a carrier wave. Input device 412 may include a keyboard, a mouse, a pen, a voice input device, a touch input device, etc., and any combination thereof. Output device 412 may include a display, a speaker, a printer, etc., and any combination thereof.

[0082] The memory 414 may be any non-transitory computer-readable storage medium that can store executable programs, applications, and data. The computer-readable storage medium is independent of the propagation signal (such as a modulated data signal transmitted by a carrier wave). The computer-readable storage medium may be any type of non-transitory memory device (such as a random access memory, a read-only memory, etc.), a magnetic storage device, a volatile storage device, a non-volatile storage device, an optical storage device, a DVD, a CD, a floppy disk drive, etc. that is independent of the propagation signal (such as a modulated data signal transmitted by a carrier wave). The memory 414 may also include one or more external storage devices or remotely located storage devices that are independent of the propagation signal (such as a modulated data signal transmitted by a carrier wave). The memory 414 may include instructions, components, and data, such as an operating system 416, an entity port mapping component 418, an entity port matrix or model 420, a collaborative filtering component 422, a port recommendation component 424, and other applications and data 426.

[0083] Computing device 402 is communicatively coupled to network 404 to support communications with other entities. Network 402 may embody any well-known communications technology, such as a packet-switched network (e.g., a public network such as the Internet, a private network such as a corporate intranet, etc.), a circuit-switched network (e.g., a public switched telephone network), or a combination of packet-switched and circuit-switched networks (with appropriate gateways and switches).

[0084] in conclusion

[0085] A system is disclosed, the system having one or more processors and one or more memory devices storing instructions. The stored instructions are configured to be executed by the one or more processors to perform the following actions: monitoring network traffic flows to one or more open ports of one or more entities in a network; detecting a new open port on a first entity; determining whether the new open port on the first entity is likely to be used for malicious activity based on a collaborative filtering model, the collaborative filtering model being based on an implicit data set, the implicit data set including usage patterns of the one or more open ports of the one or more entities for non-malicious activities; and issuing an alert when the new open port is determined to be used for malicious activity.

[0086] The system performs additional actions to: structure data from the network traffic flow into an entity port model that reflects use of one or more open ports by one or more entities for non-malicious activities; perform singular value decomposition using alternating least squares to decompose the entity port model into a first matrix of entity factors and a second matrix of port factors; and generate a recommendation score indicating whether a new open port is an abnormal port using the first matrix and the second matrix.

[0087] The usage pattern is obtained from the synchronization (SYN) and acknowledgement (ACK) settings in the transmission control protocol (TCP) packets. The network flow data is derived from the Internet Protocol Flow Information Export (IPFIX) data. The entity port model is updated with additional data from the network traffic flow at periodic intervals. Alerts are issued when the recommendation score falls below a threshold. Before performing the singular value decomposition, the entity port pairs are transformed into preference and confidence pairs.

[0088] A device is disclosed, the device having at least one processor and at least one memory device. The at least one processor is configured to: obtain a collaborative filtering model to represent one or more open ports of multiple entities of a network, wherein the one or more open ports are used for non-malicious activities; detect a new open port for a first entity of the multiple entities in real time; determine the possibility that the new open port is an abnormal port by using the collaborative filtering model; and in response to determining that the new open port is determined to be abnormal, issue an alarm in real time to prevent the use of the abnormal port.

[0089] The device is further configured to construct a collaborative filtering model using an implicit data set derived from settings in transmission packets distributed in the network. Further actions performed by the device include generating an entity port model representing values ​​identifying the frequency of use of open ports for the entity; and applying a singular value decomposition using an alternating least squares method to estimate missing values ​​for the ports for the entity, the application generating a first matrix representing entity factors and a second matrix representing port factors. A recommendation score for the first entity and the new open port is based on the first matrix and the second matrix. When the recommendation score is below a threshold, an alarm is issued.

[0090] A method that can be practiced on the systems and devices described herein is disclosed, the method being operated on a computing device having at least one processor and at least one memory. The method obtains an entity port model that reflects the use of one or more open ports of one or more entities of a network for non-malicious activities, estimates the use of non-open ports of the one or more entities using matrix factorization using linear regression, decomposes the entity port model into an entity factor and a port factor, generates a recommendation score for a new open port of a selected entity from the entity factor and the port factor, wherein the recommendation score indicates whether the new open port is an abnormal port, and issues an alarm when the recommendation score indicates a probability that the new open port is an abnormal port.

[0091] Normal network activity used at open ports of one or more entities of a network is monitored and coordinated into an entity port model by associating frequency usage values ​​for each entity port pair. SYN-ACK settings on transmission packets are analyzed to determine open ports of entities of the network. The entity port model is periodically updated with additional data from monitoring normal network activity. Decomposition of the entity port model into entity factors and port factors associates a preference-confidence pair with each value in the entity port model, the preference-confidence pair including a preference value and a confidence value, the preference value being based on the frequency of use, and the confidence value being based on the magnitude of the frequency of use, and matrix factorization is applied to the preference-confidence pair.

[0092] The matrix factorization applies the alternating least squares technique to minimize the cost function for the entity factor and to minimize the cost function for the port factor. The matrix factorization applies the singular value decomposition. The recommendation scores are determined in real time.

[0093] Although the subject matter has been described in terms of structural features and / or methodological acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Instead, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims

1. A computer-implemented method comprising: monitoring network traffic flows through multiple open ports of multiple entities on a network; constructing an entity port matrix based on an implicit data set, the implicit data set comprising a plurality of usage patterns of the plurality of open ports of the plurality of entities for legitimate workloads, wherein the entity port matrix comprises a plurality of entity port pairs, wherein the entity port pair comprises a frequency of a selected one of the plurality of entities with a selected one of the plurality of open ports; decomposing the entity port matrix into a first matrix and a second matrix, the first matrix comprising a plurality of entity vectors, wherein each entity vector of the plurality of entity vectors is associated with a corresponding entity, and the second matrix comprising a plurality of port vectors, wherein each port vector of the plurality of port vectors is associated with a corresponding open port; detecting a new open port on the first entity; determining, based on the entity vector for the first entity from the first matrix and the port vector from the second matrix, whether the newly opened port on the first entity is likely to be used for malicious activity according to a recommendation score; as well as An alert is issued when the recommendation score determines that the newly opened port is being used for malicious activity.

2. The computer-implemented method of claim 1 , further comprising: Transform each entity-port pair into a preference and confidence pair; as well as Using the preference and confidence pair for the selected entity port pair, a missing value for the selected entity port pair is predicted.

3. The computer-implemented method of claim 2, further comprising: A singular value decomposition is performed using an alternating least squares method to decompose the solid port model into the first matrix and the second matrix.

4. The computer-implemented method of claim 1 , further comprising: The plurality of usage patterns are obtained from synchronization (SYN) and acknowledgement (ACK) settings in a transmission control protocol (TCP) packet.

5. The computer-implemented method of claim 1, wherein the plurality of usage patterns are derived from Internet Protocol Flow Information Export (IPFIX) data.

6. The computer-implemented method of claim 1 , further comprising: The physical port matrix is ​​updated at periodic intervals with additional data from the network traffic flows.

7. The computer-implemented method of claim 1 , further comprising: generating a dot product of the entity vector for the first entity and the transpose of the second matrix; as well as The recommendation score is obtained according to the value representing the first entity and the newly opened port from the dot product.

8. A computer-implemented method comprising: Obtaining a physical port model of the network, the physical port model comprising a plurality of physical port pairs, the physical port pairs representing normal use of selected open ports by selected entities for legitimate workloads; Decomposing the entity port model into an entity matrix and a port matrix, wherein the entity matrix includes a plurality of entity factors and the port matrix includes a plurality of port factors; detecting a new open port of the first entity; comparing the similarity of usage of the first entity having the newly opened port with other entities of the network for legitimate workloads, wherein the comparison is based on a dot product of the entity factor of the first entity and the port matrix; obtaining a recommendation score as a value from the dot product matrix for the first entity and the newly opened port; and When the recommendation score indicates a possibility that the newly opened port is an abnormal port, an alarm is issued.

9. The computer-implemented method of claim 8, further comprising: Compute a preference and confidence pair for each value of the entity port pair; as well as A missing value is estimated for each entity-port pair of the entity-port model that is missing a value from the preference and confidence pair.

10. The computer-implemented method of claim 9, wherein the preference and confidence pair for an entity-port pair comprises a preference value and a confidence level, wherein the preference value indicates whether entity u uses port i for legitimate workloads, and wherein the confidence level represents a level of confidence for the preference value.

11. The computer-implemented method of claim 9, further comprising: The entity port model is decomposed into the entity matrix and the port matrix by singular value decomposition using an alternating least square method.

12. The computer-implemented method of claim 9, further comprising: Matrix factorization is applied to the entity-port model to generate the entity matrix and the port matrix.

13. The computer-implemented method of claim 8, wherein each physical port pair of the physical port model is derived from synchronization (SYN) and acknowledgement (ACK) settings in a transmission control protocol (TCP) packet.

14. The computer-implemented method of claim 8, further comprising: The physical port model is constructed using an implicit data set derived from settings in transport packets distributed in the network.

15. The computer-implemented method of claim 8, further comprising: receiving network flow data from the first entity; as well as The network flow data is analyzed to detect the new open port on the first entity.

16. A computer-implemented method comprising: obtaining an entity port model to represent normal usage of a plurality of open ports of a plurality of entities of a network for legitimate workloads; constructing a first matrix and a second matrix from the entity port model, the first matrix including a plurality of entity vectors and the second matrix including a plurality of port vectors; detecting in real time a new open port for a first entity of the plurality of entities; calculating a third matrix, the third matrix being the product of the entity vector of the first entity and the second matrix; Determine, by using the recommendation score, the possibility that the newly opened port is an abnormal port according to the values ​​of the third matrix representing the first entity and the newly opened port; as well as After determining that the newly opened port is abnormal according to the recommendation score, an alarm is issued in real time to prevent the use of the abnormal port.

17. The computer-implemented method of claim 16, further comprising: The physical port model is constructed using an implicit data set derived from settings in transport packets distributed in the network.

18. The computer-implemented method of claim 16, further comprising: Transform each entity-port pair into a preference and confidence pair; as well as Missing values ​​for entity-port pairs are estimated from corresponding preference and confidence pairs.

19. The computer-implemented method of claim 18, wherein the preference and confidence pair for an entity-port pair comprises a preference value and a confidence level, wherein the preference value indicates whether entity u uses port i for a legitimate workload, and wherein the confidence level represents a level of confidence for the preference value.

20. The computer-implemented method of claim 16, further comprising: The entity port model is decomposed into the first matrix and the second matrix by singular value decomposition using an alternating least squares method.