x-tweet-fetcher
Fail
Audited by Gen Agent Trust Hub on Oct 3, 2026
Risk Level: HIGHCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/sogou_wechat.pyusessubprocess.runto executescpandsshcommands. These commands are used to transfer a dynamically generated Python script to a remote host and execute it, which constitutes a high-risk remote code execution pattern. - [PRIVILEGE_ESCALATION]: In
scripts/sogou_wechat.pyandscripts/fetch_china.py, the skill attempts to write command strings to/root/router-agent/cmd-queue. Interacting with the/rootdirectory is a sensitive operation that requires superuser privileges and is a strong indicator of privilege escalation or an assumption of excessive permissions. - [DYNAMIC_EXECUTION]: The function
sogou_wechat_search_via_sshinscripts/sogou_wechat.pydynamically constructs a Python script as a string and executes it on a remote machine. Constructing executable code from string templates is a dangerous pattern that can lead to code injection. - [INDIRECT_PROMPT_INJECTION]: The skill's primary function is to fetch content from external, untrusted social media platforms (X, WeChat, Weibo, etc.).
- Ingestion points: Data is fetched in
scripts/fetch_tweet.pyandscripts/fetch_china.py. - Boundary markers: The skill does not implement delimiters or 'ignore' instructions for the fetched content before returning it to the agent.
- Capability inventory: The skill possesses file-write and subprocess capabilities, which increases the potential impact of an injection attack.
- Sanitization: There is no specific sanitization to prevent malicious instructions embedded in tweets or articles from influencing the AI agent's behavior.
Recommendations
- HIGH: Downloads and executes remote code from: https://weixin.sogou.com/weixin?type=2&query={{quote({repr(keyword)})}}, unknown (check file) - DO NOT USE without thorough review
- AI detected serious security threats
Audit Metadata