skill-scanner

Scan agent skills for security vulnerabilities using static analysis and pattern matching.

8.7k|1.8k|Updated Feb 1, 2012
One-click install
npx skills add https://github.com/getsentry/sentry-javascript --skill skill-scanner-getsentry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-scanner
Source: https://github.com/getsentry/sentry-javascript/tree/main/.agents/skills/skill-scanner
Command: npx skills add https://github.com/getsentry/sentry-javascript --skill skill-scanner-getsentry

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill proactively identifies security vulnerabilities and risks within agent skills before they are deployed or integrated, ensuring a safer agent ecosystem.

Core Features & Use Cases

  • Comprehensive Security Analysis: Detects prompt injection, malicious scripts, secret exposure, excessive permissions, and supply chain risks.
  • Automated Scanning: Utilizes static analysis and pattern matching against known threat vectors.
  • Use Case: Before installing a new community-developed skill, run the skill-scanner to audit its SKILL.md and associated scripts for any potential security threats, ensuring it adheres to safety guidelines.

Quick Start

Use the skill-scanner to scan the skill located at path '/path/to/skill/to/scan'.

Frequently Asked Questions about skill-scanner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan agent skills for prompt injection and security vulnerabilities?

To scan agent skills for prompt injection, run the scanner against the target path. It analyzes SKILL.md files, scripts, and references using static analysis and pattern matching to detect malicious code and excessive permissions.

What security risks should I audit before installing a community-developed agent skill?

When auditing a community-developed agent skill, check for prompt injection, malicious scripts, secret exposure, excessive permissions, and supply chain risks. Analyzing SKILL.md and associated scripts validates frontmatter and assesses URL trustworthiness to ensure safety guidelines are met.

Does the skill scanner work with YAML frontmatter and Python dependencies?

Yes, the skill scanner validates YAML frontmatter in SKILL.md files and works alongside Python environments. It requires the pyyaml dependency to parse configuration data and check for dangerous code patterns within skill scripts.

How do I check agent skill scripts for excessive permissions and secret exposure?

To check agent skill scripts for excessive permissions and secret exposure, use static analysis to scan the codebase. The scanner identifies dangerous code patterns, validates frontmatter, and flags potential secret exposure before deployment.

What is the best way to assess URL trustworthiness in agent skill references?

The best way to assess URL trustworthiness in agent skill references is to use an automated scanner that evaluates links during static analysis. This process assesses supply chain risks by validating external URLs against known threat vectors.