跳到正文
TakoAPI
返回技能列表

agent-hardening

由 x1xhlol 提供

CLI Utilities
649下载量由 clawskills.sh 提供
4星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Test your agent's input sanitization against common injection attacks.

描述

该技能的功能

Runs self-contained security checks on OpenClaw agents to test input sanitization. Covers unicode control character stripping, HTML comment injection detection, and bidi override character identification. Uses only hardcoded synthetic samples — no local files or external connections.

Requires nothing beyond Python 3, so checks run immediately with no setup, accounts, or network access.

何时使用

  • Verify an agent strips zero-width unicode characters before processing user input
  • Detect hidden HTML directives injected into agent context windows
  • Check if filename spoofing via bidi override characters is caught
  • Run a quick pre-deployment security audit on a new agent
  • Validate input sanitization logic during agent development

示例工作流

输入

User asks: run the agent hardening checks on my agent

智能体
  1. 1

    Runs unicode control character sanitization test against synthetic samples

  2. 2

    Runs HTML comment injection detection against sample strings

  3. 3

    Runs bidi override detection against sample filenames

  4. 4

    Reports pass/fail counts for each check category

输出

Summary showing how many checks passed per category, with flagged samples highlighted

安装

clawhub install x1xhlol/agent-hardening

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

链接