← Lab /Software

Lily detects backdoors in commits and releases with high accuracy and low false alarms

Lily can automatically detect code-level backdoors in CI pipelines and release vetting with high detection accuracy and low false alarm rates

Software arXiv 29 Jul 2026 Method Prototype evidence

Published as “Not In My Git Yard: Catching Backdoors at Commit and Release Time”

Why it matters

Deploying Lily in CI and release vetting pipelines could automatically block most backdoor injections, reducing reliance on manual code review and preventing high-impact supply-chain compromises.

Summary

Lily detects code-level backdoors with 90% detection on commits and 83% on releases while keeping false alarms low (0.2% for commits, 4.3% for releases); however, a corpus-poisoning attack cuts detection roughly in half, and the hardened mode raises false-positive rates.

What they found 4

  1. High detection rates for backdoors in both commit and release scenarios

    “Lily achieves an average detection rate of 90% at the commit level and 83% at the release level, indicating that it likely would have prevented three real backdoor injection incidents”

  2. Very low false-alarm rates in normal operation

    “False alarm rates remain low-0.2% for safe commits and 4.3% for safe releases on average”

  3. Corpus poisoning substantially degrades detection

    “Poisoning almost halves Lily’s detection rate, reducing it to 54% for commits and 46% for releases”

  4. Precise localization reduces manual review effort to under a dozen lines

    “Lily consistently reduced manual review to under a dozen lines, always pinpointing backdoor-revealing code”

Caveats 5

  • Poisoning attacks halve detection rates (54%/46%) despite the headline claim of >80% detection.
  • The hardened mode (LilySelective) eliminates the poisoning effect but raises false-positive rates to 3% for commits and 18% for releases.
  • Lily is designed to prevent backdoor injections as early as possible in active projects. As such, when deployed on an existing open-source project, it will only detect backdoors introduced in future commits or releases, not those already present in the codebase.
  • Documented injection incidents are rare, and authentic real-world samples remain difficult to obtain.
  • While evaluating Lily on live open-source projects would provide valuable insights into its real-world applicability and impact, we leave this direction to future work.

What’s new here 4

  • Integrates backdoor detection into 10-minute CI fuzzing campaigns.
  • Combines dynamic system-call profiling with code-change analysis to precisely locate malicious code even in releases spanning millions of lines.
  • Evaluates five attacker evasion strategies and introduces a hardened mode (LilySelective) to mitigate corpus poisoning.
  • Provides a public benchmark-based evaluation showing low false-alarm rates compared to prior tools.