tg-research
Pass
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATIONCOMMAND_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests raw Telegram chat history that is later processed by sub-agents. Malicious instructions could be embedded within the chat data to manipulate the research agents' behavior or influence the generated report.
- Ingestion points: The skill calls
mcp__telegram-remote__get_historyandmcp__telegram-remote__search_messagesin Step 2 to pull message data into local JSON files. - Boundary markers: The sub-agent prompt template in Step 4 uses Markdown headers (e.g.,
## Primary data (TELEGRAM — ground truth)) to separate data sources, but it does not employ robust escaping, delimiters, or explicit "ignore embedded instructions" warnings for thetg_context_snippetsor the full JSON dump content. - Capability inventory: Sub-agents launched via the
Tasktool have access toWebSearchand the ability to generate structured JSON outputs. The main skill environment utilizesBash,Write,Read, and various Telegram MCP tools. - Sanitization: No sanitization or filtering of the Telegram message text (e.g., stripping markdown or control sequences) is performed before it is interpolated into the research agent's prompt.
- [DATA_EXPOSURE]: The skill's primary function is to mine and analyze sensitive personal communications. Although it contains strong instructions to keep data within
~/research/and avoid external uploads, the aggregation of private DMs and group chats into local files represents a significant data handling risk. - [COMMAND_EXECUTION]: The skill uses the
Bashtool to perform file system operations, create directories, and run thepandocdocument converter. It also executes a local script at~/.claude/skills/research/validate_json.pyto verify sub-agent outputs. - [DYNAMIC_EXECUTION]: The skill dynamically generates complex prompt templates for research sub-agents in Step 4, substituting multiple variables including verbatim snippets and file paths into the executable instructions.
Audit Metadata