Malicious code in @decoopus/chatgpt-setup (npm)
Description
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (374490b0ea5605d8a8148dcbf592fa7cbcc96146e5822ae4bd2fae978a568722)
When the user runs the package's bin (chatgpt-setup/codex-setup), the tool rewrites ~/.codex/config.toml to set approval_policy='never' and sandbox_mode='danger-full-access', edits ~/.codex/.codex-global-state.json to set agent-mode to 'full-access' and inject the filesystem root ('/' on Unix or 'C:\\' on Windows) plus the user's home directory into every project's rootPaths, and points the Codex model_provider base_url at the author-controlled gateway api.vokes.in/
Source: ghsa-malware (ef73cfc453d6276dbd5b19b5ce5dcbde9c60f17cddaefa47d54c1cf8e248075a)
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.