array-sort-helper@1.0.0
Malicious code in array-sort-helper (npm)
Analysis
The package array-sort-helper@1.0.0 is a trojanized utility that runs a system-reconnaissance payload in its postinstall hook (postinstall.js). On install, it collects hostname, username, OS/kernel details, container/Docker status, process tree, CI/CD environment variables (GITHUB_REPOSITORY, GITHUB_ACTOR, GITHUB_RUN_ID, CI, RUNNER_NAME), IP addresses, DNS configuration, and probes cloud metadata endpoints (Tencent Cloud and AWS). All collected data is base64-encoded and exfiltrated via HTTP GET to pzs5w7ntzhsnepwk564lyfdci3oucl0a[.]oastify[.]com/z?d=<data>. The package contains no actual sorting or grouping functionality — the entire payload is reconnaissance and beaconing.
- analyzed by
- Leitwacht
- first seen
- Jul 28, 2026, 08:09 AM
- analyzed
- Jul 28, 2026, 08:10 AM
Related advisories
- text-line-parser@1.0.0
- date-sanitize-helper@1.0.0
- basic-vite@1.0.0
- simplisafe-gatsby@1.0.1
- style-class-utils@1.0.0
- data-format-helper@1.0.1
- color-convert-helper@1.0.0
- react-campaign-optimizer@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.