Repository navigation
fix(ghidra): reject byte matches outside searched coverage - #4531
Conversation
…-coverage # Conflicts: # tests/boundary/firmware/firmwareIntegration.test.ts
…x-byte-search-coverage
…x-byte-search-coverage # Conflicts: # tests/boundary/filesystem/ghidraProfileArtifactOwnership.test.ts
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Medium impact] The reviewed changes appear safe to merge. SummaryThis PR rejects byte-search matches outside the reported searched coverage.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Ghidra byte-search page] --> B[Shared output checks]
B --> C{Every match inside searched coverage?}
C -->|Yes| D[Create Evidence]
C -->|No| E[Return unreadable_output]
Reviews (2) · Last reviewed commit: "Merge commit '5b243993872c2bcc70cb00060f..." · Reviewed by Greptile |
…x-byte-search-coverage # Conflicts: # tests/acceptance/providers/jebConfigurationIsolation.test.ts
baron
left a comment
There was a problem hiding this comment.
Reviewed unchanged head 6352f4baec026161f10d59c5d136d5f0192b4228.
The shared result schema now rejects match coordinates outside examined coverage before they can become successful Evidence, retaining segment/address-space identity and inclusive endpoints. I checked the Ghidra producer/parser and MCP consumer, including existing pagination and cancellation handling; no blocking finding.
Current repository CI is green, including CI required; unrelated lanes are skipped. Human readiness declarations are filled. Validation here was source/CI review, not an independent local test run (the pinned toolchain and locked dependencies were unavailable, and no dependencies/providers were installed). Author-reported simulated-provider coverage is not real-Ghidra verification. No merge performed.
Problem and outcome
Byte-search output could report a match outside searched blocks, in skipped memory, in another address space, or at a malformed address, yet become successful Evidence through MCP.
Validate each match against reported searched intervals in the same segment and address space. Parse interval coordinates once per page and reject contradictory provider pages before creating Evidence.
Validation
Head 6352f4b, normally merged fixed upstream 5b24399. The net diff contains only the three byte-search files.
Pinned Node 24.18.0/npm 11.16.0, Windows x64. Java boundary tests use controlled Node prerequisite processes; provider output is simulated. No real Ghidra/JVM execution or performance claim. No related cleanup remains.
Current-head CI: CI required and all five shards passed, with no failed executed check. Greptile passed, and no unresolved review threads remain. The independent PR readiness status is absent because that repository workflow is disabled_manually; the human declarations below remain filled.
Author readiness
Human owner: @ShuaixinHuang