Skill Security Analyzer 标志

Skill Security Analyzer

社区
Svenja-dev
skill-security-analyzer

Comprehensive security risk analysis for Claude skills. Use when asked to analyze security risks, review security stance, audit skills for vulnerabilities, check security before deployment, or evaluate safety of skill files. Triggers include "analyze security," "security risks," "security audit," "security review," "is this skill safe," or "check for vulnerabilities."

概览

发布者Svenja-dev
代码仓库claude-code-skills
技能名称skill-security-analyzer
星标数
38
复刻数
5
附带文件
1
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Svenja-dev 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Skill Security Analyzer AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Svenja-dev/claude-code-skills/tree/main/skills/security-analyzer/skill-security-analyzer
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Svenja-dev/claude-code-skills.git /tmp/claude-code-skills
mkdir -p .claude/skills
cp -r /tmp/claude-code-skills/skills/security-analyzer/skill-security-analyzer .claude/skills/skill-security-analyzer
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Skill Security Analyzer,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Skill Security Analyzer。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Skill Security Analyzer 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Skill Security Analyzer

Analyze Claude skills for security risks, vulnerabilities, and safety concerns before deployment.

When to Use This Skill

Use this skill whenever security analysis of a Claude skill is requested, including:

  • "Analyze the security of this skill"
  • "What are the security risks in my [skill-name]?"
  • "Review this skill for vulnerabilities"
  • "Is this skill safe to deploy?"
  • "Check this skill for security issues"
  • "Audit this skill before I use it"

Analysis Process

Security analysis follows a systematic workflow:

  1. Extract skill contents - If provided as a .skill file, extract and examine all components
  2. Review skill metadata - Analyze name, description, and stated purpose
  3. Examine SKILL.md - Review instructions and identify potential risks
  4. Inspect bundled resources - Analyze scripts, references, and assets for security issues
  5. Cross-reference patterns - Check against known security patterns (see references/security_patterns.md)
  6. Generate findings - Compile severity-rated list of identified risks
  7. Create output - Provide executive summary, findings list, and security checklist

Output Format

Provide three components in this order:

1. Executive Summary (2-3 sentences)

Brief overall assessment with key takeaway. Examples:

  • "This skill has CRITICAL security risks including undisclosed network access and potential data exfiltration. Do not deploy without major modifications."
  • "This skill demonstrates good security practices with minor concerns around input validation. Generally safe for deployment with awareness of limitations."

2. Findings List

Severity-rated list of specific security issues found:

CRITICAL - Immediate security threat, do not deploy

  • [Specific finding with evidence]
  • [Specific finding with evidence]

HIGH - Significant risk, requires remediation

  • [Specific finding with evidence]

MEDIUM - Moderate concern, should be addressed

  • [Specific finding with evidence]

LOW - Minor issue or best practice deviation

  • [Specific finding with evidence]

POSITIVE - Security best practices observed

  • [Specific good practice found]

3. Security Checklist

Quick reference checklist of security categories:

[ ] Data Exfiltration Risks - [PASS/FAIL/CONCERN] - [brief note]
[ ] Network Access - [PASS/FAIL/CONCERN] - [brief note]
[ ] Prompt Injection Protection - [PASS/FAIL/CONCERN] - [brief note]
[ ] Permissions & Scope - [PASS/FAIL/CONCERN] - [brief note]
[ ] PII/Confidential Data - [PASS/FAIL/CONCERN] - [brief note]
[ ] Malicious Code Indicators - [PASS/FAIL/CONCERN] - [brief note]
[ ] Supply Chain Risks - [PASS/FAIL/CONCERN] - [brief note]
[ ] Credential Exposure - [PASS/FAIL/CONCERN] - [brief note]
[ ] Resource Abuse - [PASS/FAIL/CONCERN] - [brief note]
[ ] Transparency & Documentation - [PASS/FAIL/CONCERN] - [brief note]

Analyzing Skill Components

Skill Metadata Analysis

Check frontmatter and description for:

  • Scope clarity: Does description match actual functionality?
  • Tool disclosure: Are all used tools mentioned?
  • External service disclosure: Are API calls or network access mentioned?
  • Data handling statements: Is data processing clearly explained?

Red flags:

  • Vague descriptions that don't explain what the skill does
  • Description doesn't mention tools used in code
  • Missing disclosure of network access or external services

SKILL.md Analysis

Read the entire SKILL.md and check for:

  • Instruction clarity: Are instructions clear and unambiguous?
  • Input handling: How does skill handle user input?
  • Tool usage justification: Is tool usage appropriate for stated purpose?
  • Prompt construction: Are there prompt injection risks?
  • Scope boundaries: Does skill stay within stated purpose?

Specific checks:

  1. Search for dynamic prompt construction patterns
  2. Check for file access instructions without validation
  3. Look for network requests not in description
  4. Identify any instruction override patterns
  5. Review error handling and data exposure

Scripts Analysis

For each script in scripts/:

  1. Read the script using the view tool
  2. Check imports against security patterns reference
  3. Scan for dangerous operations: file deletion, system commands, network requests
  4. Look for obfuscation: base64, exec, eval, encoded strings
  5. Validate paths: check file access uses safe paths
  6. Review subprocess usage: check for shell=True or user input in commands

Priority patterns to detect:

  • exec(), eval(), __import__()
  • subprocess.run(..., shell=True)
  • requests.post(), urllib.request, fetch()
  • os.system(), os.popen()
  • base64.b64decode() followed by execution
  • File operations on sensitive paths
  • Hardcoded credentials or API keys

References Analysis

Check reference files for:

  • Sensitive data: API keys, credentials, internal schemas
  • External resources: Links to external sites or services
  • Data handling instructions: How data should be processed
  • Compliance requirements: Any regulatory considerations

Assets Analysis

Examine assets for:

  • Executable content: Scripts disguised as assets
  • External resources: Templates that load remote content
  • Embedded credentials: Config files with secrets
  • Unexpected file types: Files that don't match skill purpose

Using the Security Patterns Reference

IMPORTANT: Read references/security_patterns.md at the start of every security analysis to load the comprehensive catalog of security patterns, anti-patterns, and risk indicators.

The reference provides:

  • Detailed examples of risky vs. safe implementations
  • Specific patterns to search for in code
  • Risk categorization and severity guidelines
  • Context-specific considerations

Use the reference to:

  1. Guide what to look for during analysis
  2. Determine severity ratings for findings
  3. Provide accurate examples in findings
  4. Ensure comprehensive coverage of risk categories

Handling .skill Files

If provided a .skill file:

  1. Extract contents: .skill files are zip files with .skill extension
bash
unzip skillname.skill -d /home/claude/skill-analysis/
  1. Verify structure: Check for SKILL.md and proper directory organization

  2. Analyze extracted contents: Follow normal analysis process

Edge Cases

Skills Without Code

For skills with only SKILL.md (no scripts/assets):

  • Focus on instruction analysis
  • Check for prompt injection risks in instructions
  • Verify tool usage is appropriate
  • Assess scope and transparency

Third-Party Skills

For skills from unknown sources:

  • Apply heightened scrutiny
  • Mark provenance as a risk factor
  • Look extra carefully for obfuscation
  • Check for unexpected functionality
  • Recommend code review before deployment

Skills Requesting Unusual Permissions

For skills asking for extensive tool access:

  • Verify each tool is justified in description
  • Check if tool usage aligns with stated purpose
  • Look for scope creep in implementation
  • Consider principle of least privilege

Important Principles

Be Evidence-Based

  • Always cite specific code or instructions when identifying risks
  • Provide line numbers or code snippets for findings
  • Don't make assumptions - base findings on actual content

Severity Calibration

  • CRITICAL: Immediate security threat (data theft, system compromise, credential exposure)
  • HIGH: Significant risk requiring remediation (unsafe file access, undisclosed network calls)
  • MEDIUM: Moderate concern (missing input validation, unclear scope)
  • LOW: Best practice deviation (no security impact but suboptimal)

Context Matters

  • Consider the skill's stated purpose
  • Distinguish between necessary functionality and overreach
  • Account for legitimate use cases vs. security theater

Actionable Findings

  • Provide specific remediation guidance when possible
  • Suggest safer alternatives for risky patterns
  • Prioritize findings by risk and effort to fix

Example Analysis Workflow

User: "Analyze the security of this skill" [attaches my-skill.skill]

1. Extract the .skill file
2. Read references/security_patterns.md
3. Review SKILL.md frontmatter and description
4. Analyze SKILL.md instructions
5. Examine each script in scripts/
6. Check references/ for sensitive data
7. Review assets/ for unexpected content
8. Compile findings with severity ratings
9. Generate executive summary
10. Create security checklist
11. Provide formatted output

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Skill Security Analyzer AI 技能有什么作用?

Comprehensive security risk analysis for Claude skills. Use when asked to analyze security risks, review security stance, audit skills for vulnerabilities, check security before deployment, or evaluate safety of skill files. Triggers include "analyze security," "security risks," "security audit," "security review," "is this skill safe," or "check for vulnerabilities."

为什么在 TypingMind 中使用 Skill Security Analyzer?

因为您只需安装一次,就能搭配任何模型使用。Skill Security Analyzer 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Skill Security Analyzer?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Svenja-dev/claude-code-skills/tree/main/skills/security-analyzer/skill-security-analyzer。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Skill Security Analyzer?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Skill Security Analyzer 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Skill Security Analyzer 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Skill Security Analyzer AI 技能免费吗?

Svenja-dev 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇