@aiassesstech/prompt-shield
v0.2.0
Published
Fleet-wide prompt injection defense for AI Assess Tech agents
Downloads
875
Readme
@aiassesstech/prompt-shield
Fleet-wide prompt injection defense for AI Assess Tech agents. Validates tool parameters at agent boundaries to prevent injection attacks and schema violations.
Install
npm install @aiassesstech/prompt-shieldUsage
import { createValidatedToolFactory } from '@aiassesstech/prompt-shield';
const factory = createValidatedToolFactory({
mode: 'enforce', // 'enforce' | 'monitor'
});
const protectedTool = factory.wrap(originalTool, toolSchema);Features
- Zod-based parameter validation for all tool calls
- Enforce mode (block invalid) and monitor mode (log only)
- Per-tool schema registration
- Injection pattern detection
- Fleet-wide deployment via OpenClaw plugin system
Repository
Part of the compsi monorepo — packages/prompt-shield/.
