fix: harden Windows broker security and validation - #66
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #66 +/- ##
==========================================
+ Coverage 74.04% 74.60% +0.56%
==========================================
Files 33 34 +1
Lines 7793 7931 +138
Branches 2922 2984 +62
==========================================
+ Hits 5770 5917 +147
+ Misses 1757 1444 -313
- Partials 266 570 +304
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 11 files with indirect coverage changes Continue to review full report in Codecov by Harness.
|
ReenigneArcher
force-pushed
the
fix/release-prep-02
branch
from
August 12, 2026 18:59
1862dd7 to
760c5ff
Compare
ReenigneArcher
force-pushed
the
fix/release-prep-02
branch
3 times, most recently
from
August 12, 2026 20:45
dd62225 to
c930484
Compare
- Extract broker message validation into `broker_request_validation.hpp` with full field, enum, bounds, string-terminator, and reserved-field checks - Add unit tests for all validation paths - Replace blocking pipe I/O with cancellable overlapped I/O with explicit timeouts - Verify named-pipe server PID matches the SCM-registered running broker before sending any request - Protect state directory and files with restricted DACLs (LocalSystem/Administrators/broker service only) and reject reparse points - Use `FILE_FLAG_FIRST_PIPE_INSTANCE` so a second process cannot squat the pipe name - Link `advapi32` for service and ACL APIs - Install the MIT LICENSE file to `share/licenses/libvirtualhid` - Update docs and license map to cover broker and entitlement/evaluation sources under LB-SAL 1.0
ReenigneArcher
force-pushed
the
fix/release-prep-02
branch
from
August 12, 2026 20:53
c930484 to
f22912f
Compare
|
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.



Description
broker_request_validation.hppwith full field, enum, bounds, string-terminator, and reserved-field checksFILE_FLAG_FIRST_PIPE_INSTANCEso a second process cannot squat the pipe nameadvapi32for service and ACL APIsshare/licenses/libvirtualhidScreenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage
See our AI usage policy.