shieldcortex
合法的 AI Agent 记忆与安全工具,文档详尽透明,权限声明与实际行为一致,cloud sync 为 opt-in,仅传输元数据。存在轻微瑕疵:self-heal 机制可删除 ~/.clawdbot 目录(已声明可禁用),npx fallback 存在供应链风险(已建议安装本地 binary)。
Why this conclusion was reached
0/4 dimensions flaggedDeclared resources and inferred behavior are broadly aligned.
9 lower-risk artifacts were extracted and still need context.
There is no explicit malicious chain in the report.
4 dependency or supply-chain issues need attention.
What drove the risk score up
handler.ts selfCheckAndHeal 递归删除 ~/.clawdbot/hooks/cortex-memory,但已声明且可通过 SHIELDCORTEX_SKIP_SELF_HEAL=1 禁用
runtime.mjs resolveServerCmd 在未找到 binary 时 fallback 到 npx -y shieldcortex,npm 无版本锁定,但已文档声明并建议本地安装
声明的 paths_read 包含多个 agent 配置目录,但均用于安全扫描目的,行为与声明一致
网络端点均有文档声明,cloud sync 为 opt-in,敏感内容预览不外传
Most important evidence
Self-heal 机制可删除 ~/.clawdbot 目录
handler.ts selfCheckAndHeal 在首次 bootstrap 时递归删除 ~/.clawdbot/hooks/cortex-memory 和 ~/.clawdbot/hooks/internal/cortex-memory。如果 Claude Code 使用 .clawdbot 路径,此行为可能影响其功能。
bundled/cortex-memory-hook/handler.ts:620 npx fallback 无版本锁定
runtime.mjs 在未找到本地 binary 时 fallback 到 `npx -y shieldcortex`,会从 npm registry 下载最新版本,存在供应链风险。
bundled/cortex-memory-hook/runtime.mjs:73 扫描多个 Agent 配置目录
paths_read 声明包含 ~/.claude/, ~/.cursor/, ~/.windsurf/, ~/.codex/ 等目录用于安全扫描,但仅读取 SKILL.md/HOOK.md 等指令文件。
SKILL.md:30 Declared capability vs actual capability
SKILL.md 声明 filesystem:readwrite,代码在 ~/.shieldcortex/ 和 ~/.openclaw/ 目录写入 cloud-sync.js 仅在 cfg.cloudEnabled 时发送元数据到 api.shieldcortex.ai runtime.mjs 使用 execFile (argv array) 而非 shell 调用,无注入风险 读取 SHIELDCORTEX_CONFIG_DIR 等配置变量用于控制行为,无凭证收割 Suspicious artifacts and egress
https://shieldcortex.ai SKILL.md:12
https://www.npmjs.com/package/shieldcortex SKILL.md:13
https://api.shieldcortex.ai SKILL.md:61
https://huggingface.co SKILL.md:62
https://shieldcortex.ai/docs SKILL.md:318
https://shieldcortex.ai/changelog SKILL.md:322
https://clawhub.ai/user/jarvis-drakon skill-card.md:9
https://clawhub.ai/jarvis-drakon/skills/shieldcortex skill-card.md:46
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| better-sqlite3 | * | npm | No | 无版本锁定,但为本地数据库存储非网络依赖 |
| express | * | npm | No | localhost:3001 本地 API 服务 |
| ws | * | npm | No | localhost WebSocket 服务 |
| @huggingface/transformers | * | npm | No | 可选依赖,从 huggingface.co 下载模型 |
File composition
bundled/cortex-memory-hook/handler.ts SKILL.md bundled/cortex-memory-hook/runtime.mjs skill-card.md