seojoonkim/prompt-guard/prompt-guard-2
Claude Code and agent skill by seojoonkim/prompt-guard
- community
Checking that the SKILL.md file is still in the repository.
600+ pattern AI agent security defense covering prompt injection, supply chain injection, memory poisoning, action gate bypass, unicode steganography, and cascade amplification. Optional API for early-access and premium patterns. Tiered loading, hash cache, 11 SHIELD categories, 10 languages.
Install
npx vskill@latest install seojoonkim/prompt-guard/prompt-guard-2SKILL.md
Prompt Guard v3.5.0
Advanced AI agent runtime security. Works 100% offline with 600+ bundled patterns. Optional API for early-access and premium patterns.
What's New in v3.5.0
Runtime Security Expansion — 5 new attack surface categories:
- 🔗 Supply Chain Skill Injection (CRITICAL) — Malicious community skills with hidden curl/wget/eval, base64 payloads, credential exfil to webhook.site/ngrok
- 🧠 Memory Poisoning Defense (HIGH) — Blocks attempts to inject into MEMORY.md, AGENTS.md, SOUL.md
- 🚪 Action Gate Bypass Detection (HIGH) — Financial transfers, credential export, access control changes, destructive actions without approval
- 🔤 Unicode Steganography (HIGH) — Bidi overrides (U+202A-E), zero-width chars, line/paragraph separators
- 💥 Cascade Amplification Guard (MEDIUM) — Infinite sub-agent spawning, recursive loops, cost explosion
Previous: v3.4.0
Typo-Based Evasion Fix (PR #10) — Detect spelling variants that bypass strict patterns:
- 'ingore' → caught as 'ignore' variant
- 'instrct' → caught as 'instruct' variant
- Typo-tolerant regex now integrated into core scanner
- Credit: @matthew-a-gordon
TieredPatternLoader Wiring (PR #10) — Fix pattern loading bug:
- patterns/*.yaml were loaded but ignored during analysis
- Now correctly integrated into PromptGuard.analyze()
- Supports CRITICAL, HIGH, MEDIUM pattern tiers
AI Recommendation Poisoning Detection — New v3.4.0 patterns:
- Calendar injection attacks
- PAP social engineering vectors
- 23+ new high-confidence patterns
Previous: v3.2.0
Skill Weaponization Defense — 27 patterns from real-world threat analysis:
- Reverse shell detection (bash /dev/tcp, netcat, socat)
- SSH key injection (authorized_keys manipulation)
- Exfiltration pipelines (.env POST, webhook.site, ngrok)
- Cognitive rootkit (SOUL.md/AGENTS.md persistent implants)
- Semantic worm (viral propagation, C2 heartbeat)
- Obfuscated payloads (error suppression chains, paste services)
Optional API — Connect for early-access + premium patterns:
- Core: 600+ patterns (same as offline, always free)
- Early Access: newest patterns 7-14 days before open-source release
- Premium: advanced detection (DNS tunneling, steganography, sandbox escape)
Quick Start
Disable API (fully offline)
CLI
Configuration
Security Levels
| Level | Action | Example | |
|---|---|---|---|
| SAFE | Allow | Normal chat | |
| LOW | Log | Minor suspicious pattern | |
| MEDIUM | Warn | Role manipulation attempt | |
| HIGH | Block | Jailbreak, instruction override | |
| CRITICAL | Block+Notify | Secret exfil, system destruction |
SHIELD.md Categories
| Category | Description | |
|---|---|---|
prompt | Prompt injection, jailbreak | |
tool | Tool/agent abuse | |
mcp | MCP protocol abuse | |
memory | Context manipulation | |
supply_chain | Dependency attacks | |
vulnerability | System exploitation | |
fraud | Social engineering | |
policy_bypass | Safety circumvention | |
anomaly | Obfuscation techniques | |
skill | Skill/plugin abuse | |
other | Uncategorized |
API Reference
PromptGuard
DetectionResult
SHIELD Output
Pattern Tiers
Tier 0: CRITICAL (Always Loaded — ~50 patterns)
- Secret/credential exfiltration
- Dangerous system commands (rm -rf, fork bomb)
- SQL/XSS injection
- Prompt extraction attempts
- Reverse shell, SSH key injection (v3.2.0)
- Cognitive rootkit, exfiltration pipelines (v3.2.0)
- Supply chain skill injection (v3.5.0)
Tier 1: HIGH (Default — ~95 patterns)
- Instruction override (multi-language)
- Jailbreak attempts
- System impersonation
- Token smuggling
- Hooks hijacking
- Semantic worm, obfuscated payloads (v3.2.0)
- Memory poisoning defense (v3.5.0)
- Action gate bypass detection (v3.5.0)
- Unicode steganography (v3.5.0)
Tier 2: MEDIUM (On-Demand — ~105+ patterns)
- Role manipulation
- Authority impersonation
- Context hijacking
- Emotional manipulation
- Approval expansion attacks
- Cascade amplification guard (v3.5.0)
API-Only Tiers (Optional — requires API key)
- Early Access: Newest patterns, 7-14 days before open-source
- Premium: Advanced detection (DNS tunneling, steganography, sandbox escape)
Tiered Loading API
Cache API
HiveFence Integration
Multi-Language Support
Detects injection in 10 languages:
- English, Korean, Japanese, Chinese
- Russian, Spanish, German, French
- Portuguese, Vietnamese
Testing
File Structure
Changelog
See CHANGELOG.md for full history.
Author: Seojoon Kim License: MIT GitHub: seojoonkim/prompt-guard
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSKILL.md
Popularity
- 7-day trend score
- 0
Refreshed 19 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/seojoonkim/prompt-guard/prompt-guard-2)