Automating Security Alert Filtering with Algorithmic and LLM Approaches
Researchers are exploring automated methods, including algorithmic and AI-driven techniques, to generate effective filters for security alerts, aiming to reduce analyst workload and combat alert fatigue.

In today's complex digital landscape, organizations are inundated with thousands of security alerts daily, a significant portion of which are false positives. This deluge of information overwhelms security analysts, diverting their attention from genuine threats. The ideal solution involves automatically filtering out these benign alerts, but the manual creation of effective filters is a laborious process. It requires analysts to meticulously review logs, identify the source of activity, define precise filtering boundaries, select appropriate criteria, write rules, and rigorously test their robustness. Recognizing this challenge, researchers are investigating ways to automate the filter generation process itself.
A critical aspect of this endeavor is defining what constitutes a valid filter. In the context of security alerts, a filter is a specific combination of event field values designed to flag a detection as a false positive, thereby preventing it from reaching an analyst. While filters can be constructed from any combination of event fields, not all combinations are effective. A valid filter must accurately capture the scope of noise without inadvertently suppressing legitimate alerts. This means filters should be neither too broad, risking the exclusion of critical events, nor too narrow, failing to catch recurring false positives. For instance, a filter based solely on a common tool like PowerShell might be too broad, while a filter targeting a single, unique event ID could be too specific to be useful.
Several practical challenges complicate automated filter generation. Security events often contain an excessive number of fields—sometimes hundreds—many of which are irrelevant for filtering purposes. Identifying and ranking the most pertinent fields for filter construction is computationally intensive. Furthermore, string normalization presents another hurdle. Field values, such as file paths or application names, can vary significantly across different systems due to user configurations or environment settings. To create effective filters, these variations must be accounted for by normalizing strings, for example, by using standard environment variables for user directories or converting all paths to a consistent case.
To address these issues, a multi-step algorithmic approach is being developed. When an analyst identifies an alert as a false positive, a filter generator tool can be employed. This tool takes the detailed event data and the triggering detection rule as input to determine the relevant context. It then selects fields most likely to be useful for filtering and normalizes string values. To efficiently generate filter combinations from these selected fields, algorithms like FP-Growth (frequent pattern growth) are utilized. FP-Growth builds a tree of frequently occurring items (fields) from the event data, pruning infrequent ones and significantly reducing the number of combinations that need to be evaluated. This process allows the generator to rank the most promising filter combinations and present the top options to the analyst for validation.
The algorithmic approach offers several benefits, including simplicity, determinism (consistent results for the same input), and interpretability, allowing analysts to understand why certain fields were selected or excluded. Its modular nature also means individual steps can be optimized independently. However, this method is not without drawbacks. Its effectiveness is heavily dependent on the availability of sufficient contextual data; if an event lacks context, a filter cannot be generated. Additionally, string normalization can be imperfect, potentially missing atypical cases that fall outside the defined normalization rules.
Beyond traditional algorithms, the potential of Large Language Models (LLMs) is also being explored for filter generation. LLMs can process natural language descriptions of events and potentially understand the nuances of security logs more intuitively than purely algorithmic methods. Their ability to grasp context and relationships between different data points could lead to more sophisticated and adaptive filtering mechanisms. While still in early stages, integrating LLMs could offer a more flexible and powerful way to automate the creation of filters, further reducing the burden on security teams and enhancing their ability to focus on critical threats.
Ultimately, the goal is to create a system that can reliably and automatically generate effective filters, freeing up valuable analyst time and improving the overall efficiency of security operations centers. By leveraging both established algorithms and emerging AI technologies like LLMs, the cybersecurity industry is moving towards more intelligent and automated solutions for managing the ever-growing volume of security alerts.