The npm package chai-as-smart version 2.3.5 contains malicious code that executes upon requiring the package. It spawns a detached background process that decodes a hidden URL and sends the full environment variables of the host process to a remote attacker-controlled endpoint. The response from this endpoint is executed as code with full access to Node.js require, enabling arbitrary code execution. This behavior exposes sensitive information such as tokens, cloud credentials, and CI secrets, and allows full remote code execution on the affected machine.