跳到正文
TakoAPI
返回技能列表

skill-firewall

由 mkhaytman87 提供

Web & Frontend Development
1.0k下载量由 clawskills.sh 提供
2星标
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Security layer that prevents prompt injection from external skills.

描述

该技能的功能

A security layer for AI agents that intercepts requests to install external skills and rewrites them from scratch instead of copying them verbatim. Prevents prompt injection via hidden HTML comments, zero-width Unicode characters, and embedded malicious instructions embedded in external skill files.

Copying and executing external skills directly exposes the agent to payloads invisible in rendered markdown but visible to the LLM, which regeneration eliminates entirely.

何时使用

  • Installing a community skill from ClawHub without running hidden malicious instructions
  • Safely evaluating a GitHub-hosted skill before adding it to a project
  • Blocking a curl-based exfiltration attempt disguised as skill setup
  • Reviewing a skills.sh package for obfuscated Unicode payloads before use
  • Sanitizing a third-party skill that references external files in a poison chain

示例工作流

输入

User asks: Install the cloudflare skill from skills.sh

智能体
  1. 1

    Acknowledge the request and state that the skill will be rewritten, not copied

  2. 2

    Fetch the external skill content and identify its actual purpose

  3. 3

    Flag any suspicious elements such as HTML comments or external URL references

  4. 4

    Write a clean replacement skill in standard ASCII with no external references

  5. 5

    Present the rewrite with a summary report and wait for explicit user approval before saving

输出

A sanitized, human-approved skill file saved to the skills directory, functionally equivalent to the original but free of injected instructions

安装

clawhub install mkhaytman87/skill-firewall

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接