Zyrax Guard
Audit AI agent configs and vet new dependencies.
Check for prompt injection, risky MCP servers, typosquats, and known malware with a free CLI.
Run from the root of your repository
npx zyrax-guard@0.13.1 scan-agents .Example scan result
1 finding.mcp.jsonMCP server uses an unencrypted connection
The configured endpoint uses HTTP. Requests and responses can be read or changed in transit.
What to review. Confirm who runs the server and switch to its verified HTTPS endpoint before enabling it.
Zyrax Guard: a free, open-source CLI for agent configs and packages.
Zyrax Guard scans your AI agent configuration files — CLAUDE.md, .mcp.json, settings, skills — for prompt injection, malicious MCP servers, and credential-exfil, and vets every npm, PyPI, crates, and Go module dependency before you install it. Runs in milliseconds. Your code and agent configs never leave your machine; package checks send only the package name and version to the public registry and the OSV advisory database.
Instruction files
CLAUDE.md, AGENTS.md, GEMINI.md, .cursorrules, copilot-instructions.md
- Prompt injection
- Detects hijack keywords, hidden unicode, base64 blobs, and persona-override patterns in CLAUDE.md, AGENTS.md, GEMINI.md, and Cursor rules.
- Credential access
- Flags instructions that reference .env, id_rsa, ~/.aws/credentials, or other credential files — common payload targets in exfiltration attacks.
- Exfiltration sinks
- Catches instructions that combine an exfiltration verb (send, POST, curl) with an external URL on the same line.
- Obfuscation-resistant
- Normalizes homoglyphs, leetspeak, zero-width/format characters, full-width text, and line-splitting before matching, so trivially disguised prompt-injection is still caught.
MCP servers
.mcp.json and agent MCP configs
- MCP command inspection
- Inspects command, args, and env fields in MCP server configs — flags shell interpreters, inline -c execution, /tmp binaries, and LD_PRELOAD hijacking.
- MCP tool descriptions
- Scans MCP tool description strings for injection keywords — tool descriptions are read as trusted context and are a stealthy bypass of instruction-file scanning.
- Malicious MCP hosts
- Flags unencrypted URLs, raw IP addresses, and tunnel services (ngrok, Cloudflare) in MCP server configs.
- Supply-chain risk
- Detects npx-based MCP servers without a lock file — a known dependency-confusion vector — and symlinked agent configs pointing outside the scanned tree.
Agent permissions
settings.json hooks and allow rules
- Lifecycle hooks
- Audits hooks in settings.json that execute commands automatically — flags download-pipe-execute patterns and shell inline-execution flags.
- Excessive permissions
- Catches wildcard allow rules and unrestricted shell access in Claude settings.json.
Packages
npm, PyPI, crates.io, Go modules
- Typosquatting
- Flags names one keystroke from popular packages, like reqeusts instead of requests.
- Known malware
- Cross-checks public security advisories for confirmed-bad packages.
- Hallucinated names
- Catches packages that do not exist on the registry, including AI-suggested names that were never published.
- New & unused
- Warns on brand-new, low-adoption packages nothing is depending on yet.
- Lockfile integrity
- Detects tampered or mismatched lockfile entries in your pull requests.
zyrax-guard check --deepOpt in and Zyrax Guard downloads the package and statically inspects the code it runs at install time, things like network calls, process spawning, and obfuscated eval, then blocks the dangerous combinations. No sandbox, no Docker, zero dependencies.
Set up Zyrax Guard
Choose the instructions for your terminal, AI agent, or CI workflow.
Install
Homebrew, npm, or Go — pick one. Ships a signed, prebuilt binary.
Release binaries ship with checksums.txt, cosign bundles, and an SBOM. Verify before you run.
Audit a repo
Scan the current repository’s agent configurations for prompt injection, risky MCP servers, and unsafe permissions.
Check a dependency
Check a package for typosquats and known malware before you install it.
Add to your AI agent (MCP)
Give Claude Code, Cursor, Windsurf, or VS Code a scan_agents + check_package tool. One step writes a project .mcp.json — or add it manually.
On the official MCP registry as io.github.tiagosilva07/zyrax-guard
Add Guard to CI
Fail pull requests that add risky dependencies. Drop into .github/workflows/zyrax-guard.yml:
Pinned to a full commit SHA, so a moved tag cannot change what runs in your CI.
Auto-gate installs
Intercept npm / pip / cargo installs in your shell and check every new package first.