From ef9f60b277a853b7f144557cc5d736f2e012cbb6 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 25 Aug 2026 12:35:30 +0000 Subject: [PATCH 1/2] chore: bump lockstep packages to 0.1.4 Security-hardening from PR #1 is on main. Cut a patch so npm consumers get those controls; Darwin keychain argv and hook fail-open stay residual. Co-authored-by: TheCoderBTW --- VERIFICATION.md | 1 + packages/cli/package.json | 2 +- packages/cli/src/bin.ts | 2 +- packages/core/package.json | 2 +- packages/detector/package.json | 2 +- packages/http-server/package.json | 2 +- packages/mcp-server/package.json | 2 +- packages/mcp-server/src/cli-args.ts | 2 +- packages/prompters/package.json | 2 +- packages/protocol/package.json | 2 +- packages/registry/package.json | 2 +- packages/sdk/package.json | 2 +- 12 files changed, 12 insertions(+), 11 deletions(-) diff --git a/VERIFICATION.md b/VERIFICATION.md index 2bda8c4..5e6bf68 100644 --- a/VERIFICATION.md +++ b/VERIFICATION.md @@ -248,6 +248,7 @@ what cannot be is listed as a runbook step, not claimed. | E8 residual risks accurate | **PASS.** | Seven risks each match implementation on cold re-read (write-only keychain + presence blindness, HTTP loopback, string-conversion points, staged-temp fallback, double-gated test hooks, env_use user-confirmed egress). SECURITY.md count corrected to seven; PLAN §7.2 annotated (Windows DPAPI files, not Credential Manager). | | **E9** W4 adversarial battle-test (2026-08-25) | **PASS — 0 Critical open; 4 findings fixed and shipped in v0.1.2; 2 reclassified as correct behavior.** | ~55 scenarios across 9 phases against published v0.1.1 artifacts (`docs/verification/W4-battle-test.md`, probes in `.commandcode/probe-w4-p*.mjs`). Redaction engine unbeaten: raw/stderr/multi-secret/10MB-volume all redacted, audit never holds values, MCP server survived malformed frames + floods with zero failures, plugin deny matrix held incl. traversal paths, host-detection precedence held under fake-HOME. Fixed in v0.1.2 (23bedc0): **F2 High** ensure/set hang forever non-TTY → fail closed exit 4 in ~300ms; **F5 Med** detector missed sk-live-/bare-sk- OpenAI shapes → patterns added; **F1 Med** init laundered hostile pre-existing manifests → guard scan on read path; **F4 Low** missing-manifest run now warns on stderr. F6 (audit recreation) proven correct behavior; F3 (keychain sink) proven probe artifact — set honors declared sink end-to-end. Registry proof: v0.1.2 published with SLSA v1 provenance ([release run](https://github.com/NDilanka/envseal/actions/runs/32756572088)), clean-dir smoke green. Known documented boundaries: grandchild-process stdout not intercepted (broker-spawned direct stdio only); transformed encodings inside child output are out of literal-match scope by design. | | **E10** External-review fix + same-class audit sweep → v0.1.3 (2026-08-25) | **PASS — reviewer's finding fixed; 2-round audit complete; every finding fixed; released and registry-verified.** | External X review found `env_use` consent bound to displayed argv, not target content. Fixed (3a1d920): every argument naming a readable file SHA-256 fingerprinted before the dialog (fingerprints shown in it) and re-hashed immediately pre-spawn; mismatch → new `SEP_TARGET_CHANGED`, nothing executes, nothing cached. Proven by tests incl. mutation-between-approval-and-spawn refusal and settle-then-reprompt. Same-class audit (2 time-boxed subagents, findings verified against source before fixing) then closed in 711e7ff: hook denylist bypasses (wrapper/path-prefix readers, mid-command `< file` redirects, glob suffixes, printf/declare-p/here-string var leaks — with a fail-open regression caught by a 31-payload probe of the built bundle, now pinned in `.commandcode/probe-audit-fixes.mjs`); detector suppression buckets hardened (digest charset+length floors so `sha256:` labels can't hide sk-keys, SRI-shape required after `integrity=`, data-URI MIME/base64 validation, path bucket needs real path structure, URL bucket refuses credential-shaped query params); consent surfaces unified on shared `core/display.ts` with bidi/unicode-separator escaping (twins byte-identical again), loopback links show destination host, TEST_MODE stub announces every answered key, no-TTY error no longer advertises the ASSUME_YES bypass. Gates: full monorepo suite green, build/typecheck/lint clean on tracked code, plugin contract 165/165, detector 44/44. Release run [32815056545](https://github.com/NDilanka/envseal/actions/runs/32815056545) green incl. publish; all 9 packages live at 0.1.3 with SLSA v1 provenance; clean-machine smoke on the published artifact: install (108 pkgs) → `envseal version 0.1.3` → shipped `core/dist/display.js` present → status shows key present with fingerprint → `env_use` injects and child output returns `«redacted:PROBE_KEY»`, `redactedCount: 1`. | +| **E11** Security hardening review → v0.1.4 (2026-08-25) | **IN PROGRESS — code merged; npm publish via `v0.1.4` tag.** | Whole-repo review findings landed in [PR #1](https://github.com/NDilanka/envseal/pull/1) (`fa80cff` on main). Patch release: nine `@envseal/*` packages `0.1.3` → `0.1.4`. Does not close Darwin keychain argv residual, hook fail-open default, or MCP stdio host-trust. | Launch is authorised only when every row is filled with recorded evidence. diff --git a/packages/cli/package.json b/packages/cli/package.json index b338f19..cae1c26 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@envseal/cli", - "version": "0.1.3", + "version": "0.1.4", "type": "module", "license": "Apache-2.0", "main": "./dist/index.js", diff --git a/packages/cli/src/bin.ts b/packages/cli/src/bin.ts index 166b902..1c32d70 100644 --- a/packages/cli/src/bin.ts +++ b/packages/cli/src/bin.ts @@ -15,7 +15,7 @@ import { revoke } from './commands/revoke.js'; import { mcp } from './commands/mcp.js'; import { init } from './commands/init.js'; -const VERSION = '0.1.3'; +const VERSION = '0.1.4'; async function main(): Promise { const argv = process.argv.slice(2); diff --git a/packages/core/package.json b/packages/core/package.json index 90dee67..63075ec 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@envseal/core", - "version": "0.1.3", + "version": "0.1.4", "type": "module", "license": "Apache-2.0", "main": "./dist/index.js", diff --git a/packages/detector/package.json b/packages/detector/package.json index 943caa5..fc9a79f 100644 --- a/packages/detector/package.json +++ b/packages/detector/package.json @@ -1,6 +1,6 @@ { "name": "@envseal/detector", - "version": "0.1.3", + "version": "0.1.4", "type": "module", "license": "Apache-2.0", "main": "./dist/index.js", diff --git a/packages/http-server/package.json b/packages/http-server/package.json index beb4ae9..e40806e 100644 --- a/packages/http-server/package.json +++ b/packages/http-server/package.json @@ -1,6 +1,6 @@ { "name": "@envseal/http-server", - "version": "0.1.3", + "version": "0.1.4", "type": "module", "license": "Apache-2.0", "main": "./dist/index.js", diff --git a/packages/mcp-server/package.json b/packages/mcp-server/package.json index af808c2..f73fe1c 100644 --- a/packages/mcp-server/package.json +++ b/packages/mcp-server/package.json @@ -1,6 +1,6 @@ { "name": "@envseal/mcp-server", - "version": "0.1.3", + "version": "0.1.4", "type": "module", "license": "Apache-2.0", "main": "./dist/index.js", diff --git a/packages/mcp-server/src/cli-args.ts b/packages/mcp-server/src/cli-args.ts index 6cebfc1..251c0c5 100644 --- a/packages/mcp-server/src/cli-args.ts +++ b/packages/mcp-server/src/cli-args.ts @@ -7,7 +7,7 @@ import { findProjectRoot } from '@envseal/core'; * be tested without importing a module whose side effect is starting a server. */ -export const VERSION = '0.1.3'; +export const VERSION = '0.1.4'; export const USAGE = `envseal-mcp ${VERSION} diff --git a/packages/prompters/package.json b/packages/prompters/package.json index 4d23cb3..f794de3 100644 --- a/packages/prompters/package.json +++ b/packages/prompters/package.json @@ -1,6 +1,6 @@ { "name": "@envseal/prompters", - "version": "0.1.3", + "version": "0.1.4", "type": "module", "license": "Apache-2.0", "main": "./dist/index.js", diff --git a/packages/protocol/package.json b/packages/protocol/package.json index d927a9c..bbf638e 100644 --- a/packages/protocol/package.json +++ b/packages/protocol/package.json @@ -1,6 +1,6 @@ { "name": "@envseal/protocol", - "version": "0.1.3", + "version": "0.1.4", "type": "module", "license": "Apache-2.0", "main": "./dist/index.js", diff --git a/packages/registry/package.json b/packages/registry/package.json index 2ef2623..0b2fdcc 100644 --- a/packages/registry/package.json +++ b/packages/registry/package.json @@ -1,6 +1,6 @@ { "name": "@envseal/registry", - "version": "0.1.3", + "version": "0.1.4", "type": "module", "license": "Apache-2.0", "main": "./dist/index.js", diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 77ee8d0..c1c5049 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@envseal/sdk", - "version": "0.1.3", + "version": "0.1.4", "type": "module", "license": "Apache-2.0", "main": "./dist/index.js", From facce438f20e7512d1a3b7a4875dcf64d0e43795 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 25 Aug 2026 12:42:50 +0000 Subject: [PATCH 2/2] docs: mark E11 v0.1.4 as published with provenance Co-authored-by: TheCoderBTW --- VERIFICATION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERIFICATION.md b/VERIFICATION.md index 5e6bf68..4e7337c 100644 --- a/VERIFICATION.md +++ b/VERIFICATION.md @@ -248,7 +248,7 @@ what cannot be is listed as a runbook step, not claimed. | E8 residual risks accurate | **PASS.** | Seven risks each match implementation on cold re-read (write-only keychain + presence blindness, HTTP loopback, string-conversion points, staged-temp fallback, double-gated test hooks, env_use user-confirmed egress). SECURITY.md count corrected to seven; PLAN §7.2 annotated (Windows DPAPI files, not Credential Manager). | | **E9** W4 adversarial battle-test (2026-08-25) | **PASS — 0 Critical open; 4 findings fixed and shipped in v0.1.2; 2 reclassified as correct behavior.** | ~55 scenarios across 9 phases against published v0.1.1 artifacts (`docs/verification/W4-battle-test.md`, probes in `.commandcode/probe-w4-p*.mjs`). Redaction engine unbeaten: raw/stderr/multi-secret/10MB-volume all redacted, audit never holds values, MCP server survived malformed frames + floods with zero failures, plugin deny matrix held incl. traversal paths, host-detection precedence held under fake-HOME. Fixed in v0.1.2 (23bedc0): **F2 High** ensure/set hang forever non-TTY → fail closed exit 4 in ~300ms; **F5 Med** detector missed sk-live-/bare-sk- OpenAI shapes → patterns added; **F1 Med** init laundered hostile pre-existing manifests → guard scan on read path; **F4 Low** missing-manifest run now warns on stderr. F6 (audit recreation) proven correct behavior; F3 (keychain sink) proven probe artifact — set honors declared sink end-to-end. Registry proof: v0.1.2 published with SLSA v1 provenance ([release run](https://github.com/NDilanka/envseal/actions/runs/32756572088)), clean-dir smoke green. Known documented boundaries: grandchild-process stdout not intercepted (broker-spawned direct stdio only); transformed encodings inside child output are out of literal-match scope by design. | | **E10** External-review fix + same-class audit sweep → v0.1.3 (2026-08-25) | **PASS — reviewer's finding fixed; 2-round audit complete; every finding fixed; released and registry-verified.** | External X review found `env_use` consent bound to displayed argv, not target content. Fixed (3a1d920): every argument naming a readable file SHA-256 fingerprinted before the dialog (fingerprints shown in it) and re-hashed immediately pre-spawn; mismatch → new `SEP_TARGET_CHANGED`, nothing executes, nothing cached. Proven by tests incl. mutation-between-approval-and-spawn refusal and settle-then-reprompt. Same-class audit (2 time-boxed subagents, findings verified against source before fixing) then closed in 711e7ff: hook denylist bypasses (wrapper/path-prefix readers, mid-command `< file` redirects, glob suffixes, printf/declare-p/here-string var leaks — with a fail-open regression caught by a 31-payload probe of the built bundle, now pinned in `.commandcode/probe-audit-fixes.mjs`); detector suppression buckets hardened (digest charset+length floors so `sha256:` labels can't hide sk-keys, SRI-shape required after `integrity=`, data-URI MIME/base64 validation, path bucket needs real path structure, URL bucket refuses credential-shaped query params); consent surfaces unified on shared `core/display.ts` with bidi/unicode-separator escaping (twins byte-identical again), loopback links show destination host, TEST_MODE stub announces every answered key, no-TTY error no longer advertises the ASSUME_YES bypass. Gates: full monorepo suite green, build/typecheck/lint clean on tracked code, plugin contract 165/165, detector 44/44. Release run [32815056545](https://github.com/NDilanka/envseal/actions/runs/32815056545) green incl. publish; all 9 packages live at 0.1.3 with SLSA v1 provenance; clean-machine smoke on the published artifact: install (108 pkgs) → `envseal version 0.1.3` → shipped `core/dist/display.js` present → status shows key present with fingerprint → `env_use` injects and child output returns `«redacted:PROBE_KEY»`, `redactedCount: 1`. | -| **E11** Security hardening review → v0.1.4 (2026-08-25) | **IN PROGRESS — code merged; npm publish via `v0.1.4` tag.** | Whole-repo review findings landed in [PR #1](https://github.com/NDilanka/envseal/pull/1) (`fa80cff` on main). Patch release: nine `@envseal/*` packages `0.1.3` → `0.1.4`. Does not close Darwin keychain argv residual, hook fail-open default, or MCP stdio host-trust. | +| **E11** Security hardening review → v0.1.4 (2026-08-25) | **PASS — released and registry-verified.** | Whole-repo review findings landed in [PR #1](https://github.com/NDilanka/envseal/pull/1) (`fa80cff`). Lockstep bump `0.1.3` → `0.1.4`. Release run [32848761172](https://github.com/NDilanka/envseal/actions/runs/32848761172) published all 9 `@envseal/*` packages; `@envseal/cli@0.1.4` is `latest` with SLSA v1 provenance. Residuals unchanged: Darwin keychain argv, hook fail-open default, MCP stdio host-trust. | Launch is authorised only when every row is filled with recorded evidence.