checkId: check.binaryanalysis.corpus.mirror.freshness plugin: stellaops.doctor.binaryanalysis severity: warn tags: [binaryanalysis, corpus, mirrors, freshness, security, groundtruth]

Corpus Mirror Freshness

This Stella Ops Doctor check verifies that the local ground-truth corpus mirrors used by binary analysis are present and recently synced. It is part of the binary-analysis diagnostics surfaced by stella doctor; see the Doctor overview for how checks are run and reported.

What It Checks

Verifies that local corpus mirrors are not stale. The check:

Why It Matters

Corpus mirrors provide ground-truth vulnerability and package data for binary analysis. Stale mirrors mean symbol recovery operates on outdated data, leading to missed vulnerabilities and inaccurate matching in security scans.

Common Causes

How to Fix

Docker Compose

# Initialize all mirrors
docker exec <binaryindex-container> stella groundtruth mirror sync --all

Bare Metal / systemd

# Create mirrors directory
sudo mkdir -p /var/lib/stella/mirrors

# Sync all mirrors
stella groundtruth mirror sync --all

# Set up a timer for automatic sync
sudo systemctl enable stella-mirror-sync.timer
sudo systemctl start stella-mirror-sync.timer

Kubernetes / Helm

binaryAnalysis:
  corpus:
    mirrorsDirectory: "/var/lib/stella/mirrors"
    syncSchedule: "0 2 * * *"  # daily at 2am
    persistence:
      enabled: true
      size: 50Gi

For air-gapped environments, transfer pre-populated mirrors from an online system.

Verification

stella doctor run --check check.binaryanalysis.corpus.mirror.freshness