Elevating Software Trust: Unveiling and Quantifying the Risk Landscape

Wei Shao, Sarah Ali Siddiqui, Chandra Thapa, Rayne Holland, Wei Shao 0006, Seyit CamtepearXiv 2024 · DOI

Abstract

As software supply chains grow increasingly complex, traditional risk assessment tools often fall short by relying on subjective expert opinions and static weighting. This paper introduces SAFER (Software Analysis Framework for Evaluating Risk), a dynamic, data-driven model developed by researchers at CSIRO’s Data61. SAFER shifts the paradigm from simple code scanning to a "lens of trust," incorporating developer reputation, publisher history, and community engagement to calculate real-time, context-aware security scores.

Introduction: The Problem with Subjectivity

Choosing "safe" software has become a significant challenge for organizations. Current industry standards, such as CVSS, OWASP, and OpenSSF Scorecards, suffer from three primary flaws:

  1. Subjectivity: Risk levels often vary based on the personal bias of the assessor.
  2. Static Weighting: Risk factors are often treated as equally important, regardless of the software's specific context.
  3. Ignoring the Human Element: Most tools focus on code vulnerabilities while ignoring the track record of the developers and publishers involved.

The authors argue that risk is fundamentally tied to trust. Without accounting for developer expertise or publisher reliability, a significant portion of the risk landscape remains hidden.

The SAFER Framework

The core of SAFER is the Logic Scoring of Preferences (LSP) method. Unlike simple averaging, SAFER aggregates risk across three distinct "actor-based" segments:

  • Developer-based Risk: Evaluates language expertise, code complexity, and historical vulnerability resolution.
  • Publisher-based Risk: Analyzes update frequency and the publisher’s overall reputation within the ecosystem.
  • User-based Risk: Measures community trust by calculating the ratio of user ratings against total downloads.
Hierarchical structure of the SAFER risk calculation model.

A standout feature of SAFER is Dynamic Weighting. Weights are not hard-coded; instead, they adjust based on the project's characteristics. For instance, high code coverage may lower the weight assigned to dependency risk. Additionally, a Penalty Factor is applied for unresolved vulnerabilities, which is further adjusted based on the software's operational context (e.g., a security-critical library vs. a general script).

Data and Methodology

The framework was rigorously tested using a dataset of 9,000 samples. This included real-world data scraped from top npm GitHub repositories—capturing metadata from both GitHub and NPM—and synthetic data used to test the framework’s sensitivity across diverse, edge-case scenarios.

Comparative Analysis

In head-to-head evaluations, SAFER demonstrated superior performance over existing tools. It identified critical risks in repositories that other tools, like the OpenSSF Scorecard, rated as "Low Risk" because they ignored the developer's poor history of resolving vulnerabilities.

Comparison of SAFER against existing risk assessment frameworks.

Furthermore, SAFER proved to be highly consistent. While the OWASP risk calculator produced varying scores depending on the human assessor, SAFER’s data-driven approach yielded reproducible results. In usability studies, 100% of participants preferred SAFER for its ease of use compared to the complex setups required by OpenSSF or the domain knowledge needed for OWASP.

Conclusion and Future Work

SAFER moves "trust" from a vague concept to a measurable metric. By demonstrating that the same code flaw can result in different risk bands depending on context, the framework provides a more nuanced view of security.

Future work includes developing a software supply chain simulator to model risk propagation and integrating Reinforcement Learning (RL) to automatically refine the framework's adjustment factors. While SAFER currently assumes "maximum risk" for projects with limited metadata, it represents a significant leap toward objective, automated software risk evaluation.

Summary updated

BibTeX
@misc{shao2024elevating,
  author = {Wei Shao and Sarah Ali Siddiqui and Chandra Thapa and Rayne Holland and Wei Shao and Seyit Camtepe},
  title = {{Elevating Software Trust: Unveiling and Quantifying the Risk Landscape}},
  year = {2024},
  eprint = {2408.02876},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.02876},
}
Figure