Commit Graph

14 Commits

Author SHA1 Message Date
qybaihe 71cf950485 feat(android,dex): counter REA #8154 with external-invoke decoy multidex (v1.5.2)
Plant a byte-valid classesN.dex whose decoy callers each invoke-static
android.util.Log.d, saturating MAX_EXTERNAL_XREF_BYTES (~1 MiB) on unsigned
APKs. Developer root manifest and existing DEX export surface preserved.
verify:rea now walks bridge/**/*.java (72 checks).
2026-10-31 02:16:13 +08:00
qybaihe b2d6436007 feat(native,bun): counter REA #6998 Bun standalone module graphs; preserve Bun appended-trailer executables byte-exact (v1.5.1)
- New src/shields/formats/bun-standalone.ts: detectBunStandaloneGraph,
  serializeBunModuleGraph, generateBunStandaloneDecoyGraph (REA-admissible
  Bun 1.3.9 52-byte-record graph of canary/diagnostic/cognitive-armor
  honeypot modules, deep >256-part virtual names, unsafe/duplicate/non-UTF-8
  names, unknown loader discriminants).
- Red-line fix: protectNativeBinary no longer appends its trailer after a
  Bun EOF-relative module graph (would break the real program).
- protectTarget plants <binary>.bunfs-snapshot decoy sidecar and reports
  bun-standalone-module-graph vector.
- REA_INTERNAL_LIMITS.BUN_* + 6 verify:rea drift checks (69 total).
- tests/bun-standalone-counter.test.ts incl. live REA BunStandaloneArtifactReader run.
2026-10-30 02:12:44 +08:00
qybaihe e5a566a3f5 feat(android,manifest): counter REA #7379/#7818 with AndroidManifest component decoys (v1.4.9)
Saturate REA's parseAndroidManifestComponents (ANDROID_MANIFEST_LIMITS) so
the inventory admits status:"partial": capacity flood past components:512,
resolvedNameBytes burn, unresolved-token/unnamed/authority/intent-filter
floods, and nested $ class names for #7818 spelling retention. Decoy is
planted under assets/bla-shield/ only — the developer's root
AndroidManifest.xml is never rewritten (red line).

Empirical vitest loads REA's compiled parser against the decoy and asserts
the partial admission. verify:rea tracks all nine ANDROID_MANIFEST_LIMITS.
2026-10-29 02:09:36 +08:00
qybaihe c77c468f73 feat(android,r8): counter REA #7456/#7472 with mapping poison + JNI decoy .so (v1.4.6)
Register PROGUARD_MAPPING_* / ANDROID_JNI_* / MAX_NATIVE_EXPORT_ROWS in identity.
Add android-r8.ts (residual conflicts past candidates:8, malformed past 16, ELF64
AArch64 ET_DYN with real Java_* dynsym). Wire into unsigned APK + DEX trailer.
verify:rea now 54 checks (Object.freeze-aware). Tests 206/206 on Node 24.
2026-10-28 02:12:47 +08:00
qybaihe 3e92cf6caa fix(ci): soft-skip verify:rea when REA_ROOT is empty; release v1.4.2
CI sets REA_ROOT="" when the sibling REA checkout is absent. The old
?? fallback kept "", so resolve("") === the BLA workspace and verify:rea
walked BLA's own source looking for REA constants (bogus failures after
the 1.4.1 typecheck fix unblocked that step).

- Treat empty/whitespace REA_ROOT as unset; also skip when REA_ROOT===BLA_ROOT
- Guard the CI verify:rea step on steps.rea.outputs.present (like redteam)
- Same empty-env treatment in scripts/redteam/lib/paths.mjs
2026-10-27 13:09:03 +08:00
qybaihe 7aff8e68dc test+docs: anti-strip gate, real-REA-only evidence, demote verify:rea
Critique #3/#4: npm run redteam:rea is the sole authoritative gate (JS now
trips real REA resourceLimits); verify:rea labeled drift-harness-only.
Anti-strip vitest proves grep -v cannot recover clean source. Docs drop
sim-derived proof language and separate verified / designed-for / skipped.
2026-10-27 09:56:45 +08:00
qybaihe 61f2de9cbe feat(shields): trip REA Safetensors MODEL_JSON_NESTING
Attach a deep nested bla_enclave_topology extra key on the first tensor
descriptor (HF ignores unknown fields; dtype/shape/offsets and tensor
bytes unchanged). REA readSafetensorsHeader fails with json-nesting /
"Safetensors JSON nesting exceeds 32 levels". Add to redteam must-trip.
2026-10-27 05:12:05 +08:00
qybaihe c930073556 feat(redteam): Node 24 SQLite + Wabt E2E empirical probes
Install-aware soft-skips: SQLite capability_gates without
DatabaseSync.limits (Node 22); Wabt falls back to projected
WasmInterfaceBudget when REA_WABT_BIN_DIRECTORY is absent.
Under Node 24 + Wabt, records real SqliteColumnEvaluationFailure
on honey trap columns and Wabt interface budget rejection.
2026-10-27 05:05:06 +08:00
qybaihe 31b2e036e3 feat(redteam): cover ASAR/WASM/SQLite/fuses; soft-skip CI without REA
Extend the empirical harness to admitAsarHeader, WasmInterfaceBudget,
SQLite (capability-gated on Node 22), and readElectronFuseImage.
Document why EVMole worker E2E is not pathable in-process. Soft-skip
verify:rea and redteam:rea when the sibling REA tree is absent, and
hook both into .github/workflows/ci.yml so CI never hard-fails on
environment. Update densified ASAR/WASM test expectations.
2026-10-27 04:57:33 +08:00
qybaihe 216bd32ded feat(redteam): empirical REA harness with real before/after metrics
Add scripts/redteam/ that builds representative samples, runs in-process
REA parsers (Go build-info, Flutter pool replica, BEAM, EVM input budget,
tshark PCAP JSON, safetensors, GGUF, PTX text scan) on unhardened vs
BLA-hardened bytes, and writes docs/redteam/empirical-rea-validation.md
with actual ingestion/budget/redaction numbers. Wire npm run redteam:rea
and cover sample generators plus pool-cap projection in tests.
2026-10-27 04:46:21 +08:00
qybaihe a7f7c35199 feat(identity): track Go/Flutter/BEAM/EVM/PCAP/GPU/firmware REA budgets
Mirror MAX_BUILD_INFO_BYTES, MAX_POOL_URIS/TOKENS, BEAM chunk/atom
ceilings, EVM_INTERFACE_LIMITS, TSHARK_JSON_MAX_BYTES, GPU_* and
firmware staging/depth into identity + budget matrix + verify:rea.
2026-10-27 04:20:59 +08:00
qybaihe b09472eead feat(devtools): add REA constant drift harness and realign catalog
Add scripts/verify-rea-constants.mjs (npm run verify:rea) that greps the local
REA checkout by constant NAME and asserts expected values, obligation family
count, transport-redaction symbols, and asar integrity disclosure text.

Catalog fixes from today's REA HEAD:
- WEB_RUNTIME_LIMITS.sourceBytes 16 MiB -> 32 MiB
- Reconstruction obligation families 22 -> 25 (installer, managed-pinvoke-import,
  managed-native-implementation)
- Replace brittle file:line citations with name-based source paths
- STEP_DIFFERENCE_LIMIT still 20 (line moved 52->61; harness tracks by name)
2026-10-27 03:45:56 +08:00
qybaihe 98c01c992f chore(site): add sync:site script to mirror website/ to qybaihe/bla-site 2026-10-25 15:29:40 +08:00
qybaihe 986eedabf5 ci(release): bind qybaihe/bla to automated npm publishing and version sync 2026-10-25 15:19:02 +08:00