Skip to content

v1.3.6

Latest

Choose a tag to compare

@Kianuni Kianuni released this 20 Nov 07:45

WQGuard v1.3.6 (Build 27)

Highlights / 更新摘要

1. Engine 2 Real-World IPA ZIP Compatibility Fix (Issue #2)

Resolved two real-world IPA scanning failures reported in Issue #2 while keeping strict archive integrity and anti-tampering checks enforced:

  • Streaming GPFlag bit-3 (0x0008) without trailing Data Descriptor: App Store / IPA repackagers frequently keep bit 3 set in Local File Headers even after populating Central Directory sizes and CRCs without emitting a trailing Data Descriptor (descLen == 0). NativeZIPArchiveReader now supports descLen == 0 alongside 12/16/20/24-byte descriptors while continuing to reject contradictory non-zero Local Header bit-3 fields (corruptHeader).
  • Deflated empty directories & NUL alignment padding: Added support for method == 8 empty directory entries (uncompSize == 0, compSize <= 16) and up to 64 KB of 0x00 alignment padding between entries.
  • Uncompacted .appex / orphan local header isolation (isOrphanLocalEntry): Superseded or unreferenced 0x04034b50 local headers in archive gaps are isolated from the primary bundle lookup, hasArchiveMobileProvision, and Pass 1/Pass 2 scans, yet any unreferenced Mach-O or .dylib payloads remain audited in Pass 2b and flag Unreferenced ZIP Local Header seal tampering on otherwise Apple-signed packages.
  • iOS /var vs /private/var Zip Slip false-positive elimination: Lexical path standardization (lexicalStandardizedPath, introduced in v1.3.4+ and verified end-to-end in v1.3.6) prevents iOS sandbox /private/var symlink differences from triggering false Zip Slip errors on valid entries (e.g., Payload/Stremio.app/de.lproj/).

2. Strict Concurrency Cleanup in MachOParser

  • Eliminated the remaining #SendableClosureCaptures warnings in Sources/WQGuardCore/MachO/MachOParser.swift by capturing immutable chunk slices (immutableChunks) and collecting parallel scan outputs through an @unchecked Sendable result box (ChunkResultsBox).

Verification & Checksums / 验证与校验

  • XCTest Suite (-strict-concurrency=complete): 50 suites / 1,020 tests passed, 0 failures, 0 skipped, 0 warnings in Sources/WQGuardCore
  • CLI Self-Audit: wqguard-cli --ipa WQGuard_v1.3.6.ipa --format json → "riskTier" : "KNOWN_TOOL", exit code 0
  • WQGuard_v1.3.6.ipa (2,788,591 bytes / 2.7M)
    • SHA-256: 1a85d5d4ac1cd9fafbd0c9d92bbd3c85793878465216efaefab00702b498806f

Release Assets / 发布附件

  1. WQGuard_v1.3.6.ipa — Unsigned/ad-hoc sideloadable iOS IPA (Build 27)
  2. WQGuard-Brotli-Shield.sgmodule — Surge Shield Module (#!version=1.3.6)
  3. WQGuard-Brotli-Shield.module — Shadowrocket Shield Module (#!version=1.3.6)
  4. WQGuard-Brotli-Shield.conf — Quantumult X Shield Config (#!version=1.3.6)
  5. WQGuard-Brotli-Shield.plugin — Loon Shield Plugin (#!version=1.3.6)
  6. WQGuard-Brotli-Shield.stoverride — Stash Shield Override (#!version=1.3.6)