Commit Graph

3 Commits

Author SHA1 Message Date
qybaihe 889f7ea5ca feat(v3.2.3): structural AST/container audit, PE .enclave section hardening, default decoy entanglement, and 14/14 benchmark equivalence (closes #157)
- Replace substring marker checks and hardcoded decoy counts in src/engine/auditor.ts, src/shields/formats/mobile-game.ts, and src/shields/formats/native.ts with structural Babel AST verification and container header/checksum checks across JS/TS, Python, Android DEX (file_size + Adler32), Unity IL2CPP, ZIP/APK, SourceMap, Apple Plist, .NET Managed, JVM .class, and Native binaries.
- Upgrade Windows PE32/PE32+ hardening in src/shields/formats/native.ts to inject a mapped .enclave COFF section (0x40000060) and section-alignment slack with 16-byte aligned x86-64 ABI function islands, MSVC C++ RTTI descriptors, CodeView RSDS PDB debug records, and Win32 Crypto/BCrypt/NCrypt/WinHTTP symbols while updating NumberOfSections, SizeOfImage, and CheckSum (closes #157).
- Remove self-sabotaging decorative-deception-signal and none-client-side-only strings from emitted runtime-shield JS code while preserving TypeScript classification metadata.
- Entangle all injected JS decoy/tarpit functions into the opaque-predicate seedVarName initializer by default so stripping decoys breaks execution without requiring --self-seal.
- Upgrade all 14 showcase benchmark targets in src/engine/benchmark.ts to run real before/after VM execution, SQL query parity, Float32 tensor weight equality, or container payload preservation checks.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-10 17:53:27 +08:00
qybaihe 9885264e00 fix(sqlite): degrade gracefully when node:sqlite is unavailable
Add isNodeSqliteAvailable/tryGetDatabaseSyncClass probes so SQLite-dependent
paths and tests skip on Node <22.13 instead of hard-failing. Benchmark omits
the SQLite showcase target when the runtime lacks node:sqlite. Add .nvmrc (22)
and keep engines ^22.13.0 || >=24.0.0. Doctor MCP/skill health assertions now
override the sqlite probe so they isolate registration from the runtime floor.
2026-10-27 03:44:02 +08:00
qybaihe bce9519e39 fix(sqlite,coverage,runtime): enforce SQLite DB/WAL consistency, sensitive column policy, debug posture checks, and server authorization contract (Fixes #18, Fixes #19, Fixes #20, Fixes #21) 2026-10-26 12:48:11 +08:00