From d443460dff226c675df428819f4e8b1fc363f7f2 Mon Sep 17 00:00:00 2001 From: qybaihe <137127051+qybaihe@users.noreply.github.com> Date: Tue, 3 Nov 2026 03:45:55 +0800 Subject: [PATCH] =?UTF-8?q?docs(skill):=20round-2=20writeback=20=E2=80=94?= =?UTF-8?q?=20no=20plaintext=20seal=20sidecars=20/=20reversible=20digests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Red/Blue round-2 broke the hardened product gate by inverting a public ARX revision from plaintext seal.json (round-1 WASM ABI + lane vectors held). Skill v1.5.3 + format-javascript appendix record the footgun; product seal encrypt remains P1. --- .agents/skills/blind-llm-agents/SKILL.md | 4 ++-- .../blind-llm-agents/references/format-javascript.md | 9 +++++++++ CHANGELOG.md | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.agents/skills/blind-llm-agents/SKILL.md b/.agents/skills/blind-llm-agents/SKILL.md index 9b6645b..91047e0 100644 --- a/.agents/skills/blind-llm-agents/SKILL.md +++ b/.agents/skills/blind-llm-agents/SKILL.md @@ -7,7 +7,7 @@ description: > Agents). Prefer this skill as the guide; call existing MCP tools / CLI — do not invent new MCP tools. Default verb: bla_harden. Refuse crack/RE of third-party software. metadata: - version: "1.5.2" + version: "1.5.3" --- # BLA: Blind LLM Agents @@ -24,7 +24,7 @@ model misjudgment on proprietary logic, or **one-click / 一键加固** a build. Defensive only: protect **their own** artifacts. Refuse crack, RE, bypass PoCs, or attack playbooks against software they do not own. -**Principles (red-blue round-1):** do not ship a stable public WASM ABI without an explicit `wasm_preserve_exports` list; do not leave JS-side independent lane tables — prefer whole-key chained mixing (`bla_lint_lanes` / harden refuse). +**Principles (red-blue round-1+2):** do not ship a stable public WASM ABI without an explicit `wasm_preserve_exports` list; do not leave JS-side independent lane tables — prefer whole-key chained mixing (`bla_lint_lanes` / harden refuse). **Do not** place plaintext seal/catalog JSON (`revision`, salts, certificate ciphertext) beside hardened outputs — harden does not protect sidecars. Public compare targets must be **one-way** (SHA-256/HMAC/etc.); reversible ARX/Feistel digests as public `revision` are a key-recovery footgun (round-2 break). ## Prerequisites (once) diff --git a/.agents/skills/blind-llm-agents/references/format-javascript.md b/.agents/skills/blind-llm-agents/references/format-javascript.md index a6d9e94..e5a1965 100644 --- a/.agents/skills/blind-llm-agents/references/format-javascript.md +++ b/.agents/skills/blind-llm-agents/references/format-javascript.md @@ -30,3 +30,12 @@ IPC ambiguity + route mirage layers activate on JS/TS/asar/directory targets dur Do **not** keep independent per-byte / per-lane JS check tables (`Object.freeze(parseInt hex…)`, `charCodeAt(i)` → wasm mix/seal per lane). Prefer **whole-key chained mixing**. `bla_lint_lanes` returns severity **error**; harden/defend/protect **refuse** unless `allow_lane_independent` / `--allow-lane-independent` (teaching fixtures only). +## Plaintext seal sidecars (red-blue round-2) + +`bla harden` protects discovered JS/WASM/HTML artifacts — **not** adjacent `seal.json` / catalog files you copy next to the output. If a gate loads salts, expected digests, or certificate ciphertext from sibling JSON (or a WASM data-section twin), that material stays attacker-readable. + +Rules of thumb: + +1. Prefer **one-way** commitments (`SHA-256` / HMAC) for public `revision` / compare digests. Custom reversible ARX/Feistel “digests” invert to the key when salt+rounds are public. +2. Encrypt or omit seal sidecars in the shipped tree; or fold them under **`self_seal`** / a sealed blob bound to the entry module. +3. Dual-publish (JSON + WASM `R2SEAL` data) without encryption doubles the same exposure. diff --git a/CHANGELOG.md b/CHANGELOG.md index 76ef5f7..d3e8d1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Changed +- **Red/Blue round-2 · Writeback (skill):** Skill guide **v1.5.3** + `format-javascript.md` — plaintext seal/catalog sidecars are unprotected by harden; public compare digests must be one-way (reversible ARX/`revision` was the round-2 key-recovery break). Round-1 P0 (WASM export rename + lane refuse) held against the old vectors. - **Red/Blue round-1 · Writeback P0 — WASM export rename default:** at `maximum`/`bankrupt`, `protectWasmBinary` renames **all** non-preserved exports (not only `__*` / `debug_*`). Keeping a stable public ABI requires explicit `wasmPreserveExports` / `--wasm-preserve-exports` / `wasm_preserve_exports`. Optional `renameInternalOnly: true` for the weaker pass. - **Red/Blue round-1 · Writeback P0 — lane-independence is error + harden refuse:** `bla lint-lanes` / `bla_lint_lanes` findings are severity **error**; protect/defend/harden refuse JS/TS that looks lane-independent (including per-byte WASM mix/seal oracles) unless `allowLaneIndependentGates` / `--allow-lane-independent` / `allow_lane_independent`. Skill v1.5.2 principles: no silent stable WASM ABI; no JS independent lane tables; prefer whole-key mixing.