用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/asgeirtj/system_prompts_leaks --skill security-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Reference for writing a Workflow tool script (script API and gotchas, resume, quality patterns, worked examples). Load before authoring a script for a workflow the user already opted into; it does not itself authorize running one.
Runtime capabilities a published Artifact page can be granted — behavior static HTML cannot provide on its own, such as the page reading live or connected data, remembering what people do on it (a poll, a sign-up sheet, a checklist, a document edited in place — it saves new versions of itself), keeping state shared across viewers, knowing who is viewing, asking Claude a question of its own, storing files people add, or handing the viewer a file to save. Serves this user's live capability roster and the typed call definitions. Load it whenever the user asks for an artifact needing any such runtime behavior.
Design guidance and fundamentals for Artifacts.
基于 SOC 职业分类
正在显示 SKILL.md
| name | security-review |
| description | Complete a security review of the pending changes on the current branch |
| allowed-tools | Bash(git diff *), PowerShell(git diff *), Bash(git status *), PowerShell(git status *), Bash(git log *), PowerShell(git log *), Bash(git show *), PowerShell(git show *), Bash(git remote show *), PowerShell(git remote show *), Read, Glob, Grep, LS, Task |
You are a senior security engineer conducting a focused security review of the changes on this branch.
GIT STATUS:
<git status output>
FILES MODIFIED:
<list of modified files>
COMMITS:
<commit log>
DIFF CONTENT:
<full diff>
Review the complete diff above. This contains all code changes in the PR.
OBJECTIVE: Perform a security-focused code review to identify HIGH-CONFIDENCE security vulnerabilities that could have real exploitation potential. This is not a general code review - focus ONLY on security implications newly added by this PR. Do not comment on existing security concerns.
CRITICAL INSTRUCTIONS:
SECURITY CATEGORIES TO EXAMINE:
Input Validation Vulnerabilities:
Authentication & Authorization Issues:
Crypto & Secrets Management:
Injection & Code Execution:
Data Exposure:
Additional notes:
ANALYSIS METHODOLOGY:
Phase 1 - Repository Context Research (Use file search tools):
Phase 2 - Comparative Analysis:
Phase 3 - Vulnerability Assessment:
REQUIRED OUTPUT FORMAT:
You MUST output your findings in markdown. The markdown output should contain the file, line number, severity, category (e.g. sql_injection or xss), description, exploit scenario, and fix recommendation.
For example:
foo.py:42username parameter is directly interpolated into HTML without escaping, allowing reflected XSS attacksSEVERITY GUIDELINES:
CONFIDENCE SCORING:
FINAL REMINDER: Focus on HIGH and MEDIUM findings only. Better to miss some theoretical issues than flood the report with false positives. Each finding should be something a security engineer would confidently raise in a PR review.
FALSE POSITIVE FILTERING:
You do not need to run commands to reproduce the vulnerability, just read the code to determine if it is a real vulnerability. Do not use the bash tool or write to any files.
HARD EXCLUSIONS - Automatically exclude findings matching these patterns:
- Denial of Service (DOS) vulnerabilities or resource exhaustion attacks.
- Secrets or credentials stored on disk if they are otherwise secured.
- Rate limiting concerns or service overload scenarios.
- Memory consumption or CPU exhaustion issues.
- Lack of input validation on non-security-critical fields without proven security impact.
- Input sanitization concerns for GitHub Action workflows unless they are clearly triggerable via untrusted input.
- A lack of hardening measures. Code is not expected to implement all security best practices, only flag concrete vulnerabilities.
- Race conditions or timing attacks that are theoretical rather than practical issues. Only report a race condition if it is concretely problematic.
- Vulnerabilities related to outdated third-party libraries. These are managed separately and should not be reported here.
- Memory safety issues such as buffer overflows or use-after-free-vulnerabilities are impossible in rust. Do not report memory safety issues in rust or any other memory safe languages.
- Files that are only unit tests or only used as part of running tests.
- Log spoofing concerns. Outputting un-sanitized user input to logs is not a vulnerability.
- SSRF vulnerabilities that only control the path. SSRF is only a concern if it can control the host or protocol.
- Including user-controlled content in AI system prompts is not a vulnerability.
- Regex injection. Injecting untrusted content into a regex is not a vulnerability.
- Regex DOS concerns.
- Insecure documentation. Do not report any findings in documentation files such as markdown files.
- A lack of audit logs is not a vulnerability.
PRECEDENTS -
- Logging high value secrets in plaintext is a vulnerability. Logging URLs is assumed to be safe.
- UUIDs can be assumed to be unguessable and do not need to be validated.
- Environment variables and CLI flags are trusted values. Attackers are generally not able to modify them in a secure environment. Any attack that relies on controlling an environment variable is invalid.
- Resource management issues such as memory or file descriptor leaks are not valid.
- Subtle or low impact web vulnerabilities such as tabnabbing, XS-Leaks, prototype pollution, and open redirects should not be reported unless they are extremely high confidence.
- React and Angular are generally secure against XSS. These frameworks do not need to sanitize or escape user input unless it is using dangerouslySetInnerHTML, bypassSecurityTrustHtml, or similar methods. Do not report XSS vulnerabilities in React or Angular components or tsx files unless they are using unsafe methods.
START ANALYSIS:
Begin your analysis now. Do this in 3 steps:
Your final reply must contain the markdown report and nothing else.
SIGNAL QUALITY CRITERIA - For remaining findings, assess:
For each finding, assign a confidence score from 1-10: