shellward 0.5.8 → 0.5.9
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/package.json +1 -1
- package/src/core/engine.ts +2 -2
- package/src/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shellward",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"description": "AI Agent Security Middleware — 8-layer defense against prompt injection, data exfiltration & dangerous commands. DLP model: use data freely, block external leaks. Zero dependencies. SDK + OpenClaw plugin. Supports LangChain, AutoGPT, Claude Code, Cursor, OpenAI Agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shellward",
|
package/src/core/engine.ts
CHANGED
|
@@ -85,8 +85,8 @@ const LOW_RISK_TOOLS = new Set([
|
|
|
85
85
|
|
|
86
86
|
const PKG_INSTALL_PATTERN = /(?:npm|yarn|pnpm)\s+(?:install|add|i)\s|pip\s+install\s|gem\s+install\s/i
|
|
87
87
|
|
|
88
|
-
// Detect bash commands that send data externally (curl POST, wget POST, nc, etc.)
|
|
89
|
-
const BASH_NETWORK_EXFIL = /\b(?:curl\s.*(?:-X\s*(?:POST|PUT|PATCH)|--data|-d\s|-F\s)|wget\s.*--post|nc\s|ncat\s|python[23]?\s.*(?:http|requests|urllib|socket)|node\s.*(?:http|fetch|axios))/i
|
|
88
|
+
// Detect bash commands that send data externally (curl POST, wget POST, nc, mail, etc.)
|
|
89
|
+
const BASH_NETWORK_EXFIL = /\b(?:curl\s.*(?:-X\s*(?:POST|PUT|PATCH)|--data|-d\s|-F\s)|wget\s.*--post|nc\s|ncat\s|python[23]?\s.*(?:http|requests|urllib|socket)|node\s.*(?:http|fetch|axios)|(?:mail|mailx|sendmail|mutt|msmtp)\s)/i
|
|
90
90
|
|
|
91
91
|
const HONEYPOT_PATTERNS = [
|
|
92
92
|
/(?:^|\/)wallet\.(?:key|json|dat)$/i,
|
package/src/index.ts
CHANGED
|
@@ -20,7 +20,7 @@ import { registerAllCommands } from './commands/index'
|
|
|
20
20
|
import { checkForUpdate } from './update-check'
|
|
21
21
|
import { runAutoCheckOnStartup } from './auto-check'
|
|
22
22
|
|
|
23
|
-
const CURRENT_VERSION = '0.5.
|
|
23
|
+
const CURRENT_VERSION = '0.5.9'
|
|
24
24
|
|
|
25
25
|
// Re-export core engine for SDK usage
|
|
26
26
|
export { ShellWard } from './core/engine'
|