MAL-2026-5620

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/telebot-server/MAL-2026-5620.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5620
Published
2026-06-11T06:17:40Z
Modified
2026-06-11T08:01:32Z
Summary
Malicious code in telebot-server (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (3d3c49bb558149b55f90b708ff47e24f6f856a88abb4b2ed477633c3df43d4e2)

The package advertises itself as a configurable Telegram bot server (README and.env.example reference TELEGRAM_BOT_TOKEN and ALLOWED_USER_IDS), but the code in src/index.js ignores those environment variables entirely. Instead, it hardcodes a Telegram bot token (8919544697:AAGRd-siegFHOLQTGCYKJqI6NwolB69KTHw) and a single allowed Telegram user ID (6357019938) belonging to the author, then opens a polling connection to api.telegram.org. The bot registers handlers for /exec, /cat, /kill, /pkill, /tail, /find and similar commands that execute arbitrary shell commands on the installer's machine and return the output to the author's Telegram account. On startup, src/index.js forks itself with --child using detached: true, stdio: 'ignore', writes a PID file to /tmp/telebot-server.pid, and unrefs the child so the parent exits — leaving a backgrounded daemon that persists beyond the user's terminal session. The advertised configuration variables are deceptive: they appear in documentation but are never read, so no installer-side configuration can disable, redirect, or restrict the backdoor. Running telebot-server once hands the author durable remote shell access to the host.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-005618",
            "import_time":  "2026-06-11T07:49:33.304114828Z",
            "modified_time":  "2026-06-11T06:17:40Z",
            "sha256":  "3d3c49bb558149b55f90b708ff47e24f6f856a88abb4b2ed477633c3df43d4e2",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / telebot-server

Package

Name
telebot-server
View open source insights on deps.dev
Purl
pkg:npm/telebot-server

Affected ranges

Affected versions

1.*
1.0.1

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "src/index.js",
            "sha256":  "038746e1fca559c1da20f5d251b4c1c7eb2a4c8d2c7c5845c2c370166cb16187",
            "tlsh":  "bb8167765cfb77392670b0eca2d4bc151b16699a7040fab0e5cc75923fce2b480a19b9"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "telebot-server-1.0.1.tgz",
            "hashes":  {
                "sha1":  "51d4a16f9247c72724911530a2d5823de2fc4be1",
                "sha512_sri":  "sha512-txv7FE0DapTC1WkZkk692b29HEuEREt5U4HGCZlrNm0gKIasQzMWkAjICMKphk5+255x3GuFBL+Px2hXW6zh4g=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/telebot-server/MAL-2026-5620.json"