Attributing Hacks

Ziqi Liu, Alexander J. Smola, Kyle Soska, Yu-Xiang Wang, Qinghua Zheng

Abstract

In the rapidly evolving landscape of cybersecurity, identifying the specific vulnerabilities that lead to website compromises is a critical challenge. This paper, presented at AISTATS 2017, introduces a sophisticated statistical framework that adapts survival analysis to attribute hacks to specific software features. By employing a novel hazard regression model with trend filtering, the authors provide a method to track the evolution of cyber-risk over time. The model effectively handles interval-censored data and captures the discrete, "jumpy" nature of vulnerability discovery, offering superior predictive accuracy and actionable insights into the lifecycle of exploits.

1. Introduction

The cybersecurity "arms race" often leaves researchers observing from the tail. Most compromises are only detected when a site appears on a blacklist, such as Google Safe Browsing or PhishTank, long after the initial breach. This creates a significant challenge known as interval censoring, where the exact time of the event is unknown, only that it occurred between two observations.

Traditional survival models, like the Cox Proportional Hazard model, often assume that the risk associated with a feature is static or changes smoothly. However, cyber-risk is inherently non-linear: a software version's risk is negligible until an exploit is discovered, at which point it spikes instantaneously. This paper addresses these challenges by developing a model that can pinpoint when a software version becomes a liability, even under timing uncertainty.

2. Methodology

The researchers proposed an Additive Hazard Model characterized by several key technical innovations designed to mirror real-world security dynamics.

2.1 Hazard Regression and Trend Filtering

The model estimates the "hazard rate"—the instantaneous probability of a hack at time $t$ given a set of features $x$. The core contribution is the use of trend filtering (Total Variation Penalty). Unlike smooth functions, this penalty encourages the model to find piecewise constant functions (0th order splines). This mathematically represents the reality of security: risk jumps up when a vulnerability is discovered and jumps down when a patch is applied.

Figure 1: Comparison of the estimated hazard rate using log+monotone regularization against the ground truth piecewise constant function.

2.2 Optimization and Scalability

To handle the massive scale of the web—millions of domains and hundreds of thousands of features—the authors utilized a Proximal Stochastic Variance Reduced Gradient (SVRG) algorithm. They also proved a "Representer Theorem," demonstrating that the optimal solution in an infinite-dimensional space can be represented by a finite set of step functions, ensuring the problem remains computationally tractable.

3. Experimental Setup

The model was validated using a combination of simulated data and large-scale real-world datasets:

  • Wayback Machine Archives: Used to extract 159,000 time-varying features, including HTML tags, script attributes, and software versions.
  • Blacklists: Data from PhishTank and search redirection attack logs provided the "survival event" labels.
  • The .com Zone File: A snapshot of approximately 120 million domains served as a baseline for "healthy" sites.

4. Results and Discussion

The proposed model significantly outperformed the standard Cox Proportional Hazard model in predicting both the timing and likelihood of hacks.

4.1 Convergence and Model Variants

The researchers evaluated several regularization strategies. While non-monotone models capture the full lifecycle of an exploit (including the decline in risk as the pool of vulnerable sites is exhausted), they are more prone to overfitting.

Figure 2: Convergence of negative logloss across different model variants (non-monotone) over multiple data passes.

4.2 Attribution and Discovery

A key strength of the model is its ability to attribute risk to specific features. In a case study of WordPress, the model identified a sharp risk increase in the summer of 2011. This "change-point" was later confirmed to coincide with several high-impact remote file inclusion vulnerabilities (CVEs). Furthermore, the model demonstrated excellent feature sparsity, correctly assigning a zero hazard rate to 91% of irrelevant "noise" features.

5. Conclusion

By treating hacks as survival events and utilizing trend filtering, this research provides a powerful tool for cybersecurity attribution. The model captures the discrete nature of cyber-vulnerabilities and the "Script Kiddie" effect, where automated tools follow high-skill breaches. While the non-monotone model offers high realism, a monotone constraint may provide a more prudent approach for general practitioners to avoid overfitting in sparse data environments. Future work may extend this framework to other domains involving sudden state changes, such as consumer churn or ecological migration.

Summary updated

BibTeX
@inproceedings{liu2017attributing,
  author = {Ziqi Liu and Alexander J. Smola and Kyle Soska and Yu-Xiang Wang and Qinghua Zheng},
  title = {{Attributing Hacks}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2017},
}
Figure