← 返回 Skills 市场
teoslayer

Pilot Watchdog

作者 Calin Teodor · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
138
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install pilot-watchdog
功能描述
Security monitoring for suspicious network patterns in Pilot Protocol networks. Use this skill when: 1. You need real-time detection of suspicious connection...
使用说明 (SKILL.md)

Pilot Watchdog

Real-time security monitoring for Pilot Protocol with anomaly detection, automated alerting, and threat response.

Commands

Initialize Watchdog

mkdir -p ~/.pilot/watchdog/{alerts,state}
cat > ~/.pilot/watchdog/config.json \x3C\x3CEOF
{
  "enabled": true,
  "check_interval_seconds": 30,
  "rules": {
    "connection_rate_limit": 10,
    "failed_handshake_threshold": 3,
    "polo_score_drop_threshold": 30
  }
}
EOF

Monitor Connection Rate

# Detect abnormal connection rate
CURRENT=$(pilotctl --json connections 2>/dev/null | jq -r '.[].remote_hostname' | sort | uniq -c)

echo "$CURRENT" | while read -r COUNT AGENT; do
  if [ "$COUNT" -gt 10 ]; then
    echo "ALERT: $AGENT has $COUNT connections"
  fi
done

Monitor Polo Score Changes

# Detect sudden polo score drops
STATE_FILE=~/.pilot/watchdog/state/polo_scores.json
THRESHOLD=30

CURRENT=$(pilotctl --json peers | jq '[.[] | {hostname, polo_score}]')

if [ -f "$STATE_FILE" ]; then
  echo "$CURRENT" | jq -r '.[] | "\(.hostname) \(.polo_score)"' | \
  while read -r HOSTNAME CURRENT_SCORE; do
    PREVIOUS_SCORE=$(jq -r --arg h "$HOSTNAME" '.[] | select(.hostname == $h) | .polo_score' "$STATE_FILE")

    if [ "$PREVIOUS_SCORE" != "null" ]; then
      CHANGE=$((CURRENT_SCORE - PREVIOUS_SCORE))
      if [ $CHANGE -lt 0 ] && [ ${CHANGE#-} -ge $THRESHOLD ]; then
        echo "ALERT: $HOSTNAME polo score dropped by ${CHANGE#-} points"
      fi
    fi
  done
fi

echo "$CURRENT" > "$STATE_FILE"

Set Webhook for Events

# Configure daemon webhook
pilotctl --json set-webhook "http://localhost:8080/watchdog"

Workflow Example

Continuous security monitoring with automated responses:

#!/bin/bash
WATCHDOG_DIR=~/.pilot/watchdog
INTERVAL=30

mkdir -p "$WATCHDOG_DIR"/{alerts,state}

# Alert function
alert() {
  echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) [$1] $2" | tee -a "$WATCHDOG_DIR/alerts/alerts.log"
}

# Monitor loop
while true; do
  # Check connection rate
  pilotctl --json connections | jq -r '.[].remote_hostname' | sort | uniq -c | \
    awk '$1 > 10 {print $2}' | while read agent; do
      alert "CONNECTION_RATE" "$agent exceeded connection limit"
    done

  # Check failed handshakes
  PENDING=$(pilotctl --json pending | jq length)
  if [ "$PENDING" -gt 5 ]; then
    alert "HANDSHAKE" "High number of pending handshakes: $PENDING"
  fi

  sleep $INTERVAL
done

Dependencies

Requires pilot-protocol skill, pilotctl binary, jq, and running daemon.

安全使用建议
This skill appears coherent for local Pilot Protocol monitoring, but review a few practical points before installing: - Inspect the commands in SKILL.md and confirm you are comfortable with them creating and writing to ~/.pilot/watchdog (config, state, alerts.log). - The example webhook is set to http://localhost:8080/watchdog; if you change it to an external URL, ensure that endpoint is trusted and that sending peer/alert data externally is acceptable for your environment. - pilotctl is the operational surface to the Pilot daemon — verify pilotctl is the official binary from a trusted source and that the pilot daemon runs with appropriate privileges. - Run the monitoring loop under a controlled service manager (systemd) or supervision, and ensure proper file permissions on ~/.pilot/watchdog to limit access to logs/state. - The skill uses AGPL-3.0; confirm license terms meet your policy requirements. If you need stricter guarantees, ask the skill author for an explicit option to run in a one-shot audit mode (no persistent config or daemon loop) and for documentation of what pilotctl commands will disclose about peers/connections.
功能分析
Type: OpenClaw Skill Name: pilot-watchdog Version: 1.0.0 The pilot-watchdog skill provides legitimate security monitoring utilities for the Pilot Protocol, including connection rate limiting and peer score tracking. The provided Bash scripts in SKILL.md use standard tools like jq and awk safely (e.g., using --arg in jq to prevent injection) and perform local logging and monitoring tasks consistent with the stated purpose. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
能力评估
Purpose & Capability
The skill claims to provide real-time monitoring for Pilot Protocol networks and only requires the pilotctl binary, jq, and the pilot-protocol skill. Those dependencies and the pilotctl commands used in SKILL.md align with the stated purpose.
Instruction Scope
The instructions create and write configuration and state files under ~/.pilot/watchdog, run an infinite monitoring loop, and call pilotctl (including set-webhook). This is expected for a local watchdog but you should note the skill will create files in your home directory, maintain state, and configure a webhook (default example is http://localhost:8080/watchdog). No instructions attempt to read unrelated system files or exfiltrate data to external domains.
Install Mechanism
This is an instruction-only skill with no install spec or remote downloads. That minimizes installation risk because nothing is written to disk by the skill package itself beyond what the runtime instructions do.
Credentials
No environment variables or credentials are requested. The only access required is to the pilotctl CLI/daemon and to create local files under the user's home directory, which is proportionate to a monitoring tool.
Persistence & Privilege
The skill is not marked always:true and does not modify other skills or system-wide settings. It does write its own config/state under ~/.pilot/watchdog and expects a running pilot daemon, which is appropriate for its function. Model invocation is allowed (default) but that is normal and not by itself a concern.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install pilot-watchdog
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /pilot-watchdog 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug pilot-watchdog
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Pilot Watchdog 是什么?

Security monitoring for suspicious network patterns in Pilot Protocol networks. Use this skill when: 1. You need real-time detection of suspicious connection... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 138 次。

如何安装 Pilot Watchdog?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install pilot-watchdog」即可一键安装,无需额外配置。

Pilot Watchdog 是免费的吗?

是的,Pilot Watchdog 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Pilot Watchdog 支持哪些平台?

Pilot Watchdog 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Pilot Watchdog?

由 Calin Teodor(@teoslayer)开发并维护,当前版本 v1.0.0。

💬 留言讨论