MAL-2026-11270
Malicious code in create-backend-scaffold (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (0201b01c3bd9dbea597956acb10299aa22cd7976dcb7863348892f46512b47f1) playground/src/routes/auth.routes.js contains an obfuscated trailer appended after the normal router export. The trailer aliases require/module to globals, then uses a custom seeded-PRNG string-shuffle routine (JFG) to deterministically reconstruct the identifier 'constructor' from a scrambled alphabet, obtains the Function constructor by that indirection, decodes a hidden string payload, and invokes it as JavaScript at module load. The file is imported by src/app.js, which is loaded by the package's shipped server.js, so running the shipped server (e.g. `node server.js` or `npm run dev`) executes the hidden payload. The obfuscation technique (arithmetic-PRNG string permutation to hide 'constructor' and the Function body) is designed to evade static keyword matching. The tarball additionally ships a.env file containing a live MongoDB Atlas connection URI for the author's own cluster (author-owned credential leak, separate from the payload behavior).
## Source: ghsa-malware (f749e8b76ccc1619cfe98769cfcc133208c515f14ed198115a55587b28a49951) 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
No fixed version published yet for create-backend-scaffold (npm). Pin to a known-safe version or switch to an alternative.
References
- https://github.com/advisories/GHSA-p8mm-7vhx-3cr2 [ADVISORY]
- https://www.npmjs.com/package/create-backend-scaffold/v/1.1.0 [PACKAGE]
- https://www.npmjs.com/package/create-backend-scaffold/v/1.1.2 [PACKAGE]
- https://www.npmjs.com/package/create-backend-scaffold/v/1.0.4 [PACKAGE]
- https://www.npmjs.com/package/create-backend-scaffold/v/1.1.1 [PACKAGE]
- https://www.npmjs.com/package/create-backend-scaffold/v/1.0.0 [PACKAGE]
- https://www.npmjs.com/package/create-backend-scaffold/v/1.0.5 [PACKAGE]
- https://www.npmjs.com/package/create-backend-scaffold/v/1.0.2 [PACKAGE]
- https://www.npmjs.com/package/create-backend-scaffold/v/1.0.1 [PACKAGE]
- https://www.npmjs.com/package/create-backend-scaffold/v/1.0.3 [PACKAGE]