Guarantees in Software Security

Marcel BöhmearXiv 2024 · DOI

Abstract: Software security remains a persistent challenge despite decades of research and the advancement of formal verification techniques. This paper proposes a foundational philosophical framework for cybersecurity, arguing that absolute security guarantees are fundamentally unattainable. By synthesizing concepts from the philosophy of science and mathematics, the author introduces "vulnerability-guided hardening"—an iterative, counterexample-driven process that treats security as a continuous scientific quest rather than a solvable engineering problem.

Introduction

We live in an era where even "provably secure" systems, such as the seL4 microkernel, fall victim to sophisticated exploits like Spectre or Meltdown. To the casual observer, cybersecurity research often appears as a reactive "cat-and-mouse" game. This paper addresses a deep, existential question: Why can’t we solve security once and for all?

The author identifies a significant "gap" between the formal world of mathematical proofs and the empirical world of executing code. The paper seeks to categorize the fundamental hurdles that prevent us from making reliable, permanent statements about a system's security state.

A Theory of Cybersecurity

The paper develops a theoretical framework by drawing on the works of Karl Popper and Imre Lakatos. From Popper, it adopts the idea that scientific theories evolve through "conjectures and refutations." In this context, a security mechanism is a conjecture that a system is secure, which remains valid only until an exploit (a refutation) is discovered. From Lakatos, it borrows the notion that even mathematical proofs are social processes subject to refinement through the discovery of counterexamples.

Central to this theory is Vulnerability-Guided Hardening, a systematic four-step method:

  1. Implement a security approach $T$ for system $S$.
  2. Find evidence (a vulnerability $ce$) against $S$ despite $T$ (e.g., via bug bounties or red teaming).
  3. Reconcile: Debug why $T$ failed to catch $ce$ and improve $T$ to handle the general class of that vulnerability.
  4. Repeat.

This loop, particularly when applied to formal methods as Meta-Verification, treats the proof itself as an artifact to be attacked and refined.

The Taxonomy of Challenges

The paper identifies nine fundamental challenges that serve as a roadmap for where security analysis is likely to fail. These are categorized into three domains: Properties, Reasoning, and Sociotechnical Aspects.

Taxonomy of fundamental challenges in cybersecurity

Properties

Security is often hampered by "unknown unknowns"—vulnerabilities we haven't yet conceived as flaws. Furthermore, the "operationalization" of security properties (translating abstract goals like "privacy" into concrete code checks) is inherently lossy.

Reasoning

Our reasoning tools rely on abstractions and assumptions. Attackers frequently find success by operating in the "gap" where these abstractions fail, such as hardware-level side channels that software-level proofs ignore.

Sociotechnical Aspects

Security is not purely technical; it involves an "infinite regress of trust." We may trust a piece of code, but do we trust the compiler, the hardware, or the developers? Additionally, security is a function of incentive; a system is only as secure as the motivation of attackers to find flaws.

Empirical Evidence and Case Studies

The paper substantiates its theoretical claims using high-profile historical failures:

  • seL4 and Spectre/Meltdown: Demonstrating how hardware-level side channels break software-level formal proofs.
  • Pwn2Own 2024: Illustrating how top-tier, heavily audited software can be compromised in minutes when sufficient incentives exist.
  • The XZ Utils Attack: Highlighting the vulnerabilities inherent in the software supply chain and the infinite regress of trust.
  • Nakamoto Consensus: Showing how proofs in decentralized systems can miss critical requirements like "accountable safety."

Key Insights: The Fishernet Metaphor

The author introduces the "Fishernet" metaphor to describe the state of the field. Security tools are like fishing nets; no matter how fine the mesh, there is always a fish small enough to slip through. The goal of research should not be to build a mythical "ultimate net," but to use the fish that escape to inform how we knit the next, more effective iteration.

Conclusion and Future Work

By reframing the reactive nature of cybersecurity as a scientific necessity, the paper argues that bug bounties and red teaming are philosophically essential to the quest for truth.

Future work must focus on automated debugging and reconciliation. We need tools capable of programmatically pinpointing why a fuzzer or formal verifier missed a specific bug and automatically updating the tool's underlying logic to prevent similar misses in the future. This shift moves the community away from seeking "final" proofs and toward maintaining "empirically valid" security frameworks.

Summary updated

BibTeX
@misc{bohme2024guarantees,
  author = {Marcel Böhme},
  title = {{Guarantees in Software Security}},
  year = {2024},
  eprint = {2402.01944},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.01944},
}
Figure