tg-cli
Warn
Audited by Gen Agent Trust Hub on Apr 14, 2026
Risk Level: MEDIUMCREDENTIALS_UNSAFEPROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The file
src/tg_cli/config.pycontains a hardcoded API hash (_DEFAULT_API_HASH). This value is the public constant for the official Telegram Desktop application (API ID 2040). While its inclusion facilitates ease of use, hardcoded credentials in source code are generally flagged as a risk. In this context, it is mitigated as it is associated with the skill's primary functionality for interacting with a well-known service. - [PROMPT_INJECTION]: The skill presents an indirect prompt injection surface (Category 8). (1) Ingestion points: External data from Telegram messages enters the agent's context through
fetch_historyinsrc/tg_cli/client.py. (2) Boundary markers: Findings show that messages are output to the agent context in raw or structured YAML formats without explicit delimiters or instructions to ignore embedded commands. (3) Capability inventory: The skill has significant capabilities including sending, editing, and deleting messages (tg send,tg edit,tg deleteinsrc/tg_cli/cli/tg.py), which could be abused if an agent obeys a malicious instruction contained within a processed message. (4) Sanitization: Incoming message content is not sanitized or filtered before being displayed or stored.
Audit Metadata