-= Per source details. Do not edit below this line.=-
The package presents itself as a discord.js clone (repository field points at the real github.com/discordjs/discord.js.git, README instructs import... from '@verylinh/discord') but ships two installer-relevant hostile mechanisms. First, package.json declares a runtime dependency sysframe resolved from git+https://ghp_...@github.com/navaLinh/node-ai.git — an unpinned (no commit SHA or tag), private, author-controlled GitHub repository, using an embedded live GitHub Personal Access Token. Every npm install uses the shipped token to fetch the current HEAD of that private repo into the installer's node_modules; the author can rewrite HEAD at any time to deliver arbitrary code, including lifecycle scripts, that will execute on subsequent installs. Second, Client.login() invokes an undocumented _verifyAuthorization routine that fetches an allow-list JSON from api.github.com/repos/Vellia-Elyvia/mydb/contents/db.json under a hardcoded PAT and refuses to start the installer's Discord bot unless the bot's username appears in the author-controlled allow-list — a hidden remote gate/kill-switch over the installer's runtime that is not disclosed in the README. Two live GitHub PATs are hardcoded in the shipped package (one in the git dependency URL, one as the default ghToken in _validateAuthOptions). The package name and metadata impersonate discord.js.
{
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-017930",
"import_time": "2026-08-14T22:42:25.202550122Z",
"sha256": "04b7767e977c183f47d761464e45db73c07784967f48456f2fd4ee261d781161",
"versions": [
"1.0.5"
],
"source": "amazon-inspector",
"modified_time": "2026-08-14T22:28:47Z"
},
{
"id": "IN-MAL-2026-017929",
"import_time": "2026-08-14T22:42:25.178873839Z",
"sha256": "1c86edd3f7edd7d111df5621cb884fd0ef3d870c6c0719d587b7bb0f16f65b8d",
"versions": [
"1.0.4"
],
"source": "amazon-inspector",
"modified_time": "2026-08-14T22:28:38Z"
},
{
"id": "IN-MAL-2026-017933",
"import_time": "2026-08-14T22:42:25.327184801Z",
"sha256": "7a036e528b785b9495fd5fb2a49f2cbe0ab4f1796f2a235a46e63b0f7de83030",
"versions": [
"1.0.3"
],
"source": "amazon-inspector",
"modified_time": "2026-08-14T22:29:09Z"
},
{
"import_time": "2026-08-14T22:42:25.28010122Z",
"id": "IN-MAL-2026-017932",
"sha256": "c59b0d662d2067100ccd6b81ce6223d979067bf7927c92c76a8841aff6c8fcde",
"modified_time": "2026-08-14T22:29:03Z",
"source": "amazon-inspector",
"versions": [
"1.0.6"
]
},
{
"id": "IN-MAL-2026-017931",
"import_time": "2026-08-14T22:42:25.246641643Z",
"sha256": "d9ec14c7e20b722636937ac258aec64347df2df21e2b2e2812a30f4ff63acbfe",
"versions": [
"1.0.7"
],
"source": "amazon-inspector",
"modified_time": "2026-08-14T22:28:56Z"
}
]
}[
{
"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.",
"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.",
"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"
}
]
{
"evidence_files": [
{
"path": "package.json",
"tlsh": "6f41d922c9249c7307e425eead9a02035224598b4e4bfc0d37a9536d4f0d6af31bcb6f",
"sha256": "075ecdc92d9e975ffa832919d02f3dc19e0ef9a844ba85af2e76c391d2db8ad5"
}
],
"package_integrity": [
{
"filename": "discord-1.0.5.tgz",
"hashes": {
"sha1": "701b66722e6bfe0ea60084c35744185f41671345",
"sha512_sri": "sha512-BjGBpprX55yqk4CWc8HsiGhkNuZsfv6pUL8HVPFegyKG6wu1vIcoxd/8gZ5cT3NzdQQM3ZA4+IW/uHMPgVfvyA=="
}
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@velliajs/discord/MAL-2026-14051.json"