telegram-cli
Fail
Audited by Gen Agent Trust Hub on Oct 17, 2026
Risk Level: HIGHCREDENTIALS_UNSAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The script
telegram-cli.pycontains hardcoded values forTELEGRAM_API_ID(1993898) andTELEGRAM_API_HASH(59d1e009d7ecb0c0a7224af3f461bb2e). While these values are widely used as public application identifiers for the Telegram Android client, hardcoding such credentials in source code is an unsafe practice that can lead to impersonation or unauthorized API use. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from external sources via the
readandaskcommands, creating a pathway for indirect prompt injection. - Ingestion points: The
cmd_readandcmd_askfunctions intelegram-cli.pyfetch chat history and messages from Telegram and output them directly into the agent's context. - Boundary markers: No delimiters or defensive instructions are provided in the skill to help the agent distinguish between its original instructions and commands potentially embedded in the retrieved messages.
- Capability inventory: The skill provides the agent with the ability to send text, images, and files via Telegram, which an attacker could exploit by sending a malicious message that the agent then follows.
- Sanitization: The retrieved message content is not sanitized or filtered before being presented to the agent.
Recommendations
- AI detected serious security threats
Audit Metadata