ai-sentinel
by amandiwakar
Coding Agents & IDEsBrief
Prompt injection detection and security scanning for OpenClaw agents.
Description
What This Skill Does
Prompt injection firewall for OpenClaw agents. Hooks into gateway lifecycle events to scan inbound messages, tool call parameters, and tool results using heuristic pattern matching. Covers 7 threat categories including jailbreak, data exfiltration, and indirect injection.
Community mode runs entirely locally with no data leaving the machine, so teams get injection protection without transmitting message content to any external service.
When to Use It
- Block prompt injection attempts in a public-facing customer support bot
- Audit tool call parameters for data exfiltration patterns before execution
- Monitor agent traffic for jailbreak attempts without blocking in monitor mode
- Enforce message filtering on an agent handling sensitive internal data
- Review threat detection analytics after a suspected attack via the Pro dashboard
Example Workflow
User asks: Set up prompt injection protection on my OpenClaw agent
- 1
Installs ai-sentinel plugin via openclaw plugins install
- 2
Asks user to choose Community (local) or Pro (dashboard reporting) tier
- 3
Asks user to set detection mode (monitor or enforce) and confidence threshold
- 4
Generates plugin config under plugins.entries.ai-sentinel and writes it to OpenClaw configuration after user confirms
- 5
Tests detection by sending a known injection pattern through the gateway and verifying the log output
OpenClaw gateway scanning all lifecycle hooks for prompt injection, with detections logged or blocked based on chosen mode
Requirements
- AI_SENTINEL_API_KEY — Pro tier only; obtain from https://app.zetro.ai
- Zetro.ai account — Pro tier only, required for dashboard access and remote classification
Installation
clawhub install amandiwakar/ai-sentinelRun the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.