prompt-guard

Detect and neutralize prompt injection attacks in OpenClaw content and inputs.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/wongdean/knowledge-base --skill prompt-guard-wongdean
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-guard
Source: https://github.com/wongdean/knowledge-base/tree/main/backups/openclaw-config/20260315_232439/workspace-skills/openclaw-skills-security/skills/prompt-guard
Command: npx skills add https://github.com/wongdean/knowledge-base --skill prompt-guard-wongdean

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill detects and neutralizes prompt injection attacks across various text sources within the OpenClaw ecosystem, safeguarding the agent's integrity and preventing malicious instruction hijacking.

Core Features & Use Cases

  • Prompt Injection Detection: Identifies direct, indirect, and social engineering-based prompt injection attempts.
  • Content Analysis: Scans skill content, user inputs, and external data for malicious patterns.
  • Use Case: Protect your AI agent from being tricked into revealing sensitive information or performing unintended actions by analyzing all incoming data for hidden instructions.

Quick Start

Scan the provided text for any signs of prompt injection.

Frequently Asked Questions about prompt-guard

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

FAQPage Schema
How do I detect prompt injection attacks in AI user inputs?

To detect prompt injection attacks in user inputs, you can scan the text for malicious patterns, instruction hijacking, and context manipulation using severity tiers for critical and warning signals.

What is indirect prompt injection and how does it compromise AI safety?

Indirect prompt injection occurs when malicious instructions are hidden in external data sources. It compromises AI safety by manipulating the agent's context and hijacking its intended instructions without direct user input.

How do I prevent instruction hijacking from external data sources?

You can prevent instruction hijacking from external data sources by employing pattern detection and normalization to produce injection findings and handling guidance before unsafe instructions are trusted by the agent.

Does this prompt injection detection method handle social engineering attempts?

Yes, prompt injection detection handles social engineering attempts by identifying direct, indirect, and social engineering-based manipulation patterns across skill content, user inputs, and external data sources.

Can I scan skill content for hidden malicious instructions?

Yes, you can scan skill content for hidden malicious instructions by analyzing the text for unsafe commands, producing severity-tiered findings, and providing handling guidance to neutralize context manipulation.

What are the limitations of pattern detection for prompt injection?

Pattern detection for prompt injection may face limitations with novel or heavily obfuscated injection vectors, requiring normalization and severity tiers to effectively filter critical threats from benign warning signals.