Skip to content

chore(security): add the OSS Scanner build and threat model - #229

Merged
Spomky merged 1 commit into
4.9.xfrom
chore/oss-scanner
Oct 31, 2026
Merged

Spomky merged 1 commit into
4.9.xfrom
chore/oss-scanner

Conversation

@Spomky

@Spomky Spomky commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Prepares the enrolment of this library in the OSS Scanner, as web-auth/webauthn-framework#978 did for the framework. The scanner builds an enrolled project in an isolated VM, scans it without network access and sends its findings privately to the security contact. It drops the findings located in dependencies, so the COSE keys and signature algorithms that webauthn-lib relies on are only covered if this repository is enrolled on its own. The enrolment itself is a project.yaml in the scanner repository; it points to the two files added here, so that they can change without a pull request over there.

The image builds, and the test suite passes in it with the network disabled: 3564 tests, 32404 assertions, 83 skipped, the same counts as the PHP 8.4 job of the last green CI run on this branch.

What's included

  • .oss-scanner/Dockerfile starts from ghcr.io/spomky-labs/phpqa:8.4, the image the CI jobs run in (PHP 8.4 with OpenSSL 3.5 and the sodium, gmp and bcmath extensions), installs the Composer dependencies and runs the test suite once. The scan therefore runs PHPUnit with phpunit-11, as the CI does. COSE_ML_DSA_EXPECTED=yes is set as in the PHP 8.4 job, so that MLDSATest checks the ML-DSA platform gate instead of being skipped. COMPOSER_ROOT_VERSION is not set: without the Git metadata Composer only notes that it defaults the root version to 1.0.0, and the install and the tests are unaffected.
  • .oss-scanner/threat_model.md tells the scanner where untrusted input enters (COSE keys, signatures, header buckets, certificates, receipt proofs, timestamp tokens), what is trusted, which properties must hold, which components matter most, how to write a reproducer, how severities are rated (calibrated on the three published advisories) and what is out of scope.
  • .gitattributes export-ignores /.oss-scanner, as the exported files check requires.

Without a pinned branch the scanner follows the default branch, so both files reach the newer branches through the usual merge-up.

@Spomky Spomky added this to the 4.9.0 milestone Oct 31, 2026
@Spomky Spomky added enhancement New feature or request security Security hardening labels Oct 31, 2026
@Spomky Spomky self-assigned this Oct 31, 2026
@Spomky
Spomky merged commit b1424ab into 4.9.x Oct 31, 2026
12 of 14 checks passed
@Spomky
Spomky deleted the chore/oss-scanner branch October 31, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request security Security hardening

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant