Task boundary
The first lines define one outcome and the environment in which it must be achieved.
The interactive tools could not load. Reload this page; the guides and source links are still available.
Security / Original task brief
Map assets, actors, trust boundaries, abuse paths, mitigations, and residual risk against the actual implementation.
A change introduces authentication, uploads, external URLs, secrets, payments, AI calls, webhooks, or new data access.
Task
Threat-model {{change}} in {{deployment_context}}.
Sensitive assets
{{sensitive_assets}}
Method
1. Inspect the real data flow and name every trust boundary, storage location, network hop, privilege transition, and human approval point.
2. Enumerate realistic attacker goals and abuse cases for identity, authorization, injection, SSRF, file handling, secrets, cost amplification, privacy, and availability.
3. Map existing controls to each abuse path and verify them in code or configuration. Mark unknown controls as unknown.
4. Propose the smallest preventive, detective, and recovery controls. Prefer fail-closed defaults and explicit limits.
5. Identify how each high-risk control can be tested before launch and monitored afterward.
Evidence to return
- Text data-flow diagram and trust-boundary table.
- Prioritized threats with preconditions, impact, evidence, and mitigation.
- Verification plan for high and critical risks.
- Residual risks requiring owner acceptance.
Stop conditions
Do not claim compliance, safety, or complete coverage. Stop launch recommendation when a critical trust boundary cannot be inspected or a cost-bearing endpoint lacks authentication, rate limits, and a hard budget boundary.Variables
{{change}}{{sensitive_assets}}{{deployment_context}}Keep unknowns explicit. Remove a section only when it truly does not apply; do not replace evidence requirements with a request for confidence.
Why this prompt is structured this way
The first lines define one outcome and the environment in which it must be achieved.
The method asks the coding agent to inspect and execute rather than jump directly to a plausible patch.
The result must include paths, commands, measurements, or browser observations that another person can check.
The agent is told when not to guess, broaden scope, weaken a guard, or overstate completion.
Related prompts
Inspect the actual diff in repository context and report only actionable defects with severity, evidence, and a concrete failure scenario.
Use when: A branch or working tree is ready for an independent correctness, security, and maintainability review.
Open promptExercise a real user flow with semantic, focus, state, contrast, target-size, and responsive evidence rather than a static checklist alone.
Use when: A web interface has a form, dialog, menu, custom control, upload, or task flow that must work beyond pointer input.
Open prompt