AS

agentpostmortem/skill-audit

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

3 stars 质量 46 趋势 18MIT

特工技能的安全扫描仪——在安装克洛德/特工斯克特之前,会标出即时注射,危险的外壳,秘密进入,以及过滤. 31条,SARIF,0分.

概览

扫描 Claude/代理技能,以便迅速注射、危险外壳、秘密进入和网络过滤——一个命令、零依赖性、CI的SARIF输出。 [[T0] · https://github.com/AgentPostmortem/Skill-audit] 指向技能目录或单 SKILL.md. 清洁技能的预期产出: (文件数取决于技能包含多少脚本和文本文件. ) 代理是新插件 。 一个技能是SKILL.md 加上代理商会使用的脚本——人们从GitHub,gists,和零审查的市场中安装. 这是一个无人看守的供应链:技能可以悄悄地告诉代理商忽略自己的规则,卷起QQ击击出有效载荷,读取你的~.sh键,或者POST你的.env到一个网页上,没有检查它。 技能审计是Npm对技能的审计。 把它指向一种技能 并标出你无法安装的图案 它读了SKILLL.

概述(AI 翻译)

** 代理技能安全扫描仪。 ** 扫描Claude/代理技能,以进行迅速注射、危险的外壳、秘密进入和网络过滤**,然后你才能相信**——一个命令、零依赖性、CI的SARIF输出。

npm: https://www.npmjs.com/package/@royalpinto007/skill-audit * ** 资料来源:** [T1]

– – . . .

□ 快速启动

需要Node.js 18+.

** 不安装** — npx 获取和运行软件包:

** 或安装一次**并直接拨打[[T3]:

在技能目录或单 SKILL.md上点 [T4]. 清洁技能的预期产出:

(文件数取决于技能包含多少脚本和文本文件. )

为什么

代理技能是新的插件. 一个技能就是一个 [T6] 加上一个代理将读作指令并执行的脚本——人们从GitHub,gists,和零审查的市场中安装这些脚本. 这是一个无人看守的供应链:一种技能可以悄悄地告诉代理商去"玷污自己的规则",curl | bash一个有效载荷,读取你的 [[T8] 密钥,或者POST你的 .env到一个网页,没有任何检查。

[(T10)]是技能[(T11)].

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

skill-audit

A security scanner for agent skills. Scan a Claude/agent Skill for prompt-injection, dangerous shell, secret access, and network exfiltration before you trust it — one command, zero dependencies, SARIF output for CI.

npx @royalpinto007/skill-audit ./path-to-skill

npm: https://www.npmjs.com/package/@royalpinto007/skill-audit · Source: https://github.com/AgentPostmortem/Skill-audit


Quickstart

Requires Node.js 18+.

No install — npx fetches and runs the package:

npx @royalpinto007/skill-audit ./my-skill

Or install once and call skill-audit directly:

npm install -g @royalpinto007/skill-audit
skill-audit ./my-skill

Point `` at a skill directory or a single SKILL.md. Expected output on a clean skill:

skill-audit  ·  my-skill  (1 file scanned)

  ✓ No issues found.

(File count depends on how many scripts and text files the skill contains.)

Why

Agent skills are the new plugin. A skill is a SKILL.md plus scripts that an agent will read as instructions and execute — and people install them from GitHub, gists, and marketplaces with zero review. That is an unguarded supply chain: a skill can quietly tell the agent to ignore its own rules, curl | bash a payload, read your ~/.ssh keys, or POST your .env to a webhook, and nothing checks for it.

skill-audit is npm audit for skills. Point it at a skill and it flags the patterns that should stop you from installing it.

What it catches

Category Examples
Prompt injection “ignore all previous instructions”, “do not tell the user”, “act without confirmation”, disable/bypass safety, stated intent to exfiltrate
Dangerous shell rm -rf ~, curl | bash, fork bombs, chmod 777, dd/mkfs, reverse shells
Secret access reads ~/.ssh/id_rsa, ~/.aws/credentials, .npmrc, .netrc, dumps the environment, hits the keychain
Exfiltration uploads local files, contacts webhook.site / pastebin / ngrok / raw IPs, programmatic outbound POST
Supply chain runtime pip/npm installs, git clone && run
Obfuscation base64 -d | sh, large base64 blobs, hidden zero-width / bidi Unicode
Over-permission allowed-tools: *

It reads SKILL.md prose for instruction-injection and reads scripts and fenced code blocks for dangerous commands — so a chmod 777 mentioned in a sentence won’t false-positive, but the same command in a code block will.

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add agentpostmortem/skill-audit
新手?先看 mcpskill.org 教程 →