Continuing our discussion of core Siem and log management technology, we now move into event correlation. this capability was the Holy Grail that drove most investigation in early Siem products, and probably the security technology creating the most consistent disappointment amongst its users. but ultimately the ability to make sense of the wide variety of data streams, and use them to figure out what is under attack or compromised, is essential to any security practice. this means that despite the disappointments, there will continue to be plenty of interest in correlation moving forward.
Correlation
Defining correlation is akin to kicking a hornet's nest. it immediately triggers agitated debates because there are several published definitions and every expert has their favorite. as usual, we need to revisit the definitions and level-set, not to create controversy (though that tends to happen), but to make things easy to understand. as we search for a pragmatic definition, we need to simplify concepts to make subjects understandable to a wider audience at the expensePrecision. We understand our community is not a bunch of shrinking violets, so we welcome your comments and suggestions to make our research more relevant.
Let's get back to the end-user problem driving Siem and log management. ultimately the goal of this technology is to interpret security-related data to improve security, increase efficiency, and/or document security controls. if a single file contained all the information required for security analysis, we wocould not bother with the collection and Association of events from multiple sources. the truth is that each log or event contains a piece of information, which forms part of the puzzle, but lacks context necessary to analyze the big picture. in order to make meaningful decisions about what is going on with our applications and within our network, we need to combine events from different sources. which events we want, and what pieces of data from those events we need, vary based on the problem we are trying to solve.
So what is correlation? Correlation is the act of linking multiple events together to detect strange behavior. it is the association of different but related events to provide broader context than a single event can provide. keep in mind that we are using a broad definition of 'event' because as the breadth of analysis increases, data may expand beyond traditional events. seems pretty simple, eh?
Let's look at an example of how correlation can help achieve one of our key Use Case: increasing the efficiency of the security team. in this case an analyst gets events from multiple locations and device types (and/or applications), and is expected to figure out whether there is an issue. the attacker might first scan the perimeter and then target an externally facing web server with a series of known exploits. upon successfully compromising the web server, the attacker sets up a new user account and start scanning internally to find more exploitable hosts.
The data is available to catch this attack, but not in a single place. the firewallsee the initial scans. the IDS/IPS sees the series of exploits. and the user directory sees the new account on the compromised server. the objective of correlation is to see all these events come through and recognize that the server has been compromised and needs immediate attention. easy in concept, very hard in practice.
Historically, the ability to do near real time analysis and event correlation was one of the ways Siem differed from log management, although the lines continue to blur. most of the steps we have discussed so far (collecting data, then aggregating and normalizing it) help isolate the attributes that link events together to make correlation possible. once data is in manageable form we apply rules to detect attacks and misuse. these rules are comprised of the granular criteria (E.g .,Specific router, user account, time, etc.), and determine if a series of events reaches a threshold requiring corrective action.
But the dedevil is in the details. the technology implements correlation as a linear series of events. each comparison may be a simple case of "if x = Y, then" do something else, but we may need to string several of these comparisons together. second, note that correlation is built on rulesKnownAttack patterns. this means we need some idea of what we are looking for to create the correlation rules. we have to understand attack patterns or elements of a compliance requirement in order to determine which device and event types shoshould be linked. third, we have to factor in the time factor, because events do not happen simultaneously, so there is a window of time within which events are likely to be related. finally the specified tiveness of correlation also depends on the quality of data collection, normalization, and tagging or indexing of information to feed the correlation rules.
Development of rules takes time and understanding, as well as ongoing maintenance and tuning. sure, your vendor will provide out-of-the-box catalogs ies to help get you started, but expect CT to invest significant time into tweaking existing rules for your environment, and writing new versions ies for security and compliance to keep pace with the very dynamic security environment. further complicating matters: more rules and more potentially-linked events to consider increase computational load exponentially. there is a careful balancing act to be passed med between the number of policies ies to implement, the accuracy of the results, and the throughput of the system. these topics may not immediately seem orthogonal, but generic Rules detect more threats at a cost of more false positives. the more specific the rule, and the more precisely tailored to find specific threats, the less it will find new problems.
This is the difficulty in getting correlation working extends tively in most environments. as described in the network security Fundamentals series, it's important to define clear goals for any correlation effort and stay focused on them. trying to boil the ocean always yields disappointing results.
Alerting
Once events are correlated, analysis performed med, and weirdness discovered, what do we do? We want to quickly and automatically announce what was discovered, getting information to the right places so action can be taken. This is where alerting comes in.
During policy analysis, when we detect something strange occurred, the policy triggers a predefined response. alerts are the actions we take when es are violated. where the alert gets sent, how it's sent, what information is passed, and the criticality of the event are all definable within the system, and embodied in the rules that form our indexes ies. during policy development we define the response for each suspect event. tuning policies for compliance and operations management is a significant effort, but the investigation is required in order to get Siem/lm up and running and reap any benefit.
Alert messages are distributed in different ways. real-Time alerts, for rule violations which require immediate attention, can be sent via email, pager, or text message to IT staff. some alerts are best addressed by programmatic response, and are sent via Simple Network Management Protocol (SNMP) packets, XML messages, or application api cils with sufficient information for the responding application to take instant corrective action. non-critical events may be logged as informational within the Siem or log management platform, or sent to workflow/trouble-ticketing systems for future analysis. in most cases alerts rely on additional tools and technologies for broadcast and remediation, but the Siem platform is configured to provide just the right subset of data for each communication medium.
Siem/lm platforms tightly associate alerts with the rules, even embedding the alert definitions within the policy management system. this way as rules are created their criticality and the appropriate response are defined at the same time. not in a futile attempt to replace an analyst, but in order to make him/her more effective and efficient, which is the name of the game.
Selection
With Siem, correlation and alerting are the first areas of the technology you will spend a great deal of time customizing for your organization. collection, aggregation, and normalization are relatively static builtin features, with the main variances being number of data types, protocols, and automation supported-leaving little room for tuning and filtering. correlation and alerting are different, and require much more tuning and configuration to fit business requirements. we will go into much more detail on what to look for during your selection process later in this series, but plan on dedicating a large portion of your proof-of-concept review (and initial installation) on building and tuning your correlation rule set.
Other posts in understanding and selecting Siem/lm
- Introduction.
- Use Cases, part 1.
- Use Cases, part 2.
- Business justification.
- Data collection.
- Aggregation, normalization, and enrichment.