Malicious code in discord-resolvers (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (6aa01ed90340a9458c2906ec74fd9277bb7d0e4da48ef09487639aa6c45e6791) The package published as discord-resolvers is unrelated to Discord. On require, index.js invokes startBackupLoop() at top level, which recursively archives the /root directory on Linux (or the drive root, typically C:\, on Windows) into a ZIP and uploads it via the Telegram Bot API to a hardcoded chat controlled by the package author. The loop repeats every hour and all errors are silently swallowed. The exclude list (node_modules,.git,.cache, tmp) does not exclude credential-bearing paths such as ~/.ssh, ~/.aws, ~/.npmrc,.env files, browser profiles, or wallet stores, so SSH keys, cloud credentials, source code, and other secrets under the archived root are shipped off-host. The Telegram bot token (8296271388:AAH-...) and chatId (8851479019) ship in cleartext in config.json and are the transport mechanism for the exfiltration; the destination is not caller-configurable. The package.json description ("Cross-platform automated server backup tool with Telegram delivery") self-labels the behavior but the package name and the silent auto-execution on require make this a covert exfiltration payload rather than an opt-in backup tool. ## Source: ghsa-malware (55190e72768fe3097d180a9ab559f286193f109b0aea457a90e02dc405458ad5) Any computer that has this package installed or running should be considered fully compromised. All secrets
MAL-2026-16214
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-16214
discord-resolvers
Source reference: /affected/0/package/name
- Affected versions
- 3.4.2
Source 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.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "discord-resolvers",
"purl": "pkg:npm/discord-resolvers",
"ecosystem": "npm"
},
"versions": [
"3.4.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/discord-resolvers/MAL-2026-16214.json",
"indicators": {
"evidence_files": [
{
"path": "index.js",
"tlsh": "31f0ac7e66fd00ba00191dab5e8f8110099b619323b98c42bc5d32e85f83129a264938",
"sha256": "e3543227b7722f724aacdc9a7594b78b900281ae9a0b287caf07558319b7fbdd"
},
{
"path": "src/config.js",
"tlsh": "ce3121e611fe0a3b4492193a99dff0522444d8933a09ad6db7dc83885fe50794a72cfc",
"sha256": "1d9e9bfe6787487dc7677adc30c00861a9921aff57494bd5496d0c517f841da2"
},
{
"path": "config.json",
"tlsh": "22b02b788220044312105a4c551780c45010f40bd0084f2f2041a0a5090402e00e2006",
"sha256": "a7fcaa2fb7d2240469c6581a0737e8ab221225327b7fa4a418f66020ee7a6a9c"
},
{
"path": "package.json",
"tlsh": "f1f05924cb702cb314d859714d7a02023331aa87196c7c1c3383611d9f5d17f10fe6ad",
"sha256": "73ec9d6f4c31b14024cdccf493a5c4ee6ec94102a558ae946b7ad0ace5bd2f45"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "53582f61a2d11d75610891a8ac86c3b1ac6f75c1",
"sha512_sri": "sha512-eHydDNvsux+gOvKMWjf6gN8rbyRNIxr+ohJ3033LUy6uCN6Cw9L4KSLUDx6BS9yDD13SPOs1PPbb2wqQTF05oQ=="
},
"filename": "discord-resolvers-3.4.2.tgz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #21159 · Revision 1
- Added to Heist Feed
- Publisher date