TL;DR
This paper introduces Attack Tagger, a novel framework using Factor Graphs to detect cyberattacks before they cause damage by analyzing user behavior sequences. It achieved a 74.2% detection rate on real-world NCSA incident data, often identifying malicious activity hours before human analysts, and even uncovered six previously missed "hidden" attacks.
What Problem Does This Paper Address?
Cyberattacks are a constant threat, and many are sophisticated, multi-stage operations. Attackers often use stolen credentials to impersonate legitimate users, making them hard to detect with traditional signature-based intrusion detection systems (IDS). These attacks can unfold over extended periods, involving steps like credential theft, remote login, and privilege escalation, before finally delivering their payload and causing system misuse. By the time these attacks are discovered by security analysts, significant damage may have already occurred. The challenge is to detect these evolving attacks early, before the system is compromised, by understanding the subtle behavioral patterns of users over time.
Methods
The core of Attack Tagger is a Factor Graph (FG), a type of probabilistic graphical model. Unlike traditional methods that analyze events in isolation, FGs allow for reasoning about the relationships and dependencies between a sequence of user events and their inferred "states" (benign, suspicious, or malicious).
Here's how it works:
- Event Extraction: User activities are captured as discrete "events" from raw logs (e.g., network traffic, system logs) or incident reports.
- Factor Functions: These are custom-defined functions that encode relationships between events and user states. They can represent:
- Type-1: Direct link between an event and a user state (e.g., downloading a sensitive file implies suspiciousness).
- Type-2: Link between current and previous events/states (e.g., a suspicious user restarting a system service implies maliciousness).
- Type-3: Incorporates user profile information (e.g., past compromises) into the state inference.
- Per-User Factor Graphs: For each user session, a dynamic Factor Graph is constructed, connecting observed events to inferred user states.
- Inference: Using algorithms like Gibbs sampling, the framework infers the most probable sequence of user states given the observed events.
- Malicious User Identification: If a user's inferred state becomes "malicious" at any point, they are flagged.
This approach allows for a more holistic understanding of user behavior, moving beyond single-event anomalies to detect the progression of an attack.
Datasets
The research utilizes a dataset of 116 real-world security incidents collected over a six-year period (2008-2013) from the National Center for Supercomputing Applications (NCSA).
This dataset was split into:
- Construction Set (51 incidents): Used to extract event types and define the factor functions.
- Testing Set (65 incidents): Used to construct Factor Graphs and evaluate Attack Tagger's performance.
The data included both incident reports (free-text analyses by security analysts) and raw logs (syslogs, network flows, security alerts) where available.
Key Insights and Ideas
- Sequence Matters: The most crucial insight is that analyzing sequences of user events, rather than isolated events, is key to detecting sophisticated, multi-stage attacks.
- Preemption is Possible: By modeling the progression of user states, it's feasible to flag users as malicious before they complete their attack, offering a critical window for intervention.
- Factor Graphs are Powerful: The flexibility of Factor Graphs allows for integrating diverse information (events, user profiles, expert knowledge) into a unified model, outperforming simpler models.
- Hidden Attacks Exist: The discovery of six "hidden" malicious users, missed by both automated systems and human analysts, highlights the limitations of current detection methods and the value of this new approach.
- Expert Knowledge is Crucial (but limited): While factor functions require expert input, the framework aims to automate the inference process, freeing up analysts' time.
Key Results
- Detection Rate: Attack Tagger detected 74.2% of malicious users.
- Early Detection: A significant portion of detected attacks (66.1%) were identified before the attack payloads were delivered, often minutes to hours before system misuse.
- Hidden Attacks: The framework uncovered six malicious users who were missed by NCSA security analysts during post-incident forensic analysis.
- Performance Comparison: Attack Tagger significantly outperformed baseline Rule Classifiers, Decision Trees, and Support Vector Machines in terms of true positive rate (74.2% vs. 27.4% for SVM, the next best).
- Runtime: The system could tag user states with events in an average of 530 ms, making it suitable for near real-time detection.
Limitations and Future Work
- False Negatives: Attack Tagger missed 25.8% of malicious users. This was often due to a lack of sufficient events, new or unobserved event types, or repetitive benign-looking activities.
- New Event Types: The model's effectiveness relies on its factor functions, which need continuous updating to account for evolving system infrastructure and new attack vectors.
- Limited Raw Logs: For some incidents, only incident reports were available, limiting the granularity of event extraction.
- Future Work: The authors suggest investigating the effectiveness of individual or groups of factor functions and continuously updating factor functions to adapt to system changes. They also note that a more comprehensive monitoring infrastructure would improve detection timeliness.
Summary updated