dc34-badge — shared DEF CON 34 badge hacking space
Note: repo is effectively paused/frozen as of Saturday August 8th 2026. Focusing on
other events for the weekend, now that we’ve got some fun badge customizations working here.
Knowledge, notes, and tools for hacking the DEF CON 34 badge (Baochip bao1x RISC-V
SoC running Xous). This repo tracks our analysis and tooling only. The upstream
source repos are large and not redistributed here.
Getting started
git clone [email protected]:odhin/dc34-badge.git
cd dc34-badge
./setup.sh # clones the 12 upstream repos @ pinned SHAs and links the maps in
Heads-up: setup.sh clones ~700 MB total, most of it xous-core.
Flash a badge
To build and flash custom firmware using the example “Code Astley” screen + LED
customization, follow rick-flash/README.md. It is a self-contained, step-by-step
guide (with the code diffs in rick-flash/custom-diff-refs/).

Note: self-built firmware is devkey-signed, so booting it enters developer mode and
wipes the badge’s secret (the k0 challenge flag).
Layout
| Path |
What |
AGENTS.md |
The workspace guide for agents (and humans are allowed to look too I guess). |
notes/ |
Living cross-repo findings: live-badge.md, challenge.md, tooling.md. |
guides/ |
One map per upstream repo. setup.sh symlinks each in as that repo’s CLAUDE.md. |
tools/ |
Host scripts: badge.py (stdlib serial client), flash-macos.sh (macOS flasher), send_image.py. |
rick-flash/ |
Shareable build-and-flash guide + the example customization diffs (custom-diff-refs/). |
setup.sh |
Bootstrap (idempotent — safe to re-run). |
.personal/ |
Your state: serial port, uploaded images, logs. Gitignored, never committed. |
The upstream clones (dc34-vault/, xous-core/, …) are gitignored — they live beside
these files after setup.sh but are not part of this repo.
Contributing knowledge
This is a shared space: when you learn something general, update the relevant
notes/ file or guides/<repo>.md so the next person benefits. Keep anything specific to
your machine or badge in .personal/.
评论