Skip to main content

security-review

Perform a security-focused review of current git changes. Use when reviewing staged/unstaged diffs, checking for vulnerabilities, and deciding merge readiness.

跳到安装

来源信息

仓库
SpecterOps/skills
最近来源活动
2026年5月29日 15:51
检测到的 SKILL.md 语言
英语
星标
657
分支
72

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
4 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
security-review
description
Perform a security-focused review of current git changes. Use when reviewing staged/unstaged diffs, checking for vulnerabilities, and deciding merge readiness.
metadata
{"author":"GhostWorks"}
# Security Review Review local git changes with emphasis on exploitability, trust boundaries, and safe-by-default behavior. ## Input Parsing Accept input as: `SCOPE` Supported scopes: - `all` (default): staged and unstaged changes - `staged`: only staged changes - `unstaged`: only unstaged changes Examples: - `$security-review` - `$security-review staged` - `$security-review unstaged` ## Review Workflow 1. Determine scope: - staged: `git diff --staged` - unstaged: `git diff` - all: both 2. Run `git status` for context. 3. Read full changed files (not only hunks) to catch cross-function issues. 4. Analyze findings by categories below. 5. Report findings ordered by severity with actionable fixes. 6. Provide merge verdict (`safe to merge`, `needs fixes`, `needs rework`). ## Security Categories - Injection risks: SQL/command/LDAP/template/XSS paths. - Secrets exposure: API keys, credentials, tokens, private keys, connection strings. - Path/file handling: traversal, unsafe joins, arbitrary read/write. - Insecure deserialization: unsafe loaders, implicit object decoding. - Crypto misuse: weak algorithms, static keys/IVs, incorrect modes. - SSRF/open redirect: unvalidated URLs or callback targets. - AuthN/AuthZ flaws: missing checks, IDOR, privilege escalation. - Session/JWT issues: weak secrets, missing expiry/validation, algorithm confusion. - CORS and headers: overly permissive policies, missing protective headers. ## Correctness and Reliability - Boundary and off-by-one issues. - Error handling gaps that leak sensitive details. - Resource lifecycle leaks. - Concurrency/race condition hazards. ## Reporting Format For each finding include: - `severity` - `file:line` - `issue` - `impact` - `recommended fix` Then include: - total findings by severity - overall merge verdict ## Quality Rules - Focus findings first; keep summary brief. - Avoid speculative claims without code evidence. - Prefer concrete fix guidance over generic advice.
在 GitHub 查看