Repository navigation
chore(security): add the OSS Scanner build and threat model - #229
Merged
Merged
Conversation
This was referenced Oct 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.yamlin 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/Dockerfilestarts fromghcr.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 withphpunit-11, as the CI does.COSE_ML_DSA_EXPECTED=yesis set as in the PHP 8.4 job, so thatMLDSATestchecks the ML-DSA platform gate instead of being skipped.COMPOSER_ROOT_VERSIONis 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.mdtells 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..gitattributesexport-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.