Token导航 LogoToken导航

Agent Skill · 研究检索

security-review(安全审查)

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

security-review 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 65,351。

总安装 282周安装 12GitHub Stars 公开资料未说明下载 99核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

security-review 用于辅助安全审计、权限检查和常见漏洞排查,适合让 Agent 梳理敏感配置或生成复核清单。适用于研究检索类任务,可协助分析鉴权逻辑与依赖风险。通过 npx skills add 命令从指定 GitHub 仓库安装,具体路径为 skills/security-review。

使用时不能将工具输出直接当作最终结论,涉及密钥或生产系统时应先确认最小权限。建议结合原始 README 文档进一步核验功能细节与使用边界。

来源仓库内路径:skills/security-review

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/nayuta/agent-skills --skill security-review;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

security-review 怎么安装?

在终端执行 npx skills add https://github.com/nayuta/agent-skills --skill security-review。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

security-review 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

security-review 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

security-review 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

security-review 用的人多吗?

公开数据是累计安装 282 次,近一周安装 12 次,下载 99 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

security-review 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
security-review

安全审查 · 本页

282—接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Security Review

Purpose

Systematically analyze code for security vulnerabilities using structured AI reasoning. Produces a confidence-filtered report with actionable remediation.

Scan Modes

ModeFlagSource of files to review
Diff (default)*(none)*Files changed in the current branch (git diff)
Full codebase--fullAll tracked source files (git ls-files)

Use diff mode (default) for pre-merge reviews to focus on what changed. Use --full when onboarding a new codebase, performing a periodic audit, or when no branch diff is available.

Workflow

Phase 1: Repository Context

Before analyzing file content, build context to reduce false positives:

  1. Read key project files: CLAUDE.md, README.md, CONTRIBUTING.md, SECURITY.md
  2. Identify tech stack, frameworks, ORM, auth library, and HTTP server
  3. Note existing security patterns (middleware, validation helpers, auth guards)
  4. Identify sensitive file types for this project (config, migrations, API handlers)

Phase 2: Gather Files to Review

Default mode (diff only)

Collect the diff to review:

# Changes vs. main branch
git diff --merge-base origin/main

# Or vs. current remote HEAD
git diff origin/HEAD...HEAD

# Fallback: uncommitted changes
git diff HEAD

If the diff is empty, report "No changes to review" and stop.

Also note which files were changed:

git diff --name-only origin/main...HEAD
Full mode (--full)

Collect all tracked source files instead of the diff:

git ls-files

If the repository is not a git repo, use:

find . -type f \
  ! -path '*/.git/*' \
  ! -path '*/node_modules/*' \
  ! -path '*/__pycache__/*' \
  ! -path '*/vendor/*' \
  ! -path '*/.venv/*'

Filter out binary, generated, and non-source files (images, compiled artifacts, lock files, minified assets). Focus on files likely to contain executable logic: source code, configuration templates, infrastructure definitions, and scripts.

If the file set is large (> 200 files), prioritise by security sensitivity:

  1. Auth, session, and permission handlers
  2. API route handlers and controllers
  3. Database query builders and ORMs
  4. Configuration files and environment templates
  5. Remaining source files

Note which files are being reviewed in the Phase 5 report header.

Phase 3: Vulnerability Analysis

Systematically check each reviewed file against all 8 categories below. Work through each category in order. For each finding, record:

  • Category and sub-type
  • File and line number
  • Evidence (the exact code snippet)
  • Impact (what an attacker could do)
  • Confidence (1–10, explained in Phase 4)
Category 1: Secrets and Credentials

Patterns to find:

  • Hardcoded API keys, tokens, passwords, private keys in source
  • Credentials embedded in connection strings or URLs
  • Secrets committed to config files not in .gitignore
  • Environment variable values (not references) in source code

Signs it is NOT a finding:

  • Value contains example, test, dummy, placeholder, your-key-here
  • File is in tests/, fixtures/, examples/, docs/
  • Key is a public key or certificate (not private)
Category 2: Injection

Sub-types to check:

Sub-typePatterns
SQL injectionString concatenation or interpolation into query, raw query builders
Command injectionexec, spawn, system, shell_exec with user-controlled input
LDAP injectionUnescaped user input in LDAP filters
Template injectionUser input rendered through template engines
XPath / XML injectionUser input in XPath expressions or XML parsers
NoSQL injectionUnvalidated objects passed to find(), aggregate(), etc.

Signs it is NOT a finding:

  • Parameterized queries / prepared statements used
  • Input validated to a strict allowlist before use
  • Query builder with explicit escaping (e.g., knex, sqlalchemy ORM methods)
Category 3: Authentication and Authorization

Check for:

  • Missing authentication guards on new endpoints or routes
  • Insecure direct object reference (IDOR): resource ID taken from user input without ownership check
  • Privilege escalation: role or permission check missing or bypassable
  • Broken JWT validation: algorithm confusion (alg: none), missing signature check, missing expiry check
  • Session fixation or session not invalidated on logout/privilege change
  • Password hashing: plaintext storage, MD5/SHA1 without salt

Signs it is NOT a finding:

  • Auth middleware applied at router level (covers all child routes)
  • Resource fetched with user ID scoped query (WHERE user_id = current_user_id)
Category 4: Cryptography

Check for:

  • Weak algorithms: MD5, SHA1, DES, 3DES, RC4 for security purposes
  • Static IVs or nonces used with AES-GCM or ChaCha20
  • Insufficient key lengths (RSA < 2048 bits, EC < 256 bits)
  • Math.random() or rand() used for security tokens, session IDs, or CSRF tokens
  • Custom crypto implementation replacing standard library

Signs it is NOT a finding:

  • Weak hash used only for cache keys, ETags, or content deduplication (not security)
  • Algorithm is for checksum / data integrity, not authentication
Category 5: Input Validation and Output Encoding

Check for:

  • Cross-site scripting (XSS): user input rendered as HTML without escaping
  • Server-side request forgery (SSRF): user-supplied URL fetched server-side without allowlist
  • Path traversal: user input used in file paths without normalization
  • Open redirect: user-controlled redirect URL without domain validation
  • Unsafe deserialization: pickle.loads, yaml.load (without Loader), eval, JSON.parse on untrusted input
  • ReDoS: unbounded regex on user input

Signs it is NOT a finding:

  • Framework auto-escapes template output (check framework docs)
  • URL validated against explicit allowlist of known-good domains
  • File path resolved with realpath and checked to remain within base directory
Category 6: Sensitive Data Exposure

Check for:

  • PII, passwords, tokens logged to application logs
  • Sensitive fields returned in API responses that should be excluded
  • Detailed error messages (stack traces, internal paths, DB errors) returned to client
  • Sensitive data stored in browser localStorage or cookies without HttpOnly/Secure flags

Signs it is NOT a finding:

  • Logging in a debug-only path behind feature flag
  • Error handler strips stack traces in production builds
Category 7: Dependency Risks

Check for:

  • New packages added with known CVEs (cross-reference security-scan output)
  • npm install --legacy-peer-deps or pip install --trusted-host bypassing integrity checks
  • Package version pinned to a compromised version range
  • Direct use of eval-style packages (node-serialize, serialize-javascript < 3.1)

Signs it is NOT a finding:

  • Package used only in dev/test environment
  • Vulnerability does not affect the code path used
Category 8: Security Configuration

Check for:

  • New endpoints missing rate limiting or authentication middleware
  • CORS wildcard (Access-Control-Allow-Origin: *) on authenticated endpoints
  • Disabled CSRF protection
  • DEBUG=True or equivalent in production configuration
  • TLS verification disabled (verify=False, InsecureSkipVerify: true)
  • Exposed admin panels, metrics endpoints, or debug routes without access control

Signs it is NOT a finding:

  • Wildcard CORS on a fully public, read-only API
  • TLS skip in test environment code never deployed to production

Phase 4: False Positive Filtering

For each potential finding, apply the confidence score:

ScoreMeaning
10Exploitable with certainty, clear reproduction path
9Very likely exploitable, minor assumption required
8Likely exploitable, context supports it
7Possibly exploitable, but requires more investigation
≤6Probable false positive or low-impact edge case

Only include findings with confidence ≥ 8 in the final report.

Factors that increase confidence:

  • User input flows directly to sink with no sanitization in the reviewed code
  • New code, not an existing pattern (reduces "was already there" dismissals)
  • Impact is high (RCE, auth bypass, data exfiltration)

Factors that decrease confidence:

  • Framework or library likely handles it transparently
  • Existing middleware or validation covers the case
  • Finding is in test or documentation code

Phase 5: Report

If there are no findings with confidence ≥ 8:

## Security Review

**Date**: <ISO 8601>
**Mode**: diff | full
**Files reviewed**: N
**Findings**: None above confidence threshold.

No high-confidence security vulnerabilities found in the reviewed files.
Run security-scan for tool-based secret and dependency checks.

Otherwise, use this format:

## Security Review

**Date**: <ISO 8601>
**Mode**: diff | full
**Branch**: <branch-name> ← omit in full mode if not on a feature branch
**Files reviewed**: N
**High-confidence findings**: N (Critical: N | High: N | Medium: N)

---

## Critical

### [SEC-001] <Vulnerability type> in <component>

**File**: `path/to/file.ts:42`
**Category**: Injection > SQL Injection
**Confidence**: 9/10

**Evidence**:
\`\`\`typescript
const result = db.query(`SELECT * FROM users WHERE id = ${req.params.id}`);
\`\`\`

**Impact**: Attacker can read, modify, or delete arbitrary database records.

**Remediation**:
\`\`\`typescript
const result = db.query("SELECT \* FROM users WHERE id = $1", [req.params.id]);
\`\`\`

---

## High

### [SEC-002] ...

---

## Medium

### [SEC-003] ...

---

## Recommended Next Steps

1. Fix Critical and High findings before merging
2. Run `security-scan` for dependency and secret scanning
3. Add regression tests for confirmed vulnerabilities

Integration

  • Run security-scan first to catch secrets and known CVEs in dependencies
  • Use this skill for AI reasoning over logic flaws and design issues
  • Together they form a complete pre-merge security gate
  • For a full codebase audit, run both with --full:

- /security-scan --full then /security-review --full

References

平台分布

Codex

35.43%
按下载量换算35

Claude

32.68%
按下载量换算32

Cursor

19.58%
按下载量换算19

Gemini CLI

9.15%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills