SpyBara
Go Premium

use-cases/dependency-incident-audits.md 2026-06-04 01:09 UTC to 2026-06-05 18:45 UTC

1 added, 1 removed.

2026
Wed 10 07:38 Tue 9 18:50 Sat 6 00:58 Fri 5 18:45 Thu 4 01:09 Wed 3 19:27 Tue 2 19:22

Audit dependency incidents | Codex use cases

Codex use cases

Codex

Codex use case

Audit dependency incidents

Turn a public package advisory into a safe repo-audit plan.

Difficulty Advanced

Time horizon 1h

Use Codex to turn a public package or supply chain advisory into a read-only audit, then inspect manifests, lock files, CI workflows, and scripts without running untrusted code.

Best for

  • Engineering and security teams responding to public package or supply chain advisories.
  • Maintainers who need to check lock files, scripts, CI permissions, and caches before changing dependencies.
  • Incident reviews where Codex should gather evidence without installing packages or running untrusted code.

Contents

← All use cases

Copy page Export as PDF

Use Codex to turn a public package or supply chain advisory into a read-only audit, then inspect manifests, lock files, CI workflows, and scripts without running untrusted code.

Advanced

1h

Related links

Codex Security Agent approvals and security Codex cyber safety

Best for

  • Engineering and security teams responding to public package or supply chain advisories.
  • Maintainers who need to check lock files, scripts, CI permissions, and caches before changing dependencies.
  • Incident reviews where Codex should gather evidence without installing packages or running untrusted code.

Skills & Plugins

  • GitHub

    Inspect repository files, pull requests, workflows, and security-relevant history.

Skill Why use it
GitHub Inspect repository files, pull requests, workflows, and security-relevant history.

Starter prompt

Help me audit this repository for exposure to this public package advisory: [advisory URL]. Stay read-only unless I explicitly approve a remediation step. First, summarize:

  • affected packages and version ranges
  • authoritative sources versus broader reports
  • what evidence would prove exposure in this repo
  • what evidence would rule it out Then inspect:
  • package manifests and lock files
  • CI workflows and permissions
  • install, build, and postinstall scripts
  • vendored artifacts, containers, or generated bundles if relevant
  • cache or token exposure paths if the advisory involves CI or publishing Return:
  • evidence status: confirmed exposure, needs verification, or ruled out
  • severity and blast-radius notes
  • file references for every repo-specific claim
  • caveats and recommended next steps Do not install packages, run lifecycle scripts, build the project, execute untrusted code, rotate credentials, or clean up files unless I explicitly approve that step.

Open in the Codex app

Help me audit this repository for exposure to this public package advisory: [advisory URL]. Stay read-only unless I explicitly approve a remediation step. First, summarize:

  • affected packages and version ranges
  • authoritative sources versus broader reports
  • what evidence would prove exposure in this repo
  • what evidence would rule it out Then inspect:
  • package manifests and lock files
  • CI workflows and permissions
  • install, build, and postinstall scripts
  • vendored artifacts, containers, or generated bundles if relevant
  • cache or token exposure paths if the advisory involves CI or publishing Return:
  • evidence status: confirmed exposure, needs verification, or ruled out
  • severity and blast-radius notes
  • file references for every repo-specific claim
  • caveats and recommended next steps Do not install packages, run lifecycle scripts, build the project, execute untrusted code, rotate credentials, or clean up files unless I explicitly approve that step.

Start with a safe audit plan

When a dependency or supply chain incident moves quickly, the first useful output isn’t a rushed patch. It’s a clear audit plan: what changed, which packages or workflows might be affected, and what evidence would prove exposure in your repo.

Use Codex to turn the advisory into a conservative, read-only checklist before installing, building, testing, or running anything.

Keep the first pass read-only

  1. Give Codex the public advisory, incident report, or affected package list.
  2. Ask it to separate authoritative sources from broader commentary.
  3. Have it define evidence that would prove or rule out exposure.
  4. Let it inspect manifests, lock files, CI workflows, scripts, and relevant repo files.
  5. Ask for findings grouped by evidence status, severity, and recommended next step.

For package incidents, avoid running install, build, test, import, or lifecycle commands until you know what the advisory affects. Codex can search lock files and workflows without executing untrusted code.

Report evidence status separately from severity

A useful audit result should show both how bad a finding would be and how strong the evidence is:

Codex

Confirmed exposure: the lockfile contains an affected package version in a production dependency path.

Needs verification: one CI job has publish permissions, but the workflow does not appear to install the affected package directly.

Ruled out: the package name appears in docs only and is not present in manifests or lock files.

Next step: review the proposed dependency update and token rotation plan before any destructive action.

Once the read-only pass is complete, you can ask Codex to prepare a remediation PR, update CI permissions, or write a follow-up incident note. Keep those actions separate from the initial audit.

Turn the confirmed findings from this audit into a remediation plan. For each finding, include:

  • proposed change
  • files or settings to update
  • test or verification step
  • rollback plan
  • whether I need to rotate a credential or review an external system Do not make changes yet. Keep any command that could execute untrusted code out of the plan unless you explain why it is safe.

[

Run a deep security scan

Use the Codex Security plugin to run a higher-recall, repository-wide audit that repeats...

Engineering Quality](https://developers.openai.com/codex/use-cases/deep-security-scan)[

Scan code changes for security

Use the Codex Security plugin to examine a Git-backed change set, validate plausible...

Engineering Quality](https://developers.openai.com/codex/use-cases/scan-code-changes-for-security)[

Remediate a vulnerability backlog

Bring in approved findings from ticketing tools or vulnerability reporting systems, then use...

Engineering Quality](https://developers.openai.com/codex/use-cases/remediate-vulnerability-backlog)