Repository navigation
fix(audit): close write, verification, and release gaps - #360
Merged
Merged
Conversation
The Python weave verifier counted any indented 'name = {}/[]/dict()' as a shared-state carrier, so function-local containers satisfied the shared-state gate. Anchor the pattern at column 0 so locals and class attributes no longer count, and keep module-level containers working.
Python and native weave reports hardcoded syntaxValid: true while only the JavaScript verifier parses source. Leave the optional field unset for formats without a parser so the report no longer claims a check that never ran.
A caller-chosen run summary could be any size, and sha256File loaded whole artifacts into memory. Cap the summary at 8 MiB and hash artifacts in 1 MiB chunks; both behaviours are covered by focused tests.
Hash the packed tarballs in 1 MiB chunks instead of loading them whole, and write the checksum file through a same-directory temp file plus rename so a crash cannot leave a partial SHA256SUMS.txt.
Execute a hardened browser bundle in a vm context with no process/require and assert its original side effect survives, so the guarded runtime-shield path is covered by a real consumer contract.
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.
Why
Goal: make BLA's write receipts, format routing, run identity, release checks, and README match observable behavior.
The audit reproduced silent auxiliary-file overwrites, a false failure for Python-only directories, missed managed PE metadata beyond 4 KiB, non-reproducible no-seed runs, and several stale test/documentation claims.
What changed
bla_protectandbla_defend.bla-shieldalias with integrity retry.Scope
Core detector/output paths, harden and verify engines, MCP receipts, release workflow, benchmark reporting, tests, and the root README. No shield intensity defaults or public MCP tool names changed.
Tradeoffs
Real
hardenProjectcalls without an explicit seed now create or update the project config. The release workflow publishes both package names, so a pre-existing alias with different bytes fails rather than being replaced.Blast Radius
Artifact format detection, apply staging, MCP write confirmations, release publication, and public landing-page claims. Functional behavior is covered by the full suite and a real CLI apply/restore smoke run.
Verification
26aed3f; a fresh verifier then returned PASS at the final head.