Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
SkillCẩn thậnĐăng nhập & bảo mậtNâng cao

skill-scanner

cisco-ai-defense · cisco-ai-defense/skill-scanner

Quét các agent skill để tìm prompt injection, rò rỉ dữ liệu và mã độc bằng luật mẫu, phân tích dataflow và LLM judge tùy chọn.

Security Scanner for Agent Skills

2.6k sao329Giấy phép: Không có giấy phépCập nhật 13 ngày trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Kiểm tra skill của bên thứ ba có mã độc không trước khi cài
  • Thêm pre-commit hook quét skill của bạn mỗi lần commit
  • Đẩy kết quả SARIF lên GitHub Code Scanning trong CI

Kiểm tra an toàn

Cẩn thận

Dùng được, nhưng nên đọc ghi chú trước.

  • ●Không có giấy phép rõ ràng: hỏi tác giả trước khi dùng cho sản phẩm thương mại.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

Skill Scanner

A best-effort security scanner for AI Agent Skills that detects prompt injection, data exfiltration, and malicious code patterns. It combines pattern-based detection (YAML + YARA-X), AST and dataflow analysis, an optional LLM-as-a-judge, and a bounded CEL decision layer over typed detector facts.

Important: This scanner provides best-effort detection, not comprehensive or complete coverage. A scan that returns no findings does not guarantee that a skill is free of all threats. See Scope and Limitations below.

Supports OpenAI Codex Skills and Cursor Agent Skills formats following the Agent Skills specification. With --lenient, also scans non-standard formats such as Claude Code .claude/commands/*.md and flat markdown skill repos.


Highlights

  • Multi-Engine Detection - Static analysis, behavioral dataflow, LLM semantic analysis, and cloud-based scanning for layered, best-effort coverage
  • Typed CEL Decisions - The core scanner uses the official cel-go v0.32.0 runtime to correlate bounded facts after deterministic detection and before optional LLM analysis
  • Measured Presets - low-noise and quiet presets and LLM caps, with recall, false-positive rate and F1 published for each (Recommended Settings)
  • CI/CD Ready - SARIF output for GitHub Code Scanning, reusable GitHub Actions workflow, exit codes for build failures
  • Pre-commit Hook - Standard pre-commit framework integration to scan skills before every commit
  • Extensible - Plugin architecture for custom analyzers

Join the Cisco AI Discord to discuss, share feedback, or connect with the team.


Scope and Limitations

Skill Scanner is a detection tool. It identifies known and probable risk patterns, but it does not certify security.

Key limitations:

  • No findings ≠ no risk. A scan that returns "No findings" indicates that no known threat patterns were detected. It does not guarantee that a skill is secure, benign, or free of vulnerabilities.
  • Coverage is inherently incomplete. The scanner combines signature-based detection, LLM-based semantic analysis, behavioral dataflow analysis, optional cloud services, and configurable rule packs. While this approach improves coverage, no automated tool can detect every technique, especially novel or zero-day attacks.
  • False positives and false negatives can occur. Presets, the LLM judge and scoped suppressions reduce noise, but no configuration eliminates all incorrect classifications. Pick a measured setup from Recommended Settings and tune the scan policy to your risk tolerance.
  • Human review remains essential. Automated scanning is one component of a defense-in-depth strategy. High-risk or production deployments should pair scanner results with manual code review and/or threat modeling.

Measured results

On held-out skills (MaliciousSkillBench's frozen test split, 839 malicious and 545 harmless):

  • Rules alone catch 7.7% of malicious skills at HIGH, at a 4.0% false-positive rate.
  • With the LLM judge (Gemma 4 26B, balanced), 66.7% reach review at MEDIUM+ (15.4% FPR), and 33.7% are blocked at HIGH (6.4% FPR).

Every figure, with its corpus and method, is in Measured Results and on the evaluation Space.


Documentation

The documentation website is cisco-ai-defense.github.io/docs/skill-scanner. Deep-dive pages live in docs/.

GuideDescription
Quick StartGet started in 5 minutes
Recommended SettingsPick a setup for the lowest FPR or the highest F1, with copy-paste configs
LLM ProvidersConfigure the LLM judge for any provider, gateway or local model
Results and TuningRead findings, build a review queue, lower false positives
ArchitectureSystem design and components
CEL Decision LayerTyped facts, safety bounds, rollout modes, and telemetry
Threat TaxonomyComplete AITech threat taxonomy with examples
LLM AnalyzerLLM configuration and usage
System One AnalyzerOptional advisory screening tier, and why it cannot gate
Meta-AnalyzerOptional second-pass review (off by default; measured cost)
Behavioral AnalyzerDataflow analysis details
Scan PolicyCustom policies, presets, and tuning guide
Policy Quick ReferenceCompact reference for policy sections and knobs
Measured ResultsEvery published figure, with its corpus, population and model
Rule AuthoringHow to add signature, YARA, and Python rules
GitHub ActionsReusable workflow for CI/CD integrat
Xem mã nguồn trên GitHub