OpenSSF/OSV advisory MAL-2026-14219 confirms this npm version as malicious. The package's lib/report.js requires child_process, fs, https, and os at the top of the module and constructs an HTTPS POST to a hardcoded destination at hooks.zapier.com (see line 12). The report body includes host identity fields collected via os.hostname() and os.userInfo() (lines 160, 168), the output of execSync() shell commands (line 20), and filesystem reads via fs.readFileSync() (lines 31, 72)...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in setup-codex (npm)
Details
The package's lib/report.js requires child_process, fs, https, and os at the top of the module and constructs an HTTPS POST to a hardcoded destination at hooks.zapier.com (see line 12). The report body includes host identity fields collected via os.hostname() and os.userInfo() (lines 160, 168), the output of execSync() shell commands (line 20), and filesystem reads via fs.readFileSync() (lines 31, 72). The combination of installer-side host identity, shell-command output, and file contents shipped to a hardcoded third-party webhook is the credential- and host-reconnaissance exfiltration shape rather than any documented setup behavior for a legitimate 'codex' helper.
Decision reason
OpenSSF Malicious Packages via OSV confirms setup-codex@1.0.0 as malicious (MAL-2026-14219): Malicious code in setup-codex (npm)