AI代理的shell命令安全守门人
简介
为AI代理执行的每条shell命令提供三级安全分类(SAFE/WARN/CRIT),阻断危险操作,防止误删数据或执行恶意脚本。
原始描述
Classify every shell command as SAFE, WARN, or CRIT before your agent runs it. Built for the TinkerClaw fork — github.com/globalcaos/tinkerclaw.
通过你的 Agent 添加
安装目录:tinkerclaw-shell-security/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: shell-security-ultimate
version: 2.2.0
description: "Classify every shell command as SAFE, WARN, or CRIT before your agent runs it."
metadata:
openclaw:
owner: kn7623hrcwt6rg73a67xw3wyx580asdw
category: security
tags:
- shell
- command-classification
- risk-management
- agent-safety
license: MIT
Shell Security Ultimate
Your agent has root access. Every command it runs is one bad inference away from rm -rf / or curl | bash from a stranger's repo.
This skill won't let that happen.
How It Works
Every shell command gets classified before execution:
- 🟢 SAFE — Read-only, harmless. Runs without friction.
- 🟡 WARN — Could modify state. Logged, flagged, your call.
- 🔴 CRIT — Destructive or irreversible. Blocked until you say so.
No command runs unclassified. No silent chmod 777. No quiet dd if=/dev/zero. Your agent won't accidentally email your SSH keys, won't helpfully format a disk, and won't DROP TABLE users because it misread the task.
What You Get
- Pre-execution classification for every command, every time
- Detailed operation logs so you see exactly what ran and why it was allowed
- Full override control — approve, deny, or escalate at any level
Who It's For
Anyone giving an AI agent shell access and wanting to sleep at night.
Clone it. Fork it. Break it. Make it yours.
👉 Explore the full project: github.com/globalcaos/clawdbot-moltbot-openclaw
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。