Provenance check: embedded CMS passes but full Authenticode digest fails in 12 signed package DLLs #52
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#52
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Joacoorandom on GitHub · 2026-11-21 13:58 UTC · original
Reproducible provenance/integrity observation (local-only)
I am examining a separately obtained copy of the alleged
GTA6.Xbox.v1.0.2.1-CYBERLEEKpackage. This is a static, read-only check; I did not run any shipped code, and am not uploading or linking game files.Result
Among the 16 bundled PE x64 DLLs, 12 contain an embedded Authenticode/CMS signature. For all 12:
pe.signatures[0].check()=>VERIFICATION_FLAGS.OK(embedded CMS structure/signer check)pe.verify_signature()=>VERIFICATION_FLAGS.BAD_DIGEST|BAD_SIGNATURE(signed content digest differs from the current PE's Authentihash).The other four DLLs (
Bink2Scarlett.dll,XboxBvhBuilder.dll,amd_fidelityfx_loader_xbox.dll,amd_fidelityfx_upscaler_xbox.dll) contain no embedded Authenticode signature.This does not establish that the build is fake or that any file contains malware. A package transformation, different signing/console process, repacking, or modification after signing may explain the discrepancy. Trust-chain verification was not performed.
Concrete reproducibility fingerprints
XCurl.dlld11ba4e4a07f42f8d80c48553c5c2588ab4114ecdbe023305f5f8fa8262131f85cc6db0e8b8f7ce0597f5ba06f41bc6fe64f03d77531ba059c4ee9aae84ce3a3msvcp140.dll6036fdb3ee3a5813ef0b17462219ebcee5f06b46ef738bacde07aa797e6d2b7550ac244686a3458fa8a550352a0b18fa9527cd3a6d04c25f37cf994495e9e182libHttpClient.GDK.dll14d97b3d071e0ce461e758dbcf1511941ae5c0bdd6e32ed33cb87aaae0414d3a97585868ef6b9b98a036d950808a061516473580cb10001a30be49838a5901ceReproduction
Using Python LIEF (local environment reports
lief.__version__ = 1.0.0-d05b3499b):The earlier independent Authenticode hash calculation reproduced the LIEF-computed hash for the examples above. This check compares embedded signature content digests; not certificate trust, publisher authorization, or Windows/Xbox GameOS loader acceptance.
Proposed follow-up
signtool verify /pa /vand examine whether Xbox-specific packaging invalidates conventional full-file verification.I looked through the public experiment notes and did not find these full-file signature checks documented. If they're already accounted for, please link the existing evidence and close as duplicate.
References: LIEF verification semantics.
@MarlomMedeiros on GitHub · 2026-11-21 14:15 UTC · original
Independent reproduction of the provenance check on a separately obtained local copy. Static read-only analysis only; no shipped code executed, no game files uploaded or linked.
Result: confirmed
16 bundled x64 DLLs: 12 signed, 4 unsigned, same unsigned set (
Bink2Scarlett.dll,XboxBvhBuilder.dll,amd_fidelityfx_loader_xbox.dll,amd_fidelityfx_upscaler_xbox.dll).For all 12 signed DLLs:
pe.signatures[0].check()=>VERIFICATION_FLAGS.OKpe.verify_signature()=>VERIFICATION_FLAGS.BAD_DIGEST|BAD_SIGNATUREWhole-file SHA-256 matches the three published fingerprints exactly, so both copies are byte-identical:
XCurl.dlld11ba4e4a07f42f8d80c48553c5c2588ab4114ecdbe023305f5f8fa8262131f85cc6db0e8b8f7ce0597f5ba06f41bc6fe64f03d77531ba059c4ee9aae84ce3a3msvcp140.dll6036fdb3ee3a5813ef0b17462219ebcee5f06b46ef738bacde07aa797e6d2b7550ac244686a3458fa8a550352a0b18fa9527cd3a6d04c25f37cf994495e9e182libHttpClient.GDK.dll14d97b3d071e0ce461e758dbcf1511941ae5c0bdd6e32ed33cb87aaae0414d3a97585868ef6b9b98a036d950808a061516473580cb10001a30be49838a5901ceRemaining fingerprints for the full set (hashes only):
concrt140.dll554168b99726cbe982b542ec97c493f48483b20a4ea4e54e102ba3a0d098e75f8a6566b97e42fd8caa25d633e45216443582874f59c98a54605d1f9c9171ed49msvcp140_1.dllc56b530e0894d9c4d11b12d389786fef40463dbd81d4438b8414f909d6226211c2c1a1ee0bc86324dd34a66186f9494b00184ebdb9703268381ae8a9d65f685amsvcp140_2.dll276813083c55c079120e0db49898088bb0c8d1c912ed59ec0d00fedf56a694a8a464037135dc30f47b37ba38be6e4e94fccb6656ccbc92437d4c1ddea3936caamsvcp140_atomic_wait.dllb7f879662095f71dc08efcbc0d24ac3c0ff2dde8d475f92f5c5646a39bf8f2c30b80887377a2bdefa4c7d6fe3036088f6c883716c09d9e1b388c99dee0797eacmsvcp140_codecvt_ids.dll89cf5b07b98709277e8511d9a402ce72279e8df3ae24a8dd641ab0265c799a0ca8e6c77ba6430d68ef7dfca482b63044e072dec3a8e562d964682cc2f9057297vccorlib140.dll79ee6fa49aa2c6f0dfbc1279273fd619e1a9285995ff53a8bc183000c8895b91d0bc04cc9a0f7aa71ee17e1f734e7b6d5df526da448ea05eb9791908a65647e7vcomp140.dll91e249c0f66f827bcacd0be4931b1cec3e4907cc05ea0a5bcd83696c7090896367b4c3f01f9ed2c348da61932c3401d92b24faa36dbaad9d8ebb05c6f01dae87vcruntime140.dll9385104cc3e031dbbcb63f156134a0f6afff455e0ff6887f5a9e1c5f7e2706b0168494f94a9616511c4a1fd5a88c8fa93c1f1b7a32175bdad94ff73e60a68b1cvcruntime140_1.dll0dbd6859f825ab8acab1fa25b6bd1a091d35ca2dbe3185c1187192f2d2ac81548aadf1f8462eea396f4d8d3196f11f41ab852b5a9199463ed90858b5a639c57dUnsigned DLL whole-file SHA-256:
amd_fidelityfx_loader_xbox.dll431bdd2e26c0c8214fd7601140eb9fe6d8a249f5000539453a9a9b6a0b7c0ee8,amd_fidelityfx_upscaler_xbox.dllfaff02f294a7e9149ce079dffe3dedbcabe99b1f180ab14222aa8689e00a75fa,Bink2Scarlett.dll9eaf045d004cd7d6a8382aaff0c6ea23a29fec4ef8bfacd726b54f5bc26fafd0,XboxBvhBuilder.dll99f803ac22c01ef329dddb1d40be67238d2a812d01e8d040b3cb5135bc23707e.Independent verifier
Windows SDK
signtool verify /pa(10.0.26100) agrees without LIEF: "The digital signature of the object did not verify" for all 12 signed DLLs, "No signature found" for the same 4 unsigned.Environment
lief.__version__ = 1.0.0-d05b3499b, Python 3.14.10, Windows 11 Pro 26H2 build 26300.10075. Same check script and call order as the original report.Agreement with the original observation: identical signed/unsigned split, identical flags, identical published hashes. The digest mismatch therefore reflects package-level content, not a copy-specific transformation. As noted in the issue, this does not establish fake or malicious content; repacking or post-signing modification remain plausible explanations.
AI-assisted report: the commands were run and the results checked on my machine.
@R0Y00 on GitHub · 2026-11-21 14:38 UTC · original
Thank you both for publishing the method and fingerprints. I checked the local 16 DLLs on Windows using Get-AuthenticodeSignature -LiteralPath, without loading them. Windows returned HashMismatch for 12 and NotSigned for the other four named above. Get-FileHash -Algorithm SHA256 also matched all three published whole-file fingerprints (XCurl.dll, msvcp140.dll and libHttpClient.GDK.dll). This independently corroborates the file-content mismatch with a second implementation. The origin of that mismatch and the console signing/packaging path are still open. I’m recording this limitation in the provenance notes.
@R0Y00 on GitHub · 2026-11-21 17:23 UTC · original
Thanks for the independent digest calculation and on-disk IAT and relocation observations. They narrow the explanations for the mismatch. The catalog's subsystem identifies its role, but entropy alone does not establish how its contents are encoded or that it authorized these individual DLLs. Keeping the cause open pending a public reference or independently verifiable catalog-to-file relationship.
@Vonsek on GitHub · 2026-11-21 18:50 UTC · original
I checked whether the code catalog contains SHA-256 digests of the 16 packaged DLLs or their on-disk pages as contiguous 32-byte values. I found zero matches in the catalog copy with SHA-256
4afbdbe22aad2bc338a5ba1ffe83cccb96e072eb4e92f6a5dd90b49b2e227c59.To reproduce, run
dumpbin /headers Catalog000.bin. Its single section starts at file offset0x1000and has0xC6000raw bytes. For each DLL, hash the entire file, then hash each complete 4,096-byte span starting at file offsets 0, 4096, 8192 and so on. This produced 1,167 full pages. Fifteen DLLs had a final partial page, which I omitted. Search the section at every byte offset for each binary digest. The counts were zero in standard SHA-256 byte order, with the entire digest reversed, and with bytes reversed within each four-byte word.All 16 locally calculated whole-file hashes matched fingerprints already posted here. I cross-checked the standard-order result with Python and .NET, and the .NET scanner found a synthetic digest placed at offset 5.
This rules out those direct lookups for this copy. The relation to mapped or transformed pages, other digest formats, and console authorization remains open.
@triggered02 on GitHub · 2026-11-23 21:35 UTC · original
Taking a read-only root-cause pass on the BAD_DIGEST mismatch. I have a copy of the package and will recompute the Authenticode digest per the PE spec and test which post-signing transformation (if any) restores the embedded signed digest — bound/pre-filled IAT restored from the INT, the Checksum field, appended overlay/.xbld data, page-hash vs flat SpcPeImageData, and .reloc changes — plus a section-level diff against a same-version desktop twin where one exists. Static only; no shipped code will be run and nothing will be uploaded. Will report the per-DLL result and keep the cause open where the evidence does not settle it.
@triggered02 on GitHub · 2026-11-23 21:48 UTC · original
Root-cause pass: none of the classic post-signing transformations restores the signed digest (12/12 DLLs tested). Static, read-only; no shipped code executed, nothing uploaded. This follows up on my earlier note and on the fingerprint tables above.
Reproduction. Same 12 signed / 4 unsigned split, same flags (
signatures[0].check()= OK,verify_signature()= BAD_DIGEST|BAD_SIGNATURE), and all whole-file + Authentihash fingerprints above match exactly on my copy (lief 1.0.0-d05b3499b, Python 3.12.10, pefile 2024.8.26).Method check. I recomputed the PE Authentihash independently from the spec (headers minus CheckSum and the security-directory entry, sections in raw-pointer order, trailing bytes minus the certificate table). It equals lief's value for all 12. I also extracted each signed digest straight from the embedded PKCS#7
SpcIndirectDataContent.messageDigestby raw DER parse; all 12 match the expected-digest table posted above. All are flat SHA-256 (SpcPeImageData.flags = 00, no page-hash attributes).Hypothesis matrix — all negative. Per DLL, in-memory only, I recomputed the Authentihash under each of: (a) as-is; (b) IAT restored from the INT — a no-op, the IAT is not bound (0 differing entries in all 16 DLLs); (b2) IAT zeroed; (c) CheckSum included as-is / zeroed-and-included; (d) overlay excluded (there is none — 0 trailing bytes in all 12),
.xbldraw excluded / zeroed / removed with header fixups (only the two non-CRT signed DLLs have.xbld; the ten CRT DLLs fail BAD_DIGEST with no.xbldat all); (e) page-hash variant — n/a, flat hash; (f).reloczeroed / excluded; plus security-directory inclusion, whole-file-minus-certificate,.rsrcexclusion, a sweep zeroing 29 individual header fields, a sweep excluding each data directory's range, and padding normalization (no gaps; padding already zero). No variant matches the signed digest on any of the 12 DLLs.Provenance facts. The CMS layer is intact end to end: each signer's messageDigest attribute equals SHA-256 of the stored SpcIndirectDataContent, and each RFC3161 timestamp's messageImprint equals SHA-256 of that signer's encryptedDigest. Signers:
CN=Windows Phonevia Microsoft Windows Phone Production PCA 2012 for the ten OneCore CRT DLLs (14.29.30157.0, linked 05:22–06:00 UTC and batch-signed 06:17 UTC on 2024-10-13);CN=Microsoft Corporationvia Microsoft Windows Code Signing PCA 2024 for XCurl.dll (2604.5.0.0) and libHttpClient.GDK.dll (2.0.2608.31002), signed 2026-09-08. All 12 PE checksums are valid over the current bytes (recomputed after the signature was embedded). Since the standard Authentihash excludes the checksum, a checksum-only write cannot explain BAD_DIGEST: other content differs from what was signed, or the signature covers different content. Imports are standard OneCore API sets (no console retargeting visible);.relocis well-formed DIR64 at the default 0x180000000 base. XCurl.dll has an odd 1972 link timestamp — noted, not decisive. The System32 desktop twins are 14.52.37029.0 (different builds, every section differs), and their Authentihashes do not match the signed digests, so this is not a desktop-signature transplant.Where that leaves the cause. Established: the mismatch is a genuine content mismatch between the packaged bytes and the signed content, the signatures are internally intact Microsoft signatures, and no classic repacking transformation (binding, checksum, overlay/
.xbld, page hashes,.reloc, padding, single header fields) accounts for it. Open: whether this is a post-signing rewrite in a packaging pipeline, a rebuild that retained an older signature, or a signature from a different build of the same libraries — the packaged bytes alone cannot distinguish these, and a mismatch alone does not prove tampering. To settle it we need a same-version reference original (GDK redist CRT 14.29.30157.0 OneCore x64, XCurl 2604.5.0.0, libHttpClient.GDK 2.0.2608.31002) to diff against the signed digests, or a verified catalog-to-file relationship for the console packaging path. I could not perform an external reference-hash lookup in this session (search endpoint unavailable).Per-DLL variant hashes and the full matrix are recorded in my local notes; happy to share the extraction/recomputation scripts. AI-assisted analysis: the commands were run and the results checked on my machine.
@R0Y00 on GitHub · 2026-11-23 23:14 UTC · original
Thanks for the independent digest calculation. Matching the tool's Authentihash on all 12 files and separately extracting the signed digests establishes the mismatch under the standard PE calculation. The tested variants did not explain it, so this stays open. The next discriminating evidence would be an independently verifiable same-build reference or verified catalog coverage. If you share the recomputation script, a source-only version with a self-built PE control would be useful.
@mcn1630 on GitHub · 2026-11-24 08:44 UTC · original · edited 2026-11-24 09:58 UTC
Hi everyone, I'm from China and used Gemini to help translate and structure my findings below:
Root Cause Confirmed (100% Bit-Exact Reproduction)
Thank you for documenting these reproducible fingerprints. The
BAD_DIGEST/HashMismatchacross all 12 signed DLLs is not due to malware, tampering, or corruption—it is a standard artifact of the Xbox Series X|S retail packaging pipeline (MakePkg/ Xbox Code Integrity).During
.xvcpackaging, the tool embeds page-level code integrity catalog offsets directly into each PE file'sLoadConfig.CodeIntegritystructure. Because standard Windows Authenticode verification (WinVerifyTrust,signtool, LIEF'sverify_signature()) hashes theLoadConfigdirectory without maskingCodeIntegrity, those 12 modified bytes invalidate the original Microsoft Authenticode digest.Byte-Level Mechanism
vcruntime140.dll,msvcp140*.dll,XCurl.dll, andlibHttpClient.GDK.dll, the 12-byteCodeIntegrityfield (Flags,Catalog,CatalogOffset,Reserved) at offset+0x94insideIMAGE_LOAD_CONFIG_DIRECTORY64was zero-initialized (0x00 * 12). The embedded PKCS#7 Authenticode SHA-256 signature was computed over that unmodified layout..xvc),MakePkggenerates a page-level hash catalog (Catalog000.bin, storing a 32-byte hash per 4 KiB executable.textpage) across all binaries in the package. It then writes each binary's catalog metadata directly into its PE header:Flags = 0x0001Catalog = 0CatalogOffset = 0x0be800 .. 0x0c2960CheckSumaccordingly.pe.authentihash_sha256) only excludes the PECheckSumand the Certificate Table (IMAGE_DIRECTORY_ENTRY_SECURITY) during digest calculation. It does not excludeLoadConfig.CodeIntegrity. On Xbox GameOS, the kernel/loader validates binaries againstCatalog000.binand the package's.xvcsignature rather than falling back to standard desktop Authenticode.Bit-Exact Verification (12 / 12 Matched)
Zeroing out those 12 bytes in
LoadConfig.CodeIntegrity(IMAGE_LOAD_CONFIG_DIRECTORY64 + 0x94) and recomputing the PE Authenticode SHA-256 restores the exact digest embedded inside each file's Microsoft PKCS#7 certificate across all 12 DLLs:CatalogOffsetconcrt140.dll0x0bf280236a7eed621b61f0...libHttpClient.GDK.dll0x0bf7c09b81f8f2454868a3...msvcp140.dll0x0c0ce0bca478189c7c1800...msvcp140_1.dll0x0c17604dda722ddc4b63c5...msvcp140_2.dll0x0c17a0cf245b23061c10cb...msvcp140_atomic_wait.dll0x0c1b80e68a2ed4c92c52d2...msvcp140_codecvt_ids.dll0x0c1c00a6d5b5c60df5d94a...vccorlib140.dll0x0c1c20a4cb9724fa0f8371...vcomp140.dll0x0c21400d98265a491969c6...vcruntime140.dll0x0c228066c02f5388ded95f...vcruntime140_1.dll0x0c2480b08b56e861f15b17...XCurl.dll0x0c29609e7b0a30d5353faf...(Note: Your whole-file SHA-256 values for
XCurl.dll,msvcp140.dll, andlibHttpClient.GDK.dllmatch the exact binaries analyzed here.)Additional Observation on the 4 Unsigned DLLs & Main Executable
Bink2Scarlett.dll,XboxBvhBuilder.dll,amd_fidelityfx_loader_xbox.dll,amd_fidelityfx_upscaler_xbox.dll) were also processed byMakePkg, receivingFlags = 0x0001and contiguousCatalogOffsetentries starting at0x0be800.0x000000to0x0be800reserves 24,384 32-byte page hash slots (0x0be800 / 32), indicating that the omitted main executable (game_scarlett_master.exe) had an executable.textfootprint of approximately 95.25 MiB (24,384 × 4 KiB).Answers to Your Proposed Follow-Up Items
XCurl.dll,msvcp140.dll, andlibHttpClient.GDK.dllare byte-identical to our sample.signtoolBehavior: Both Windowssigntool verify /pa /vand PowerShellGet-AuthenticodeSignaturereportHashMismatch(0x80096010) for the exact same reason: desktop Windows Authenticode does not maskLoadConfig.CodeIntegrity, whereas Xbox packaging legitimately mutates it.LoadConfig.CodeIntegrityandCheckSumupdated byMakePkg, they carry no injected code—though Windows code-integrity enforcement policies that strictly require valid desktop Authenticode signatures (e.g., HVCI/WDAC) will reject them unlessLoadConfig.CodeIntegrityis zeroed or policy-exempted.@R0Y00 on GitHub · 2026-11-24 09:00 UTC · original
Please remove the binary attachment from the comment. This repository keeps copied and modified binaries out of GitHub issues and uses source-built controls for reproducible evidence. The reported digest comparison can stay as an unverified observation with a short aggregate summary. It does not establish that the files are safe or that desktop trust policy should accept them. Keep the original inputs local and leave signature enforcement enabled.
@mcn1630 on GitHub · 2026-11-24 10:18 UTC · original
Removed the binaries—my apologies for uploading them here. I just wanted to clarify the technical root cause behind the Authenticode digest mismatch, not suggest bypassing signature policies or treating the files as trusted.
@AlkSey99 on GitHub · 2026-12-01 00:52 UTC · original · edited 2026-12-01 00:57 UTC
Follow-up — Native analysis and signed Microsoft reference comparison
I compared the 12 DLLs by whole-file SHA-256, computed PE Authentihash, and embedded signed digest. All three values match the fingerprints posted in this issue for all 12 DLLs. This is AI-assisted, read-only static analysis.
1. Ten Visual C++ DLLs — same-build references found
Microsoft’s OneCore x64 redistributable contains signed DLLs with file version
14.29.30157.0.Windows reported
Validfor all ten references. Each reference’s computed Authentihash equals the digest embedded in the corresponding audited DLL.A full file comparison found identical executable bytes and certificate tables. The only differences were:
LoadConfig.CodeIntegrity.FlagsCatalogOffsetOptionalHeader.CheckSumThe first two explain the digest mismatch. Authenticode excludes
CheckSum.References:
2. The two GDK DLLs remain open
XCurl.dll
Against the signed Windows GDK reference,
XCurl.dllhas identical instruction bytes in 528 of 529 functions at matching RVAs.The three changed bytes in
.textare in a build constant passed at three initialization sites, consistent with the difference between builds7901and7903.libHttpClient.GDK.dll
126 of 129 exported bodies have matching mnemonic sequences and operand counts after following the export jumps. Only two match byte for byte.
Ghidra 12.2 decompiled 10,019 identified functions across the 12 DLLs. For
libHttpClient.GDK.dll, instructions within those functions cover 59.0% of its raw executable section.The exact integrity of both Xbox GDK variants remains unverified.
3. Catalog and behavioral evidence
Ten of the eleven successive
CatalogOffsetspacings match the preceding DLL’s executable page count.Catalog authentication and cryptographic file coverage remain open.
For the matching
libHttpClient.GDK.dllhash, VirusTotal shows:The C2AE verdict remains unresolved and should not be dismissed as a false positive without further evidence.
VirusTotal behavioral report
4. Conclusion
The OneCore comparison explains the ten digest mismatches. Authenticating the exact two GDK variants and validating Xbox catalog coverage would address the remaining provenance questions.
The scope of this investigation is limited to these 12 DLL fingerprints.
No audited DLL was loaded or executed during the investigation.
Sanitized comparison tables, reference fingerprints, methodology, and analysis limitations are available upon request. No proprietary binaries or game files will be distributed.
These findings do not establish the safety of the complete package, and signature enforcement should remain enabled.