MAL-2026-15647
Dashboard / Malicious Package / MAL-2026-15647
MAL-2026-15647
Summary: Malicious code in @testrelic/appium-analytics (npm)
Details: Source: amazon-inspector (0b67d6f23451a756c154b86142f91615f5c08c415166c1f66216c8c83d74cbeb) The package registers scripts/postinstall.cjs as an npm postinstall hook. Alongside a benign-looking config-writer, the script contains an obfuscation layer that uses a custom Fisher-Yates-style permutation (Dbv) to reconstruct the string 'constructor' from a scrambled seed, resolves it against a function object to obtain the Function constructor, decodes a scrambled payload body, and invokes Function('', <decoded>)() at install time. Before invocation the wrapper stashes require, module, __dirname and __filename onto global under obfuscated keys so the decoded body can reach Node's module and filesystem APIs from within the Function() scope. The dist/ bundle additionally imports child_process and issues POST/GET calls from multiple files (dist/cli.cjs, dist/index.cjs, dist/service.cjs). No legitimate analytics/config bootstrap requires decoding an opaque scrambled string and executing it through Function.constructor, and the deliberate scope-escape scaffolding is characteristic of install-time droppers. The payload runs automatically on npm install on every installer machine. Source: ghsa-malware (646f0dd17193e933882467e3c5e420f4d4e43611de485b52a33385b5aac13fda) 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.
References: https://github.com/advisories/GHSA-6cpr-jwvc-jhg7, https://www.npmjs.com/package/@testrelic/appium-analytics/v/1.1.1-next.88
Affected packages
Package
Name: @testrelic/appium-analytics
Purl: pkg:npm/%40testrelic/appium-analytics
Affected ranges
Type: N/A
Events:
