一键导入
assistant-security
Analyze threats, vulnerabilities, dependencies, and attack surfaces. Use for explicit security work or changes to auth, input, or sensitive data.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze threats, vulnerabilities, dependencies, and attack surfaces. Use for explicit security work or changes to auth, input, or sensitive data.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Clarify ambiguous or multi-intent requests. Use when the user asks to untangle, structure, or restate what they mean.
Manage durable memory safely. Use for explicit remember, recall, forget, or memory-health requests and stable corrections or preferences.
Review code and re-review fixes until clean. Use for explicit code review or the workflow Review phase; QA runs only when required.
Create or update V1 skills and contracts. Use for skill scaffolding, contract design, or contract-compliance validation.
Run proportional development phases. Use to plan, build, implement, fix, migrate, or refactor project artifacts.
Generate and rank options. Use light mode for quick improvement scans and deep mode for explicit brainstorming or broad exploration.
| name | assistant-security |
| description | Analyze threats, vulnerabilities, dependencies, and attack surfaces. Use for explicit security work or changes to auth, input, or sensitive data. |
| triggers | [{"pattern":"security review|security audit|security analysis","priority":85,"reminder":"This request matches assistant-security. You MUST invoke the Skill tool with skill='assistant-security' BEFORE proceeding."},{"pattern":"security|threat model|vulnerability|attack surface|owasp|cve|dependency check","priority":75,"reminder":"This request matches assistant-security. You MUST invoke the Skill tool with skill='assistant-security' BEFORE proceeding."}] |
| Contract | File | Purpose |
|---|---|---|
| Input | contracts/input.yaml | Analysis type, scope, severity threshold |
| Output | contracts/output.yaml | Findings with severity, remediation, and risk level |
| Phase Gates | contracts/phase-gates.yaml | Scope → Analyze → Report pipeline gates |
| Handoffs | contracts/handoffs.yaml | Subagent dispatch contracts (currently none) |
Rules:
On-demand security analysis. Use when touching auth, inputs, dependencies, or preparing for review.
Identify concrete security risks with evidence, severity, impact, and remediation that can be acted on before release or merge. Keep the analysis practical and company-safe: local-first, no secret exposure, no unapproved external scanners, and no generic security essays.
| Tool | File | When to use |
|---|---|---|
| Threat Model | threat-model.md | New features, auth changes, external integrations. STRIDE analysis. |
| Code Review | code-review.md | Before merging PRs touching auth, input handling, data access. OWASP Top 10. |
| Dependency Audit | dependency-audit.md | Before releases, after adding packages, periodic CVE checks. |
| Attack Surface | attack-surface.md | Starting security work, after adding endpoints/integrations. |
Read the relevant tool file when the situation calls for it.
When to use which tool:
Deep analysis:
For thorough threat modeling, also load prompts/threat-model.md — it provides a detailed prompt pack for comprehensive STRIDE analysis.
Always scan relevant surfaces for:
.env leaks, sensitive logs.Only report checklist items with evidence in the reviewed scope. If a category is relevant but unassessed, list it under residual risk rather than inventing a finding.
### [severity] Short title
- Category: injection | auth bypass | secret exposure | unsafe dependency | etc.
- File: file path or `project-level`
- Description: what the security issue is
- Evidence: file:line/config/dependency/threat path, with secrets redacted
- Attack path: how an attacker or misuse reaches the issue
- Impact: data, integrity, availability, compliance, or privilege impact
- Remediation: smallest useful fix
- Verification: command/test/manual check that would prove the fix
The contract-required fields are severity, category, description, impact, and remediation; include them exactly in every finding. Use lowercase severity values (critical, high, medium, low) when producing structured output.
All tools use a consistent 4-level scale:
Return: