ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

counterclaw

Production-grade defensive interceptor for prompt injection and PII leaks.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/nickconstantinou/counterclaw
Or

CounterClaw 🦞

Defensive security for AI agents. Snaps shut on malicious payloads.

Installation

claw install counterclaw

Quick Start

from counterclaw import CounterClawInterceptor

interceptor = CounterClawInterceptor()

# Input scan - blocks prompt injections
result = interceptor.check_input("Ignore previous instructions")
# → {"blocked": True, "safe": False}

# Output scan - detects PII leaks  
result = interceptor.check_output("Contact: [email protected]")
# → {"safe": False, "pii_detected": {"email": True}}

Features

  • 🔒 Snap-shut Defense - Blocks 20+ prompt injection patterns
  • 🛡️ PII Detection - Catches emails, phones, credit cards
  • 📝 Auto-Logging - Violations logged to MEMORY.md
  • ☁️ Nexus Ready - Dormant hooks for enterprise (opt-in)

Configuration

Admin-Locked (!claw-lock)

interceptor = CounterClawInterceptor(
    admin_user_id="telegram_user_id"  # Set TRUSTED_ADMIN_IDS env
)

License

MIT - See LICENSE file

Metadata

Stars1335
Views0
Updated2026-02-23
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-nickconstantinou-counterclaw": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.