Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

运维助手 v2.0

v2.0.1

运维助手 v2.0 - 支持本地、远程、多服务器集群监控 (健康检查、日志分析、性能监控、批量操作、文件传输)

0· 110·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for fish1981bimmer/ops-maintenance.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "运维助手 v2.0" (fish1981bimmer/ops-maintenance) from ClawHub.
Skill page: https://clawhub.ai/fish1981bimmer/ops-maintenance
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install ops-maintenance

ClawHub CLI

Package manager switcher

npx clawhub@latest install ops-maintenance
Security Scan
Capability signals
Requires walletRequires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
Name, description, SKILL.md and source files all describe an SSH-based ops tool (health checks, logs, perf, bulk exec, SFTP, audit). The included Node/TypeScript code implements SSH connection pooling, SFTP, and audit logging — these are expected for the stated purpose.
Instruction Scope
Runtime instructions and examples explicitly read/write ~/.config/ops-maintenance/servers.json, may reference ~/.ssh/id_rsa and accept passwords in the config. That is coherent for an ops tool but involves handling sensitive credentials and local files; SKILL.md also suggests running npm install/build (so code will be used). Nothing in SKILL.md directs the agent to read unrelated system files or post data to external endpoints.
Install Mechanism
No formal install spec in the registry metadata, but the repository includes package.json and SKILL.md shows npm install/build steps. That is reasonable, but the lack of an explicit install section in the skill metadata is a minor mismatch: the code will require installing dependencies (ssh2, ssh2-sftp-client) before use.
Credentials
The skill declares no required environment variables, which matches metadata. However, the implementation will read the user's HOME, default SSH private key (~/.ssh/id_rsa) and the local config file, and it permits storing plaintext passwords in servers.json. These are functionally necessary for SSH/SFTP operations but are sensitive — users should be aware credentials/configs are stored locally and audit logs record commands.
Persistence & Privilege
always is false and the skill does not request platform-level privileges. It persists state under ~/.config/ops-maintenance (servers.json, logs) and will create audit.log — this is normal for such a tool and proportional to its purpose.
Assessment
This skill is coherent with its stated purpose but handles sensitive secrets and will read/write files in your home directory. Before installing or running it: - Review the source (especially src/utils/ssh-pool.ts, src/utils/sftp-client.ts, src/utils/audit-logger.ts) to ensure there are no unexpected network endpoints or telemetry. The provided code shows no external HTTP endpoints. - Be aware it will try to use ~/.ssh/id_rsa by default and can store passwords in ~/.config/ops-maintenance/servers.json; prefer key-based auth and do not put plaintext passwords in that file. - Audit the permissions on ~/.config/ops-maintenance and ~/.ssh/* (restrict to the user, e.g., 600 for private keys). - The skill writes audit.log with executed commands — this is useful but may contain sensitive data; treat the log as confidential. - The repository includes package.json; run npm install in an isolated environment and run npm audit before use. - Note small mismatches: SKILL.md claims v2.0 removed shell-based SSH usage but dist/index.js still uses child_process.exec for local command execution (not for remote SSH). Also the registry metadata omits an explicit install spec even though SKILL.md instructs npm install — confirm your agent/platform will install and run the included code as intended. If you accept these trade-offs (local file access, use of SSH keys, local audit logs) and you trust the maintainer, this skill appears to be what it claims. If you do not trust the source or prefer not to expose local keys/configs, do not install or run it.

Like a lobster shell, security has layers — review code before you run it.

latestvk97d68kr4f5mhfqsky6fb0xmbx85k8af
110downloads
0stars
2versions
Updated 2d ago
v2.0.1
MIT-0

运维助手 (ops-maintenance) v2.0

专业的运维助手,支持单服务器和多服务器集群监控。

v2.0 主要改进

  • 使用ssh2库替代child_process.exec,提升性能和安全性
  • 添加SSH连接池,支持连接复用
  • 移除StrictHostKeyChecking=no,增强安全性
  • 添加重试机制(指数退避)和错误处理
  • 添加审计日志,记录所有操作
  • 支持SFTP文件传输(上传/下载/目录操作)
  • 添加并发控制,避免同时打开过多连接
  • 改进错误分类和诊断信息

功能命令

健康检查

/ops-maintenance health              # 本地
/ops-maintenance user@host health    # 远程 SSH

日志分析

/ops-maintenance logs [关键词]       # 本地
/ops-maintenance user@host logs error  # 远程

性能监控 (本地)

/ops-maintenance perf

端口检查

/ops-maintenance ports [端口]        # 本地
/ops-maintenance user@host ports 80  # 远程

进程检查

/ops-maintenance process [名称]      # 本地
/ops-maintenance user@host process nginx  # 远程

磁盘使用

/ops-maintenance disk                # 本地
/ops-maintenance user@host disk      # 远程

文件传输 (新增)

/ops-maintenance upload <local> <remote>    # 上传文件
/ops-maintenance download <remote> <local>  # 下载文件
/ops-maintenance list <remote>              # 列出远程目录

审计日志 (新增)

/ops-maintenance audit               # 查看审计统计

远程服务器配置

方式 1: 配置文件 (推荐)

~/.config/ops-maintenance/servers.json 中配置:

[
  {
    "host": "192.168.1.100",
    "user": "root",
    "port": 22,
    "keyFile": "~/.ssh/id_rsa",
    "name": "web-1",
    "tags": ["production", "web"]
  }
]

方式 2: 直接指定

user@192.168.1.100 health
root@server.com:2222 disk

支持的远程操作

  • health: 系统负载、内存、磁盘、服务状态
  • logs: 远程日志搜索
  • ports: 端口占用检查
  • process: 进程查找
  • disk: 磁盘使用分析
  • upload: 文件上传
  • download: 文件下载
  • list: 目录列表

输出格式

返回 Markdown 格式结果,包含:

  • 标题 (emoji + 操作名 + 服务器)
  • 代码块中的命令输出
  • 关键发现和建议

多服务器集群管理

查看集群状态

/ops-maintenance cluster              # 查看所有服务器状态
/ops-maintenance cluster @production  # 按标签筛选

批量添加服务器

# 直接添加多个 IP
/ops-maintenance batch-add 192.168.1.100 192.168.1.101 192.168.1.102

# 带端口
/ops-maintenance batch-add 192.168.1.100:2222 192.168.1.101:22

# 带用户
/ops-maintenance batch-add root@192.168.1.100 admin@192.168.1.101

# 完整格式
/ops-maintenance batch-add user@host:port user2@host2:port

# CSV 格式 (多行)
/ops-maintenance import-servers <<EOF
192.168.1.100,22,root,web-1,production;web
192.168.1.101,22,admin,db-1,production;database
EOF

# JSON 格式
/ops-maintenance import-servers [{"host":"192.168.1.100","name":"web-1","tags":["prod"]}]

添加服务器

/ops-maintenance add-server 192.168.1.100 --name web1 --tags production,web

移除服务器

/ops-maintenance remove-server 192.168.1.100

批量执行命令

/ops-maintenance exec "df -h" @production   # 在 production 组执行
/ops-maintenance exec "uptime" all          # 在所有服务器执行

服务器配置文件

  • 位置: ~/.config/ops-maintenance/servers.json
  • 支持字段: host, port, user, keyFile, password, name, tags

示例配置

[
  {
    "host": "192.168.1.100",
    "user": "root",
    "name": "web-1",
    "tags": ["production", "web"]
  },
  {
    "host": "192.168.1.101",
    "user": "admin",
    "name": "db-1",
    "tags": ["production", "database"]
  }
]

安全性说明

v2.0 安全改进

  • 移除 StrictHostKeyChecking=no,使用known_hosts验证
  • 支持密钥认证和密码认证
  • 连接超时保护(默认15秒)
  • 审计日志记录所有操作
  • 配置文件建议加密存储(待实现)

认证方式

  1. 密钥认证(推荐):

    {
      "keyFile": "~/.ssh/id_rsa"
    }
    
  2. 密码认证:

    {
      "password": "your-password"
    }
    
  3. 默认密钥: 自动使用 ~/.ssh/id_rsa

审计日志

日志位置

  • ~/.config/ops-maintenance/logs/audit.log

记录内容

  • 时间戳
  • 操作类型
  • 目标服务器
  • 执行命令
  • 执行状态(成功/失败/部分)
  • 执行时长
  • 错误信息

查看统计

/ops-maintenance audit

性能优化

连接池

  • 默认最大连接数: 10
  • 连接超时: 5分钟
  • 自动清理过期连接

并发控制

  • 批量操作默认并发数: 5
  • 避免同时打开过多SSH连接

重试机制

  • 默认重试次数: 3
  • 指数退避策略
  • 可配置重试延迟

开发说明

安装依赖

cd /Users/a1234/.openclaw/workspace/skills/ops-maintenance
npm install

运行示例

npm run dev
npm test

构建

npm run build

技术栈

  • Node.js + TypeScript
  • ssh2: SSH客户端库
  • ssh2-sftp-client: SFTP文件传输
  • 审计日志: JSON格式,支持查询和统计

常见问题

Q: 连接失败怎么办?

A: 检查以下几点:

  1. SSH密钥或密码是否正确
  2. 服务器地址和端口是否正确
  3. 防火墙是否允许SSH连接
  4. 查看审计日志获取详细错误信息

Q: 如何提高性能?

A:

  1. 使用连接池(已默认启用)
  2. 调整并发控制参数
  3. 使用密钥认证而非密码

Q: 审计日志在哪里?

A: ~/.config/ops-maintenance/logs/audit.log

Q: 如何清理连接池?

A: 调用 cleanup() 函数或重启应用

Comments

Loading comments...