为自然搜索排名提供站点审计、内容撰写与竞品分析。
设计与多媒体
security-threat-model
试用获得一份基于代码仓库的应用安全威胁模型,包含具体的滥用路径、信任边界和缓解建议。
它能做什么
针对指定仓库或子路径执行八个步骤:从代码中提取范围、梳理信任边界与入口点、校准攻击者能力(同时显式列出非能力项)、以攻击者目标为线索枚举威胁并映射到资产、按定性的可能性与影响排序、暂停与用户确认关键假设、给出绑定到具体位置的缓解措施,最终输出为 Markdown 文件。所有架构性论断都必须有仓库证据支撑,假设保持显式、未确认的建议会标注为有条件。
什么时候用它
- 在新服务上线前对其代码仓库进行威胁建模
- 枚举鉴权或支付子系统的滥用路径
- 对新的微服务或后台 Worker 做应用安全评审
- 为安全评审生成 `-threat-model.md` 文档
技能文档
Threat Model Source Code Repo
Deliver an actionable AppSec-grade threat model that is specific to the repository or a project path, not a generic checklist. Anchor every architectural claim to evidence in the repo and keep assumptions explicit. Prioritizing realistic attacker goals and concrete impacts over generic checklists.
Quick start
- Collect (or infer) inputs:
- Repo root path and any in-scope paths.
- Intended usage, deployment model, internet exposure, and auth expectations (if known).
- Any existing repository summary or architecture spec.
- Use prompts in
references/prompt-template.mdto generate a repository summary. - Follow the required output contract in
references/prompt-template.md. Use it verbatim when possible.
Workflow
1) Scope and extract the system model
- Identify primary components, data stores, and external integrations from the repo summary.
- Identify how the system runs (server, CLI, library, worker) and its entrypoints.
- Separate runtime behavior from CI/build/dev tooling and from tests/examples.
- Map the in-scope locations to those components and exclude out-of-scope items explicitly.
- Do not claim components, flows, or controls without evidence.
2) Derive boundaries, assets, and entry points
- Enumerate trust boundaries as concrete edges between components, noting protocol, auth, encryption, validation, and rate limiting.
- List assets that drive risk (data, credentials, models, config, compute resources, audit logs).
- Identify entry points (endpoints, upload surfaces, parsers/decoders, job triggers, admin tooling, logging/error sinks).
3) Calibrate assets and attacker capabilities
- List the assets that drive risk (credentials, PII, integrity-critical state, availability-critical components, build artifacts).
- Describe realistic attacker capabilities based on exposure and intended usage.
- Explicitly note non-capabilities to avoid inflated severity.
4) Enumerate threats as abuse paths
- Prefer attacker goals that map to assets and boundaries (exfiltration, privilege escalation, integrity compromise, denial of service).
- Classify each threat and tie it to impacted assets.
- Keep the number of threats small but high quality.
5) Prioritize with explicit likelihood and impact reasoning
- Use qualitative likelihood and impact (low/medium/high) with short justifications.
- Set overall priority (critical/high/medium/low) using likelihood x impact, adjusted for existing controls.
- State which assumptions most influence the ranking.
6) Validate service context and assumptions with the user
- Summarize key assumptions that materially affect threat ranking or scope, then ask the user to confirm or correct them.
- Ask 1–3 targeted questions to resolve missing context (service owner and environment, scale/users, deployment model, authn/authz, internet exposure, data sensitivity, multi-tenancy).
- Pause and wait for user feedback before producing the final report.
- If the user declines or can’t answer, state which assumptions remain and how they influence priority.
7) Recommend mitigations and focus paths
- Distinguish existing mitigations (with evidence) from recommended mitigations.
- Tie mitigations to concrete locations (component, boundary, or entry point) and control types (authZ checks, input validation, schema enforcement, sandboxing, rate limits, secrets isolation, audit logging).
- Prefer specific implementation hints over generic advice (e.g., "enforce schema at gateway for upload payloads" vs "validate inputs").
- Base recommendations on validated user context; if assumptions remain unresolved, mark recommendations as conditional.
8) Run a quality check before finalizing
- Confirm all discovered entrypoints are covered.
- Confirm each trust boundary is represented in threats.
- Confirm runtime vs CI/dev separation.
- Confirm user clarifications (or explicit non-responses) are reflected.
- Confirm assumptions and open questions are explicit.
- Confirm that the format of the report matches closely the required output format defined in prompt template:
references/prompt-template.md - Write the final Markdown to a file named
-threat-model.md(use the basename of the repo root, or the in-scope directory if you were asked to model a subpath).
Risk prioritization guidance (illustrative, not exhaustive)
- High: pre-auth RCE, auth bypass, cross-tenant access, sensitive data exfiltration, key or token theft, model or config integrity compromise, sandbox escape.
- Medium: targeted DoS of critical components, partial data exposure, rate-limit bypass with measurable impact, log/metrics poisoning that affects detection.
- Low: low-sensitivity info leaks, noisy DoS with easy mitigation, issues requiring unlikely preconditions.
References
- Output contract and full prompt template:
references/prompt-template.md - Optional controls/asset list:
references/security-controls-and-assets.md
Only load the reference files you need. Keep the final result concise, grounded, and reviewable.
常见问题
- 会在没有确认的情况下自动产出最终报告吗?
- 不会。第 6 步会暂停并提出 1–3 个有针对性的问题,用于确认范围、部署模型、鉴权方式、暴露面与数据敏感度,然后才进入最终报告环节。
- 产出的是通用安全清单吗?
- 不是。流程明确拒绝通用清单,威胁按攻击者目标组织并关联到具体资产与信任边界,每条结论都要有仓库证据支撑。
- 最终交付物是什么?
- 一份简洁的 Markdown 威胁模型,写入名为 `-threat-model.md` 的文件(取仓库根目录或在范围内子目录的 basename),包含威胁条目、定性优先级,以及已有缓解与建议缓解的区分。
相关技能
通过 OAuth 认证网关管理 Stripe 客户、订阅、发票、产品、价格和支付。
通过 OAuth 代理调用 Twilio API,完成短信发送、语音外呼与电话号资源管理。
通过一次 REST API 调用,向 10 个社交平台发布视频、图片、文字与文档。
通过托管 OAuth 代理访问 YouTube Data API v3,搜索与管理视频、播放列表、频道、订阅和评论。
用可量化的层级、间距、字号、配色与版式规则,绘制并诊断视觉作品。
OpenAI 的更多技能
浏览全部技能套用已发布的设计系统,在 Figma 中搭建或更新整页界面,不再手写硬编码图元。
按阶段流程把代码库转化为 Figma 设计系统:变量、组件、主题与文档。
imagegen
官方为项目生成或编辑位图素材,默认走内置 image_gen 工具,显式要求时切换到 CLI 回退。
从 OpenAI 官方开发者文档获取权威、最新、带引用的指引,覆盖模型选型与升级建议。
基于 Git 历史梳理安全所有权、总线因子、敏感代码风险与共变更集群,并导出可查询的图谱产物。
用模板优先的流程准备环境、创建 C# WinUI 3 应用,并完成构建与真实启动验证。