input-guard

Detects text-input threats from untrusted sources and outputs severity results.

3|1|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/dgriffin831/clawhub-skills --skill input-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: input-guard
Source: https://github.com/dgriffin831/clawhub-skills/tree/main/input-guard
Command: npx skills add https://github.com/dgriffin831/clawhub-skills --skill input-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) components.

What problem does it solve?

Input Guard protects AI agents by scanning text fetched from untrusted external sources for prompt injection attempts, returning severity, findings, and alerts before the content is ever processed.

Core Features & Use Cases

  • 16 pattern categories including instruction override, role manipulation, system mimicry, jailbreak, data exfiltration, and more.
  • Multi-language detection for English, Korean, Japanese, and Chinese prompts.
  • Optional LLM-powered analysis to catch evasive attacks, using OpenAI or Anthropic with a shipped MoltThreats taxonomy.
  • Zero-dependency base pattern scanner (Python standard library only) with optional MoltThreats reporting.
  • Integrates with OpenClaw alert channels to notify humans about MEDIUM+ / HIGH risk findings.
  • Use cases include pre-processing external content for agents, browser/tweet/data pipelines, and API responses.

Quick Start

Use the Input Guard to scan external text before it is fed to the agent:

  • bash {baseDir}/scripts/scan.sh "text to check"
  • bash {baseDir}/scripts/scan.sh --file /tmp/fetched-content.txt
  • echo "content" | bash {baseDir}/scripts/scan.sh --stdin
  • python3 {baseDir}/scripts/scan.py --json "text to check"

Frequently Asked Questions about input-guard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect prompt injection in external content before feeding it to my AI agent?

To detect prompt injection in external content, you can scan text using pattern-based detection across 16 threat categories before your AI agent processes it. This covers sources like web pages, tweets, search results, and API responses.

What types of prompt injection threats can a pattern-based security scanner identify?

A pattern-based security scanner identifies 16 threat categories including instruction override, role manipulation, system mimicry, jailbreak, and data exfiltration. It supports multi-language detection for English, Korean, Japanese, and Chinese prompts.

How do I scan fetched text for prompt injection from the command line?

To scan fetched text for prompt injection, run the scan script via bash with direct text, a file path, or stdin. You can also execute the Python script directly with the --json flag to receive structured severity results.

Can I use LLM analysis to catch evasive prompt injection attacks?

Yes, you can use optional LLM analysis to catch evasive prompt injection attacks by configuring OpenAI or Anthropic. This feature uses a shipped MoltThreats taxonomy to identify subtle threats that pattern-based detection might miss.

Does the prompt injection scanner require external dependencies?

The base prompt injection scanner requires zero external dependencies, using only the Python standard library. Optional LLM-powered analysis and MoltThreats reporting require the requests library and an OpenAI or Anthropic API.

How do I get alerts when high risk prompt injection attempts are detected?

To receive alerts for high risk prompt injection attempts, integrate the scanner with OpenClaw alert channels. It automatically notifies humans about MEDIUM+ and HIGH risk findings detected in the external content.