SpyBara
Go Premium

security/threat-model.md 2026-03-06 00:38 UTC to 2026-03-07 18:10 UTC

41 added, 0 removed.

2026
Tue 31 06:35 Sat 28 06:26 Fri 27 18:23 Thu 26 18:27 Wed 25 18:24 Mon 23 18:22 Fri 20 00:35 Wed 18 12:23 Tue 17 18:24 Mon 16 18:25 Sat 14 00:32 Fri 13 18:15 Wed 11 00:31 Mon 9 00:34 Sun 8 18:10 Sat 7 18:10 Fri 6 00:38 Thu 5 18:41 Wed 4 18:18 Tue 3 18:20

Improving the threat model

Learn what a threat model is and how editing it improves Codex Security's suggestions.

What a threat model is

A threat model is a short security summary of how your repository works. In Codex Security, you edit it as a project overview, and the system uses it as scan context for future scans, prioritization, and review.

Codex Security creates the first draft from the code. If the findings feel off, this is the first thing to edit.

A useful threat model calls out:

  • entry points and untrusted inputs
  • trust boundaries and auth assumptions
  • sensitive data paths or privileged actions
  • the areas your team wants reviewed first

For example:

Public API for account changes. Accepts JSON requests and file uploads. Uses an internal auth service for identity checks and writes billing changes through an internal service. Focus review on auth checks, upload parsing, and service-to-service trust boundaries.

That gives Codex Security a better starting point for future scans and finding prioritization.

Improving and revisiting the threat model

If you want to improve the results, edit the threat model first. Use it when findings are missing the areas you care about or showing up in places you don't expect. The threat model changes future scan context.

Some users copy the current threat model into Codex, have a conversation to improve it based on the areas they want reviewed more closely, and then paste the updated version back into the web UI.

Where to edit

To review or update the threat model, go to Codex Security scans, open the repository, and click Edit.