Repository navigation
fix(certificates)!: disclose undecoded unsigned attributes - #7920
Merged
Merged
Conversation
Contributor
[Medium impact] The changes since the previous review appear safe to merge; no new blocking issue was found. SummaryPE certificate inspection now lists unsigned attribute OIDs and reports partial coverage when their contents remain undecoded. APK v1 guidance also clarifies that only outer SignedData is decoded.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[PE SignedData] --> B[Read outer signers and unsigned attribute OIDs]
B --> C{Unsigned attributes present?}
C -->|Yes| D[Partial coverage and limitation]
C -->|No| E[Complete outer coverage]
D --> F[Service checks report consistency]
E --> F
F --> G[Shared Evidence for CLI and MCP]
Reviews (2) · Last reviewed commit: "test(certificates): use parser-owned lim..." · Reviewed by Greptile |
morluto
marked this pull request as ready for review
October 28, 2026 21:45
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. |
3 tasks done
12 of 22 tasks
22 tasks
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
Fixes #7767. PE SignedData signer unsigned attributes could contain timestamp tokens or nested signatures while inspection reported complete coverage without mentioning them.
Problem and expected behavior
Callers need to distinguish the outer signer and certificates from undecoded nested contents. The parser now reports unsigned attribute OIDs, marks coverage partial when attributes are present, and explains the omitted contents. Absent attributes are reported as null. Older Evidence can omit the new field and remains readable. The similar APK v1 decoder also reports that only outer SignedData is decoded.
Change and scope
The PE ASN.1 producer owns attribute interpretation; the service rejects a provider report claiming complete coverage while reporting unsigned attributes. CLI and MCP share the resulting Evidence. This does not decode nested signatures or timestamp contents, verify signatures, or change target authority.
Contract and boundary impact
unsigned_attribute_oids; coverage can bepartial.Expected effects:
Evidence and regression coverage
Validation performed
npm run test:local -- src/native/pe/PeCertificateParser.test.ts src/application/binaryDiagnostics/PeCertificatesService.test.ts— 44 passed.npm run test:focused -- tests/acceptance/peCertificatesCli.test.ts tests/boundary/mcp/peCertificatesMcp.test.ts— 10 passed, including CLI/MCP and advertised schema.npm run test:local -- src/apkSignature/ApkSignatureProvider.test.ts src/domain/apkSignature/apkV1SignatureBlock.test.ts— 44 passed.npm run check:fast— passed;git diff --check HEAD— passed.Compatibility, safety, and release
Coverage changes from complete to partial for observed unsigned attributes. Consumers should handle the new status and optional OID field. No real-provider, OS-specific, or cryptographic verification was performed.
Author readiness
Human owner: @morluto
Before merge
type(scope): outcome.