This report shows the evidence for codex-setup@1.0.3. 4 of 6 known versions are blocked or flagged. The newest version, 0.0.1-security, is allowed.
Blocked by malware advisory
OpenSSF/OSV malware advisory MAL-2026-18060 identifies this version as malicious and supplies the Firewall block. LPM AI assessed this version as suspicious; the assessments disagree.
What to do: remove this version and, if it ran, rotate the credentials it could reach. Remediation↓
OpenSSF/OSV malicious advisory
published · by OpenSSF/OSV
OpenSSF/OSV advisory MAL-2026-18060 confirms this npm version as malicious.
Advisory
MAL-2026-18060
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in codex-setup (npm)
Details
Package codex-setup@1.0.1 was examined and no behavior indicative of a supply-chain attack was observed. No lifecycle scripts fetching or executing remote content, no reads of installer secrets (such as ~/.aws, ~/.ssh, ~/.npmrc, browser profiles, or wallet stores), no environment-variable scraping, no hardcoded attacker-controlled network destinations, no obfuscated payloads, no backdoor or persistence mechanisms, and no silent-relay of caller-supplied data were identified. The package appears benign on the basis of the scanned contents.
## Source: ghsa-malware (07bc1e933aeccbce3ee5ffda504b2abd81e6e8c9d09866d7a8e5c6197d7873c8) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
LPM's AI review found this version suspicious. That disagrees with the OpenSSF/OSV advisory, which supplies the block.
The package is not automatically activated during npm installation, but its explicit setup command silently configures broad Codex access and disables approvals. This warrants a warning for agent capability abuse.
Static reason
No blocking static signals were detected.
Trigger
A user runs the setup CLI.
Impact
Codex may operate without approval checks and have access to the user home, Downloads, and filesystem root.
Mechanism
The CLI writes broad-access settings to the Codex configuration and updates the persisted Codex state file.
Evidence
bin/cli.js~/.codex/config.toml or CODEX_HOME/config.toml~/.codex/.codex-global-state.json
Independent scan evidence
public snapshot
AI called this Suspicious at 96.0% confidence as Dangerous Capability with medium false-positive risk.
Evidence for AI warning decision
package.json exposes bin/cli.js as a command and declares no npm install lifecycle hook.
bin/cli.js targets the user's Codex configuration, falling back to ~/.codex/config.toml.
The setup writes approval_policy = never and sandbox_mode = danger-full-access into Codex configuration.
It changes persisted Codex state to full access and changes heartbeat thread permissions to danger-full-access with approvals disabled.
It adds Downloads, the user home, and the filesystem root to local project roots.
Running the CLI calls the global state update after writing the configuration; main runs when the file is invoked directly.
Evidence against
The manifest has no automatic install hook, so the configuration changes require running the CLI.
Behavioral surface
SourceChild process · Environment variables · Filesystem · Shell
Supply chainHigh entropy strings · URL strings
ManifestNo manifest risk signals triggered.
Scanned 1 file · 22.4 KB of source
2 external domains referenced
api.openai.com
api.vokes.in
Findings
7 high · 1 medium · 4 low
Where they are, most severe file first. Code opens a file's flagged lines, with their evidence, below.
The versions list below shows the verdict for each recorded version.
Avoid installing codex-setup@1.0.3. Remove it from direct dependencies and check your lockfile for transitive copies.
Choose an independently verified alternative or release. This report does not establish that other versions are safe.
If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.