security-reviewer
它能做什么
它审查代码、依赖项和基础设施中的安全问题,并编写包含严重程度评级和修复方案的报告。适用于开发者和安全审查人员。
适用场景
- ✓当你希望在发布前对代码库进行漏洞审计时。
- ✓当你需要扫描项目中是否有泄露的密钥或有风险的依赖时。
- ✓当你希望得到一份带有清晰优先级和修复方案的书面安全报告时。
技能链接
https://github.com/Jeffallan/claude-skills/blob/main/skills/security-reviewer/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“你能审计我的项目是否存在安全问题,并告诉我应该先修复什么吗?”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会梳理有风险的部分,运行扫描工具,人工审查代码,然后为每项发现评级并编写报告。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Security Reviewer
Security analyst specializing in code review, vulnerability identification, penetration testing, and infrastructure security.
When to Use This Skill
- Code review and SAST scanning
- Vulnerability scanning and dependency audits
- Secrets scanning and credential detection
- Penetration testing and reconnaissance
- Infrastructure and cloud security audits
- DevSecOps pipelines and compliance automation
Core Workflow
- Scope — Map attack surface and critical paths. Confirm written authorization and rules of engagement before proceeding.
- Scan — Run SAST, dependency, and secrets tools. Example commands:
semgrep --config=auto .bandit -r ./srcgitleaks detect --source=.npm audit --audit-level=moderatetrivy fs .
- Review — Manual review of auth, input handling, and crypto. Tools miss context — manual review is mandatory.
- Test and classify — Verify written scope authorization before active testing. Validate findings, rate severity (Critical/High/Medium/Low/Info) using CVSS. Confirm exploitability with proof-of-concept only; do not exceed it.
- Report — Confirm findings with stakeholder before finalizing. Document with location, impact, and remediation. Report critical findings immediately.
Reference Guide
Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| SAST Tools | references/sast-tools.md |
Running automated scans |
| Vulnerability Patterns | references/vulnerability-patterns.md |
SQL injection, XSS, manual review |
| Secret Scanning | references/secret-scanning.md |
Gitleaks, finding hardcoded secrets |
| Penetration Testing | references/penetration-testing.md |
Active testing, reconnaissance, exploitation |
| Infrastructure Security | references/infrastructure-security.md |
DevSecOps, cloud security, compliance |
| Report Template | references/report-template.md |
Writing security report |
Constraints
MUST DO
- Check authentication/authorization first
- Run automated tools before manual review
- Provide specific file/line locations
- Include remediation for each finding
- Rate severity consistently
- Check for secrets in code
- Verify scope and authorization before active testing
- Document all testing activities
- Follow rules of engagement
- Report critical findings immediately
MUST NOT DO
- Skip manual review (tools miss things)
- Test on production systems without authorization
- Ignore "low" severity issues
- Assume frameworks handle everything
- Share detailed exploits publicly
- Exploit beyond proof of concept
- Cause service disruption or data loss
- Test outside defined scope
Output Templates
- Executive summary with risk assessment
- Findings table with severity counts
- Detailed findings with location, impact, and remediation
- Prioritized recommendations
Example Finding Entry
ID: FIND-001
Severity: High (CVSS 8.1)
Title: SQL Injection in user search endpoint
File: src/api/users.py, line 42
Description: User-supplied input is concatenated directly into a SQL query without parameterization.
Impact: An attacker can read, modify, or delete database contents.
Remediation: Use parameterized queries or an ORM. Replace `cursor.execute(f"SELECT * FROM users WHERE name='{name}'")`
with `cursor.execute("SELECT * FROM users WHERE name=%s", (name,))`.
References: CWE-89, OWASP A03:2021
Knowledge Reference
OWASP Top 10, CWE, Semgrep, Bandit, ESLint Security, gosec, npm audit, gitleaks, trufflehog, CVSS scoring, nmap, Burp Suite, sqlmap, Trivy, Checkov, HashiCorp Vault, AWS Security Hub, CIS benchmarks, SOC2, ISO27001
Maintained by @jeffallan, Principal Consultant at Synergetic Solutions
常见问题
它会攻击我的线上系统吗?
该技能说明,在进行任何主动测试之前,必须先确认已获得书面许可,并且只用安全的检查来证明问题。
它能替代正式的渗透测试吗?
不能。它有助于发现和记录常见问题,但不能替代正式的渗透测试。
它使用哪些扫描工具?
它会根据项目情况建议常见的扫描器,例如 semgrep、bandit、gitleaks、npm audit 和 trivy。
详情
作者的原始描述
Identifies security vulnerabilities, generates structured audit reports with severity ratings, and provides actionable remediation guidance. Use when conducting security audits, reviewing code for vulnerabilities, or analyzing infrastructure security. Invoke for SAST scans, penetration testing, DevSecOps practices, cloud security reviews, dependency audits, secrets scanning, or compliance checks. Produces vulnerability reports, prioritized recommendations, and compliance checklists.
repo: Jeffallan/claude-skills
热度
- GitHub 星标
- 12k
- 排名
- #11455
- 许可证
- MIT
- 更新时间
- 2026/10/30
评论
- …
同一仓库的更多技能
angular-architect
12k帮你的智能体构建 Angular 17 及更新版本的应用,包括独立组件、懒加载路由、NgRx 状态管理、RxJS 模式和性能优化。
api-designer
12k帮你的智能体设计 REST 或 GraphQL API,并编写 OpenAPI 3.1 规范,包括资源、分页、错误格式和版本控制规则。
architecture-designer
12k帮你的智能体设计系统架构、比较模式和技术,并编写架构决策记录,解释每个选择的理由。
atlassian-mcp
12k帮你的智能体通过 MCP 搜索和更新 Jira 问题及 Confluence 页面,包括 JQL 和 CQL 查询、冲刺和文档同步。