Driftguard
/install driftguard
Skill Drift Guard
Trust what you review. Compare what changed later.
Use this skill for local integrity checks and post-update drift detection on repos or installed skills.
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
- compare later to answer what changed since trust
- highlight risky new capabilities like shell, network, sensitive file access, symlinks, dependencies, or install hooks
Quick start
Run the scanner directly from the installed skill folder:
node {baseDir}/scripts/cli.js scan \x3Cpath>
Save a trusted baseline after review:
node {baseDir}/scripts/cli.js trust \x3Cpath>
Save a trusted baseline to a custom location:
node {baseDir}/scripts/cli.js trust \x3Cpath> --baseline ./reports/skill-baseline.json
Compare a skill or repo against a saved baseline:
node {baseDir}/scripts/cli.js compare \x3Cpath> --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, andpyproject.toml - install-hook changes in
package.json - combo risks like:
- shell + network
- network + sensitive files
- shell + prompt-injection signals
- obfuscation + active capabilities
Config suppressions
Use a .driftguard.json file in the scan root, or pass --config \x3Cfile>.
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
0for low risk and no drift1for medium risk or drift detected2for high or critical risk
Use 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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install driftguard - 安装完成后,直接呼叫该 Skill 的名称或使用
/driftguard触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Driftguard 是什么?
Trust-then-verify integrity scanner for local repos and OpenClaw skills. Use when you want to scan before trust, save a trusted baseline, compare after updat... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 327 次。
如何安装 Driftguard?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install driftguard」即可一键安装,无需额外配置。
Driftguard 是免费的吗?
是的,Driftguard 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Driftguard 支持哪些平台?
Driftguard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Driftguard?
由 david90232(@david90232)开发并维护,当前版本 v0.2.4。