Pre-execution security guards for AI coding agents. Every command is checked before it runs. Dangerous operations are blocked, not logged after the fact.
$ npx guardrail-agent init
View on GitHub
Works with Claude Code · Cursor · GitHub Copilot · Windsurf
Install once. Every command your AI agent runs is checked against production-grade security rules.
Blocks direct push to main/master, force push, and git reset --hard.
Blocks env, printenv, /proc/environ, docker inspect without --format.
Blocks exfiltration to webhook.site, requestbin, pipedream, and similar.
Blocks rm -rf on /etc, /usr, /var, /home, and other protected paths.
Blocks iptables flush, ufw disable, nft flush ruleset.
Blocks stop/disable/kill on sshd, docker, postgres, nginx.
Blocks UPDATE/DELETE without WHERE on protected tables.
Detects full environment dumps (8+ KEY=VALUE lines) in output.
Detects prompt injection like "ignore previous instructions" in output.
Catches empty catch blocks in payment, webhook, and cron code.
Every Pro guard exists because something went wrong in production. These are patterns you don't design on a whiteboard.
15+ leak vectors beyond env/printenv. Script content analysis. SSH wrapping detection.
Detects coordinated attack sequences across commands. Catches what single-command guards miss.
npm audit integration. License compliance. Blocks packages with known vulnerabilities.
Detects AI agents attempting to disable or circumvent their own security guards.
50+ attack patterns. Profile escape testing. Bypass persistence checks. JSON report.
EU AI Act article mapping. Risk classification. PDF audit reports for regulators.
If your team uses AI coding agents in the EU, you need auditable governance. GuardRail provides pre-execution controls with a full audit trail.
Guard classification. PEN-test framework. Risk-based guard activation per command profile.
PII gates prevent secret exposure. Environment dump detection. Container inspection controls.
Timestamped audit log. Every blocked command recorded with guard name, reason, and context.
deny() gates block before execution. Approval workflows for critical operations.
Injection defense. 41 regression tests. True positive and false positive checks per guard.
One command. 10 security guards. Zero configuration.
$ npx guardrail-agent init
GitHub