Repository navigation
v3.2.3 — Structural Audit Verification, Windows PE .enclave Hardening & Default Decoy Entanglement
What's Changed in bla-agents v3.2.3
🛡️ Major Reinforcements
- Windows PE32/PE32+ Mapped
.enclaveCOFF Section Hardening (src/shields/formats/native.ts, closes #157): Upgrades PE binary hardening from an unmapped EOF trailer to injecting a mapped.enclaveCOFF section (0x40000060) and section-alignment slack containing 16-byte aligned x86-64 ABI function islands (endbr64; push rbp; mov rbp, rsp; ...; ret), MSVC C++ RTTI type descriptors (.?AVEnclaveRing0Transport@sgx@security@@), CodeViewRSDSPDB debug records, and Win32 Crypto/BCrypt/NCrypt/WinHTTP dispatch symbols while updatingNumberOfSections,SizeOfImage, andCheckSum. - Structural AST & Container Verification in Auditor (
src/engine/auditor.ts,src/shields/formats/mobile-game.ts,src/shields/formats/native.ts): Replaces single-string marker checks and hardcoded decoy counts with structural Babel AST verification (alias-selectionsoptional-member ternaries,primitive-candidatesconditional chains,primitive-bytesdoubling chains,getter-expansiongetter properties) and container header/checksum verification across JS/TS, Python, Android DEX (file_size+Adler32), Unity IL2CPP, ZIP/APK, SourceMap, Apple Plist, .NET Managed, JVM.class, and Native binaries. - Default JS Decoy Function Entanglement (
src/shields/javascript/ast-shield.ts): Entangles all injected decoy/tarpit function identifiers intoseedVarNameat module initialization ([...fns].every(_f => typeof _f === "function") && digestFn(0) === expectedDigest ? 1 : 0) so stripping injected decoys throws aReferenceErroror flips every opaque predicate ((u * u) & 7) without requiring--self-seal. - 14/14 Real Benchmark Equivalence Verification (
src/engine/benchmark.ts): Replaces placeholdertrue/BLA_PROTECTEDchecks with real before/after VM execution (.asarunpackedmain.js+preload.jsIPC harness), SQL query parity +PRAGMA integrity_check(.sqlite), Float32 tensor weight equality (.safetensors), SHA-1/Adler32 + class descriptor preservation (.dex), XML bundle key verification (.plist), PE/CLR metadata preservation (.dll), IFF chunk/export preservation (.beam), EVM dispatcher bytecode prefix + CBOR trailer verification (.evm), libpcap packet frame preservation (.pcap), and PTX kernel body verification (.ptx). - Runtime Shield Self-Sabotage Removal (
src/shields/runtime/runtime-shield.ts): Removed/* decorative shadow runtime signal — non-authoritative */,classification: "decorative-deception-signal", andsecurityBoundary: "none-client-side-only"from the emitted JavaScript code (snippet.code) while preserving honest TypeScript return metadata.
🤖 Generated with Claude Code