@aimarket/warden 0.22.3 → 0.23.0
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 +36 -0
- package/README-es.md +8 -8
- package/README-fr.md +8 -8
- package/README-ru.md +8 -8
- package/README-zh.md +8 -8
- package/README.md +18 -10
- package/dist/flow-guard-fingerprints.d.ts +4 -0
- package/dist/flow-guard-fingerprints.d.ts.map +1 -1
- package/dist/flow-guard-fingerprints.js +17 -1
- package/dist/flow-guard-fingerprints.js.map +1 -1
- package/dist/flow-guard-paths.d.ts.map +1 -1
- package/dist/flow-guard-paths.js +4 -1
- package/dist/flow-guard-paths.js.map +1 -1
- package/dist/flow-guard-post.js +2 -2
- package/dist/flow-guard-post.js.map +1 -1
- package/dist/flow-guard-pre.d.ts +8 -1
- package/dist/flow-guard-pre.d.ts.map +1 -1
- package/dist/flow-guard-pre.js +5 -1
- package/dist/flow-guard-pre.js.map +1 -1
- package/dist/flow-guard.d.ts +2 -1
- package/dist/flow-guard.d.ts.map +1 -1
- package/dist/flow-guard.js +1 -1
- package/dist/flow-guard.js.map +1 -1
- package/dist/opencode-plugin.d.ts +41 -0
- package/dist/opencode-plugin.d.ts.map +1 -0
- package/dist/opencode-plugin.js +230 -0
- package/dist/opencode-plugin.js.map +1 -0
- package/dist/static-scan.d.ts +1 -1
- package/dist/static-scan.d.ts.map +1 -1
- package/dist/static-scan.js +14 -4
- package/dist/static-scan.js.map +1 -1
- package/docs/flow-guard.es.md +1 -1
- package/docs/flow-guard.fr.md +1 -1
- package/docs/flow-guard.md +1 -1
- package/docs/flow-guard.ru.md +1 -1
- package/docs/flow-guard.zh.md +1 -1
- package/docs/gates.md +20 -4
- package/docs/opencode.md +121 -0
- package/docs/scan.es.md +2 -2
- package/docs/scan.fr.md +2 -2
- package/docs/scan.md +2 -2
- package/docs/scan.ru.md +2 -2
- package/docs/scan.zh.md +2 -2
- package/docs/scanner-comparison.md +10 -0
- package/opencode-plugin/warden.js +10 -0
- package/package.json +9 -2
package/docs/scan.zh.md
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
`warden-mcp scan` 读取你已有的 MCP 配置,连接其中启动的每个服务器,并在模型看到工具定义之前对其进行审查。它与 [`wrap`](../README-zh.md) 和[库](integration.zh.md)使用同一条关卡链,只是对你的配置运行一次,而不是挡在单个服务器前面。
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npx -y @aimarket/warden@0.
|
|
10
|
+
npx -y @aimarket/warden@0.23.0 scan
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```text
|
|
14
|
-
WARDEN scan 0.
|
|
14
|
+
WARDEN scan 0.23.0 · ruleset 17 sha256-UOfK25xo6D8v… · block at high
|
|
15
15
|
read .mcp.json (claude-code, 3 servers)
|
|
16
16
|
|
|
17
17
|
✓ allow notes claude-code 1 tool · score 0.90
|
|
@@ -76,6 +76,16 @@ The other scanners were not run again; the table at the top is from 2026-10-16.
|
|
|
76
76
|
in the gVisor containers of 2026-10-16. Verdicts by case id:
|
|
77
77
|
[`results/2026-10-22-mcptox-v15.json`](../scripts/scanner-comparison/results/2026-10-22-mcptox-v15.json).
|
|
78
78
|
|
|
79
|
+
## Ruleset v17, 2026-11-01 (WARDEN only)
|
|
80
|
+
|
|
81
|
+
DevToolLab's test of MCP security tools has a tool whose description adds a BCC to another server's `send_email`; it
|
|
82
|
+
passed v16 and Cisco mcp-scanner's YARA mode. v17 catches it ([the rule](gates.md)). It is not from MCPTox, so neither
|
|
83
|
+
half was read for it. Against a v16 build on the same files, v17 changes no verdict: MCPTox dev half 250 of 267,
|
|
84
|
+
held-out half 210 of 218, 0 of 45 clean servers, 225 of 225 with the marker, the same 4 of 986 corpus servers and the
|
|
85
|
+
same 20 of a 1,000-package HISTOR sample drawn on 2026-11-01. The v16 build reproduced the 2026-10-22 MCPTox verdicts
|
|
86
|
+
case for case. Verdicts: [`results/2026-11-01-mcptox-v17.json`](../scripts/scanner-comparison/results/2026-11-01-mcptox-v17.json),
|
|
87
|
+
[`results/2026-11-01-v17-vs-v16.json`](../scripts/scanner-comparison/results/2026-11-01-v17-vs-v16.json).
|
|
88
|
+
|
|
79
89
|
## Five scanners, and the ones we did not run
|
|
80
90
|
|
|
81
91
|
Glama's listing for WARDEN names seven related tools. We read each one's code or listing before deciding.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// WARDEN flow guard for OpenCode: copy this file into OpenCode's plugin folder (~/.config/opencode/plugin/ or
|
|
2
|
+
// .opencode/plugin/), and dist/opencode-plugin.js with every dist/flow-guard*.js into ~/.config/opencode/warden/.
|
|
3
|
+
// Export only the plugin: OpenCode calls every exported function as one. See docs/opencode.md.
|
|
4
|
+
import { createWardenPlugin } from '../warden/opencode-plugin.js';
|
|
5
|
+
|
|
6
|
+
export const WardenFlowGuard = createWardenPlugin({
|
|
7
|
+
block: 'data',
|
|
8
|
+
// Keys only the OpenCode process needs; shell commands get them blank. Add your provider's.
|
|
9
|
+
stripEnv: ['DEEPSEEK_API_KEY', 'OPENAI_API_KEY', 'ANTHROPIC_API_KEY'],
|
|
10
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aimarket/warden",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "WARDEN — MCP security firewall. Stdio wrap proxy, inspection tools and library. Vets definitions before model exposure. Zero runtime dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,6 +34,11 @@
|
|
|
34
34
|
"types": "./dist/atomic-screen.d.ts",
|
|
35
35
|
"import": "./dist/atomic-screen.js",
|
|
36
36
|
"default": "./dist/atomic-screen.js"
|
|
37
|
+
},
|
|
38
|
+
"./opencode": {
|
|
39
|
+
"types": "./dist/opencode-plugin.d.ts",
|
|
40
|
+
"import": "./dist/opencode-plugin.js",
|
|
41
|
+
"default": "./dist/opencode-plugin.js"
|
|
37
42
|
}
|
|
38
43
|
},
|
|
39
44
|
"files": [
|
|
@@ -51,11 +56,13 @@
|
|
|
51
56
|
"docs/security-hardening*.md",
|
|
52
57
|
"docs/gates*.md",
|
|
53
58
|
"docs/flow-guard*.md",
|
|
59
|
+
"docs/opencode*.md",
|
|
54
60
|
"examples/atomic-screen-server.mjs",
|
|
55
61
|
"examples/answer-gate-host.mjs",
|
|
56
62
|
"native/macos/Package.swift",
|
|
57
63
|
"native/macos/Sources",
|
|
58
|
-
"scripts/build-macos.mjs"
|
|
64
|
+
"scripts/build-macos.mjs",
|
|
65
|
+
"opencode-plugin/warden.js"
|
|
59
66
|
],
|
|
60
67
|
"engines": {
|
|
61
68
|
"node": ">=20"
|