checkId: check.binaryanalysis.ddeb.enabled plugin: stellaops.doctor.binaryanalysis severity: warn tags: [binaryanalysis, ddeb, ubuntu, symbols, security]
Ubuntu Ddeb Repository
This Stella Ops Doctor check verifies that the Ubuntu debug symbol repository (ddebs.ubuntu.com) is configured and reachable so binary analysis can recover symbols for Ubuntu-based images. 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 the Ubuntu debug symbol repository (ddebs.ubuntu.com) is configured and accessible. The check (Linux only):
- Parses
/etc/apt/sources.listand/etc/apt/sources.list.d/*.list(and.sourcesDEB822 files) for entries containingddebs.ubuntu.com. - Tests HTTP connectivity to
http://ddebs.ubuntu.comvia a HEAD request. - Detects the distribution codename from
/etc/lsb-releaseor/etc/os-release. - Reports different warnings based on whether the repo is configured, reachable, or both.
- Skips on non-Linux platforms.
Why It Matters
The Ubuntu ddeb repository provides debug symbol packages (-dbgsym) needed for binary analysis of Ubuntu-based container images. Without debug symbols, binary matching accuracy is significantly reduced, weakening vulnerability detection for Ubuntu workloads.
Common Causes
- Ddeb repository not added to apt sources
- Network connectivity issues preventing access to ddebs.ubuntu.com
- Firewall blocking HTTP access
- Running on a non-Ubuntu Linux distribution
How to Fix
Docker Compose
Add the ddeb repository inside the binary analysis container:
docker exec <binaryindex-container> bash -c \
'echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" > /etc/apt/sources.list.d/ddebs.list'
docker exec <binaryindex-container> apt-key adv --keyserver keyserver.ubuntu.com \
--recv-keys F2EDC64DC5AEE1F6B9C621F0C8CAB6595FDFF622
docker exec <binaryindex-container> apt update
Bare Metal / systemd
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" \
| sudo tee /etc/apt/sources.list.d/ddebs.list
sudo apt-key adv --keyserver keyserver.ubuntu.com \
--recv-keys F2EDC64DC5AEE1F6B9C621F0C8CAB6595FDFF622
sudo apt update
Kubernetes / Helm
Include the ddeb repository in your container image’s Dockerfile or use an init container to configure it at startup.
For air-gapped environments, set up a local ddeb mirror or use offline symbol packages.
Verification
stella doctor run --check check.binaryanalysis.ddeb.enabled
Related Checks
check.binaryanalysis.debuginfod.available— verifies debuginfod service availabilitycheck.binaryanalysis.symbol.recovery.fallback— meta-check for symbol recovery path availability
