The npm package base_parts_ai contains malicious code that performs an unattended global update from an unverified external source when its CLI commands 'jcc' or 'jcx' are run. This update fetches and installs a tarball from a separate domain without integrity checks, allowing arbitrary code execution. Additionally, the package writes a persistent hook that sends data to a remote server on every session start, establishing a phone-home channel. The malicious behavior activates only when the CLI is invoked, not during installation or require().