Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计提醒

model-scanner模型扫描仪

Agent Skill

model-scanner 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1

周安装

8

GitHub Stars

公开资料未说明

下载量

65
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:model-scanner(模型扫描仪)
来源仓库:https://github.com/raxitlabs/skills
仓库路径:skills/model-scanner
安装命令:
npx skills add https://github.com/raxitlabs/skills --skill model-scanner
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/raxitlabs/skills --skill model-scanner

简介

用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装,需确认权限和维护状态。
  • 涉及联网、命令执行或文件读写时,应先评估安全风险和操作边界。
  • 建议结合原始 README 核验具体用法和功能细节。

SKILL.md

Model Scanner — ML Supply Chain Security

Multi-scanner security analysis with risk scoring and global compliance mapping. Zero configuration.

How You Should Behave

When this skill triggers, you assess ML model security posture. Not just "scan files" but "inventory, score, map to compliance, and tell them what to fix."

Step 1: Discover What's Here

Before scanning, explore the workspace for model files and HuggingFace configs:

find . -type f \( -name "*.pkl" -o -name "*.pt" -o -name "*.pth" -o -name "*.bin" -o -name "*.safetensors" -o -name "*.onnx" -o -name "*.gguf" -o -name "*.joblib" -o -name "*.h5" -o -name "*.npy" \) 2>/dev/null

Check config.json files for HuggingFace metadata (_name_or_path, trust_remote_code, auto_map).

Step 2: Run the Scanner

uv run scripts/scan.py <path-or-hf-model-id> [--verbose] [--json]

The script handles everything: auto-installs scanners, discovers files, runs 4 scanners with format-aware routing, calculates risk score, maps to compliance frameworks, and suggests remediation.

Step 3: Present Results

The scanner output has 5 sections. Present them in order:

  1. Inventory — what models exist, what formats, which are HuggingFace models
  2. Assessment — per-file verdicts (MALICIOUS/SUSPICIOUS/SAFE/FORMAT_SAFE)
  3. Risk Score — 0-100 with breakdown of what caused deductions
  4. Compliance — PASS/FAIL/WARN against ISM-2072, EU AI Act, OWASP, MITRE, NIST
  5. Remediation — ordered list of what to fix, most urgent first

Lead with the worst findings. If something is MALICIOUS, say so immediately.

Step 4: HuggingFace-Specific Advice

When you detect HF models, offer options:

  • Scan local files only
  • Check HuggingFace for the full model (may have SafeTensors version)
  • Compare formats available on HF vs locally

Always flag trust_remote_code and auto_map — these load arbitrary Python that model scanners don't analyze.

Step 5: Compliance Questions

When the user asks "are we ISM-2072 compliant" or "EU AI Act" or "OWASP LLM06", read references/compliance-frameworks.md for detailed control text and how-to-comply guidance.

Scanners (4 independent approaches)

ScannerApproachStrength
FicklingAllowlist + decompilerBlocks unknown imports by default
ModelScanDenylist staticBroadest ML format support
PickleScanDenylist staticHuggingFace parity
ModelAuditMulti-format static42+ formats, config analysis

Format routing prevents false positives: pickle scanners only run on pickle files, ModelAudit handles configs/safetensors.

Risk Score

Starts at 100, deducts for risk factors. Bands: 90-100 GOOD, 70-89 MODERATE, 50-69 POOR, 0-49 CRITICAL. Breakdown shows exactly what caused each deduction.

Compliance Frameworks

Maps every finding to controls across 5 frameworks:

  • ISM (Australia): ISM-2072, ISM-2086, ISM-2087, ISM-2092
  • EU AI Act: Article 15 (robustness against model poisoning)
  • OWASP LLM Top 10: LLM06 (Supply Chain Vulnerabilities)
  • MITRE ATLAS: AML.T0010 (ML Supply Chain Compromise)
  • NIST AI RMF: MAP 3.4, MANAGE 2.4, MANAGE 4.1

Caveats to Always Communicate

  1. No scanner is perfect. 133 known bypass techniques. Clean scan does not mean safe.
  2. SafeTensors is not complete. trust_remote_code + auto_map loads arbitrary Python alongside safe weights.
  3. Compliance requires format change, not just scanning. ISM-2072 mandates non-executable formats.
  4. Dynamic analysis catches more. For critical models, recommend Dyana.

References

  • references/scanner-landscape.md — scanner comparison, bypass techniques, CVE data
  • references/compliance-frameworks.md — detailed control text, how to comply per framework

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.24%
按下载量换算22

Claude

30.84%
按下载量换算20

Cursor

19.12%
按下载量换算12

Gemini CLI

9.41%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills