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

security-scan安全扫描

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

294

周安装

12

GitHub Stars

公开资料未说明

下载量

94
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/nayuta/agent-skills --skill security-scan

简介

security-scan 用于辅助安全审计、权限检查和常见漏洞排查,适合让 Agent 梳理敏感配置或生成复核清单。

  • 适用于研究检索类任务,可协助分析鉴权逻辑与依赖风险。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,具体路径为 skills/security-scan。
  • 使用时不能将工具输出直接当作最终结论,涉及密钥或生产系统时应先确认最小权限。
  • 建议结合原始 README 文档进一步核验功能细节与使用边界。

SKILL.md

Security Scan

Purpose

Auto-detect and run available security scanning tools, producing a structured markdown report. Language-specific scanners activate automatically based on detected project files. Missing tools are skipped with installation guidance.

Scan Modes

ModeFlagBehavior
Full scan (default)*(none)*Scans the entire target directory
Full scan (explicit)--fullSame as default; use to make intent explicit in scripts or CI
Strict mode--strictExit with non-zero code when findings are detected (for CI gates)

Both modes scan the full directory tree. Pass --full when calling from a workflow that combines this skill with diff-scoped reviews (e.g., security-review) so the output header clearly identifies the scan scope.

Use --strict in CI pipelines or pre-commit hooks to fail the build when security findings are detected. Without --strict, the script always exits 0 after completing the scan (findings are reported in markdown output, but don't fail the pipeline).

Workflow

Step 1: Run the Scanner

Execute the bundled script from the project root:

# Default: scan full codebase
bash skills/security-scan/scripts/run-scans.sh [target-directory]

# Explicit full scan (identical result, intent is documented in output)
bash skills/security-scan/scripts/run-scans.sh --full [target-directory]

# Strict mode: exit non-zero if findings detected (for CI gates)
bash skills/security-scan/scripts/run-scans.sh --strict [target-directory]

If the skills directory is elsewhere, use the absolute path:

bash ~/.claude/skills/security-scan/scripts/run-scans.sh [--full] [--strict] [target-directory]

If the script is unavailable, run tools manually per the Manual Scan section.

Step 2: Review Raw Output

The script produces a markdown report. Parse each ## Tool: section:

  • Status: Skipped — tool not installed, note for summary
  • Status: Ran / No issues found — clean for this tool
  • Status: Ran + findings — requires triage

Step 3: Triage Findings

For each finding:

  1. Confirm it is in production code (not test fixtures or example files)
  2. Check whether it is protected by existing validation or encoding
  3. Classify severity: Critical / High / Medium / Low
  4. Mark confirmed vs. likely false positive

Common false positives:

PatternLikely False Positive When
Secret detectedValue matches example, test, dummy, PLACEHOLDER
Dependency vulnOnly affects dev/test dependencies
Insecure functionInput is validated upstream
Weak cryptoUsed for non-security purpose (e.g., cache key)

Step 4: Report

Present findings in this structure:

## Security Scan Summary

**Date**: <ISO 8601>
**Directory**: <path>
**Mode**: full | full (--full)
**Tools run**: N | **Tools skipped**: N | **Tools with findings**: N

### Confirmed Findings

| Severity | Tool      | Description                          | File / Location |
| -------- | --------- | ------------------------------------ | --------------- |
| Critical | gitleaks  | AWS key exposed in git history       | commit abc123   |
| High     | npm audit | lodash < 4.17.21 prototype pollution | package.json    |

### Likely False Positives

| Tool    | Description  | Reason dismissed              |
| ------- | ------------ | ----------------------------- |
| semgrep | eval() usage | Only in sandboxed test runner |

### Install Missing Tools

<list tools skipped with install commands>

Tool Coverage

Universal (always attempted)

ToolPurposeInstall
gitleaksSecret detection in git history and working treebrew install gitleaks
semgrepStatic analysis with OWASP and security rule packsbrew install semgrep
grypeFilesystem vulnerability scanningbrew install grype

Language-Specific (auto-detected)

Marker FileToolPurposeInstall
package.jsonnpm auditJS/TS dependency vulnerabilitiesbundled with Node.js
requirements.txt / pyproject.toml / setup.pybanditPython insecure code patternspip install bandit
requirements.txt / pyproject.toml / setup.pypip-auditPython dependency auditpip install pip-audit
go.modgosecGo insecure code patternsgo install github.com/securego/gosec/v2/cmd/gosec@latest
go.modgovulncheckGo module vulnerability databasego install golang.org/x/vuln/cmd/govulncheck@latest
Cargo.tomlcargo auditRust dependency auditcargo install cargo-audit
Gemfilebundle-auditRuby gem vulnerability auditgem install bundler-audit

Manual Scan

When the bundled script is unavailable, run each tool directly:

# Secrets
gitleaks detect --no-banner -v

# Static analysis
semgrep scan --config=auto --quiet

# Filesystem vulnerability scanning
grype dir:.

# Node.js
npm audit --omit=dev

# Python
bandit -r . -q --severity-level medium
pip-audit

# Go
gosec -quiet ./...
govulncheck ./...

# Rust
cargo audit

# Ruby
bundle-audit check --update

Integration

  • security-review — use after this scan to perform AI-driven code analysis; pass --full to that skill to review the entire codebase alongside this full scan
  • CI pipeline — run as a pre-merge gate using --strict to fail when findings are detected; without --strict, scans exit 0 (findings are reported in output only)

Bundled Resources

FilePurpose
scripts/run-scans.shScanner runner with auto-detection and markdown output

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.22%
按下载量换算31

Claude

28.16%
按下载量换算26

Cursor

19.24%
按下载量换算18

Gemini CLI

9.83%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

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

来源信息

继续浏览同类 Skills