version=4.4 date=2026-11-17 notes=V4.4 H-050 second-round hardening: P0-2 hardening: AuthEnvSeal wired into AuthMagicOn (2s throttle, checked on every verdict); auth state as keyed 4-field structure; whole-code-section writable detection; private-page hit is diagnostic only (AV/compat false-positive guard); P0-1 integrity fingerprint now keyed seal (AUTH_HASH_KEY) so expected value differs from plain FNV; auth verdict cache re-checks keyed state so a guard tick failure can no longer be masked by the same-day cache; P2 armor: legacy 4-field licenses rejected (six-field ver=5 only); P3 armor kept (update.txt is RSA-2048/SHA-256 signed, unsigned/tampered manifest refused); P1 armor kept (anchor sealed 16B+tag, first anchor needs trusted net time, bidirectional clock check); auth time to second; V5 anchor tag key delivered as four xor-split segments restored at runtime (single segment is not the key); H-052 single-file shell+engine; H-053 V6 direct-first probe + 60s retry; H-054 network hint in unauth dialog; H-055a env seal wired into the verdict chain (private-page detection downgraded to diagnostic); H-055b code-section byte check (disk file vs memory, reloc slots excluded) runs inside AuthEnvSeal and only reports a mismatch (code=BYTECMP_MISMATCH) to the update service. It is diagnostic-only and does NOT gate any verdict: a byte mismatch alone never blocks a formula. P11e corrected a wrong wording here (the manifest used to claim it gated the verdict; it never did) and deliberately kept it diagnostic, because AV / inline-hook environments can legitimately differ in memory and a hard fail there would kill normal clients; formula gate 440; H-056b version token (anti file-patch): build-time injection of a 256B RSA-2048/SHA-256 signature over (.text FNV-64 + version) into a dedicated DLL .data slot; runtime verifies it with the public key compiled inside the DLL (CNG BCrypt, PKCS1+SHA256). Editing code and recomputing the self-hash no longer passes, because forging the token needs the private key. Token failure degrades silently (same behaviour as other integrity failures), it does not refuse to load. P11: auth realtime sync interval 30s -> 10s (faster licence propagation). P11c: the H-056b version token is no longer nested inside AuthSelfIntegrity; it now runs as its own gate (AuthTokenGate) called independently from DoCalculate and from the 127/129/151 marks, with no shared return path, so patching AuthSelfIntegrity with "return 1" no longer disables token verification (forging the token still requires the private key). P11d: the engine now removes older sibling engines itself. Previously only the loader (shell) cleaned up old ChanLunDLL__v*.dll, and old client shells (4.4 initial build) do not carry that code, so _v058 kept accumulating in T0002\dlls after an upgrade. The cleanup now runs inside the engine at DLL load (before any network/authorisation work), strictly limited to this arch and only to version numbers lower than the running engine; the running engine and anything newer are kept, and no other file name is ever touched. P11e: seal comparison split out of AuthSelfIntegrity into its own gate (AuthSealGate) with its own per-process cache. DoCalculate now calls AuthSealGate directly and no longer shares a return path with the 127/129/151 marks (those still go through AuthIntact/AuthSelfIntegrity). Patching AuthSelfIntegrity therefore only fools the marks; the business path still fails the seal gate. Combined with the P11c token gate, an attacker who wants to patch the binary now has to defeat AuthSelfIntegrity, AuthTokenGate and AuthSealGate separately (plus the magic gate). v065 note: anti-static-analysis + realtime-expiry fix. (a) debugLog format strings are compiled out of the release build (#ifdef CHANLUN_DEBUG_BUILD), so the internal field names of the stroke algorithm (biKCount / biMinOrig / biMaxOrig / independentCount / onlyIndependentPos / origIdx / startBi / endBi) no longer appear in the binary; build with /DCHANLUN_DEBUG_BUILD when a debug copy is needed. (b) AuthGuardTick (expiry enforced to the second) now runs BEFORE the DoCalculate cache fast-path, so a timed licence that expires while the K-line data is unchanged no longer keeps producing output. (c) the discarded AuthGateV41 return in DoCalculate is now an explicit g_silentDegrade=1 (defensive redundancy; the gate already sets it internally). Red-team round 11 claimed a 6-byte patch at the verdict function unlocked the build; re-tested on this build: authorised output is unchanged (mark13 238/240, first value 10.8500), unauthorised output is 0/240, and patching that function now crashes with an access violation instead of producing numbers, because its licence-parsing side effect is required. | v066: loader BUILTIN_VER 62->65 (stale _v063/_v064 left in a client dir are no longer loaded in preference and are removed at startup); AuthDaysLeft one-day tolerance now matches AuthTokenVerify; version macro V4.4.2 | v067 (V4.4.3): base-domain failover. If the primary host (chanlun.chanlun888.com) returns no HTTP response at all (DNS/TLS/service down), the client retries the legacy cpolar host (chanlun-vip.cpolar.top) once and keeps using the base that answered for the rest of the process, so the retry cost is paid only once. Covered: update.txt, update.txt.sig, auth_db.json, the report ping, and both absolute download URLs (DLL impl and the two tn6 files, with the tn6 .sig following the same host). Any HTTP answer (even 403/404) counts as reachable and is used as-is, so a revoked or unregistered registration code is still reported correctly and is never retried on the other host. Loader BUILTIN_VER 65->66, built-in engine version 64->65, version string V4.4.3. formula_ver stays 440: this release only changes the DLL, the formula files are untouched. | v068 (V4.4.4): authorization hardening, DLL only. Red-team report proved v067 could be fully unlocked with 24+8 bytes (patch the verdict function, nop the degrade writes, recompute the seal). Fixed: (1) each of the four gates now returns its own magic constant instead of 1, so 'mov eax,1;ret' equals nothing; (2) the token gate is now a hard gate: the RSA-2048 signed token binds the .text fingerprint plus version, so any code edit fails verification, and a failed token now means RegisterTdxFunc returns 0 (no functions registered) and DoCalculate returns 0 instead of only degrading. Recomputing the seal cannot forge the signature. Loader BUILTIN_VER 67->68, built-in engine version 65->66, version string V4.4.4, token ver 68. Library untouched; formula_ver stays 440. Authorized output is bit-identical to v067 (238/240 on the 240-bar regression, first value 10.8500). [build2] Added a per-customer watermark slot in .data (outside the .text fingerprint, so the seal/token stay valid): each customer gets the same version with a different 8-byte tag, which traces a leaked copy back to its owner, while the server keeps one generic build for auto-update. Gate pass values are now runtime-masked, so no usable pass constant appears in the binary. [build3] Shell now auto-reclaims stale files at startup: deployment backups ChanLunDLL_*.bak_* keep only the newest one per base name, old engine versions below the loaded one are deleted, auth.txt backups keep 2. Only ChanLunDLL_ prefixed .bak files are touched. [v069] String encryption: auth.txt/auth.logic/Software\ChanLunDLL/base URLs are no longer readable in the binary. Control-flow obfuscation on the four gates (encrypted state machine + opaque predicates). Business output unchanged (6 marks bit-identical to v068). [v070] Silent shell fingerprint report: each process reports once (watermark customer id + own-file FNV-1a 64) so we can identify a leaked/cracked copy without asking the customer for the file. Business output unchanged (6 marks bit-identical to v069). dll32_url=https://chanlun.chanlun888.com/ChanLunDLL_32_v070.dll dll64_url=https://chanlun.chanlun888.com/ChanLunDLL_64_v070.dll dll32_md5=b283e96cacf40a0f97417328de5163cf dll32_sha256=f96e36c171c3831db619d1b02f967287d62f3cde7c342fa4f73f0c714b656f01 dll64_md5=3fabcb0394614c49f71e0c56c12fa9ea dll64_sha256=bacf8ac60e161b05940d08b42d700225d1f071946a7529897e9a533b177e67bf auth_db_url=https://chanlun.chanlun888.com/auth_db.json formula_ver=440 formula_main_url=https://chanlun.chanlun888.com/formula_main.tn6 formula_check_url=https://chanlun.chanlun888.com/formula_check.tn6 formula_time=2026-11-11 22:47:10 Engine impl version 64: v064 adds V9 formula signing - the downloaded tn6 files are now RSA-2048/SHA-256 verified against their .tn6.sig before being written to disk; verification failure is a safe fail (the existing local formula is kept and the download is retried later), so no client loses a working formula. update.txt formula_ver stays 440 because the formula content itself did not change. v063 note: switches the base/download URL to the self-owned domain https://chanlun.chanlun888.com (ZeroSSL cert, HK tunnel; no behavioural change; download filenames now *_v063.dll). v062 note: adds housekeeping in AuthCleanupOlderImpls - deletes stale *.dll.old shell copies and keeps only the newest 2 auth.txt.bak_* files