kodelyth-ecc 2.4.3 → 2.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/VERSION +1 -1
- package/hooks/hooks.json +2 -2
- package/hooks/safety/prompt-injection-guard.js +7 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to Kodelyth ECC are documented here.
|
|
4
4
|
|
|
5
|
+
## v2.4.4 — Real-user audit: prompt-injection guard was a silent no-op (July 2026)
|
|
6
|
+
|
|
7
|
+
Phase 1 of the real-user audit — firing every hook with realistic input instead of fixtures. Found a second "installed but dummy" feature.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **Prompt-injection guard defaulted to `MODE=off`** — so on every fresh install the hook was registered, fired on each prompt, and did **absolutely nothing** unless the user knew to set `KODELYTH_PI_GUARD=warn`. A safety feature nobody knew to turn on is a safety feature that doesn't exist.
|
|
12
|
+
- **Fix**: default is now `warn` — the guard scans every prompt + tool response and surfaces injection findings to stderr (visible in transcript), but **never blocks** (exit 0 always). Measured **0 false positives** across 8 realistic legit prompts containing trigger-adjacent words ("ignore", "override", "system prompt", "bypass", "reveal"). Set `KODELYTH_PI_GUARD=off` to silence, `=block` to hard-block critical patterns (still opt-in, since block can halt on false positives).
|
|
13
|
+
|
|
14
|
+
### Verified (real-user audit, this round)
|
|
15
|
+
|
|
16
|
+
Fired all 8 hooks with realistic Claude Code payloads:
|
|
17
|
+
|
|
18
|
+
| Hook | Result |
|
|
19
|
+
|---|---|
|
|
20
|
+
| `inject-start` | ✓ outputs memory context block |
|
|
21
|
+
| `read-lessons` | ✓ exit 0 |
|
|
22
|
+
| `auto-recall` | ✓ recalls 3 real memories (post-2.4.3 fix) |
|
|
23
|
+
| `capture-stop` | ✓ exit 0 |
|
|
24
|
+
| `capture-correction` | ✓ exit 0 |
|
|
25
|
+
| `auto-resolve` | ✓ exit 0 |
|
|
26
|
+
| `prompt-injection-guard` | ✗→✓ was silent no-op, now warns by default |
|
|
27
|
+
| `token-budget` | ✓ exit 0 |
|
|
28
|
+
|
|
29
|
+
Also verified on real data: `route` (correctly classified a production outage as hard→opus), `evolve analyze` (scanned 195 reuse + 3 miss signals → 5 proposals).
|
|
30
|
+
|
|
31
|
+
### Tests
|
|
32
|
+
|
|
33
|
+
- Updated `mode=off` test to set the env var explicitly (default is no longer off)
|
|
34
|
+
- Added 2 tests: default-no-env warns on injection + stays silent on legit prompts
|
|
35
|
+
- Full suite: 0 failures across 25 files
|
|
36
|
+
|
|
5
37
|
## v2.4.3 — Memory recall crash fix (the "still dummy" bug) (July 2026)
|
|
6
38
|
|
|
7
39
|
Found by testing ECC as a real user actually experiences it, not just in the test harness. **Memory recall was silently crashing on every prompt** for any user whose `~/.kodelythecc/memory/index.json` was written by an older/foreign BM25 schema.
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.4
|
package/hooks/hooks.json
CHANGED
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"timeout": 3
|
|
164
164
|
}
|
|
165
165
|
],
|
|
166
|
-
"description": "Kodelyth Safety: scan user prompts for jailbreak / instruction-override patterns.
|
|
166
|
+
"description": "Kodelyth Safety: scan user prompts for jailbreak / instruction-override patterns. Scans by default in warn mode (logs, never blocks). KODELYTH_PI_GUARD=off to silence, =block to hard-block critical.",
|
|
167
167
|
"id": "kodelyth:user-prompt:prompt-injection-guard"
|
|
168
168
|
}
|
|
169
169
|
],
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
"timeout": 3
|
|
388
388
|
}
|
|
389
389
|
],
|
|
390
|
-
"description": "Kodelyth Safety: scan Read/WebFetch/MCP tool responses for indirect prompt-injection.
|
|
390
|
+
"description": "Kodelyth Safety: scan Read/WebFetch/MCP tool responses for indirect prompt-injection. Scans by default in warn mode (logs, never blocks). KODELYTH_PI_GUARD=off to silence, =block to hard-block critical.",
|
|
391
391
|
"id": "kodelyth:post-tool:prompt-injection-guard"
|
|
392
392
|
}
|
|
393
393
|
],
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// injection from external content)
|
|
11
11
|
//
|
|
12
12
|
// Modes (env var KODELYTH_PI_GUARD):
|
|
13
|
-
// off — never run
|
|
13
|
+
// off — never run
|
|
14
14
|
// warn — exit 0 always; print findings to stderr (visible in transcript)
|
|
15
15
|
// block — exit 2 (block) on critical; warn on high; pass on medium
|
|
16
16
|
//
|
|
@@ -28,7 +28,12 @@ const path = require('path');
|
|
|
28
28
|
|
|
29
29
|
const { scan, maxSeverity } = require('./lib/patterns');
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
// Default is 'warn' (v2.4.4+): the guard scans and surfaces findings to stderr
|
|
32
|
+
// but NEVER blocks — exit 0 always. This makes the safety feature actually run
|
|
33
|
+
// on a fresh install instead of being a silent no-op. Measured 0 false positives
|
|
34
|
+
// on realistic legit prompts. Set KODELYTH_PI_GUARD=off to silence entirely, or
|
|
35
|
+
// =block to hard-block on critical patterns (opt-in, can halt on false positives).
|
|
36
|
+
const MODE = String(process.env.KODELYTH_PI_GUARD || 'warn').toLowerCase();
|
|
32
37
|
const MAX_INPUT = Number(process.env.KODELYTH_PI_GUARD_MAX_INPUT || 20000);
|
|
33
38
|
const LOG_PATH = process.env.KODELYTH_PI_GUARD_LOG || null;
|
|
34
39
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kodelyth-ecc",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.4",
|
|
4
4
|
"description": "Production-grade AI coding toolkit — 70 agents (incl. devil-mode adversarial crew), 194 skills, 97 commands, parallel multi-agent commands, semantic intent routing, self-learning memory, and a built-in MCP server (16 tools / 6 prompts / 377 resources) that bridges to Claude Desktop, LangGraph, AutoGen, CrewAI, and OpenAI Agents SDK. Works with Claude Code, Windsurf, Cursor, Codex, Antigravity, OpenCode, Cline, RooCode, Aider, Kimi, and Gemini CLI.",
|
|
5
5
|
"author": "Kodelyth <github.com/sifxprime>",
|
|
6
6
|
"license": "MIT",
|