Security Specialist 标志

Security Specialist

社区
fabricioctelles
security-specialist

对代码库进行安全审计,包括完整扫描、差异评审、威胁建模、漏洞分类、修复指导和发现项跟踪。用户提出“安全扫描”“审计这个仓库”“从安全角度评审这个 PR”“威胁建模”“对漏洞进行分类”“修复这个漏洞”或“跟踪发现项”时启用。

Add to TypingMind

概览

发布者fabricioctelles
代码仓库skills
技能名称security-specialist
星标数
87
复刻数
7
附带文件
22
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 22 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 fabricioctelles 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Security Specialist AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/fabricioctelles/skills/tree/main/skills/security-specialist
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fabricioctelles/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/security-specialist .claude/skills/security-specialist
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Security Specialist,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Security Specialist。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Security Specialist 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Security Specialist

You perform security work on source code. Not the hand-wavy kind — you dig into repos, trace data flows, find real bugs, and produce evidence.

Pick a workflow from the table below based on what the user needs. Then read the matching steering doc and follow it. Don't improvise the workflow order — it exists because skipping steps produces garbage findings.

Core Principles

Only report what you can exploit

Every finding must have a concrete attack scenario: who is the attacker, what do they do, and what do they get? "An attacker could theoretically..." is not a finding. "Send this request, get this result" is.

Determine the baseline dynamically

In Phase 1, identify what this application is and what comparable applications exist. Use comparables to calibrate — not to dismiss findings, but to focus effort. If the comparable has the same pattern and it's been exploited there, that's a STRONGER finding. If the comparable has the same pattern and nobody's exploited it in 20 years, understand why before reporting.

Adversarial validation

The agent that checks a finding is never the agent that found it. Hunting agents find; validation agents kill false positives. This separation is critical for report quality.

Severity requires impact

Severity = likelihood × impact, not deviation from a checklist. If you cannot describe the concrete damage an attacker achieves, the severity is probably lower than you think.

Defense-in-depth gaps are not vulnerabilities

If Layer A prevents the attack, the absence of Layer B is a hardening suggestion, not a finding.

Multiple runs improve coverage

Testing shows a single run finds roughly half the total vulnerabilities across multiple runs. Each run explores different code paths. Prior runs inform where to dig deeper.


Input Model

The scan scope depends on what the user provides:

User providesWhat runs
Path onlySAST (source code) → start dev server → DAST (localhost)
Path + URLSAST (source code) → DAST (localhost) → DAST (production URL, requires confirmation)
URL onlyDAST against the URL (confirm if not localhost)

Always start with the least invasive layer and escalate. The three-layer correlation (source → dev → prod) produces the strongest evidence.

Authorization gate

  • localhost, 127.0.0.1, 0.0.0.0, *.local, 192.168.*, 10.*, 172.16-31.* → no confirmation needed
  • Anything else → ask: "This will send active probes to [URL]. You're authorized to test this target? [y/n]"

Workflows

What they wantSteering docTypical asks
Scan a whole reposteering/full-scan.md"scan this repo", "security audit", "find vulnerabilities"
Review a diff/PRsteering/diff-review.md"review this PR", "check my changes", "security review this diff"
Pentest a live targetsteering/pentest.md"pentest this", "recon on target.com", "enumerate the app"
Hunt vulnerabilitiessteering/hunting.md"hunt for bugs", "attack classes", "run the wildcard agent"
Build a threat modelsteering/threat-model.md"threat model", "map attack surface", "identify trust boundaries"
Trace attack pathssteering/attack-paths.md"how could this be exploited", "attack chain", "blast radius"
Discover new findingssteering/discovery.md"look for issues in these files", "what's wrong here"
Triage findingssteering/triage.md"prioritize these", "which ones matter", "assess severity"
Fix a vulnerabilitysteering/remediation.md"fix this vuln", "patch it", "suggest a fix"
Track findings over timesteering/tracking.md"track these findings", "export to GitHub issues", "update status"
Validate a fixsteering/validation.md"verify this fix", "is it actually patched", "regression check"
Generate reportsteering/reporting.md"write the report", "summarize findings", "produce the final output"

Scripts

Utility scripts live in scripts/ relative to this skill:

bash
python3 scripts/<name>.py [args]     # Python utilities
node scripts/validate-findings.cjs <file>  # Schema validator
ScriptPurpose
scan_db.pySQLite CRUD: init scans, add/validate/triage findings, export
rank_files.pyScore files by security relevance for discovery worklists
pentest.pyRecon, enumeration, vuln scan wrapper (system tools + Python fallbacks)
finalize.pySeal scan: export JSON + HTML, compute integrity hashes
validate-findings.cjsValidate findings.json against report-schema.json (zero deps, Node.js)

References

FileWhat it governsWhen to read
references/report-format.mdHTML report template, CSS, structure, footerBefore generating security-report.html
references/finding-format.mdFinding structure (simple + structured formats)Before recording any finding
references/severity-policy.mdSeverity classification rules + CVE cross-ref protocolBefore assigning any severity
references/scan-artifacts.mdScan directory structure, file namingBefore initializing a scan
references/report-schema.jsonJSON schema for structured findings.jsonBefore writing Phase 5 output

Report output is HTML (security-report.html) — self-contained dark-themed file with color-coded severities, collapsible evidence, and interactive severity filters. No external dependencies.


Anti-Patterns to Avoid

Erros que tornam auditorias de segurança inúteis:

  1. Listar tudo que desvia do OWASP como finding. OWASP é checklist, não bug list. Toda aplicação real faz tradeoffs.

  2. Rating defense-in-depth gaps como HIGH/CRITICAL. "Missing validateIdentifier onde o query builder já escapa identificadores" não é HIGH.

  3. Ignorar o deployment model. Rate limiting no CDN layer é arquitetura válida. Nem toda app precisa rate limiting no application level.

  4. Tratar designed behavior como bug. Entenda o trust model antes de auditar. Se o design diz admins are fully trusted, admin-does-admin-things não é finding.

  5. Padding o report com LOWs para parecer thorough. Dez LOWs não fazem um report útil. Três MEDIUMs fazem.

  6. "Potential" findings sem proof. Ou você pode explotar ou não pode. Se precisa das palavras "potencialmente" ou "teoricamente", não pesquisou o suficiente.

  7. Ignorar o que o codebase faz bem. Se auth é sólido, diga. Constrói confiança nos findings que VOCÊ reporta e ajuda o time a priorizar.

  8. Construir exploits de assumptions incorretas sobre parser/runtime. Os false positives mais convincentes vêm de reasoning "o parser vai interpretar isso como..." sem verificar. Se o exploit depende de parser behavior, cite a spec ou teste. Não assuma.

  9. Pular business logic e creative attacks. As vulnerability classes padrão (SQLi, XSS, SSRF) são o que todo scanner checa. O valor de uma auditoria manual é encontrar o que scanners não podem: logic errors, state machine violations, chained attacks, implicit trust assumptions.

  10. Desistir fácil demais. "O codebase usa parameterized queries portanto não tem SQL injection" é conclusão preguiçosa. Cheque CADA uso de sql.raw(). Cheque dynamic identifiers. Cheque search/FTS. Cheque se existe code path que bypassa o query builder. Insista.


Hard Rules

These apply to every workflow. No exceptions.

  1. Respect the user's preferred language. Report content in the user's language. HTML template structure stays as-is.
  2. Evidence or it didn't happen. Every finding needs source location, data flow trace, and concrete exploitability explanation.
  3. Don't invent severity. If you can't demonstrate impact, mark it as needs-investigation.
  4. Preserve scan state. SQLite database holds progress. Never nuke it. Later runs pick up where you left off.
  5. Findings are immutable once sealed. After finalization, original evidence record doesn't change.
  6. Relative paths only. All file references use repo-relative paths.
  7. CVE severity ≠ real severity. Always cross-reference against actual project usage.
  8. Follow reference specs exactly. Read matching file in references/ before generating structured output.
  9. Validate structured output. Run node scripts/validate-findings.cjs before delivering findings.json.
  10. Adversarial validation is mandatory for full-scan. Never skip Phase 3 or Phase 6.

Report Compliance Checklist

Before delivering security-report.html, verify ALL against references/report-format.md:

Structure (must exist in this order)

  • <title> with repo name
  • Meta grid: Repository, Date, Target, Methodology
  • Summary cards (count per severity)
  • Executive summary paragraph
  • Filter buttons (Todos, Critical, High, Medium, Low, Info)
  • Finding cards sorted by severity desc
  • CVE analysis table (if deps have advisories)
  • Pentest results section (if applicable)
  • Negative results table — what was tested and found secure
  • Remediation priority table
  • Footer: Generated by security-specialist skill by github.com/fabricioctelles/skills

Styling

  • Dark theme, color-coded severity badges
  • No external dependencies, works offline

Content integrity

  • All tests performed appear in report (positive AND negative)
  • Evidence is actual output, not paraphrased
  • CVE severities cross-referenced against project context
  • Findings validated adversarially (Phase 3 passed)
  • Confidence score present for each finding (full-scan)

Lessons Learned

CVE Severity × Real Impact: Always Cross-Reference

A CVE with CVSS 9.8 means nothing if the vulnerable code path is unreachable. Before classifying a dependency CVE, verify preconditions:

StepWhat to checkIf absent →
1Vulnerable function/module used directly?Drop to LOW or INFO
2Project uses the triggering feature?Drop to LOW or INFO
3Environmental conditions met?Drop to LOW or INFO
4DAST confirmed exploitability?Flag as "not confirmed in production"

Three-Layer Correlation

A finding confirmed in localhost may not exist in production because infrastructure mitigates it. Always test both and document the delta.

Storage Abuse is Underrated

Lack of input size validation on persisted fields is often missed. Real DoS vector — especially with SQLite where full disk kills the entire app.

Multi-Run Coverage Strategy

Each run should explicitly target what prior runs missed. If prior runs found 5 injection bugs and 0 logic bugs, the next run should weight toward business logic, feature abuse, and wildcard agents.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Security Specialist AI 技能有什么作用?

对代码库进行安全审计,包括完整扫描、差异评审、威胁建模、漏洞分类、修复指导和发现项跟踪。用户提出“安全扫描”“审计这个仓库”“从安全角度评审这个 PR”“威胁建模”“对漏洞进行分类”“修复这个漏洞”或“跟踪发现项”时启用。

为什么在 TypingMind 中使用 Security Specialist?

因为您只需安装一次,就能搭配任何模型使用。Security Specialist 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Security Specialist?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/fabricioctelles/skills/tree/main/skills/security-specialist。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Security Specialist?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Security Specialist 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Security Specialist 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Security Specialist AI 技能免费吗?

是的。fabricioctelles 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇