registry  /  stella-coder  /  5.1.0

stella-coder@5.1.0

Stella Coder 5.0 — AI coding agent with Telegram bot, huge context, TDD, Git ecosystem, presentations, computer control, smart home, Office automation, and antivirus

AI Security Review

scanned 3h ago · by lpm-firewall-ai

An explicitly enabled Telegram bot accepts messages from locally authorized users and runs them through the CLI in print mode. Results are sent back through Telegram; the hard-coded bot token makes the package author’s bot account a control-plane dependency.

Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
User runs `/tg`, generates an authorization code, and an authorized Telegram user sends a message.
Impact
Remote authorized users can drive the CLI's broad local AI, shell, filesystem, and computer-control capabilities.
Mechanism
authorized Telegram input launches the AI CLI through `execSync` and relays output
Rationale
This is an explicitly user-invoked, package-aligned remote-control feature rather than an install-time malicious chain. Its broad remote AI-agent and shell capability, plus the embedded bot credential, warrants a warning.
Evidence
package.jsonstella-cli/index.mjsstella-cli/telegram-bot.mjsstella-cli/tools.mjsstella-cli/tg-server.mjs.opencode/skills/ui-ux-pro-max/scripts/design_system.py~/.stella/telegram-auth.json~/.stella/sessions.json
Network endpoints2
api.telegram.orgopencode.ai/zen/v1

OSV Corroboration

OpenSSF/OSV
Advisory
MAL-2026-10134
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in stella-coder (npm)
Details
stella-cli/telegram-bot.mjs hardcodes a Telegram bot API token (BOT_TOKEN = "8923551485:AAFw4wG8ZwOtp5rzFsnguxhu4AH-2_ebSi0") that is controlled by the package author. When the user invokes the /tg CLI command, the package starts a Telegram bot on the installer's machine that receives messages over api.telegram.org and passes them into execSync(`node stella-cli/index.mjs -p "${text}"`), invoking a shell-capable AI agent CLI with attacker-supplied input. Because the messaging channel is bound to a token the author retains, the author observes all bot traffic — including the 4-digit admin authorization code exchanged over that same channel — and can replay it to reach the command-execution path on any installer that enables /tg. telegram-bot.mjs additionally sends os.hostname() and os.userInfo().username to the same author-controlled bot. A hardcoded PREMIUM_CODE = "10102013" acts as a universal activation key that unlocks the remote-control feature-set without payment. package.json sets "main": "stella-cli/index.mjs", whose top-level executes main() and starts the interactive CLI on require/import, extending the reach of the /tg surface beyond the bin entry. There are no install lifecycle hooks; the backdoor fires when the user runs the CLI (or a consumer imports the module) and invokes /tg.

Decision evidence

public snapshot
AI called this Suspicious at 90.0% confidence as Dangerous Capability with low false-positive risk.
Evidence for block
  • `stella-cli/telegram-bot.mjs` embeds a Telegram bot token and polls `api.telegram.org`.
  • Authorized Telegram messages are passed to `node stella-cli/index.mjs -p` via `execSync`.
  • Bot returns command output to Telegram, creating a remote command/control channel.
  • `stella-cli/index.mjs` enables Telegram only through explicit `/tg`; no npm lifecycle hook exists.
  • `stella-cli/index.mjs` has user-invoked script and scheduled-task commands.
Evidence against
  • `package.json` defines no `preinstall`, `install`, `postinstall`, or `prepare` hook.
  • Telegram authorization requires a locally generated one-time admin code.
  • No source evidence of automatic credential harvesting or unsolicited outbound file uploads.
  • `.opencode/skills/ui-ux-pro-max/scripts/design_system.py` is readable design-system source, not a concealed binary payload.
Behavioral surface
Source
ChildProcessCryptoEnvironmentVarsFilesystemNativeBindingsNetworkShell
Supply chain
HighEntropyStringsUrlStrings
ManifestNo manifest risk signals triggered.
scanned 32 file(s), 918 KB of source, external domains: api.duckduckgo.com, api.telegram.org, discord.gg, fonts.googleapis.com, github.com, html.duckduckgo.com, ollama.com, opencode.ai, www.google.com, www.kinopoisk.ru, www.virustotal.com, www.youtube.com

Source & flagged code

11 flagged · loading source
dist/security.mjsView file
4import os from "node:os" L5: import { execSync } from "node:child_process" L6: import { fileURLToPath } from "node:url"
High
Child Process

Package source references child process execution.

dist/security.mjsView on unpkg · L4
dist/antimalware/scanner.mjsView file
336"ollama.exe", "ollama_llama_server.exe", L337: "powershell.exe", "pwsh.exe", "cmd.exe", L338: "WindowsTerminal.exe", "wt.exe",
High
Shell

Package source references shell execution.

dist/antimalware/scanner.mjsView on unpkg · L336
dist/antimalware/database.mjsView file
165{ id: "SIG-037", name: "Service install", severity: "high", category: "privesc", L166: pattern: /CreateService[\s\S]{0,100}(SERVICE_AUTO_START|SERVICE_WIN32_OWN_PROCESS)[\s\S]{0,100}(cmd|powershell|bash)/ }, L167: ... L188: { id: "SIG-044", name: "Scheduled task", severity: "high", category: "persistence", L189: pattern: /schtasks[\s\S]{0,100}(\/create|\/Create)[\s\S]{0,100}(cmd|powershell|bash|python|perl)/ }, L190: ... L207: { id: "SIG-050", name: "DNS tunneling", severity: "high", category: "backdoor", L208: pattern: /DnsQuery[\s\S]{0,100}(TXT|MX|CNAME)[\s\S]{0,100}(encode|decode|base64)[\s\S]{0,100}(socket|connect)/ }, L209: ... L240: { id: "SIG-060", name: "HTTP POST exfil", severity: "high", category: "exfil", L241: pattern: /(fetch|XMLHttpRequest|axios|http\.request|request\()[\s\S]{0,200}(POST|PUT)[\s\S]{0,200}(password|token|secret|credential|cookie)/ }, L242:
Low
Weak Crypto

Package source references weak cryptographic algorithms.

dist/antimalware/database.mjsView on unpkg · L165
dist/index.mjsView file
6Cross-file remote execution chain: dist/index.mjs spawns dist/tools.mjs; helper contains network access plus dynamic code execution. L6: import os from "node:os" L7: import { execSync } from "node:child_process" L8: import { streamText, stepCountIs, generateText } from "ai" ... L22: const VERSION = "3.9.2" L23: const CONFIG_DIR = path.join(os.homedir(), ".stella") L24: const CONFIG_PATH = path.join(CONFIG_DIR, "config.json") ... L26: L27: const ZEN_BASE_URL = "https://opencode.ai/zen/v1" L28: ... L53: function loadConfig() { L54: try { return JSON.parse(fs.readFileSync(CONFIG_PATH, "utf8")) } catch { return {} } L55: }
High
Cross File Remote Execution Context

Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.

dist/index.mjsView on unpkg · L6
1371try { L1372: const { execSync } = await import("node:child_process") L1373: execSync(lintCmd, { encoding: "utf8", stdio: "inherit" }) ... L1379: case "/format": { L1380: const formatCmd = arg || "npx prettier --write ." L1381: console.log(dim(`\n Форматирую: ${formatCmd}\n`))
High
Runtime Package Install

Package source invokes a package manager install command at runtime.

dist/index.mjsView on unpkg · L1371
6import os from "node:os" L7: import { execSync } from "node:child_process" L8: import { streamText, stepCountIs, generateText } from "ai" ... L22: const VERSION = "3.9.2" L23: const CONFIG_DIR = path.join(os.homedir(), ".stella") L24: const CONFIG_PATH = path.join(CONFIG_DIR, "config.json") ... L26: L27: const ZEN_BASE_URL = "https://opencode.ai/zen/v1" L28: ... L53: function loadConfig() { L54: try { return JSON.parse(fs.readFileSync(CONFIG_PATH, "utf8")) } catch { return {} } L55: }
Medium
Install Persistence

Source writes installer persistence such as shell profile or service configuration.

dist/index.mjsView on unpkg · L6
stella-cli/telegram-bot.mjsView file
4import crypto from "node:crypto" L5: import { execSync } from "node:child_process" L6: ... L11: const BOT_TOKEN = "8923551485:AAFw4wG8ZwOtp5rzFsnguxhu4AH-2_ebSi0" L12: const API_URL = `https://api.telegram.org/bot${BOT_TOKEN}` L13: const PREMIUM_CODE = "10102013" ... L15: L16: const CONFIG_DIR = path.join(os.homedir(), ".stella") L17: const BOT_CONFIG_PATH = path.join(CONFIG_DIR, "telegram-bot.json") ... L29: headers: { "Content-Type": "application/json" }, L30: body: JSON.stringify(body), L31: signal: AbortSignal.timeout(30000),
Critical
Credential Exfiltration

Source appears to send environment or credential material to an external endpoint.

stella-cli/telegram-bot.mjsView on unpkg · L4
4Trigger-reachable chain: manifest.main -> stella-cli/index.mjs -> stella-cli/telegram-bot.mjs L4: import crypto from "node:crypto" L5: import { execSync } from "node:child_process" L6: ... L11: const BOT_TOKEN = "8923551485:AAFw4wG8ZwOtp5rzFsnguxhu4AH-2_ebSi0" L12: const API_URL = `https://api.telegram.org/bot${BOT_TOKEN}` L13: const PREMIUM_CODE = "10102013" ... L15: L16: const CONFIG_DIR = path.join(os.homedir(), ".stella") L17: const BOT_CONFIG_PATH = path.join(CONFIG_DIR, "telegram-bot.json") ... L29: headers: { "Content-Type": "application/json" }, L30: body: JSON.stringify(body), L31: signal: AbortSignal.timeout(30000),
Critical
Trigger Reachable Dangerous Capability

A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.

stella-cli/telegram-bot.mjsView on unpkg · L4
.opencode/skills/ui-ux-pro-max/scripts/design_system.pyView file
path = .opencode/skills/ui-ux-pro-max/scripts/design_system.py kind = payload_in_excluded_dir sizeBytes = 57424 magicHex = [redacted]
High
Payload In Excluded Dir

Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.

.opencode/skills/ui-ux-pro-max/scripts/design_system.pyView on unpkg
path = .opencode/skills/ui-ux-pro-max/scripts/design_system.py kind = build_helper sizeBytes = 57424 magicHex = [redacted]
Medium
Ships Build Helper

Package ships non-JavaScript build or shell helper files.

.opencode/skills/ui-ux-pro-max/scripts/design_system.pyView on unpkg
stella-cli/index.mjsView file
matchType = previous_version_dangerous_delta matchedPackage = stella-coder@4.0.0 matchedIdentity = npm:c3RlbGxhLWNvZGVy:4.0.0 similarity = 0.903 summary = stored previous version shares package body but lacks this dangerous source file
Critical
Previous Version Dangerous Delta

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

stella-cli/index.mjsView on unpkg

Findings

3 Critical5 High5 Medium5 Low
CriticalCredential Exfiltrationstella-cli/telegram-bot.mjs
CriticalTrigger Reachable Dangerous Capabilitystella-cli/telegram-bot.mjs
CriticalPrevious Version Dangerous Deltastella-cli/index.mjs
HighChild Processdist/security.mjs
HighShelldist/antimalware/scanner.mjs
HighCross File Remote Execution Contextdist/index.mjs
HighRuntime Package Installdist/index.mjs
HighPayload In Excluded Dir.opencode/skills/ui-ux-pro-max/scripts/design_system.py
MediumNetwork
MediumEnvironment Vars
MediumInstall Persistencedist/index.mjs
MediumShips Build Helper.opencode/skills/ui-ux-pro-max/scripts/design_system.py
MediumStructural Risk Force Deep Review
LowScripts Present
LowWeak Cryptodist/antimalware/database.mjs
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings