SYSTEM AND METHOD FOR CLUSTERING HOST INVENTORIES
A method in one example implementation includes obtaining a plurality of host file inventories corresponding respectively to a plurality of hosts, calculating input data using the plurality of host file inventories, and then providing the input data to a clustering procedure to group the plurality of hosts into one or more clusters of hosts. The method further includes each cluster of hosts being grouped using predetermined similarity criteria. In more specific embodiments, each of the host file inventories includes a set of one or more file identifiers with each file identifier representing a different executable software file on a corresponding one of the plurality of hosts. In other more specific embodiments, calculating the input data includes transforming the host file inventories into a matrix of keyword vectors in Euclidean space. In further embodiments, calculating the input data includes transforming the host file inventories into a similarity matrix.
This disclosure relates in general to the field of computer network administration and support and, more particularly, to identifying similar software inventories on selected hosts.
BACKGROUNDThe field of computer network administration and support has become increasingly important and complicated in today's society. Computer network environments are configured for virtually every organization and usually have multiple interconnected computers (e.g., end user computers, laptops, servers, printing devices, etc.). Typically, each computer has its own set of executable software, each of which can be represented by an executable software inventory. For Information Technology (IT) administrators, congruency among executable software inventories of similar computers (e.g., desktops and laptops) simplifies maintenance and control of the network environment. Differences between executable software inventories, however, can arise in even the most tightly controlled network environments. In addition, each organization may develop its own approach to computer network administration and, consequently, some organizations may have very little congruency and may experience undesirable diversity of executable software on their computers. Particularly in very large organizations, executable software inventories may vary greatly among computers across departmental groups. Varied executable software inventories on computers within organizations present numerous difficulties to IT administrators to maintain, to troubleshoot, to service, and to provide uninterrupted access for business or other necessary activities. Innovative tools are needed to assist IT administrators to successfully support computer network environments with computers having incongruities between executable software inventories.
To provide a more complete understanding of the present disclosure and features and advantages thereof, reference is made to the following description, taken in conjunction with the accompanying figures, wherein like reference numerals represent like parts, in which:
A method in one example implementation includes obtaining a plurality of host file inventories corresponding respectively to a plurality of hosts, calculating input data using the plurality of host file inventories, and providing the input data to a clustering procedure to group the plurality of hosts into one or more clusters of hosts. The method further includes each cluster of hosts being grouped using a predetermined similarity criteria. More specific embodiments include each of the plurality of host file inventories including a set of one or more file identifiers with each file identifier representing a different executable software file on a corresponding one of the plurality of hosts. In another more specific embodiment, the method includes each of the one or more file identifiers including a token sequence of one or more tokens. In other more specific embodiments, the calculating the input data includes transforming the plurality of host file inventories into a similarity matrix. In another more specific embodiment, the calculating the input data includes transforming the plurality of host file inventories into a matrix of keyword vectors in Euclidean space, where each keyword vector corresponds to one of the plurality of hosts.
Example EMBODIMENTSIn example embodiments, the system for clustering host inventories may be utilized to provide valuable information to users (e.g., IT administrators, network operators, etc.) identifying computers having similar operating systems and installed executable software files. In one example, when the system for clustering host inventories is applied to a computer network environment such as network environment 100 of
For purposes of illustrating the techniques of the system for clustering host inventories, it is important to understand the activities occurring within a given network. The following foundational information may be viewed as a basis from which the present disclosure may be properly explained. Such information is offered earnestly for purposes of explanation only and, accordingly, should not be construed in any way to limit the broad scope of the present disclosure and its potential applications.
Typical network environments used in organizations and by individuals often include a plurality of computers such as end user desktops, laptops, servers, network appliances, and the like, and each may have an installed set of executable software. In large organizations, network environments may include hundreds or thousands of computers, which may span different buildings, cities, and/or geographical areas around the world. IT administrators may be tasked with the extraordinary responsibility of maintaining these computers in a way that minimizes or eliminates disruption to business activities.
One difficulty IT administrators face includes maintaining multiple computers in a chaotic or heterogeneous network environment. In such an environment, congruency between executable software of the computers may be minimal. For example, executable files may be stored in different memory locations on different computers, different versions of executable files may be installed in different computers, executable files may be stored on some computers but not on others, and the like. Such networks may require additional time and resources to be adequately supported as IT administrators may need to individualize policies, maintenance, upgrades, repairs, and/or any other type of support to suit particular computers having nonstandard executable software and/or operating systems.
Homogenous network environments, in which executable software of computers are congruent or at least similar, may also benefit from a system and method for clustering host inventories. In homogeneous environments or substantially homogeneous environments, particular computers may occasionally deviate from standard computers within the network environment. For example, malicious software may break through the various firewalls and other network barriers creating one or more deviant computers. In addition, end users of computers may install various executable software files from transportable disks or download such software creating deviant computers. In accordance with the present disclosure, a system for clustering host inventories could readily identify any outliers having nonstandard and possibly malicious executable software.
A system and method for clustering host inventories, as outlined in
Note that in this Specification, references to various features (e.g., elements, structures, modules, components, steps, etc.) included in “one embodiment”, “example embodiment”, “an embodiment”, “another embodiment”, “some embodiments”, “various embodiments”, “one example”, “other embodiments”, and the like are intended to mean that any such features may be included in one or more embodiments of the present disclosure, but may or may not necessarily be included in the same embodiments.
Turning to the infrastructure of
In an example embodiment, hosts 110 may represent end user computers that could be operated by end users. The end user computers may include desktops, laptops, and mobile or handheld computers (e.g., personal digital assistants (PDAs) or mobile phones). Hosts 110 can also represent other computers (e.g., servers, appliances, etc.) having executable software, which could be similarly evaluated and clustered by the system, using executable file inventories derived from sets of executable files 112 on such hosts 110. It should be noted that the network configurations and interconnections shown and described herein are for illustrative purposes only.
Sets of executable files 112 on hosts 110 can include all executable files on respective hosts 110. In this Specification, references to “executable file”, “program file”, “executable software file”, and “executable software” are meant to encompass any software file comprising instructions that can be understood and processed by a computer such as executable files, library modules, object files, other executable modules, script files, interpreter files, and the like. In one embodiment, the system could be configured to allow the IT administrator to select a particular type of executable file to be clustered. For example, an IT Administrator may choose only dynamic-link library (DLL) modules for clustering. Thus, sets of executable files 112 would include only DLL modules on the respective hosts 110. In addition, the IT administrator may also be permitted to select particular hosts to which clustering is applied. For example, all end user computers in a network or within a particular part of the network may be selected. In another example, all servers within a network or within a particular part of the network may be selected.
Central server 130 of network environment 100 represents an exemplary server or other computer linked to hosts 110, which may provide services to hosts 110. The system of clustering host inventories may be implemented in central server 130 using various embodiments of host inventory preparation module 150 and clustering module 160. For example, keyword techniques may be used with vector based clustering in one example embodiment. In this example embodiment, host inventory preparation module 150 creates an (n×m) vector matrix where columns of the matrix may correspond to a determined number (i.e., “m”) of unique keywords, each of which is associated with one or more executable files in a selected number (i.e., “n”) of hosts. The rows of the vector matrix may correspond to the n selected hosts. Clustering module 160 can then apply a clustering algorithm to the vector matrix to create logical groupings of the n selected hosts. In another example embodiment, compression techniques may be used with similarity based clustering. In this example embodiment, host inventory preparation module 150 may create an (n×n) similarity matrix using compression techniques for a selected number (i.e., “n”) of hosts. Clustering module 160 may then apply a clustering algorithm to the similarity matrix to create logical groupings of the n selected hosts. In one embodiment, selected hosts may include all of the hosts 110 in a particular network environment such as network environment 100. In other embodiments, selected hosts may include particular hosts selected by a user or predefined by policy, with such hosts existing in one or more network environments.
Management console 170 linked to central server 130 may provide viewable cluster data for the IT administrators or other authorized users. Administrative module 140 may also be incorporated to allow IT administrators or other authorized users to add the logical groupings from a cluster analysis to an enterprise management system and to apply common policies to selected groupings. In addition, deviant or exceptional groupings or outliers can trigger various remedial actions (e.g., emails, vulnerability scans, etc.). In addition, management console 170 may also provide a user interface for the IT Administrator to select particular hosts and/or particular types of executable files to be included in the clustering procedure, in addition to other user provided configuration data for the system. One exemplary enterprise management system that could be used includes McAfee® electronic Policy Orchestrator (ePO) software manufactured by McAfee, Inc. of Santa Clara, Calif.
Turning to
Processor 220, which may also be referred to as a central processing unit (CPU), can include any general or special-purpose processor capable of executing machine readable instructions and performing operations on data as instructed by the machine readable instructions. Main memory 230 may be directly accessible to processor 220 for accessing machine instructions and can be in the form of random access memory (RAM) or any type of dynamic storage (e.g., dynamic random access memory (DRAM)). Secondary storage 240 can be any non-volatile memory such as a hard disk, which is capable of storing electronic data including executable software files. Externally stored electronic data may be provided to computer 200 through removable memory interface 270. Removable memory interface 270 may provide connection to any type of external memory such as compact discs (CDs), digital video discs (DVDs), flash drives, external hard drives, or any other external media.
Network interface 250 can be any network interface controller (NIC) that provides a suitable network connection between computer 200 and any networks to which computer 200 connects for sending and receiving electronic data. For example, network interface 250 could be an Ethernet adapter, a token ring adapter, or a wireless adapter. A user interface 260 may be provided to allow a user to interact with the computer 200 via any suitable means, including a graphical user interface display. In addition, any appropriate input mechanism may also be included such as a keyboard, mouse, voice recognition, touch pad, input screen, etc.
Not shown in
Turning to
In other examples, more complex file identifiers could be selected to provide a higher level of distinctiveness of an executable file. In one such example, a file identifier could include a sequence of first and second tokens having a checksum configuration and file path configuration, respectively, where the file path indicates where the executable file is stored on disk in the particular host in which it is installed. Thus, if identical executable files X and Y are installed on host 110a and host 110b, respectively, but are stored in different locations of memory, then the first token of the file identifier generated for executable file X on host 110a could be the same as the first token of the file identifier generated for executable file Y on host 110b. However, the second token of the file identifier generated for executable file X on host 110a could be different than the second token of the file identifier generated for executable file Y on host 110b.
Numerous other file identifiers may be configured by using any number of tokens and configuring the tokens to include any combination of available program file attributes, checksums, and/or file paths. Program file attributes may include, for example, creation date, modification date, security settings, vendor name, and the like. Although file identifiers may be configured with any number of such tokens, an executable file without a particular program file attribute, which is selected as one of the tokens, may have a file identifier with only the tokens available to that executable file. For example, if the file identifier is configured to include a first token (e.g., a checksum) and a second token (e.g., a vendor name), then an executable file without an embedded vendor name would have a file identifier with only a first token corresponding to the file checksum. In contrast, an executable file having an embedded vendor name would have a file identifier with both first and second tokens corresponding to the file checksum and vendor name, respectively.
The file identifiers and resulting host file inventories I1 through In may be provided by various implementations. In one embodiment, the file identifiers and resulting host file inventories may be generated by host inventory feeds 114 for each host 110 and pushed to central server 130. For embodiments in which a user configures the file identifier by selecting a number of tokens for the token sequence and by selecting individual token configurations, central server 130 may provide the user selected configuration criteria to each host 110. Host inventory feeds 114 may then generate file identifiers with token sequences having the particular user-selected configuration. In another embodiment, checksums for each executable file may be generated on hosts 110 by host inventory feeds 114 and then pushed to central server 130 along with other file attributes and file paths such that host inventory preparation module 150 of central server 130 can generate the file identifiers and resulting host file inventories for each of the selected hosts 110. In one embodiment, enumeration of executable files from the sets of executable files 112 of selected hosts 110 can be achieved by existing security technology such as, for example, Policy Auditor software or Application Control software, both manufactured by McAfee, Inc. of Santa Clara, Calif.
Referring again to
After vector-based clustering has been performed on the vector matrix in step 330, flow moves to step 340 where one or more reports can be generated indicating the clustered groupings determined during the clustering analysis and can be provided to authorized users by various methods (e.g., screen displays, electronic files, hard copies, emails, etc.). Exemplary reports may include a textual report and/or a visual representation (e.g., a proximity plot, a dendrogram, heat maps of a permuted keyword matrix, heat maps of a reduced keyword matrix where rows and columns have been merged to illustrate clusters, other cluster plots, etc.) enabling the user to view logical groupings of the selected hosts. For example, after the clustering analysis has been performed, a graphical user interface of management console 170 may display a proximity plot having physical representations of each host, with identifiable logical groupings (e.g., uniquely colored groupings, circled or otherwise enclosed groupings, representations of groupings with connected lines, etc.). Once the similar groupings and outlier hosts have been identified, an IT Administrator or other authorized user can apply common policies to hosts within the logical groupings and remedial action may be taken on any identified outlier hosts. For example, outlier hosts may be remediated to a standard software configuration as defined by the IT Administrators.
Turning to
-
- n=number of selected hosts
- m=number of keywords
- Hi=host in network, with i=1 to n (e.g., H1=host 110a, H2=host 110b, H3=host 110c)
- Kj=unique keyword, with j=1 to m
- Ii=host file inventory on Hi, with i=1 to n
The number of keywords associated with an executable file equals the number of tokens in the token sequence of the file identifier representing the executable file. Therefore, one or more keywords can be associated with each executable file in sets of executable files 112 of selected hosts 110. In addition, each keyword could be associated with multiple executable files in the same or different hosts. Thus, a keyword sequence km may be defined as a sequence of unique keywords K1 through Km, where each keyword is associated with one or more executable files in sets of executable files 112 of all selected hosts 110.
Vector matrix format 400 includes n rows 460 and m columns 470, with n and m defining the dimensions of the resulting n-by-m (i.e., n×m) vector matrix. Each row of vector matrix format 400 is denoted by a unique host Hi (i=1 to n), and each column is denoted by a unique keyword Kj (j=1 to m) of keyword sequence km. Each entry 480 is denoted by a variable with subscripts i and j (i.e., ai,j) where i and j correspond to the respective row and column where the entry is located. For example, entry a2,1 is found in row 2, column 1 of vector matrix format 400. Each row of entries represents a row vector 410, 420, and 430 for its corresponding host H1, H2 and Hn. For example, a1,1, a1,2, through a1,m define row vector 410 for host H1. Once each of the entries 480 has been filled with a determined value, row vectors 410, 420, through 430 can be provided as input data to a vector-based clustering algorithm to create a cluster graph or plot showing logical groupings of hosts H1 through Hn, having similar inventories of executable files and any host outliers having dissimilar host inventories.
Turning to
Once keyword sequence km has been determined, the algorithm of flow 500 computes a list of position vectors for an n×m vector matrix. Variables ‘i’ and ‘j’ are used to construct the vector matrix having n×m vector matrix format 400, in m-dimensional keyword space, for each host Hi by iterating over j through km and producing appropriate values for the position vectors indicating whether each host file inventory Ii contains each keyword Kj.
The iterative flow to find keywords of keyword sequence km in file identifiers of host inventories is illustrated in steps 520 through 575 of
The values of entries ai,j in the vector matrix, which indicate whether keyword Kj is found in a host file inventory Ii, may vary depending upon the particular implementation of the system. In one embodiment, an entry ai,j is assigned a ‘1’ value in step 555, indicating keyword Kj was found in host file inventory Ii, or a ‘0’ value in step 560, indicating keyword Kj was not found in host file inventory Ii. Thus, in this embodiment, vector matrix contains only ‘0’ and/or ‘1’ values. In another embodiment, entry ai,j is assigned a value in step 555 or 550 corresponding to a frequency of occurrence of keyword Kj in host file inventory Ii. For example, assume file identifiers in a host file inventory I1 include a first token configured as a checksum and a second token configured as a vendor name, with three executable files on host H1 having the same embedded vendor name, XYZ, resulting in keyword K2 of keyword sequence km being assigned the embedded vendor name XYZ. In this embodiment, when host file inventory I1 of host H1 is searched for keyword K2, entry a1,2 could be updated with a value of 3 because of the three occurrences of vendor name XYZ in file identifiers of host file inventory I1. Thus, in this embodiment, vector matrix may contain ‘0’ values and/or positive integer values.
After row i, column j is filled with an appropriate value in step 555 or 550, flow moves to decision box 560 where a query is made as to whether j<m. If j<m, then host file inventory Ii of host Hi has not been checked for all of the keywords in km. Therefore, flow moves to step 565 where j is set to j+1, and flow loops back to step 540 to get the next keyword Kj (with j=j+1) in km and search for Kj in host file inventory Ii. If, however, in decision box 560 it is determined that j is not less than m (i.e., j≧m), then host file inventory Ii has been searched for all of the keywords K1 through Km in keyword sequence km, so flow moves to decision box 570, which is part of the outer loop of flow 500. A query is made in decision box 570 to determine whether i<n, and if i<n, then not all of the hosts have been evaluated to generate corresponding keyword vectors. Therefore, flow moves to step 575 where i is set to i+1, and flow loops back to step 530. In step 530, j is set to 1 again, so that a vector for the next host Hi (with i=i+1) can be generated by inner loop steps 540 through 565. With reference again to decision box 570, if i is not less than n in), then all of the hosts H1 through Hn have been evaluated such that all of the vectors have been created in n×m vector matrix and, therefore, the flow ends.
The embodiment of the flow 500 shown in
The clustering analysis performed on the resulting vector matrix may include commonly available clustering techniques such as agglomerative hierarchical clustering or partitional clustering. In agglomerative hierarchical clustering, each element begins as a separate cluster and elements are merged into successively larger clusters, which may be represented in a tree structure called a dendrogram. A root of the tree represents a single cluster of all of the elements and the leaves of the tree represent separated clusters of the elements. Generally, merging schemes in agglomerative hierarchical clustering used to achieve logical groupings may include schemes well-known in the art such as single-link (i.e., the distance between clusters is equal to the shortest distance from any member of one cluster to any member of another cluster), complete-link (i.e., the distance between clusters is equal to the greatest distance from any member of one cluster to any member of another cluster), group-average (i.e., the distance between clusters is equal to the average distance from any member of one cluster to any member of another cluster), and centroid (i.e., the distance between clusters is equal to the distance from the center of any one cluster to the center of another cluster).
Known techniques may be implemented in which predetermined similarity criteria sets the point at which clustering is halted (e.g., cut point determination). Cut point determination may be made, for example, at a specified level of similarity or when consecutive similarities are the greatest, which is known in the art. As an example, a tree structure representing clusters could be cut at a predetermined height resulting in more or less clusters depending on the selected height at which the cut is made. Cut point determinations may be determined based on a particular network environment or particular hosts being clustered. In one example embodiment, an IT administrator or other authorized user could define the cut point determination used by the clustering procedure by determining a desired threshold for similarity based on the particular network environment.
In other embodiments, partitional clustering may be used. Partitional clustering typically involves an algorithm that determines all clusters at one time. In partitional clustering, predetermined similarity criteria may provide, for example, a selected number of clusters to be generated or a maximum diameter for the clusters. One exemplary software package that implements these various clustering techniques is CLUTO Software for Clustering High-Dimensional Datasets developed by George Karypis, Professor at the Department of Computer Science & Engineering, University of Minnesota, Minneapolis and Saint Paul, Minn., which may be found on the World Wide Web at http://glaros.dtc.umn.edu/gkhome/view/cluto.
Turning to
In the example scenario of applying the keyword method of flow 500 to the sets of executable files 601 through 605 of selected plurality of hosts 600 in order to create vector matrix 700, the following variables may be identified:
-
- n=5 (host computers)
- H1 through H5=hosts in network (e.g., H1=host 1, H2=host 2, etc.)
- I1 through I5=host file inventories representing sets of executable files 601 through 605, respectively
- m=8 (keywords)
- K1 through K8=unique keywords
Each of the host file inventories I1 through I5 includes a set of file identifiers representing one of the sets of executable files 601, 602, 603, 604, and 605, respectively. Each executable file in a set of executable files is represented by a separate file identifier in the particular host file inventory. In this exemplary scenario, file identifiers each include a first token having a checksum configuration. Unique keywords are determined among all sets of executable files of selected hosts H1 through H5. Thus, 8 unique keywords may be determined for selected hosts 600: - K1=checksum for executable file 610
- K2=checksum for executable file 620
- K3=checksum for executable file 630
- K4=checksum for executable file 640
- K5=checksum for executable file 650
- K6=checksum for executable file 660
- K7=checksum for executable file 670
- K8=checksum for executable file 680
A keyword sequence km can then be created in step 520 with the 8 unique keywords: - km=K1K2K3K4K5K6K7K8
Thus, in this example scenario, the following host file inventories I1 through I5 could include file identifiers having first tokens equivalent to the following keywords: - I1→K1, K2, K3, K4
- I2→K1, K5, K6, K7
- I3→K1, K2, K3, K8
- I4→K1, K5, K6
- I5→K4, K7, K8
Once keyword sequence km is determined, flow moves to step 520 where variable i is set to 1 and then the iterative flow begins to create n×m (5×8) vector matrix 700 shown in
After the last entry 780 of keyword vector 710 has been added to vector matrix 700, flow moves to decision box 560 where a query is made as to whether j<m (i.e., Is 8<8?). Because j is not less than 8, flow moves to decision box 570 where a query is made as to whether i<n (i.e., Is 1<5?). Because 1 is less than 5, flow moves to step 575 where i is set to 2 (i.e., i=i+1) and flow loops back to step 530 where j is set to 1. The inner iterative loop then begins in step 540 to search for all keywords in host file inventory Ii (I2) of host Hi (H2) beginning with keyword Kj (K1). Thus, in the embodiment used in this example scenario, rows 760 are successively filled with a ‘1’ or a ‘0’ value for each entry ai,j until each vector row 710 through 750 has been completed. As previously discussed herein, however, another embodiment provides that each entry ai,j in rows 760 could be filled with a value corresponding to the frequency of occurrence of keyword Kj found in host file inventory Ii.
Vector matrix 700 can be provided as input data to a vector based clustering procedure, as previously described herein. Information generated from the clustering procedure could be provided in numerous ways such as, for example, reports, screen displays, files, emails, etc. In one example, the information could be provided in a proximity plot such as example proximity plot 800 illustrated in
Turning to
After file identifiers and host file inventories have been determined for each of the selected hosts 110, flow then moves to step 920 where a compression technique may be used to transform host file inventories into a similarity matrix, which will be further described herein with reference to
After similarity-based clustering has been performed on the similarity matrix in step 930, flow moves to step 940 where one or more reports can be generated indicating the clustered groupings determined during the clustering analysis, as previously described herein with reference to
Turning to
-
- n=number of selected hosts
- Hi=host in network, with i=1 to n (e.g., H1=host 110a, H2=host 110b, H3=host 110c)
- Hj=host in network, with j=1 to n (e.g., H1=host 110a, H2=host 110b, H3=host 110c)
- Ii=host file inventory of Hi
- Ij=host file inventory of Hj
Similarity matrix format 1000 includes n rows 1060 and n columns 1070, with ‘n’ defining the number of dimensions of the resulting n-by-n (i.e., n×n) similarity matrix. Each row of similarity matrix format 1000 is denoted by host Hi (i=1 to n), and each column is denoted by host Hj (j=1 to n). Each entry 1080 is denoted by a variable with subscripts i and j (i.e., ai,j) where i and j correspond to the respective row and column where the entry is located. For example, entry a2,1 is found in row 2, column 1 of similarity matrix format 1000.
When a similarity matrix is created in accordance with one embodiment of this disclosure, each entry ai,j has a numerical value representing the similarity distance between host Hi and host Hj with 1 representing the highest degree of similarity. In one embodiment, the similarity distances represented by entries a1,1 through an,n can include any numerical value from 0 to 1, inclusively (i.e., 0≦ai,j≦1). In this embodiment, the closer ai,j is to 1, the greater the similarity is between host file inventories Ii and Ij of hosts Hi and Hj, and the closer ai,j is to zero, the greater the difference is between host file inventories Ii and Ij of hosts Hi and Hj. Thus, a value of 1 in ai,j may indicate hosts Hi and Hj have identical host file inventories and therefore, identical sets of executable files, whereas a value of zero in ai,j may indicate hosts Hi and Hj have no common file identifiers in their respective host file inventories and therefore, no common executable files in their respective sets of executable files. Once each of the entries 1080 has been filled with a calculated value, the resulting similarity matrix can be provided as input data into a similarity-based clustering algorithm to create a cluster graph or plot showing logical groupings of hosts H1 through Hn having similar sets of executable files and outlier hosts having dissimilar sets of executable files. The clustering analysis performed on the resulting similarity matrix may include commonly available clustering techniques such as agglomerative hierarchical clustering or partitional clustering, as previously described herein with reference to clustering analysis of a vector matrix.
Turning to
In step 1120, a list of file identifiers (e.g., checksums, checksums combined with a file path, checksums combined with one or more file attributes, etc.) representing a set of executable files on host Hi are extracted from host file inventory Ii and put in a file Fi. In step 1125, a list of file identifiers representing a set of executable files on host Hi are extracted from host file inventory Ij and put in a file Fj. In step 1130, files Fi and Fj are concatenated and put in file Fij. It will be apparent that the use of files Fi, Fj, and Fij to store file identifiers is an example implementation of the system, and that memory buffers or any other suitable representation allowing concatenation, compression, and length determination of data may also be used.
After files Fi, Fj, and Fij are prepared, compression is applied to each of the files. A compression utility such as, for example, gzip, bzip, bzip2, zlib, or zip compression utilities may be used to compress files Fi, Fj, and Fij. Also, in some embodiments, the list of file identifiers in files Fi, Fj, and Fij may be sorted to enable more accurate compression by the compression utility. In step 1140, file Fi is compressed and the length of the result is represented as C. In step 1145, file Fj is compressed and the length of the result is represented as Cj. In step 1150, file Fij is compressed and the length of the result is represented as Cij. After compressing each of the files, normalized compression distance (NCDi,j) between Hi and Hj is computed in step 1155.
Normalized compression distance (NCD) is used for clustering and is based on an algorithm developed by Kolmogorov called normalized information distance (NID). NCD is discussed in detail in Rudi Cilibrasi's 2007 thesis entitled “Statistical Interference through Data Compression,” which may be found at http://www.illc.uva.nl/Publications/Dissertations/DS-2007-01.text.pdf and can be used to compute the distance between similar data. NCD may be computed using the following equation:
NCDi,j=[Cij−min{Ci,Cj}]/max{Ci,Cj}
Once NCDi,j has been computed, flow moves to step 1160 where ai,j is computed by the following equation: ai,j=1−NCDi,j. The value ai,j is then used to construct the similarity matrix by adding ai,j to row i, column j. After the similarity matrix has been updated in step 1160, flow moves to decision box 1165 and a query is made as to whether j<n. If j<n, then additional entries in row i of the similarity matrix need to be computed (i.e., similarity distance has not been computed between host Hi and all of the hosts Hj (j=1 to n). In this case, flow moves to step 1170 where j is set to j+1. Flow then loops back to step 1120 where the inner loop of flow 1100 repeats and the similarity distance is computed between host Hi and the next host Hj with j=j+1.
With reference again to decision box 1165, if j is not less than n (i.e., j≧n), then all of the entries in row i have been computed and flow moves to decision box 1175 where a query is made as to whether i<n. If i<n, then not all rows of similarity matrix 1000 have been computed, and therefore, flow moves to step 1180 where i is set to i+1. Flow then loops back to step 1115 where j is set to 1 so that entries ai,j for the next row i (Hi, with i=i+1) can be generated by inner loop steps 1120 through 1170. With reference again to decision box 1175, if i is not less than n (i.e., i≧n) then entries for all of the rows i through n have been computed and, therefore, the similarity matrix has been completed and flow ends.
It will be apparent that flow 1100 could be optimized in numerous ways. One optimization technique includes caching the lengths of compressed files Ci and Cj, which are used multiple times during flow 1100 to calculate entries 1080 in the similarity matrix. In addition, the extracted lists of file identifiers Fi and Fj may also be cached for use during flow 1100. It will also be noted that the matrix should be symmetric along the diagonal a1,1 through an,n. This symmetry could be used in the implementation of the system to compute only one-half of the matrix and then reflect the results over the diagonal.
Turning to 12,
Applying the compression method flow 1100 of
-
- n=5 (hosts)
- H1 through H5=hosts in network (e.g., H1=host 1, H2=host 2, etc.)
- I1 through I5=host file inventories representing sets of executable files 601 through 605, respectively
Each of the host file inventories I1 through I5 includes a set of file identifiers representing one of the sets of executable files 601, 602, 603, 604, and 605. Each executable file in a set of executable files is represented by a separate file identifier in the particular host file inventory. In this example scenario in which each file identifier includes a single token having a checksum configuration, the following host file inventories of hosts H1 through H5 could include file identifiers D1 through D8, which represent executable files 610 through 680, respectively:
-
- I1→D1, D2, D3, D4
- I2→D1, D5, D6, D2
- I3→D1, D2, D3, D8
- I4→D1, D5, D6
- I5→D4, D7, D8
In step 1110, i is set to 1 and then the iterative looping begins to create an n×n (5×5) similarity matrix 1200 shown in
-
- Fi (F1)=D1D2D3D4 (i.e., list of file identifiers for Ii (I1))
- Fj (F1)=D1D2D3D4 (i.e., list of file identifiers for Ij (I1))
- Fij (F1F1)=D1D2D3D4D1D2D3D4 (i.e., concatenated files Fi (F1) and Fj (F1))
Flow then moves to steps 1140 through 1150 where compression is applied to these files and the length of the compressed files is represented as follows: - Ci (C1)=length of compressed file Fi (F1)
- Cj (C1)=length of compressed file Fj (F1)
- Cij (C1C1)=length of compressed file Fij (F1F1)
For simplicity of explanation, example arbitrary values are provided in which each file identifier has a defined length of 1, such that C1=4 and C1C1=4. It will be apparent, however, that these values are provided for example purposes only and may not accurately reflect actual values produced by a compression utility. After compression has been applied to the files, NCDi,j is computed using the compressed values Ci, Cj, and Cij. In this example,
After the NCD1,1 value is computed in step 1155, flow moves to step 1160 and ai,j is computed:
The ‘1’ value is added to row i, column j (row 1, column 1) of similarity matrix 1200. After similarity matrix 1200 has been updated, flow moves to decision box 1165 where a query is made as to whether j<n. Since 1 is less than 5, flow moves to step 1170 where j is set to 2 (i.e., j=j+1). Flow then loops back to step 1120 to determine the similarity distance between Hi (H1) and the next host Hj (H2). In this case, after extraction and compression are performed, NCDi,j (NCD1,2) is computed as 0.75, because H1 and H2 have only one common file identifier D1 and, therefore, only one common executable file 601. In step 1160, NCD1,2 is used to compute a1,2 as 0.25, which is added to row i, column j (row 1, column 2) of similarity matrix 1200. The variable j is still less than 5, (i.e., 2<5) as determined in decision box 1165, so flow moves to step 1170 and j is set to 3 (i.e., j=j+1). This iterative processing continues for each value of j until j=5, thereby filling in each entry for H1 in row i (row 1) of similarity matrix 1200.
After the last entry of row i (row 1) has been added to similarity matrix 1200, flow moves to decision box 1165 where a query is made as to whether j<n (i.e., Is 5<5?). Because j is not less than 5, flow moves to decision box 1175 where a query is made as to whether i<n (i.e., Is 1<5?). Because 1 is less than 5, flow moves to step 1180 where i is set to 2 (i.e., i=i+1) and flow loops back to step 1115 where j is set to 1. The inner iterative loop then begins in step 1120 to determine the similarity distance between host file inventory Ii (I2) of host Hi (H2) and each host file inventory Ij (I1 through I5). Thus, rows 1160 are successively filled with similarity distance values ai,j until each row has been completed.
After the compression method of flow 1100 has finished processing, similarity matrix 1200 can be provided as input to a similarity-based clustering procedure, as previously described herein with reference to clustering techniques used with a vector matrix. Information generated from the clustering procedure could be provided in numerous ways, as previously described herein with reference to
Software for achieving the operations outlined herein can be provided at various locations (e.g., the corporate IT headquarters, end user computers, distributed servers in the cloud, etc.). In other embodiments, this software could be received or downloaded from a web server (e.g., in the context of purchasing individual end-user licenses for separate networks, devices, servers, etc.) in order to provide this system for clustering host inventories. In one example implementation, this software is resident in one or more computers sought to be protected from a security attack (or protected from unwanted or unauthorized manipulations of data).
In other examples, the software of the system for clustering host inventories in a computer network environment could involve a proprietary element (e.g., as part of a network security solution with McAfee® EPO software, McAfee® Application Control software, etc.), which could be provided in (or be proximate to) these identified elements, or be provided in any other device, server, network appliance, console, firewall, switch, information technology (IT) device, distributed server, etc., or be provided as a complementary solution (e.g., in conjunction with a firewall), or provisioned somewhere in the network.
In certain example implementations, the clustering activities outlined herein may be implemented in software. This could be inclusive of software provided in central server 130 (e.g., via administrative module 140, host inventory preparation module 150 and clustering module 160) and hosts 110 (e.g., via host inventory feed 114). These elements and/or modules can cooperate with each other in order to perform clustering activities as discussed herein. In other embodiments, these features may be provided external to these elements, included in other devices to achieve these intended functionalities, or consolidated in any appropriate manner. For example, some of the processors associated with the various elements may be removed, or otherwise consolidated such that a single processor and a single memory location are responsible for certain activities. In a general sense, the arrangement depicted in
In various embodiments, all of these elements (e.g., hosts 110, central server 130) include software (or reciprocating software) that can coordinate, manage, or otherwise cooperate in order to achieve the clustering operations, as outlined herein. One or all of these elements may include any suitable algorithms, hardware, software, components, modules, interfaces, or objects that facilitate the operations thereof. In the implementation involving software, such a configuration may be inclusive of logic encoded in one or more tangible media (e.g., embedded logic provided in an application specific integrated circuit (ASIC), digital signal processor (DSP) instructions, software (potentially inclusive of object code and source code) to be executed by a processor, or other similar machine, etc.), which may be inclusive of non-transitory media. In some of these instances, one or more memory elements (as shown in
Any of the memory items discussed herein should be construed as being encompassed within the broad term ‘memory element.’ Similarly, any of the potential processing elements, modules, and machines described in this Specification should be construed as being encompassed within the broad term ‘processor.’ Each of the computers, servers, and other devices may also include suitable interfaces for receiving, transmitting, and/or otherwise communicating data or information in a network environment.
Note that with the examples provided herein, interaction may be described in terms of two, three, four, or more network components. However, this has been done for purposes of clarity and example only. It should be appreciated that the system can be consolidated in any suitable manner. Along similar design alternatives, any of the illustrated computers, modules, components, and elements of
It is also important to note that the operations described with reference to the preceding FIGURES illustrate only some of the possible scenarios that may be executed by, or within, the system. Some of these operations may be deleted or removed where appropriate, or these operations may be modified or changed considerably without departing from the scope of the discussed concepts. In addition, the timing of these operations may be altered considerably and still achieve the results taught in this disclosure. The preceding operational flows have been offered for purposes of example and discussion. Substantial flexibility is provided by the clustering system in that any suitable arrangements, chronologies, configurations, and timing mechanisms may be provided without departing from the teachings of the discussed concepts.
Claims
1. A computer implemented method, comprising:
- obtaining a plurality of host file inventories corresponding respectively to a plurality of hosts in a network environment, wherein each of the plurality of host file inventories includes one or more file identifiers, each of the file identifiers of a particular host file inventory representing a different executable file on one of the plurality of hosts corresponding to the particular host file inventory;
- calculating input data by transforming the plurality of host file inventories into a matrix of keyword vectors in Euclidean space based on a keyword sequence, wherein each keyword of the keyword sequence is unique, wherein each one of the plurality of hosts corresponds to one of the keyword vectors; and
- providing the input data to a clustering procedure to group the plurality of hosts into one or more clusters of hosts, wherein the one or more clusters of hosts are grouped using a predetermined similarity criteria.
2. (canceled)
3. The method of claim 1, wherein each of the one or more file identifiers in the plurality of host file inventories includes a token sequence of one or more tokens.
4. The method of claim 3, further comprising:
- receiving input from a user selecting a number of tokens for the token sequence and selecting a configuration for each of the tokens.
5. The method of claim 3, wherein the token sequence includes a first token and a configuration for the first token is a checksum of an executable file.
6. The method of claim 3, wherein the token sequence includes a first token and a second token, wherein a first configuration for the first token is a checksum of an executable file and a second configuration for the second token is a file path of the executable file.
7. The method of claim 3, further comprising:
- determining the keyword sequence, wherein each keyword of the keyword sequence is unique with respect to other keywords in the keyword sequence.
8. The method of claim 7, wherein a first keyword of the keyword sequence is equivalent to a first token of at least one of the one or more file identifiers of the plurality of host file inventories.
9. The method of claim 8, wherein a second keyword of the keyword sequence is equivalent to another first token of at least one of the one or more other file identifiers of the plurality of host file inventories, wherein the first token and the other first token are not equivalent.
10. The method of claim 8, wherein a third keyword of the keyword sequence is equivalent to a second token of at least one of the one or more file identifiers of the plurality of host file inventories.
11. (canceled)
12. The method of claim 1, wherein a first one of the keyword vectors includes a plurality of values, each value indicating whether one of the keywords in the keyword sequence is included in a first one of the plurality of host file inventories.
13. The method of claim 1, wherein a first one of the keyword vectors includes a plurality of values, each value corresponding to a frequency of occurrence of one of the keywords in a first one of the plurality of host file inventories.
14. (canceled)
15. (canceled)
16. (canceled)
17. The method of claim 1, further comprising:
- generating information indicating the one or more clusters of hosts, wherein each of the one or more clusters includes at least one host.
18. The method of claim 17, wherein the information is a proximity plot.
19. The method of claim 1, wherein the clustering procedure is an agglomerative hierarchical clustering technique with the predetermined similarity criteria including a cut point determination to define a stopping point of the clustering procedure.
20. The method of claim 1, wherein the clustering procedure is a partitional clustering technique.
21. Logic encoded in one or more non-transitory media that includes code for execution and when executed by a processor is operable to perform operations comprising:
- obtaining a plurality of host file inventories corresponding respectively to a plurality of hosts in a network environment, wherein each of the plurality of host file inventories includes one or more file identifiers, each of the file identifiers of a particular host file inventory representing a different executable file on one of the plurality of hosts corresponding to the particular host file inventory;
- calculating input data by transforming the plurality of host file inventories into a matrix of keyword vectors in Euclidean space based on a keyword sequence, wherein each keyword of the keyword sequence is unique, wherein each one of the plurality of hosts corresponds to one of the keyword vectors; and
- providing the input data to a clustering procedure to group the plurality of hosts into one or more clusters of hosts, wherein the one or more clusters of hosts are grouped using a predetermined similarity criteria.
22. (canceled)
23. The logic of claim 21, wherein each of the one or more file identifiers in the plurality of host file inventories includes a token sequence of one or more tokens.
24. The logic of claim 21, the processor being operable to perform further operations comprising:
- determining the keyword sequence, wherein each keyword of the keyword sequence is unique with respect to other keywords in the keyword sequence, wherein a first one of the keyword vectors includes a plurality of values, each value indicating whether one of the keywords in the keyword sequence is included in a first one of the plurality of host file inventories.
25. (canceled)
26. An apparatus, comprising:
- a host inventory preparation module;
- a processor operable to execute instructions associated with the host inventory preparation module, including: obtaining a plurality of host file inventories corresponding respectively to a plurality of hosts in a network environment, wherein each of the plurality of host file inventories includes one or more file identifiers, each of the file identifiers of a particular host file inventory representing a different executable file on one of the plurality of hosts corresponding to the particular host file inventory; calculating input data by transforming the plurality of host file inventories into a matrix of keyword vectors in Euclidean space based on a keyword sequence, wherein each keyword of the keyword sequence is unique, wherein each one of the plurality of hosts corresponds to one of the keyword vectors; and providing the input data to a clustering procedure to group the plurality of hosts into one or more clusters of hosts, wherein the one or more clusters of hosts are grouped using a predetermined similarity criteria.
27. (canceled)
28. The apparatus of claim 26, wherein each of the one or more file identifiers in the plurality of host file inventories includes a token sequence of one or more tokens.
29. The apparatus of claim 26, wherein the processor is operable to perform further instructions, comprising:
- determining the keyword sequence, wherein each keyword of the keyword sequence is unique with respect to other keywords in the keyword sequence, wherein a first one of the keyword vectors includes a plurality of values, each value indicating whether one of the keywords in the keyword sequence is included in a first one of the plurality of host file inventories.
30. (canceled)
Type: Application
Filed: Sep 12, 2010
Publication Date: Sep 19, 2013
Inventors: Rishi Bhargava (Cupertino, CA), David P. Reese, JR. (Sunnyvale, CA)
Application Number: 12/880,125
International Classification: G06F 17/30 (20060101);