DriftGuard Security Scanner+
简介
DriftGuard Security Scanner+
原始描述
DriftGuard Security Scanner+ is a local-first security drift scanner for repos, OpenClaw skills, and AI agent tools. Use to scan before trust, save trusted b...
通过你的 Agent 添加
安装目录:skill-drift-guard/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: skill-drift-guard
description: Local-first security drift scanner for repos, OpenClaw skills, and AI agent tools. Use to scan before trust, save trusted baselines, compare after updates, review file/hash drift, dependency drift, install-hook changes, symlink changes, prompt-injection signals, sensitive-path references, obfuscation, shell execution, network access, and risky capability diffs.
Skill Drift Guard
Trust what you review. Compare what changed since trust.
Use this skill for local security/integrity checks and post-update drift detection on repos, installed skills, and AI agent tool folders.
This skill is intentionally narrower than a generic security scanner. Its best use is:
- scan a local skill folder or repo before trust
- save a trusted baseline after review, including approver, note, git commit, package version, risk snapshot, and finding summary
- compare later to answer what changed since trust
- highlight risky new capabilities like shell, network, sensitive file access, symlinks, dependencies, prompt-injection signals, obfuscation, or install hooks
Quick start
Run the scanner directly from the installed skill folder:
node {baseDir}/scripts/cli.js scan <path>
Save a trusted baseline after review:
node {baseDir}/scripts/cli.js trust <path>
Save a trusted baseline to a custom location:
node {baseDir}/scripts/cli.js trust <path> --baseline ./reports/skill-baseline.json
Compare a skill or repo against a saved baseline:
node {baseDir}/scripts/cli.js compare <path> --baseline ./reports/skill-baseline.json
Recommended workflow
1. Scan before trust
Review the candidate repo or skill first.
node {baseDir}/scripts/cli.js scan /path/to/skill
Treat high or critical output as a stop sign until manually reviewed.
2. Trust after review
If the findings are acceptable, save a trusted baseline.
node {baseDir}/scripts/cli.js trust /path/to/skill
3. Compare after updates
After the skill changes or updates, compare it to the saved baseline.
node {baseDir}/scripts/cli.js compare /path/to/skill --baseline ./reports/baseline.json
Look especially for:
- newly added or changed files
- new shell or network findings
- dependency or install-hook drift
- new symlinks or sensitive file references
What it checks
- risky shell execution patterns like
curl | bash, eval, exec, subprocess, os.system
- outbound network patterns like
fetch, axios, requests, curl, webhook usage
- references to sensitive files like
.env, SSH keys, SOUL.md, MEMORY.md, OpenClaw config
- prompt injection style content in
SKILL.md, SOUL.md, MEMORY.md
- obfuscation hints like base64 helpers and long encoded blobs
- symlink drift without following symlinks
- dependency drift in
package.json, requirements.txt, and pyproject.toml
- install-hook changes in
package.json
- combo risks like:
- shell + network
- network + sensitive files
- shell + prompt-injection signals
- obfuscation + active capabilities
Config suppressions
curl | bash, eval, exec, subprocess, os.systemfetch, axios, requests, curl, webhook usage.env, SSH keys, SOUL.md, MEMORY.md, OpenClaw configSKILL.md, SOUL.md, MEMORY.mdpackage.json, requirements.txt, and pyproject.tomlpackage.json- shell + network
- network + sensitive files
- shell + prompt-injection signals
- obfuscation + active capabilities
Use a .driftguard.json file in the scan root, or pass --config <file>.
Example:
{
"ignorePaths": ["dist/", "fixtures/"],
"ignoreRules": ["net.fetch", "shell.exec_generic", "shell.*"]
}
Use suppressions sparingly. If a rule is noisy, prefer narrowing it later instead of muting the whole category.
Exit codes
0 for low risk and no drift
1 for medium risk or drift detected
2 for high or critical risk
0 for low risk and no drift1 for medium risk or drift detected2 for high or critical riskUse this for CI or install gating.
Positioning
Use this skill when you want a transparent, local, deterministic trust workflow. Do not use it as the sole authority for safety. It is a heuristic scanner plus drift guard, not a guarantee.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。