Stop prompt injection
at the source.
External data — calendar events, emails, documents, API responses — is the new attack surface for AI assistants. Calendar Sentry sanitizes every input before it reaches your AI, and hardens the APIs your AI generates.
One for inputs. One for APIs.
AI systems have two exposure points: the data they ingest, and the APIs they expose. Calendar Sentry secures both.
Calendar Sentry
AI Input Sanitization Middleware
A Node.js security patch that sanitizes external inputs — calendar events, emails, documents — before they reach AI assistants. Blocks prompt injection attacks with JWT security, XSS/SQL injection protection, and zero-width character stripping.
- ✓ Prompt injection detection & neutralization
- ✓ Zero-width & Unicode control character stripping
- ✓ Suspicious keyword density analysis
- ✓ Context poisoning detection
- ✓ JWT-secured API layer
- ✓ Python SDK companion
npm install @phantomcorgi/calendar-sentry
API Shield
AI-Generated API Hardener
A comprehensive Express.js security framework for AI-generated apps. One
npm install
fixes hardcoded secrets, weak auth, missing security headers, SQL injection,
XSS, and achieves PCI DSS / GDPR / SOC2 baseline compliance.
- ✓ Hardcoded secret detection & rotation
- ✓ Weak auth replacement (JWT + bcrypt)
- ✓ Security headers (CSP, HSTS, X-Frame)
- ✓ SQL injection & XSS middleware
- ✓ Rate limiting & CORS enforcement
- ✓ PCI DSS / GDPR / SOC2 compliance helpers
npm install @phantomcorgi/api-shield
Drop-in middleware. Zero config.
Install the package
Add Calendar Sentry or API Shield to your project. Works with any Express.js, Fastify, or Node.js HTTP server. Python SDK available for Calendar Sentry.
Wrap your AI calls
Pass external data through Calendar Sentry before it reaches your AI assistant or LLM. Threats are neutralized; safe content passes through unchanged.
Monitor & alert
Every blocked threat is logged with full context — threat type, confidence score, original content fingerprint. Integrate with Slack, PagerDuty, or your SIEM.
Calendar Sentry is included in Code Corgi & API Phantom plans
Calendar Sentry and API Shield are bundled with Code Corgi Pro and API Phantom Team plans. Use them standalone for free, or unlock full enterprise features with a platform plan.
- ✓ Calendar Sentry middleware
- ✓ API Shield middleware
- ✓ Basic threat detection
- ✓ Community support
- ✓ MIT licensed
- ✓ All Code Corgi detection features
- ✓ Calendar Sentry — unlimited calls
- ✓ API Shield — unlimited apps
- ✓ Advanced threat analytics
- ✓ Slack & PagerDuty alerts
- ✓ Up to 50 repositories
- ✓ Priority support
- ✓ All API Phantom security features
- ✓ Calendar Sentry — unlimited calls
- ✓ API Shield — unlimited apps
- ✓ Red-team agent + input probing
- ✓ SIEM export integration
- ✓ Up to 25 AI platform endpoints
- ✓ Priority support
Enterprise plan with air-gap, SAML, SOC2 audit trail, and unlimited scale available for both products. Contact us →
Protect your AI inputs today
Free tier. No credit card. Works in minutes.