registry  /  stella-coder  /  4.0.0

stella-coder@4.0.0

Stella Coder 4.0 — AI coding agent with subagents, MCP, computer control, smart home, Office automation, and antivirus

AI Security Review

scanned 3h ago · by lpm-firewall-ai

The package is a high-risk AI agent/remote-control CLI, but activation is explicit and package-aligned. No install-time execution or automatic data exfiltration was confirmed.

Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
User runs stella and invokes /tg, /run, /curl, /wget, /env, or tg-server.mjs
Impact
Authenticated Telegram users or local CLI users can execute commands and inspect local environment/system data.
Mechanism
explicit remote-control and shell/network command features
Rationale
Static inspection confirms broad, user-invoked remote-control and shell capabilities, including a hardcoded shared Telegram bot token, but no lifecycle hook or import-time malicious action. Treat as dangerous/suspicious rather than malicious because activation and authorization are explicit and aligned with the package description.
Evidence
package.jsonstella-cli/index.mjsstella-cli/telegram-bot.mjsstella-cli/tg-server.mjsstella-cli/tg-server.batstella-cli/security.mjs~/.stella/telegram-auth.json~/.stella/sessions.json~/.stella/premium.json~/.stella/tg-bot.pid~/.stella/tg-bot.log~/.stella/.secure/vault.dat
Network endpoints3
api.telegram.orgopencode.ai/zen/v1www.virustotal.com/api/v3

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 86.0% confidence as Dangerous Capability with medium false-positive risk.
Evidence for block
  • stella-cli/telegram-bot.mjs hardcodes a Telegram bot token and API URL.
  • User-invoked /tg starts polling Telegram and can run local Stella commands from authenticated chats.
  • stella-cli/index.mjs exposes user-invoked shell/network/system commands like /run, /curl, /wget, /env, /clipboard.
  • stella-cli/tg-server.bat loops and restarts the Telegram bot server when explicitly launched.
Evidence against
  • package.json has no preinstall/install/postinstall lifecycle hooks.
  • telegram-bot.mjs is imported by CLI but polling starts only via /tg or tg-server.mjs.
  • Telegram remote control requires a locally generated admin code before accepting commands.
  • No source-grounded credential harvesting or automatic exfiltration found during inspection.
Behavioral surface
Source
ChildProcessCryptoEnvironmentVarsFilesystemNativeBindingsNetworkShell
Supply chain
HighEntropyStringsUrlStrings
ManifestNo manifest risk signals triggered.
scanned 31 file(s), 892 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

14 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
hello.pyView file
path = hello.py kind = build_helper sizeBytes = 88 magicHex = [redacted]
Medium
Ships Build Helper

Package ships non-JavaScript build or shell helper files.

hello.pyView on unpkg
stella-coder-3.9.2.tgzView file
path = stella-coder-3.9.2.tgz kind = high_entropy_blob sizeBytes = 88903 magicHex = [redacted]
High
Ships High Entropy Blob

Package ships high-entropy non-source blobs.

stella-coder-3.9.2.tgzView on unpkg
path = stella-coder-3.9.2.tgz kind = compressed_blob sizeBytes = 88903 magicHex = [redacted]
Medium
Ships Compressed Blob

Package ships compressed or archive-like blobs.

stella-coder-3.9.2.tgzView on unpkg
path = stella-coder-3.9.2.tgz kind = nested_archive_needs_inspection sizeBytes = 88903 magicHex = [redacted]
Low
Nested Archive Needs Inspection

Package ships a nested archive or MCP bundle that was inventoried but not recursively analyzed.

stella-coder-3.9.2.tgzView on unpkg
.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
stella-cli/index.mjsView file
matchType = previous_version_dangerous_delta matchedPackage = stella-coder@3.9.2 matchedIdentity = npm:c3RlbGxhLWNvZGVy:3.9.2 similarity = 1.533 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 Critical6 High6 Medium6 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
HighShips High Entropy Blobstella-coder-3.9.2.tgz
HighPayload In Excluded Dir.opencode/skills/ui-ux-pro-max/scripts/design_system.py
MediumNetwork
MediumEnvironment Vars
MediumInstall Persistencedist/index.mjs
MediumShips Build Helperhello.py
MediumShips Compressed Blobstella-coder-3.9.2.tgz
MediumStructural Risk Force Deep Review
LowScripts Present
LowWeak Cryptodist/antimalware/database.mjs
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings
LowNested Archive Needs Inspectionstella-coder-3.9.2.tgz