Reporting a vulnerability
Open a GitHub Security Advisory rather than a public issue. This is a solo project with no formal response time, but every report gets a fix or an explanation.
Only the latest release on main is supported before 1.0.0.
Threat model
The firmware has no network stack and no third-party code.
- UART reads: the UART driver can read bytes from a physical line, but nothing in the built image calls it. uartReceive() copies raw bytes into a caller-sized buffer and never interprets them.
- When this changes: untrusted input first exists when something parses received data, such as a command parser or a bootloader protocol. Revisit this section then.
- Register definitions: a wrong register definition is a correctness bug, caught by the offset and field tests, not a vulnerability.
CI/CD trust boundaries
| Workflow | Runs on | Permissions |
| ci.yml | every PR (forks included), push to main/develop, manual dispatch | contents: read |
| codeql.yml | PR and push to main/develop, manual dispatch | contents: read, security-events: write |
| pages.yml | push to main, manual dispatch | pages: write, id-token: write |
| release.yml | vX.Y.Z tag push; dry run on PRs | contents: write on its publishing job only |
The github-pages environment accepts deployments only from main, so a manual run on another branch cannot publish. codeql.yml can also be run manually.
- Runners: every workflow runs on ephemeral GitHub-hosted runners. There is no self-hosted runner. The board is attached to the development machine, and no GitHub-triggered job reaches hardware. Do not add a self-hosted runner casually.
- Merge gates: main and develop require build-and-check, host-tests (macOS) and Analyze (c-cpp) to pass.
- Allowed actions: the repository runs only GitHub-owned actions (actions/*, github/*) and this repository's own, and every action must be pinned to a full commit SHA. Both are enforced in the repository settings, not only by convention.
- release.yml:
- it refuses a tag whose commit is not on main, or whose version disagrees with the Doxyfile and changelog;
- the tag name reaches the shell only through an environment variable.
Supply chain
- Actions are pinned to full commit SHAs, with a comment naming the exact release (for example # v7.0.1, never a floating # v7).
- Bumping pins: every pin (actions, scripts/ci/requirements.txt, the toolchain, Doxygen, actionlint, ShellCheck, apt) is bumped by hand, after reading the release notes. Change the SHA or checksum and its version comment together. Nothing runs on a schedule, so an upstream change (a retired action version, a moved download) first shows up as a CI failure on the next pull request.
- Arm GNU Toolchain and Doxygen are downloaded from upstream and checked against a SHA256 pinned in .github/actions/ before extraction. The cache key includes the checksum, so changing the pin invalidates the cache. A restored cache is trusted, and only this repository's own runs can write one.
- Toolchain mirror: if developer.arm.com fails, CI fetches the same archive from this repository's ci-mirror-arm-gnu-toolchain-15.2.rel1 pre-release. It is checked against the same pinned SHA256, so the mirror can make CI available but cannot change the compiler. A new toolchain version needs a new mirror release.
- actionlint and ShellCheck are release binaries checked against SHA256s pinned in ci.yml, so a runner image update cannot change what they report. Bump the version and checksum together, by hand.
- Python tools (gcovr, codespell) are installed from scripts/ci/requirements.txt with pip install --require-hashes. Every package, dependencies included, is pinned to a version and its hashes, on a Python version pinned by actions/setup-python. Edit scripts/ci/requirements.in, then regenerate the lock with the pip-compile command in its header.
- Apt tools:
- cppcheck and clang-format are pinned by version, not hash, and rely on apt's signing;
- Graphviz is unpinned because it only draws diagrams and cannot change what CI enforces.
- Checkouts do not persist the job token, since no workflow pushes.