Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

sans25sans25 搜索

Agent Skill

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

总安装

264

周安装

11

GitHub Stars

9

下载量

88
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/florianbuetow/claude-code --skill sans25

简介

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

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限和维护状态。
  • 建议结合原始 README 核验具体用法,注意是否会触发联网操作。
  • sans25 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

SANS/CWE Top 25 Dispatcher

Analyze scoped code directly against the SANS/CWE Top 25 Most Dangerous Software Weaknesses (2024). Unlike the OWASP and STRIDE dispatchers, this skill does NOT dispatch individual subagents per category. Instead it reads the full framework reference, determines which CWEs are relevant to the scoped code based on languages and patterns, checks each applicable CWE directly, groups findings by CWE category, and cross-references with OWASP and STRIDE mappings.

Supported Flags

Read ../../shared/schemas/flags.md for the full flag specification. This dispatcher supports all cross-cutting flags.

FlagDispatcher-Specific Behavior
--scopeDetermines which files to analyze. Default changed.
--depthControls analysis thoroughness. Default standard.
--severityApplied after analysis to filter output.
--formatApplied to final output.
--only CWE-89,CWE-79Check only the listed CWEs. Accepts comma-separated CWE identifiers (e.g., CWE-89, CWE-787, CWE-22). Unlisted CWEs are skipped entirely.
--fixProduce fix suggestions inline for each finding.
--quietFindings only, suppress explanations.
--explainAdd learning material per finding.

Framework Reference

Read ../../shared/frameworks/sans-cwe-top25.md for the full SANS/CWE Top 25 specification including weakness descriptions, code-level indicators, severity ratings, and cross-framework mapping tables.

Workflow

Step 1: Resolve Scope

Parse the --scope flag and resolve to a concrete file list. Use Git commands or Glob as appropriate for the scope type. Record the resolved file list for use in subsequent steps.

Step 2: Detect Languages and Technology Stack

Scan the scoped files to identify:

  • Languages: file extensions (.c, .cpp, .py, .js, .ts, .java, .go, .rb, .php, .rs, etc.)
  • Frameworks: imports and config files (Express, Django, Flask, Spring, Rails, ASP.NET, etc.)
  • Data layer: database libraries, ORM usage, raw query patterns
  • Infrastructure: Dockerfiles, deployment manifests, CI/CD config

This determines which CWEs are applicable. Record a language_profile summarizing what was detected.

Step 3: Determine Applicable CWEs

Using the language_profile, filter the 25 CWEs to those relevant for this codebase. Each CWE category has language-specific applicability:

CategoryCWEsApplicable When
Memory SafetyCWE-787, CWE-125, CWE-416, CWE-476, CWE-190, CWE-119C, C++, Rust (unsafe blocks), or any code with FFI/native bindings
InjectionCWE-79, CWE-89, CWE-78, CWE-94, CWE-77Any language with user input handling, database queries, shell execution, or template rendering
Auth/AuthZCWE-862, CWE-863, CWE-306, CWE-287Any code with authentication, authorization, session management, or API endpoints
Data HandlingCWE-20, CWE-22, CWE-502, CWE-200, CWE-918, CWE-352, CWE-434, CWE-400Any code handling user input, files, URLs, serialization, or resource allocation
ConfigurationCWE-798, CWE-269Any code with credentials, privilege management, or deployment config

If --only is specified, skip the relevance check and analyze only the listed CWEs.

Memory safety skip rule: If no C, C++, Rust, or native binding code is present, skip the entire Memory Safety category and record the skip reason. Do NOT report memory safety CWEs for pure Python, JavaScript, Java, Go, or Ruby codebases.

Step 4: Analyze Each Applicable CWE

For each applicable CWE, read its section in sans-cwe-top25.md and check the scoped code against the documented code-level indicators.

For each CWE, perform the following:

  1. Pattern scan: Use Grep to search for the code-level indicators listed in the framework reference. For example, for CWE-89 (SQL Injection), search for string concatenation in SQL queries, f"SELECT, raw query methods, and dynamic table/column names.
  2. Context analysis: Read the surrounding code for each pattern match. Determine whether the match is a true positive or a false positive. Consider:

- Is user input actually reaching this code path? - Are there existing mitigations (parameterized queries, input validation, encoding)? - Is the pattern in test code, comments, or dead code?

  1. Severity assessment: Assign severity based on the CWE's documented severity rating, adjusted for context:

- Upgrade if the code is in a critical path (auth, payment, PII handling). - Downgrade if existing mitigations partially address the weakness.

  1. Create finding: For each confirmed weakness, create a finding object following the schema in shared/schemas/findings.md. Set:

- id: CWE<NNN>-<SEQ> (e.g., CWE89-001, CWE787-002) - references.cwe: The CWE identifier - references.sans_cwe25: The rank (1-25) - metadata.framework: "sans25" - metadata.category: The CWE category group (e.g., "injection", "memory-safety", "auth", "data-handling", "config")

If --depth deep or --depth expert, additionally:

  • Trace data flows from user input to the vulnerable code point.
  • Follow imports and cross-file calls to confirm reachability.
  • Check for defense-in-depth layers that might mitigate the weakness.

Step 5: Group Findings by Category

Organize confirmed findings into the five CWE category groups:

GroupIDCWEs Covered
Memory Safetymemory-safetyCWE-787, CWE-125, CWE-416, CWE-476, CWE-190, CWE-119
InjectioninjectionCWE-79, CWE-89, CWE-78, CWE-94, CWE-77
Auth/AuthZauthCWE-862, CWE-863, CWE-306, CWE-287
Data Handlingdata-handlingCWE-20, CWE-22, CWE-502, CWE-200, CWE-918, CWE-352, CWE-434, CWE-400
ConfigurationconfigCWE-798, CWE-269

Within each group, sort findings by CWE rank (lower rank = more dangerous).

Step 6: Cross-Reference with Other Frameworks

For each finding, populate cross-framework references using the mapping table in sans-cwe-top25.md:

  • references.owasp: Map to the OWASP Top 10 category (e.g., CWE-89 maps to A03:2021).
  • references.stride: Map to STRIDE category letters (e.g., CWE-89 maps to T, I, E).
  • references.mitre_attck: Map to ATT&CK technique IDs (e.g., CWE-89 maps to T1190, T1059).

Use the "Cross-Framework Mapping Table" section in the framework reference as the authoritative source for these mappings.

Step 7: Deduplicate

Two findings are duplicates if they share the same location.file AND location.line (or overlapping line ranges) AND refer to the same or parent/child CWE. When duplicates exist:

  • Keep the finding with the higher-ranked CWE (lower rank number).
  • Merge CWE references into the retained finding.
  • Note the duplicate in the retained finding's description.

Step 8: Rank and Filter

Sort all findings: critical > high > medium > low. Within the same severity, sort by CWE rank (lower rank first), then by confidence (high > medium > low).

Apply the --severity filter to exclude findings below the threshold.

Step 9: Produce Output

Wrap findings in the aggregate output format from shared/schemas/findings.md:

{
  "tool": "sans25",
  "scope": "{SCOPE}",
  "depth": "{DEPTH}",
  "language_profile": ["python", "javascript"],
  "categories_checked": ["injection", "auth", "data-handling", "config"],
  "categories_skipped": ["memory-safety"],
  "skip_reason": "No C/C++/Rust or native bindings detected",
  "total_findings": 7,
  "by_severity": { "critical": 2, "high": 3, "medium": 1, "low": 1 },
  "by_cwe_group": {
    "injection": 3,
    "auth": 2,
    "data-handling": 1,
    "config": 1
  },
  "findings": [ ... ]
}

Step 10: Present Results

Output the report in the requested --format. Include:

  • Language profile: detected languages and technologies.
  • Coverage table: which CWE groups were checked and which were skipped (with reasons).
  • CWE group breakdown: finding count per group.
  • Severity breakdown: count by critical/high/medium/low.
  • Findings list: in severity order, grouped by CWE category.
  • Cross-framework summary: for each finding, show the OWASP, STRIDE, and ATT&CK mappings so the finding can be located in other framework reports.

Expert Mode

If --depth expert is set, after the main analysis:

  1. Read ../../shared/frameworks/dread.md for DREAD scoring criteria. Assign a DREAD score to each finding.
  2. Identify CWE chains -- combinations of weaknesses that amplify each other. For example:

- CWE-20 (Improper Input Validation) + CWE-89 (SQL Injection): missing validation enables injection. - CWE-306 (Missing Authentication) + CWE-862 (Missing Authorization): unauthenticated access to unprotected resources. - CWE-798 (Hard-coded Credentials) + CWE-287 (Improper Authentication): attacker uses leaked credentials to bypass auth.

  1. For each chain, describe the combined attack scenario and assign an aggregate severity reflecting the chained impact.
  2. Append chain findings with prefix CHAIN and metadata.tool set to "cwe-chain".

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.3%
按下载量换算32

Claude

30.84%
按下载量换算27

Cursor

19.9%
按下载量换算18

Gemini CLI

9.91%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/florianbuetow/claude-code --skill sans25 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills