md-to-xhs-cards
Pass
Audited by Gen Agent Trust Hub on Sep 17, 2026
Risk Level: SAFEDATA_EXFILTRATIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DATA_EXFILTRATION]: The skill accesses sensitive authentication data by searching for and reading
.envfiles in the current and parent directories to retrieveXHS_COOKIEvalues. While intended for legitimate Xiaohongshu publishing, this provides access to raw session credentials. - [DATA_EXFILTRATION]: The publishing script (
scripts/publish_xhs.py) includes a feature to transmit authentication cookies to an external API endpoint via the--publish-api-urlflag. Although it defaults tolocalhost, this capability allows for remote transmission of sensitive session data. - [COMMAND_EXECUTION]: The renderer script uses
subprocess.runto execute the publishing module. It passes user-derived or file-derived strings (title, description) as command-line arguments to this process. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted user-supplied Markdown content with the following risk factors:
- Ingestion points:
SKILL.mdinstructs the agent to resolve and process markdown file paths provided in user requests. - Boundary markers: There are no specific instructions or delimiters used to prevent the agent from obeying instructions embedded within the processed Markdown content.
- Capability inventory: The skill possesses the ability to read sensitive local files (
.env) and perform network operations (requests.post). - Sanitization: While the script parses markdown into structural blocks for image rendering, metadata such as titles and descriptions derived from the input file are passed as arguments to the publishing system, creating a path for malicious instructions to influence tool execution (e.g., overriding the API URL to an attacker-controlled server).
- Ingestion points:
Audit Metadata