skill-scanner

Analyze agent skills for injection points, malicious code, and secret leaks.

408|65|Updated Dec 12, 2024
One-click install
npx skills add https://github.com/deadlock-mod-manager/deadlock-mod-manager --skill skill-scanner-deadlock-mod-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-scanner
Source: https://github.com/deadlock-mod-manager/deadlock-mod-manager/tree/main/.agents/skills/skill-scanner
Command: npx skills add https://github.com/deadlock-mod-manager/deadlock-mod-manager --skill skill-scanner-deadlock-mod-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill detects potential security vulnerabilities and unsafe patterns within agent skills, preventing malicious or risky code from being used.

Core Features & Use Cases

  • Security Analysis: Performs static code analysis and pattern detection to identify prompt injections, secret leaks, and malicious scripts.
  • Risk Assessment: Evaluates permissions and behavior to determine safety levels for skill adoption.
  • Use Case: When integrating new skills into a team’s environment, use this Skill to review code and configurations for hidden threats or vulnerabilities.

Quick Start

Use the skill scanner to analyze a skill directory by running "uv run scripts/scan_skill.py <skill-directory>".

Frequently Asked Questions about skill-scanner

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

FAQPage Schema
How do I check agent skills for security vulnerabilities before deployment?

Static analysis of agent skills detects prompt injections, secret leaks, and malicious scripts by evaluating code patterns and permissions. This prevents risky code from executing and ensures safety before integration into a team environment.

How do I scan a skill directory for malicious code and secret leaks?

To scan a skill directory for malicious code, run the scanner script with the directory path as the argument. The tool performs pattern matching, script review, and URL trust assessment to identify potential vulnerabilities.

Does static code analysis detect prompt injection points in agent skills?

Static code analysis detects prompt injection points by applying pattern matching and script review to the skill's code. It assesses URL trust and permissions to determine safety levels for skill adoption.

Do I need pyyaml installed to run a security review on agent configurations?

Yes, pyyaml is required to run a security review on agent configurations. The scanner relies on this dependency to parse configuration files and perform pattern matching to identify hidden vulnerabilities.

What is the best way to assess URL trust and permissions for agent skill compliance?

Assessing URL trust and permissions for agent skill compliance involves behavioral security analysis that evaluates requested access levels. This determines safety by checking configurations against best security practices before deployment.