Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of dit-envv

[email protected]

malicious   confidence 95%   action block   analyzed 2026-09-25 01:21 UTC by yolo in 6 tool calls, with lab detonation

Summary

The postinstall hook index1.js reads the entire process.env, AWS credentials (~/.aws/credentials, ~/.aws/config), npm tokens (~/.npmrc), Docker config, git config, netrc, and enumerates directories. It base64-encodes this data and POSTs it to reportviewer.click/collect/. A DNS-style fallback also tunnels env data via subdomains of dns.reportviewer.click. The require-time entry lib/main.js is a standard dotenv parser and does nothing malicious by itself.

Intent

Pretends to be a .env file parser (typosquat of dotenv/dotenvx). Actually exfiltrates the host's full environment, AWS credentials, npm tokens, Docker and git config, and network state to reportviewer.click via HTTPS POST and DNS tunneling.

credential_access credential_harvest network_egress reconnaissance

Findings

Credential exfiltration via postinstall hook critical index1.js:27-92
index1.js collects process.env, AWS creds, npm tokens, Docker/git/netrc config, and directory listings, base64-encodes them, and POSTs to https://reportviewer.click/collect/.
DNS tunneling fallback critical index1.js:96
index1.js:96 — sends first 180 chars of process.env as a DNS subquery to dns.reportviewer.click.
AWS metadata endpoint probing high index1.js:51-52
index1.js:51-52 — attempts curl to 169.254.170.2 and 169.254.169.254 for ECS/EC2 instance metadata.
Canary credential files read in lab high index1.js:40-63
/home/andy/.aws/credentials, /home/andy/.aws/config, /home/andy/.npmrc, /home/andy/.docker/config.json, /home/andy/.gitconfig, /home/andy/.netrc.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 11. Hooks: postinstall (exit 0), require (exit 0).

DNS names requested: reportviewer[.]click

Direct connections: socket 127[.]0[.]0[.]1:53

Canary credential files read: /home/andy/.aws/credentials, /home/andy/.aws/config, /home/andy/.npmrc, /home/andy/.docker/config.json, /home/andy/.gitconfig, /home/andy/.netrc (attempted)