Inside the scanner: how AgentsLLM checks AI skills for vulnerable dependencies and prompt injection
An AI skill has two attack surfaces that ordinary packages mostly do not. The first is familiar: code and dependencies. The second is new: text that an agent reads and acts on. A SKILL.md that quietly tells the model to upload your .env file contains no vulnerable package at all, and no dependency audit will ever flag it.
So we check skills for both. Here is what those checks do, where they stop, and why there are two scanners.
Two scanners, two jobs
The catalog scanner runs as a daily GitHub Actions job over skills waiting for a scan. It clones each repo and audits the resolved dependency tree.
The public checker at /security-check answers in seconds for any public GitHub URL. It never clones anything; it works from the GitHub API and raw file fetches.
Both share one prompt-injection engine. Their dependency findings can differ, by design.
Dependencies in the catalog scan
For each queued skill the job does a shallow clone, then:
- If there is a
package.json, it runsnpm install --package-lock-only --ignore-scriptsto resolve the full tree into a lockfile without executing any install scripts, thennpm audit --json. - If there is a
requirements.txt, it runspip-auditagainst it. Every pip-audit hit is recorded as high.
A critical finding makes the skill FAILED, a high finding makes it WARNING, and anything less leaves it PASSED. If the repo cannot be cloned at all, the skill gets WARNING with a note. If nothing serious was found but npm audit or pip-audit could not run, usually because the dependency tree does not resolve, the skill gets AUDIT FAILED instead of PASSED: a clean verdict is never claimed for an audit that did not happen.
Dependencies in the public check
The public checker reads package.json (both dependencies and devDependencies) and requirements.txt from the default branch and sends the declared names and versions to the OSV database in one batch query. It adds repo-health signals from the GitHub API: archived repos and repos with no push in two years are flagged medium, a year without pushes is low, and a missing license is low. Here any critical means FAILED, and any high or medium means WARNING.
Because it only sees what is declared, it can miss a vulnerable transitive package that npm audit would catch, or flag a version range the lockfile has already moved past. That is why a skill's catalog status and its public-check result do not always match.
Prompt-injection heuristics
The shared engine looks at agent instruction files - SKILL.md, CLAUDE.md, AGENTS.md, .cursorrules, .windsurfrules, Copilot instructions and similar - plus the root README. It searches for four families of patterns:
- Instruction override - attempts to cancel earlier instructions, give the model a jailbreak persona, or tell it to hide actions from the user. Code blocks are skipped here, since docs often quote attack strings.
- Secret exfiltration - a mention of credentials (SSH keys,
.env, API keys, agent settings) near a network target and a verb like send or upload. Piping a secret file straight intocurlis the strongest signal. - Hidden content - zero-width characters, HTML comments carrying instructions or commands, and long base64 blobs in instruction files, including blobs that decode to override text.
- Dangerous commands - recursive deletes of home or root, writes to Claude's config, flags that bypass permission prompts, reverse-shell shapes, and decode-then-execute chains. Remote install scripts piped to a shell are reported softly, as an install command to review, because they are usually legitimate.
Severity is adjusted by context. Findings in a README drop one level, since docs often discuss these patterns. Findings hidden inside HTML comments rise one level. In the catalog profile, a regex alone can never produce a critical, and a high finding is lowered to medium unless a second pattern family also fires in the same file.
What we do with the findings today
Heuristics produce false positives, so prompt-injection findings in the catalog scan are currently report-only: they show up in the skill's security report, but the PASSED, WARNING or FAILED status is still decided by dependency findings alone. Gating will follow once we trust the thresholds. The public checker already counts them toward its verdict.
Known limits
- No static analysis of the skill's own code. A script can be hostile while every dependency is clean.
- Python coverage is limited to
requirements.txt; projects that declare dependencies only elsewhere are not audited. - Pattern matching can be evaded by phrasing it has not seen. A clean result means nothing obvious was found.
- No reachability analysis. A high CVE in a build-only tool is reported the same way as one on a runtime path.
For the manual version, see our guide to auditing AI skills before install, or run a repo through the checker.