The present invention relates to a computer-based security system, and specifically to message parsing.
Computer networks and systems have become indispensable tools for modern business. Today terabits of information on virtually every subject imaginable are stored in and accessed across such networks by users throughout the world. Much of this information is, to some degree, confidential and its protection is required. Not surprisingly then, intrusion detection systems (IDS) have been developed to help uncover attempts by unauthorized persons and/or devices to gain access to computer networks and the information stored therein. In addition, network devices such as routers and firewalls maintain activity logs that can be used to examine such attempts.
Intrusion detection may be regarded as the art of detecting inappropriate, incorrect or anomalous activity within or concerning a computer network or system. The most common approaches to intrusion detection are statistical anomaly detection and pattern-matching detection. IDS that operate on a host to detect malicious activity on that host are called host-based IDS (HIDS), which may exist in the form of host wrappers/personal firewalls or agent-based software, and those that operate on network data flows are called network-based IDS (NIDS). Host-based intrusion detection involves loading software on the system (the host) to be monitored and using log files and/or the host's auditing agents as sources of data. In contrast, a network-based intrusion detection system monitors the traffic on its network segment and uses that traffic as a data source. Packets captured by the network interface cards are considered to be of interest if they match a signature.
Regardless of the data source, there are two complementary approaches to detecting intrusions: knowledge-based approaches and behavior-based approaches. Almost all IDS tools in use today are knowledge-based. Knowledge-based intrusion detection techniques involve comparing the captured data to information regarding known techniques to exploit vulnerabilities. When a match is detected, an alarm is triggered. Behavior-based intrusion detection techniques, on the other hand, attempt to spot intrusions by observing deviations from normal or expected behaviors of the system or the users (models of which are extracted from reference information collected by various means). When a suspected deviation is observed, an alarm is generated.
Advantages of the knowledge-based approaches are that they have the potential for very low false alarm rates, and the contextual analysis proposed by the intrusion detection system is detailed, making it easier for a security officer using such an intrusion detection system to take preventive or corrective action. Drawbacks include the difficulty in gathering the required information on the known attacks and keeping it up to date with new vulnerabilities and environments.
Advantages of behavior-based approaches are that they can detect attempts to exploit new and unforeseen vulnerabilities. They are also less dependent on system specifics. However, the high false alarm rate is generally cited as a significant drawback of these techniques and because behaviors can change over time, the incidence of such false alarms can increase.
Regardless of whether a host-based or a network-based implementation is adopted and whether that implementation is knowledge-based or behavior-based, an intrusion detection system is only as useful as its ability to discriminate between normal system usage and true intrusions (accompanied by appropriate alerts). If intrusions can be detected and the appropriate personnel notified in a prompt fashion, measures can be taken to avoid compromises to the protected system. Otherwise such safeguarding cannot be provided. Accordingly, what is needed is a system that can provide accurate and timely intrusion detection and alert generation so as to effectively combat attempts to compromise a computer network or system.
Device discovery can be made efficient using certain embodiments of the present invention. In one embodiment, the present invention includes accessing a message in a message log, wherein the message log associates a host identifier with the message, the host identifier being an identifier of a host that sent the message to the message log. Then a list of parsers associated with the host identifier associated with the message can be accessed and parsing the message using parsers from the list of parsers associated with the host identifier can be attempted. If the parsing is unsuccessful, a device type of an originator of the message can be discovered, and a parser associated with the discovered device type can be added to the list of parsers associated with the host identifier.
The present invention is illustrated by way of example, and not limitation, in the figures of the accompanying drawings in which:
Although the present system will be discussed with reference to various illustrated examples, these examples should not be read to limit the broader spirit and scope of the present invention. For example, the examples presented herein describe distributed agents, managers and consoles, which are but one embodiment of the present invention. The general concepts and reach of the present invention are much broader and may extend to any computer-based or network-based security system. Also, examples of the messages that may be passed to and from the components of the system and the data schemas that may be used by components of the system are given in an attempt to further describe the present invention, but are not meant to be all-inclusive examples and should not be regarded as such.
Some portions of the detailed description that follows are presented in terms of algorithms and symbolic representations of operations on data within a computer memory. These algorithmic descriptions and representations are the means used by those skilled in the computer science arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of steps leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers or the like. It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise, it will be appreciated that throughout the description of the present invention, use of terms such as “processing”, “computing”, “calculating”, “determining”, “displaying” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.
As indicated above, one embodiment of the present invention is instantiated in computer software, that is, computer readable instructions, which, when executed by one or more computer processors/systems, instruct the processors/systems to perform the designated actions. Such computer software may be resident in one or more computer readable media, such as hard drives, CD-ROMs, DVD-ROMs, read-only memory, read-write memory and so on. Such software may be distributed on one or more of these media, or may be made available for download across one or more computer networks (e.g., the Internet). Regardless of the format, the computer programming, rendering and processing techniques discussed herein are simply examples of the types of programming, rendering and processing techniques that may be used to implement aspects of the present invention. These examples should in no way limit the present invention, which is best understood with reference to the claims that follow this description.
Referring now to
Agents 12 are software programs that provide efficient, real-time (or near real-time) local event data capture and filtering from a variety of network security devices and/or applications. The primary sources of security events are common network security devices, such as firewalls, intrusion detection systems and operating system logs. Agents 12 can collect events from any source that produces event logs or messages and can operate at the native device, at consolidation points within the network, and/or through simple network management protocol (SNMP) traps.
Agents 12 are configurable through both manual and automated processes and via associated configuration files. Each agent 12 may include one or more software modules including a normalizing component, a time correction component, an aggregation component, a batching component, a resolver component, a transport component, and/or additional components. These components may be activated and/or deactivated through appropriate commands in the configuration file.
Managers 14 may be server-based components that further consolidate, filter and cross-correlate events received from the agents, employing a rules engine 18 and a centralized event database 20. One role of manager 14 is to capture and store all of the real-time and historic event data to construct (via database manager 22) a complete, enterprise-wide picture of security activity. The manager 14 also provides centralized administration, notification (through one or more notifiers 24), and reporting, as well as a knowledge base 28 and case management workflow. The manager 14 may be deployed on any computer hardware platform and one embodiment utilizes a relational database management system such as an Oracle™ database to implement the event data store component, such as event database 20. Communications between manager 14 and agents 12 may be bi-directional (e.g., to allow manager 14 to transmit commands to the platforms hosting agents 12) and encrypted. In some installations, managers 14 may act as concentrators for multiple agents 12 and can forward information to other managers (e.g., deployed at a corporate headquarters).
Consoles 16 are computer- (e.g., workstation-) based applications that allow security professionals to perform day-to-day administrative and operation tasks such as event monitoring, rules authoring, incident investigation and reporting. Access control lists allow multiple security professionals to use the same system and event database, with each having their own views, correlation rules, alerts, reports and knowledge base appropriate to their responsibilities. A single manager 14 can support multiple consoles 16.
In some embodiments, a browser-based version of the console 16 may be used to provide access to security events, knowledge base articles, reports, notifications and cases. That is, the manager 14 may include a web server component accessible via a web browser hosted on a personal or handheld computer (which takes the place of console 16) to provide some or all of the functionality of a console 16. Browser access is particularly useful for security professionals that are away from the consoles 16 and for part-time users. Communication between consoles 16 and manager 14 is bi-directional and may be encrypted.
Through the above-described architecture the present invention can support a centralized or decentralized environment. This is useful because an organization may want to implement a single instance of system 10 and use an access control list to partition users. Alternatively, the organization may choose to deploy separate systems 10 for each of a number of groups and consolidate the results at a “master” level. Such a deployment can also achieve a “follow-the-sun” arrangement where geographically dispersed peer groups collaborate with each other by passing primary oversight responsibility to the group currently working standard business hours. Systems 10 can also be deployed in a corporate hierarchy where business divisions work separately and support a rollup to a centralized management function.
The exemplary network security system illustrated in
Various attributes of the agents 12, such as event normalization (i.e., the mapping of “raw events” to some universal schema used by the network security system 10), and event aggregation, among others, are described in further detail in U.S. patent application Ser. No. 10/308,548, entitled “Modular Agent for Network Security Intrusion Detection System”, filed Dec. 2, 2002, which is hereby incorporated fully by reference. As described in the referenced application, in one embodiment, the agent normalize module (e.g., block 54 in FIG. 5 of the referenced application) builds normalized security events from raw input data. One such data source an agent 12 can use to generate security events is some sort of message log or concentrator.
Examples of message logs are operating system logs, event logs, and so on. Many of these logs currently use the Syslog standard, as set forth in RFC 3164 “The BSD Syslog Protocol.” Other logs use other standards and new standards may be developed in the future. Since Syslog is the current well-known message log format, it will be used in numerous examples below. However, the present invention is not limited by these Syslog-specific examples.
One example format for a message log entry is “Timestamp/Host/Message.” For Syslog, the Timestamp is in the “Month/Day/Time” format, the Host is identified by an Internet Protocol (IP) address, and the Message field is unstructured text. Message logs can receive messages from numerous host devices. For example, a firewall having IP address 333.222.11.1 may log the following message with a Syslog: “%Pix-6-00001: Connection from 123.342.24.1 accepted.”
For an agent 12 to use the information contained in a message to create a security event, it needs to parse the message into its constituents. A message parser can use regular expressions to match patterns and parse messages. For example, the Cisco Pix Firewall that generated the above message can generate messages matching the regular expression: “%Pix-‘number’-‘number’: Connection from ‘IP address’ accepted.”
Thus, if the agent can identify the host IP address 333.222.11.1 as being a Cisco Pix Firewall, the message can be parsed efficiently using a Pix Firewall Parser that contains the regular expressions associated with the message format of the Pix Firewall. However, if the agent does not know that the host IP address 333.222.11.1 is a Pix Firewall, then it must attempt to parse the message using all the possible device parsers until the host device is identified by a successful parse. This can be time consuming, especially when there is a large number of messages logged that the agent 12 is to parse.
This problem is further complicated, because the host identified in the event log is not necessarily the device responsible for the content of the message. For example the message may have been forwarded from another log to which it was sent by the originating device. Or, the message may have been forwarded by another device.
When messages are forwarded, the original host identification is lost, and the log only keeps track of the direct source of the message. So, if a Firewall logs a message with a Syslog having IP address 222.22.2.2 that forward it to another Syslog, the host in the second Syslog will be identified as 222.22.2.2, and not by the IP address of the Firewall.
Thus, a log being mined by an agent 12 may identify messages from different devices with the same host name. This complicates the task of discovering the device type associated with a host, and thus, the appropriate parser to use that corresponds with the device type of the originator of the message. Several embodiments of message parsing that address the problem of device discovery are now described with reference to
Message parsing processing begins with the consideration of the next message in the message log at block 102. As explained above, the message log associates a host identifier of the host from which the log received the message with each message. The host identifier may be an Internet protocol (IP) address, host name, or other identifier. In block 104, an attempt is made to parse the message using a parser associated with the host identified by the host identifier. For example, if there are currently two parsers on the list of parsers associated with the host—e.g. a Linux host message parser and a Pix Firewall message parser—then the message would be first checked against the Pix Firewall message parser.
In block 106, a determination is made as to whether the message was successfully parsed using the applicable parser (the Pix parser in the example above). If the message was successfully parsed, then, in block 108, a security event is generated using the data extracted from the parsed message, along with other data associated with the message in the message log, such as a timestamp and the host identifier. Security event building is further described in U.S. patent application Ser. No. 10/308,548 referenced above. At this point, the processing of the current message terminates, and the next message is considered in block 102.
However, if in block 106 the determination indicates that the parsing was not successful, then, in block 110, a determination is made as to whether there are any remaining parsers associated with the host. In the example above, the Linux host message parser is still remaining to be tried. If there remain parsers on the list of parsers associated with the host to be attempted on the message, then processing proceeds from block 104, where the next parser on the list is attempted on the message.
However, if in block 110 the determination indicates that the end of the list of parsers associated with the host has been reached, then, in block 112, the device type of the originator of the message is detected. In one embodiment, this is done by attempting to parse the message using the comprehensive list of parsers available. In one embodiment, the parsers currently associated with the host need not be tried, since they were already attempted in iterations of block 104. In the example above, the detected device type may be a Snort IDS; in other words, the originator of the message was a Snort IDS.
In block 114, the message is parsed with the parser associated with the detected device type. In the example above, the message would be parsed using the Snort IDS parser. In one embodiment, parsing the message is not a separate step, since the device type is detected by the successful parsing of the message. In such an embodiment, blocks 112 and 114 are combined into a single block.
In block 116, the parser of the discovered originator device type is added to the list of parsers associated with the host. In the example above, the Snort IDS parser would be added to the Pix Firewall and Linux host message parsers on the list of parsers associated with the host. In one embodiment, the processing would then proceed to block 108, where a security event is generated, and then to block 102, where the next message is considered.
The processing shown in
In one embodiment, the hierarchy for trying parsers from the list of parsers proceeds from more specific parsers to more general parsers. In the example above, the Snort IDS parser (regular expression “Snort:‘String’”) is tried before the Linux host parser (regular expression “‘String’: ‘String’”). The same, or a similar, hierarchy may be used when detecting the originator device type by trying all of the available parsers in block 112. Furthermore, in one embodiment, when the new parser is added to the list in block 116, it is added in a manner that respects the hierarchy of the parsers already on the list.
In one embodiment, the agent 12 is configured to monitor a message log device, such as a Syslog. In one embodiment, the agent 12 has an event normalize module 30 that includes a log interface 32 configured to read the message entries contained in the message log. In one embodiment, the log interface 32 provides each message with the host associated with the message by the log to an event builder module 34. The timestamp may also be provided.
The event builder module 34 attempts to parse the message by accessing a parser database 36. In one embodiment, the parser database 36 includes a list of parsers associated with each known host. The database also contains a comprehensive list of all available parsers and need not be implemented as a database. Initially, there may not be any known hosts, but as the agent mines the log, the hosts sending messages to the log become known, and various parsers become associated with each host. Thus, in one embodiment, the event builder module 34 first accesses the list of parsers associated with the host. If the message is successfully parsed using one of these parsers, the data extracted from the parsed event is used to generate a normalized security event.
If the message was not parsed successfully, the event builder module 34 can direct a device detection module 38 to discover the appropriate parser to use by performing a brute-force parsing of the message using all the available parsers until the correct parser is found. The device detection module 38, upon finding a parser that works on the message, adds this parser, and any other parser associated with the device type of the found parser, to the list of parsers that are associated with the host. The event builder module 34 can then build a normalized security event by parsing the message using the parser identified by the device detection module.
Referring again to
In one embodiment, device types are re-discovered periodically, whether required by the previously described processing or not. One such embodiment is described with reference to
However, if the timer has run, then, in one embodiment processing proceeds at block 112 in
The timer is then started in block 124, and processing proceeds with device detection in block 112 in
Thus, a process and apparatus for message parsing in a network security system has been described. In the forgoing description, various specific values and data structures were given names, such as “security event” and “message log,” and various specific modules, such as “agents” and “parser database” have been described. However, these names are merely to describe and illustrate various aspects of the present invention, and in no way limit the scope of the present invention. Furthermore, various modules, such as the manager 14, and the agents 12 in
Number | Name | Date | Kind |
---|---|---|---|
5557742 | Smaha et al. | Sep 1996 | A |
5717919 | Kodavalla et al. | Feb 1998 | A |
5802178 | Holden et al. | Sep 1998 | A |
5850516 | Schneier | Dec 1998 | A |
5956404 | Schneier et al. | Sep 1999 | A |
5963742 | Williams | Oct 1999 | A |
5978475 | Schneier et al. | Nov 1999 | A |
6009203 | Liu et al. | Dec 1999 | A |
6070244 | Orchier et al. | May 2000 | A |
6134664 | Walker | Oct 2000 | A |
6192034 | Hsieh et al. | Feb 2001 | B1 |
6275942 | Bernhard et al. | Aug 2001 | B1 |
6321338 | Porras et al. | Nov 2001 | B1 |
6408391 | Huff et al. | Jun 2002 | B1 |
6408404 | Ladwig | Jun 2002 | B1 |
6484203 | Porras et al. | Nov 2002 | B1 |
6542075 | Barker et al. | Apr 2003 | B2 |
6694362 | Secor et al. | Feb 2004 | B1 |
6704874 | Porras et al. | Mar 2004 | B1 |
6708212 | Porras et al. | Mar 2004 | B2 |
6711615 | Porras et al. | Mar 2004 | B2 |
6839850 | Campbell et al. | Jan 2005 | B1 |
6907564 | Burchhardt et al. | Jun 2005 | B1 |
6928556 | Black et al. | Aug 2005 | B2 |
6966015 | Steinberg et al. | Nov 2005 | B2 |
6985920 | Bhattacharya et al. | Jan 2006 | B2 |
6988208 | Hrabik et al. | Jan 2006 | B2 |
7039953 | Black et al. | May 2006 | B2 |
7043727 | Bennett et al. | May 2006 | B2 |
7089428 | Farley et al. | Aug 2006 | B2 |
7127743 | Khanolkar et al. | Oct 2006 | B1 |
7159237 | Schneier et al. | Jan 2007 | B2 |
7171689 | Beavers | Jan 2007 | B2 |
7188346 | Martin et al. | Mar 2007 | B2 |
7191362 | Boudnik et al. | Mar 2007 | B2 |
7219239 | Njemanze et al. | May 2007 | B1 |
7260844 | Tidwell et al. | Aug 2007 | B1 |
7278160 | Black et al. | Oct 2007 | B2 |
7308689 | Black et al. | Dec 2007 | B2 |
7333999 | Njemanze | Feb 2008 | B1 |
7376969 | Njemanze et al. | May 2008 | B1 |
7483972 | Bhattacharya et al. | Jan 2009 | B2 |
7596793 | Grabarnik et al. | Sep 2009 | B2 |
7644365 | Bhattacharya et al. | Jan 2010 | B2 |
20020019945 | Houston et al. | Feb 2002 | A1 |
20020099958 | Hrabik et al. | Jul 2002 | A1 |
20020104014 | Zobel et al. | Aug 2002 | A1 |
20020141449 | Johnson | Oct 2002 | A1 |
20020147803 | Dodd et al. | Oct 2002 | A1 |
20020184532 | Hackenberger et al. | Dec 2002 | A1 |
20030084349 | Friedrichs et al. | May 2003 | A1 |
20030093514 | Valdes et al. | May 2003 | A1 |
20030093692 | Porras | May 2003 | A1 |
20030101358 | Porras et al. | May 2003 | A1 |
20030187972 | Bauchot | Oct 2003 | A1 |
20030188189 | Desai et al. | Oct 2003 | A1 |
20030221123 | Beavers | Nov 2003 | A1 |
20040010718 | Porras et al. | Jan 2004 | A1 |
20040024864 | Porras et al. | Feb 2004 | A1 |
20040044912 | Connary et al. | Mar 2004 | A1 |
20040221191 | Porras et al. | Nov 2004 | A1 |
20050022207 | Grabarnik et al. | Jan 2005 | A1 |
20050027845 | Secor et al. | Feb 2005 | A1 |
20050204404 | Hrabik et al. | Sep 2005 | A1 |
20050251860 | Saurabh et al. | Nov 2005 | A1 |
20060069956 | Steinberg et al. | Mar 2006 | A1 |
20060095587 | Bhattacharya et al. | May 2006 | A1 |
20060101516 | Sudaharan et al. | May 2006 | A1 |
20060168515 | Dorsett et al. | Jul 2006 | A1 |
20060212932 | Patrick et al. | Sep 2006 | A1 |
20070118905 | Morin et al. | May 2007 | A1 |
20070136437 | Shankar et al. | Jun 2007 | A1 |
20070150579 | Morin et al. | Jun 2007 | A1 |
20070162973 | Schneier et al. | Jul 2007 | A1 |
20070169038 | Shankar et al. | Jul 2007 | A1 |
20070234426 | Khanolkar et al. | Oct 2007 | A1 |
20070260931 | Aguilar-Macias et al. | Nov 2007 | A1 |
20080104046 | Singla et al. | May 2008 | A1 |
20080104276 | Lahoti et al. | May 2008 | A1 |
20080162592 | Huang et al. | Jul 2008 | A1 |
20080165000 | Morin et al. | Jul 2008 | A1 |
20090157574 | Lee | Jun 2009 | A1 |
20100058165 | Bhattacharya et al. | Mar 2010 | A1 |
20100083281 | Malladi et al. | Apr 2010 | A1 |
Number | Date | Country |
---|---|---|
WO 02045315 | Jun 2002 | WO |
WO 02060117 | Aug 2002 | WO |
WO 02078262 | Oct 2002 | WO |
WO 02101988 | Dec 2002 | WO |
WO 03009531 | Jan 2003 | WO |
WO 2004019186 | Mar 2004 | WO |
WO 2005001655 | Jan 2005 | WO |
WO 2005026900 | Mar 2005 | WO |