tg-hub
Fail
Audited by Gen Agent Trust Hub on Oct 26, 2026
Risk Level: HIGHCREDENTIALS_UNSAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [CREDENTIALS_UNSAFE]: The file
scripts/config.pycontains a hardcoded_DEFAULT_API_HASHvalue ("b18441a1ff607e10a989891a5462e627"). While documented as a public fallback for Telegram Desktop, hardcoding cryptographic secrets is an unsafe practice. - [COMMAND_EXECUTION]: The
SKILL.mdfile contains a specialized link (minis://open_terminal?init_command=...) designed to execute a series of shell commands in the user's terminal, includinguv run python -c. This mechanism allows for arbitrary command execution if the link parameters are manipulated. - [INDIRECT_PROMPT_INJECTION]: The skill's primary function is to ingest, synchronize, and search messages from external Telegram groups and channels. This data is untrusted and could contain malicious instructions designed to influence the agent's behavior when it processes or summarizes the retrieved messages.
- Ingestion points: Messages are fetched from the Telegram MTProto API and stored in a local SQLite database (
scripts/client.pyandscripts/db.py). - Boundary markers: No explicit boundary markers or instructions to ignore embedded commands are present when processing fetched message content.
- Capability inventory: The skill can read chat lists, fetch historical messages, and perform regex-based searches.
- Sanitization: While standard keyword searches are handled, the
search_regexmethod inscripts/db.pycompiles raw regex patterns which could be used to trigger resource exhaustion (ReDoS) or bypass filters if the pattern is sourced from untrusted input. - [EXTERNAL_DOWNLOADS]: The skill connects to Telegram's MTProto servers to fetch data. While this is the intended purpose, it involves network operations to a third-party service.
Recommendations
- AI detected serious security threats
Audit Metadata