扫描报告
18 /100
rtk-rewrite
OpenClaw plugin that intercepts exec tool calls and rewrites commands via `rtk rewrite` for token optimization
Plugin delegates shell command rewriting to an external `rtk` binary with no credential access or data exfiltration; includes a documented but risky curl|sh installation pattern in README.
可以安装
Approve with caution: Review the `rtk` binary trustworthiness before deployment. Consider pinning the install script to a specific commit hash to mitigate supply chain risk.
安全发现 3 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 中危 | Curl-pipe-sh installation instruction 供应链 | README.md:20 |
| 低危 | Undeclared shell execution via execFileSync 文档欺骗 | index.ts:17 |
| 低危 | Homepage mismatch between files 文档欺骗 | openclaw.plugin.json, SKILL.md:3 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 命令执行 | NONE | WRITE | ✗ 越权 | index.ts:17 execFileSync('rtk', ['rewrite', cmd]) |
| 文件系统 | NONE | WRITE | ✗ 越权 | index.ts:18-19 appendFileSync, mkdirSync for audit logs |
1 严重 1 项发现
严重 危险命令 危险 Shell 命令
curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh README.md:20 目录结构
4 文件 · 9.3 KB · 339 行 Markdown 2f · 189L
TypeScript 1f · 111L
JSON 1f · 39L
├─
index.ts
TypeScript
├─
openclaw.plugin.json
JSON
├─
README.md
Markdown
└─
SKILL.md
Markdown
安全亮点
✓ No credential harvesting or environment variable iteration observed
✓ Audit logs only contain command rewrites, no sensitive data exfiltration
✓ execFileSync uses explicit arguments array (not shell injection-prone string)
✓ Error handling prevents information leakage on ENOENT or status 1
✓ MIT license with publicly available source code