SpyBara
Go Premium

security/plugin/security-hardening.md 2026-11-15 23:01 UTC to 2026-11-16 23:00 UTC

This page contains 8 additions and 16 deletions.

2026
Mon 16 23:00

Propose security hardening

For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.

Use $codex-security:propose-security-hardening to compare structural or architectural changes that address security findings or recurring vulnerability patterns. Start from a completed scan, supplied findings, disclosure or incident reports, assessment documents, or source code. Codex compares the options and their engineering tradeoffs and changes the repository only if you select an option and ask it to implement it.

Prepare the evidence

Provide the workflow with:

  • A scan directory or a collection of findings and reports.
  • The target source tree and revision or snapshot when available.
  • PoCs, traces, incident evidence, or assessment material that supports the findings.
  • Constraints for performance, memory, compatibility, reliability, operations, delivery time, or change scope.

For example, compare a shared authorization check with checks in each handler when several findings involve missing authorization.

Run the workflow

Send a prompt like:

Use $codex-security:propose-security-hardening to analyze [scan directory or finding paths] against [source tree and revision]. Develop evidence-backed structural hardening options with engineering tradeoffs, before-and-after diagrams, a migration plan, and an implementation handoff. Do not modify the repository.

Choose an option

Before choosing an option, check that the proposal:

  • Connects each proposed change to findings, source, and threat-model evidence.
  • Describes the current design and the security invariants the new design should preserve.
  • Compares distinct options, including residual risk, performance, reliability, operations, compatibility, and migration cost.
  • Supports its recommendation with evidence and states assumptions and open questions.
  • Includes rollout, validation, rollback, and implementation guidance.
  • Separates observed facts, inferences, and proposed design properties.

Use hardening guidance from a scan

You can request a hardening portfolio for a standard, deep, or change scan with reportable findings. Codex writes the portfolio to hardening/hardening.md, structured analysis to hardening/hardening.json, and supporting proposals or diagrams under hardening/. The scan links the portfolio from report.md.

Keep the full scan directory together so those links remain usable. To review the individual reports that inform the portfolio, see Write vulnerability reports.