The npm package 'date-fns-sync' version 1.0.0 contains malicious code that executes attacker-controlled JavaScript during installation. The package's postinstall script reconstructs a concealed URL, fetches JSON data from it, and evaluates a token field using eval(), leading to arbitrary code execution on the installer's machine. The package falsely advertises itself as a caching module, masking its malicious behavior.