LabscoMCP early access ↗
openai avatar✓ Official

define-security-policy

part of openai/codex-securityby openai

Writes or reviews the SECURITY.md file that tells Codex Security what matters in a repository: what the system is, who could attack it, which security rules must hold, what counts as a finding and what is out of scope. It asks a few focused questions, shows the exact change, and writes only after you approve.

WHEN TO USE

SCOPE

USE FOR

  • Write a first SECURITY.md for a repository or one component.
  • Check whether an existing SECURITY.md still matches the code.
  • Record which parts or kinds of finding are out of scope.
  • Find nested policies so rules for one component are not missed.

NOT FOR

  • A public page on how to report vulnerabilities: it leaves .github/SECURITY.md and docs/SECURITY.md alone.