Malicious code in alelo-api (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (0e520850363c3164a09e0772022283849a0abd1b6f60e9168f4a5fd3ff338886) The package fires attacker-controlled code on `npm install` via both `preinstall.js` and `index.js` (postinstall). preinstall.js collects hostname, username, platform, cwd, and the full `process.env`, JSON-encodes it, and POSTs it over HTTPS with TLS verification disabled to the hardcoded bare-IP endpoint https://209.99.185.109/preinstall. The postinstall path reads installer-owned secret files from the current working directory and its parents (`.env`, `../.env`, `../../.env`, `.npmrc`, `package.json`), captures `process.env`, executes `whoami` and `id`, and POSTs the aggregate to https://209.99.185.109/postinstall (also with TLS verification disabled). The tarball additionally ships a `login.ps1` note referencing the publisher account `oxy12@proton.me` and a local publish workflow under `C:\Users\hp\Documents\alelo\npm-publish`; combined with the name `alelo-api` and version `99.0.0`, this indicates a typosquat / dependency-confusion attack aimed at the Alelo organization. Any installer that runs `npm install alelo-api` leaks environment variables, npm tokens, and any `.env` secrets in the working tree to the hardcoded IP.
MAL-2026-14020
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:MAL-2026-14020
alelo-api
Source reference: /affected/0/package/name
- Affected versions
- 99.0.0
Source reference:
/affected/0/versions99.0.2Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"package": {
"name": "alelo-api",
"purl": "pkg:npm/alelo-api",
"ecosystem": "npm"
},
"versions": [
"99.0.0",
"99.0.2"
],
"database_specific": {
"cwes": [
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/alelo-api/MAL-2026-14020.json",
"indicators": {
"evidence_files": [
{
"path": "preinstall.js",
"tlsh": "2ff002f041b9f2f07af5a6c0b067982261b3e1103917bcf0c9d841456b8f4681173cf1",
"sha256": "d753bcad41ebf25fd1393ca3e6690c5213b956305ad9c50aa968b717ae7aec37"
},
{
"path": "index.js",
"tlsh": "4c21e1f067a4a3b07ab556d4e1ae50006263e2123d26b6f0b5d801917b1997815b3db0",
"sha256": "27b0b358d7bdb88d005f7ac164dff32b13f7ac2c52eea12495e29aac286d3b65"
},
{
"path": "login.ps1",
"tlsh": "d7f0a272910a614d3ee4466b00f4f536fd3b133269d4de94a6a916c9f8c195c2972833",
"sha256": "d784a3de392836730544da8e2ba25bcaaad2632f0cc8e4b8ce76b5cb4fe82d2b"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "f34fb4405b42785465899c11012aea4e50cd4bb1",
"sha512_sri": "sha512-cj9NYG9FuaQoFSwTkZX9PNWgwp1toDVBKAQukBABiB00c1jWmWmWMIdqJ1MLDx6qk1e1r3jAoAnIhxoSTeCUyA=="
},
"filename": "alelo-api-99.0.0.tgz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #10937 · Revision 1
- Added to Heist Feed
- Publisher date