xiaohongshu-prohibited-word
Warn
Audited by Gen Agent Trust Hub on Oct 22, 2026
Risk Level: MEDIUMCREDENTIALS_UNSAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The script
scripts/check_sensitive_words.pycontains logic to scan sensitive shell configuration files, including~/.zshrc,~/.bashrc,~/.bash_profile,~/.profile, and~/.zprofile, to extract theREDFOX_API_KEY. Accessing these files exposes the agent to all environment variables and secrets stored within the user's shell profile. - [EXTERNAL_DOWNLOADS]: The skill provides instructions in
references/alipay-recharge.mdto download and install the@alipay/agent-paymentutility from the npm registry usingnpxduring the automated recharge process. This utility is from a well-known service used to manage API credits. - [COMMAND_EXECUTION]: The skill implements a dynamic recharge workflow that involves executing multiple shell commands using the
alipay-botCLI tool to handle payment links, submit transactions, and poll for payment status based on data received from the API. - [INDIRECT_PROMPT_INJECTION]: The skill has an attack surface for indirect prompt injection by fetching and processing untrusted text from user-provided URLs and uploaded documents (DOCX, TXT, MD, etc.).
- Ingestion points: Untrusted content is retrieved via the
extract_from_fileandextract_from_webfunctions inscripts/check_sensitive_words.py. - Boundary markers: Absent. The agent is instructed to process the raw extracted text without explicit delimiters or instructions to ignore embedded commands.
- Capability inventory: The skill utilizes network requests via
urllib, web scraping withplaywright, and financial transaction management viaalipay-bot. - Sanitization: The script filters for prohibited words but does not provide sanitization against adversarial instructions within the source text.
Audit Metadata