The Effectiveness of Security Interventions on GitHub

Felix Fischer, Jonas Höbenreich, Jens Grossklags · DOI

Abstract

As software development increasingly relies on third-party libraries, the "reuse of vulnerable resources" has become a primary vector for security breaches. GitHub has introduced several large-scale interventions to combat this, including security alerts, automated updates (Dependabot), and code scanning (CodeQL). This study evaluates the causal impact of these tools using counterfactual time-series analysis on over 50,000 repositories. The findings reveal a stark contrast in effectiveness: while dependency-focused tools triggered a massive surge in patching, code scanning interventions had a negligible impact on vulnerability reduction. These results suggest that friction and user experience are as critical to software security as the underlying detection logic.

Introduction

The modern software supply chain is built on a foundation of shared code. While this accelerates development, it also propagates vulnerabilities across millions of projects. When a vulnerability is discovered in a popular library, the challenge lies in ensuring that downstream developers actually apply the necessary patches.

GitHub provides a unique environment to study security interventions at scale. However, measuring the true impact of these tools is difficult because they are deployed in a non-randomized fashion. This research addresses the challenge by applying causal inference techniques to observational data, moving beyond simple correlations to determine how much these tools actually change developer behavior.

Methodology

To isolate the causal effect of GitHub’s security features, the researchers employed Counterfactual Prediction using a Bayesian structural time-series model.

The Counterfactual Approach

Because GitHub does not perform randomized controlled trials (where some users are intentionally denied security features), the researchers constructed "synthetic controls." By analyzing the security health of repositories before an intervention and comparing them to a control group of repositories not yet affected by the tool, the model predicts how the "treated" repositories would have evolved if the intervention had never occurred. The difference between this predicted counterfactual and the actual observed data represents the tool's causal impact.

Data and Metrics

The study analyzed a massive dataset derived from 178 million repositories, eventually focusing on two primary samples:

  • Dependency Sample: 41,097 JavaScript and Python repositories with a history of vulnerable dependencies.
  • Code Scanning Sample: 10,000 active repositories using CodeQL, focusing on high-risk weaknesses like Cross-site Scripting (CWE-079) and Improper Input Validation (CWE-020).

Researchers tracked three primary metrics: successful security patches, "revoked" updates (fixes that were rolled back), and the rate of newly committed vulnerable dependencies.

Key Results

The Success of Dependency Management

The interventions targeting third-party libraries were remarkably successful.

  • Security Alerts: The introduction of manual security alerts led to a 149% relative increase in the number of security updates performed by developers.
  • Dependabot: Automated updates provided an additional 31.7% boost on top of the alerts. By lowering the barrier to action, Dependabot significantly accelerated the patching lifecycle.

The Code Scanning Gap

In contrast, the impact of code scanning (CodeQL) was surprisingly low. The study found only a 2% reduction in CWE-079 vulnerabilities for JavaScript projects, while the impact on Python vulnerabilities was statistically insignificant. While code scanning showed a brief "novelty effect"—a sharp initial decline in vulnerabilities immediately after activation—this effect quickly plateaued, suggesting that developers may fix obvious issues initially but fail to maintain the practice over time.

Educational and Stability Impacts

Encouragingly, the study found that these tools have a small but significant "educational" effect, reducing the rate at which developers commit new vulnerable dependencies by 13.4%. Furthermore, the fear that automated tools would "break the build" appears largely unfounded; there was no significant increase in revoked updates following the interventions, indicating that the provided patches are generally stable.

Discussion: Why Some Tools Fail Where Others Succeed

The disparity between the success of Dependabot and the modest results of CodeQL highlights several critical factors in security tool design:

  1. Safe Defaults: Dependency alerts were enabled by default for many users, whereas code scanning requires manual configuration. This "opt-in" barrier likely limits the reach of code scanning to already security-conscious teams.
  2. Friction and Actionability: Dependabot provides a "one-click" solution. It identifies a problem and simultaneously hands the developer the fix. CodeQL, however, often produces complex data-flow analysis that requires significant cognitive effort to interpret and resolve.
  3. The UI/UX of Security: The plateau in CodeQL effectiveness suggests that developers may become overwhelmed by the user interface or the complexity of static analysis results over time.

Conclusion

GitHub’s security interventions demonstrate that automated tools can profoundly influence the security of the open-source ecosystem. However, detection is only half the battle. To be truly effective, security tools must minimize friction and provide actionable, low-effort paths to remediation. Future improvements in code scanning—perhaps through the integration of Large Language Models (LLMs) to generate automated "suggested fixes"—may be necessary to match the success seen in dependency management.

Summary updated

BibTeX
@inproceedings{fischer2023effectiveness,
  author = {Felix Fischer and Jonas Höbenreich and Jens Grossklags},
  title = {{The Effectiveness of Security Interventions on GitHub}},
  booktitle = {CCS},
  year = {2023},
  doi = {10.1145/3576915.3623174},
}
Figure