xiaohongshu-title-score
Fail
Audited by Gen Agent Trust Hub on Aug 11, 2026
Risk Level: HIGHCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATIONCREDENTIALS_UNSAFE
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/fetch_xhs_trends.pyutilizessubprocess.runto execute PowerShell commands on Windows systems to retrieve environment variables. Additionally, the skill instructions inSKILL.mddirect the agent to execute shell commands (exporton macOS/Linux and[Environment]::SetEnvironmentVariableon Windows) to modify the operating environment. - [COMMAND_EXECUTION]: The skill instructs the agent to automatically modify user shell profile files, specifically
~/.zshrcand~/.bashrc, by appending export commands. This is a persistence mechanism that modifies system startup behavior. - [CREDENTIALS_UNSAFE]: The skill encourages storing the
REDFOX_API_KEYin plain text within shell configuration files and environment variables. While intended for functional configuration, storing secrets in files like.bashrcor.zshrcmakes them accessible to any process reading these common configuration files and may expose them in shell history. - [EXTERNAL_DOWNLOADS]: The skill performs network requests to
https://redfox.hk/story/api/cozeSkill/getXhsCozeSkillDatausing therequestslibrary to fetch trending data. While this is a vendor-owned domain, it represents an external data dependency. - [INDIRECT_PROMPT_INJECTION]: The skill has a high surface for indirect prompt injection as it fetches external data from an API and interpolates it directly into the agent's context to generate and score titles. There are no explicit boundary markers or sanitization logic to prevent the fetched data from influencing the agent's behavior beyond the intended scope.
- [DATA_EXFILTRATION]: User-provided keywords and the system's
REDFOX_API_KEYare transmitted to the external domainredfox.hkduring data retrieval operations.
Recommendations
- AI detected serious security threats
Audit Metadata