Add Phase04 and Phase05 benchmark suites - #3
Open
quantumshiro wants to merge 3 commits into
Open
Conversation
…entation - Introduced Phase04 benchmark specification for active validation of cryptographic vulnerabilities, including padding oracle and timing leak tests. - Added Phase05 benchmark specification focusing on operational robustness under constraints and noise. - Implemented Phase04 and Phase05 scanners with methods for validating padding oracle and timing leak vulnerabilities. - Created JSON schemas for Phase05 report structure. - Developed tests for Phase04 and Phase05 functionalities, including validation and scoring mechanisms. - Established evidence requirements and scoring metrics for both benchmarks to ensure compliance and accuracy in reporting.
…hmark # Conflicts: # benchmarks/ground_truth.yaml # benchmarks/phase04-report.schema.json # benchmarks/phase04-scoring-spec.md # benchmarks/phase04-spec.md # benchmarks/runner.py # benchmarks/scoring.py # src/bbci/phase04.py # tests/test_phase04.py
Add Phase04 and Phase05 benchmark specifications, scoring, and implem…
quantumshiro
marked this pull request as ready for review
May 7, 2026 13:47
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
Adds the Phase04 and Phase05 benchmark suites on top of the existing Phase01-03 benchmark work.
Validation
uv run --extra dev ruff check src/bbci/phase04.py src/bbci/phase05.py benchmarks/runner.py benchmarks/scoring.py benchmarks/servers/vulnerable_app.py benchmarks/test_servers.py tests/test_phase04.py tests/test_phase05.pyuv run --extra dev pytest tests/test_phase01.py tests/test_phase02.py tests/test_phase03.py tests/test_phase04.py tests/test_phase05.py tests/test_models.py -quv run --extra dev pytest benchmarks/test_servers.py -quv run python -m benchmarks.runner --target http://localhost:9000 --suite phase04 --report benchmarks/resultsuv run python -m benchmarks.runner --target http://localhost:9000 --suite phase05 --report benchmarks/resultsLocal Phase04 and Phase05 benchmark runs both reported 100% precision, recall, and F1 against the benchmark server.