360 Secure SkillHub
360 安全技能中心

Arc Skill Differ

比较同一 OpenClaw Skill 的两个版本目录,识别新增的网络访问、凭据读取、文件系统访问、代码执行、数据外发与混淆等安全相关能力,列出新增、删除和修改的文件,并给出 SAFE、REVIEW 或 BLOCK 更新建议;支持普通、JSON 与摘要三种输出。

分类:安全
Trypto1019
Trypto1019
热度 16.06
最近更新 2026-02-26 08:15:35

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add Trypto1019/arc-skill-differ
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
skill-differ
description
Compare two versions of an OpenClaw skill to detect security-relevant changes. Use before updating any skill from ClawHub. Highlights new capabilities, changed patterns, and recommends whether an update is safe.
user-invocable
true
metadata
{"openclaw":{"emoji":"🔄","os":["darwin","linux"],"requires":{"bins":["python3"]}}}

Skill Differ

Compare two versions of an OpenClaw skill to find security-relevant changes before updating.

Why This Exists

A skill that was clean at v1.0 could add credential stealing in v1.1. The skill scanner catches known bad patterns in a single version. The differ catches new capabilities between versions — things a skill couldn't do before but can do now.

Commands

Diff two skill directories

python3 {baseDir}/scripts/differ.py diff --old ~/.openclaw/skills/some-skill/ --new /tmp/some-skill-v2/

Diff with JSON output

python3 {baseDir}/scripts/differ.py diff --old ./v1/ --new ./v2/ --json

Quick summary only (no file details)

python3 {baseDir}/scripts/differ.py diff --old ./v1/ --new ./v2/ --summary

What It Detects

New Capabilities Added

  • Network access (skill didn't make HTTP requests before, now it does)
  • Credential access (didn't read env vars or API keys before, now it does)
  • File system access (wasn't touching home directory, now it is)
  • Code execution patterns (eval/exec that didn't exist before)
  • Data exfiltration (new outbound POST requests)
  • Obfuscation (new encoded/obfuscated content)

File Changes

  • New files added (especially in scripts/)
  • Deleted files (could remove safety checks)
  • Modified files with security-relevant diffs

Recommendations

  • SAFE — No new security-relevant capabilities. Update freely.
  • REVIEW — New capabilities detected. Read the changes before updating.
  • BLOCK — Critical new capabilities (code execution, credential access). Manual audit required.

Tips

  • Always diff before updating any third-party skill
  • Pair with skill-scanner: scan before first install, diff before every update
  • Pay attention to new files — attackers add payloads in new scripts
  • If a "bug fix" update adds network access, that's suspicious