# A safety check for AI agent skills, plugins and MCP servers

> Calyban checks skills, subagents and MCP servers for prompt injection, download-and-run scripts and credential theft, plus 234,000 known malicious packages.

Every skill, subagent, command and connection is checked before it reaches your agent. Plugins are checked right after their agent downloads them.

## What does it look for?

Things that actually show up in agent add-ons: hidden instructions in invisible Unicode, prompt injection ("ignore all previous instructions"), scripts that download and run code, reverse shells, encoded payloads (including `powershell -enc`), reading credential files and sending data out, permission bypasses like `--dangerously-skip-permissions`, persistence and destructive commands.

Plugin hooks are checked one by one, because they run without asking. MCP tool descriptions the agent received are checked for injection, and their fingerprints are pinned, so a server that changes its tools after you started using it gets noticed.

## Known malicious packages

Calyban downloads a signature list built from OpenSSF Malicious Packages: about 222,000 npm and 12,000 PyPI packages that are malicious in every version, plus the exact bad releases of about 2,400 real packages that were hijacked (the Shai-Hulud worm, for example). Launching one of those is flagged as high risk. Lookalike names, one typo away from a popular package, are flagged too.

## Context matters

A download-and-run line in a skill's instructions is dangerous. The same line quoted in a test file usually isn't. Calyban weighs each finding by where it was found (instructions, hooks, code, docs, tests), which is how it stopped calling the Ponytail skill high risk without loosening any rule for files the agent actually reads or runs.

## Reviewed, with a fingerprint

If you've looked at a finding and you're fine with it, mark it **Reviewed**. The mark is tied to a fingerprint of exactly those files; change one byte and the flag comes back.

## Where it runs

On your computer, before anything is written. Nothing is uploaded anywhere. Plugins are downloaded by Claude Code and Codex themselves, so Calyban checks them the moment they land, before your next session can load them.

## Under the hood

- **Rule engine:** pattern rules run per line (long minified lines are scanned in 20,000-character chunks), then each finding is re-weighted by the file's role: instructions, hook, code, docs, test or asset.
- **Review marks** are bound to a SHA-256 digest of the checked files or launch line, so a changed byte invalidates the mark.
- **Rug-pull detection:** tool descriptions are fingerprinted per server and pinned; a changed fingerprint raises a note.
- **Typosquats:** package names are compared with Damerau-Levenshtein distance 1 against popular catalog packages, after folding confusable characters.
- **Signatures:** OpenSSF Malicious Packages OSV records, split into whole-package entries and exact compromised versions. PyPI names are normalized per PEP 503. The feed is ETag-cached and works offline from the last good copy.

## Questions

### Does it replace my antivirus?

It works alongside it. Calyban's check is built for agent add-ons: 19 rules for the shapes attacks on agents take, plus about 234,000 known malicious npm and PyPI packages, with every finding explained in plain words. For anything that touches production or your keys, read it yourself too. That's good practice with any tool.

### What happens when something is flagged as high risk?

The install stops and shows the reason and the file and line it came from. You can still choose Install anyway if you trust the author. That choice stays yours.

### Does the safety check flag popular skills by mistake?

We downloaded and checked the 60 most-starred skills in the catalog: 50 came back clean, 10 had notes only, and none were flagged medium or high.

Calyban is a free app for Windows and Linux: https://calyban.com/ (this page: https://calyban.com/features/safety).
