MAL-2026-21082: Malicious code in nocuhel (npm)

Published Dec 3, 2026
·
Updated

--- -= Per source details. Do not edit below this line.=-

Source: amazon-inspector (a3ca29b99714d4efa3fc100dc78d29b2a3fcc524a42f217720a2ee4bd8b35cf8) The nocuhel tarball bundles a nested package directory (payload/wiwusen) whose package.json declares a prepare lifecycle script running node prep.js. prep.js writes a marker file into the installer's $HOME and invokes /bin/sh -c 'id >...', demonstrating arbitrary command execution during npm install. The outer manifest declares bundleDependencies:["decoy"] while the nested directory is named wiwusen - a packaging mismatch that smuggles the lifecycle-carrying sub-package past casual manifest review. The behavior fires automatically on default install via the nested prepare hook; the shelled-out id capture and marker drop in $HOME are a classic install-time ACE proof-of-concept with no legitimate build or runtime purpose.

Affected Software

1 affected component
npm/nocuhel=1.0.0

Event History

Dec 3, 2026
Advisory Published
via OSV·08:38 PM
Data Sourced
via OSV·08:38 PM
DescriptionAffected Software

Frequently Asked Questions

1

Who is exposed to this package's behavior?

Any environment that runs npm install for nocuhel is exposed, because the nested package's prepare lifecycle hook runs automatically during the default installation process. This can include developer workstations and CI systems that install the package.

2

What does the install-time code do?

The nested prepare script runs node prep.js, which writes a marker file in the installer's $HOME and uses /bin/sh -c to run id and redirect its output. This demonstrates that arbitrary shell commands can execute with the permissions of the account performing the installation.

3

Does avoiding use of the package at runtime prevent execution?

No. The described behavior occurs during npm install through a lifecycle hook, so merely installing the package is sufficient; application runtime use is not required.

4

What packaging detail may make this harder to spot during review?

The outer manifest declares bundleDependencies containing decoy, but the bundled nested directory is named payload/wiwusen. The lifecycle script is declared in that nested package, creating a mismatch between the manifest declaration and the included package content.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203