Skip to main content
QUICK REVIEW

[Paper Review] Chaff Bugs: Deterring Attackers by Making Software Buggier

Zhenghao Hu, Yu Hu|arXiv (Cornell University)|Aug 2, 2018
Advanced Malware Detection TechniquesComputer Science16 references10 citations
TL;DR

This paper introduces chaff bugs—a novel defensive technique that injects thousands of non-exploitable, memory corruption-style bugs into software to deter attackers. By making these bugs appear exploitable to automated tools but ensuring they are provably non-exploitable through overconstrained values or unused data, the method increases attacker effort dramatically, especially in triage and exploit development, without affecting functionality in crash-tolerant systems like nginx and libFLAC.

ABSTRACT

Sophisticated attackers find bugs in software, evaluate their exploitability, and then create and launch exploits for bugs found to be exploitable. Most efforts to secure software attempt either to eliminate bugs or to add mitigations that make exploitation more difficult. In this paper, we introduce a new defensive technique called chaff bugs, which instead target the bug discovery and exploit creation stages of this process. Rather than eliminating bugs, we instead add large numbers of bugs that are provably (but not obviously) non-exploitable. Attackers who attempt to find and exploit bugs in software will, with high probability, find an intentionally placed non-exploitable bug and waste precious resources in trying to build a working exploit. We develop two strategies for ensuring non-exploitability and use them to automatically add thousands of non-exploitable bugs to real-world software such as nginx and libFLAC; we show that the functionality of the software is not harmed and demonstrate that our bugs look exploitable to current triage tools. We believe that chaff bugs can serve as an effective deterrent against both human attackers and automated Cyber Reasoning Systems (CRSes).

Motivation & Objective

  • To address the high cost and effort of exploit development by increasing the number of non-exploitable bugs in software.
  • To disrupt the attacker workflow—particularly triage and exploit creation—by making it statistically likely that any found bug is non-exploitable.
  • To develop techniques that ensure non-exploitability is provable yet not obvious to attackers or automated triage tools.
  • To demonstrate feasibility through a prototype that injects chaff bugs into real-world software such as nginx and libFLAC.
  • To provide a new form of deception-based defense that wastes attacker time rather than relying solely on mitigation or detection.

Proposed method

  • Injecting chaff bugs via source code modification, focusing on stack and heap buffer overflows.
  • Using two strategies to ensure non-exploitability: overconstraining the value used in memory corruption to only safe values, and overwriting data that is unused by the program.
  • Automatically generating thousands of such bugs in real-world C programs like nginx and libFLAC without altering functional behavior.
  • Ensuring that chaff bugs only cause crashes (not code execution) and are thus non-exploitable under the threat model.
  • Validating that chaff bugs appear exploitable to existing triage tools like !exploitable and exploitable, increasing attacker confusion.
  • Designing the technique for binary-level applicability, though current prototype requires source code.

Experimental results

Research questions

  • RQ1Can non-exploitable bugs be injected into real-world software in large numbers without affecting functionality?
  • RQ2Can chaff bugs be made to appear exploitable to automated triage tools while being provably non-exploitable?
  • RQ3Does the presence of chaff bugs significantly increase the effort required for an attacker to find and exploit a real vulnerability?
  • RQ4Can chaff bugs be effective against both human attackers and automated Cyber Reasoning Systems (CRSs)?
  • RQ5Is it feasible to build a prototype that injects chaff bugs at scale into production-grade software?

Key findings

  • The chaff bug technique successfully injected thousands of non-exploitable buffer overflow bugs into real-world software such as nginx and libFLAC without altering functional behavior.
  • The injected bugs were detected as potentially exploitable by existing triage tools like !exploitable and exploitable, indicating realistic camouflage.
  • The two non-exploitability strategies—overconstrained values and unused data overwrites—were proven effective in ensuring that no code execution is possible.
  • The method significantly increases the probability that any found bug is a chaff bug, thereby deterring attackers through resource exhaustion.
  • The technique is compatible with existing exploit mitigations and can be combined with ASLR, CFI, and other defenses.
  • The approach is particularly effective in crash-tolerant systems like microservices and web servers, where crashes from chaff bugs are invisible to legitimate users.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.