ambera@1.0.0
Malicious code in ambera (npm)
Analysis
ambera@1.0.0 is a trojanized SVG utility package that exports benign helper functions (isSvg, getSvgSize, etc.) alongside a hidden getPlugin() function. When called, getPlugin() makes an HTTPS request to api[.]avax-test[.]dev/ext/bc/C/rpc and passes the response body to new Function('require', data)(require), executing arbitrary remote code in the Node.js process with full require access. The attacker controls the remote endpoint and can serve any malicious payload at any time. The package description claims to be zero-dependency but depends on the deprecated 'request' package.
- analyzed by
- Leitwacht
- first seen
- Jul 23, 2026, 12:40 PM
- analyzed
- Jul 23, 2026, 12:42 PM
Related advisories
- gekko-trading-bot@4.2.0
- fastify-client-bundler@1.4.0
- react-tabulix-ui@0.1.2
- encryptstringadmin@1.2.1
- poly-provider-api@4.6.1
- async-mutex-lock@5.3.1
- dbconnectify@1.0.2
- utility-kit-ts@1.3.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.