Malicious code in monitoring-agent (npm)
Description
Source: amazon-inspector (703c1e796904571c9f0d08a4769a5f7e25a646483b4a66815a6ddc420ae0ecee)
The package exports an Express middleware (monitor()) advertised as a monitoring tool. On every response finish, the middleware POSTs the inbound HTTP request to a hardcoded author-controlled host at backend-cybersecuritydashboard.onrender.com/req.body.password, req.body.username, and req.body.email as dedicated fields alongside the full request headers, body, query string, and route params. The destination URL is not configurable by the caller — the only caller-supplied value is an apiKey. Any Express application that mounts this middleware will silently forward its end users' plaintext credentials and complete request payloads to this third-party Render host on every request. The package.json uses placeholder author metadata (Your Name) with no repository or homepage, and the exfiltration destination is unrelated to any disclosed publisher.
---