prompt-guard

Detect and block prompt-injection and secret-exfiltration attempts across multiple languages.

172|33|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/seojoonkim/prompt-guard --skill prompt-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-guard
Source: https://github.com/seojoonkim/prompt-guard/tree/main
Command: npx skills add https://github.com/seojoonkim/prompt-guard --skill prompt-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Prompt Guard protects AI agents from prompt injection and secret-exfiltration attempts by providing multi-language detection, decoding pipelines, and enterprise-grade DLP.

Core Features & Use Cases

  • SHIELD.md compliant threat classification and decision outputs for automated protection in production.
  • HiveFence network integration for threat intelligence sharing and rapid pattern updates.
  • Multi-language coverage across EN, KO, JA, ZH, RU, ES, DE, FR, PT, VI for pervasive attacks.
  • Use Case: Operators deploy Prompt Guard to guard a group assistant, block dangerous prompts like “ignore previous instructions,” and redact credentials in LLM outputs.

Quick Start

To get started, run a prompt-guard scan on a user message to determine if it should be allowed or blocked.

Frequently Asked Questions about prompt-guard

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

FAQPage Schema
How do I detect and block prompt-injection attacks targeting my AI agents?

Prompt-injection defense works by applying a decode-then-scan pipeline and language detection to user messages. It classifies threats and outputs SHIELD.md compliant decisions to block dangerous prompts or allow safe ones in production.

Can I use this to prevent secret-exfiltration and redact credentials in LLM outputs?

Yes, you can prevent secret-exfiltration by deploying this to redact credentials in LLM outputs. It applies enterprise-grade DLP, uses canary tokens for tracking unauthorized access, and blocks exfiltration attempts across multiple languages.

Does prompt-injection detection support multiple languages like English, Korean, and Japanese?

Yes, prompt-injection detection supports multiple languages including EN, KO, JA, ZH, RU, ES, DE, FR, PT, and VI. This multi-language coverage ensures pervasive attacks are caught regardless of the input language.

How do I integrate threat intelligence for rapid prompt-injection pattern updates?

You can integrate threat intelligence for rapid pattern updates using the HiveFence network integration. This allows operators to share threat intelligence and receive rapid updates to keep AI agents protected against new attacks.

What do I need to set up prompt-injection defense and JSONL logging?

To set up prompt-injection defense and JSONL logging, you need the pyyaml dependency installed in your environment. The system then supports rate limiting, canary tokens, and JSONL logging to track and manage detected threats.

What is the best way to automate protection against prompt-injection for a group assistant?

The best way to automate protection for a group assistant is deploying a SHIELD.md compliant defense pipeline. It automatically classifies threat levels, applies rate limiting, and outputs automated block or allow decisions for production environments.