mirror of
https://github.com/qybaihe/bla.git
synced 2026-11-20 08:20:59 +08:00
docs(skill): round-2 writeback — no plaintext seal sidecars / reversible digests
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user