Warn
Audited by Gen Agent Trust Hub on Apr 8, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The login command in
scripts/reddit.mjsconstructs a shell command to open the browser usingchild_process.exec. TheREDDIT_CLIENT_IDenvironment variable is interpolated into the URL without sanitization or escaping. If this environment variable is maliciously populated with shell metacharacters (e.g., via quotes and command separators), it can lead to arbitrary command execution on the host system.\n- [DATA_EXFILTRATION]: The skill processes sensitive Reddit credentials (client ID, secret, username, password) and stores OAuth access and refresh tokens in a plaintext file at~/.reddit-token.json. This file is located in the user's home directory and represents a sensitive asset that could be targeted for credential theft.\n- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection through its interaction with the Reddit API.\n - Ingestion points: Untrusted content is ingested from Reddit posts, search results, and comments via
scripts/reddit.mjs.\n - Boundary markers: No delimiters or warnings are used to isolate Reddit content from the agent's core instructions.\n
- Capability inventory: The skill can perform network requests, write to the filesystem, and execute subprocesses.\n
- Sanitization: Reddit content is passed directly to the agent without any filtering or validation of the text content.
Audit Metadata