扫描报告
20 /100
server-watchdog
Monitor remote servers via SSH — check service health, database status, disk space, memory, and auto-restart crashed services. Sends alerts via messaging.
Legitimate server monitoring script that pings MongoDB, auto-restarts the Windows service, analyzes crash logs, and sends Telegram alerts — no malicious behavior found.
可以安装
Document the mongodb-watchdog.js script explicitly in SKILL.md, pin the Telegram bot token to environment variables only, and clarify the SSH vs local-service management distinction.
安全发现 3 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 低危 | SKILL.md does not mention the mongodb-watchdog.js script | SKILL.md:1 |
| 低危 | Hardcoded Telegram chat ID | scripts/mongodb-watchdog.js:29 |
| 低危 | Hardcoded local server IP in comments | scripts/mongodb-watchdog.js:9 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 命令执行 | WRITE | WRITE | ✓ 一致 | SKILL.md: SSH usage for service restart |
| 数据库 | READ | READ | ✓ 一致 | SKILL.md: database status checks; script: MongoDB ping |
| 文件系统 | NONE | READ | ✓ 一致 | scripts/mongodb-watchdog.js: reads mongod.log for crash analysis (legitimate pur… |
| 网络访问 | NONE | WRITE | ✓ 一致 | scripts/mongodb-watchdog.js: Telegram API POST for alerts only (legitimate purpo… |
目录结构
2 文件 · 15.3 KB · 524 行 JavaScript 1f · 400L
Markdown 1f · 124L
├─
▾
scripts
│ └─
mongodb-watchdog.js
JavaScript
└─
SKILL.md
Markdown
依赖分析 1 项
| 包名 | 版本 | 来源 | 已知漏洞 | 备注 |
|---|---|---|---|---|
mongodb | not specified | npm | 否 | Package manager file not present; mongodb driver is the only runtime dependency |
安全亮点
✓ No base64, no eval(), no obfuscation — code is readable and auditable
✓ No credential harvesting — no iteration over os.environ or reading ~/.ssh/.aws/.env
✓ No curl|bash or wget|sh remote script execution
✓ No data exfiltration — Telegram POSTs are for alerts only, not credential theft
✓ Auto-restart logic is rate-limited (max 5 restarts per hour)
✓ No dependencies with known vulnerabilities — mongodb driver is standard
✓ Local-only attack surface — no remote code execution paths