telegram-cli

Pass

Audited by Gen Agent Trust Hub on Nov 6, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTIONPERSISTENCECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted content from Telegram messages and metadata that could contain malicious instructions.
  • Ingestion points: mcp/server.mjs receives raw Telegram data via subprocess calls to the CLI.
  • Boundary markers: The skill uses structured JSON for data exchange and includes explicit system instructions to treat Telegram content as data only.
  • Capability inventory: The skill possesses the ability to send messages, edit messages, and modify chat states (archive, mute, mark-read) across all scripts.
  • Sanitization: mcp/server.mjs implements sanitizeTelegramString which strips control characters and truncates strings to prevent prompt injection or terminal manipulation.
  • [PERSISTENCE]: The script scripts/finish-telegram-mcp-tunnel enables a systemd user service (telegram-mcp-tunnel.service) with Restart=always. This mechanism is designed to maintain a remote access tunnel to OpenAI/ChatGPT and requires explicit user confirmation.
  • [COMMAND_EXECUTION]: The MCP server (mcp/server.mjs) executes the local Python wrapper through node:child_process.execFile. The Python script scripts/telegram_cli.py also uses os.execve to manage its local virtual environment.
  • [EXTERNAL_DOWNLOADS]: scripts/bootstrap_venv.sh downloads and installs the telethon package from the official Python package registry (PyPI).
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 6, 2026, 10:34 PM