@node9/proxy 1.11.2 → 1.11.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/README.md +39 -31
- package/dist/cli.js +2029 -286
- package/dist/cli.mjs +2023 -280
- package/dist/index.js +466 -76
- package/dist/index.mjs +466 -76
- package/dist/shields/builtin/bash-safe.json +18 -4
- package/package.json +2 -2
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
{
|
|
53
53
|
"field": "command",
|
|
54
54
|
"op": "matches",
|
|
55
|
-
"value": "dd\\s+.*of=\\/dev\\/(sd|nvme|hd|vd|xvd)",
|
|
55
|
+
"value": "(^|&&|\\|\\||;)\\s*dd\\s+.*of=\\/dev\\/(sd|nvme|hd|vd|xvd)",
|
|
56
56
|
"flags": "i"
|
|
57
57
|
}
|
|
58
58
|
],
|
|
@@ -60,18 +60,32 @@
|
|
|
60
60
|
"reason": "Writing directly to a block device is irreversible — blocked by bash-safe shield"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
"name": "shield:bash-safe:
|
|
63
|
+
"name": "shield:bash-safe:block-eval-remote",
|
|
64
64
|
"tool": "bash",
|
|
65
65
|
"conditions": [
|
|
66
66
|
{
|
|
67
67
|
"field": "command",
|
|
68
68
|
"op": "matches",
|
|
69
|
-
"value": "\\
|
|
69
|
+
"value": "(^|&&|\\|\\||;)\\s*eval\\s+.*\\$\\((curl|wget)\\b",
|
|
70
|
+
"flags": "i"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"verdict": "block",
|
|
74
|
+
"reason": "eval of remote download is a near-certain supply-chain attack — blocked by bash-safe shield"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "shield:bash-safe:review-eval-dynamic",
|
|
78
|
+
"tool": "bash",
|
|
79
|
+
"conditions": [
|
|
80
|
+
{
|
|
81
|
+
"field": "command",
|
|
82
|
+
"op": "matches",
|
|
83
|
+
"value": "(^|&&|\\|\\||[;|\\n{(`])\\s*eval\\s+([\\$`(]|\"[^\"]*\\$)",
|
|
70
84
|
"flags": "i"
|
|
71
85
|
}
|
|
72
86
|
],
|
|
73
87
|
"verdict": "review",
|
|
74
|
-
"reason": "eval of dynamic content
|
|
88
|
+
"reason": "eval of dynamic content — backup regex rule for scan path (real-time uses AST detection)"
|
|
75
89
|
}
|
|
76
90
|
],
|
|
77
91
|
"dangerousWords": []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node9/proxy",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.4",
|
|
4
4
|
"description": "The Sudo Command for AI Agents. Execution Security for Claude Code & MCP.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"chalk": "^4.1.2",
|
|
73
73
|
"commander": "^14.0.3",
|
|
74
74
|
"execa": "^9.6.1",
|
|
75
|
+
"mvdan-sh": "^0.10.1",
|
|
75
76
|
"picomatch": "^4.0.3",
|
|
76
77
|
"safe-regex2": "^5.1.0",
|
|
77
|
-
"sh-syntax": "^0.5.8",
|
|
78
78
|
"smol-toml": "^1.6.1",
|
|
79
79
|
"zod": "^3.25.76"
|
|
80
80
|
},
|