reddit-moderate
Pass
Audited by Gen Agent Trust Hub on Aug 31, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process untrusted data from Reddit, creating a vulnerability surface where attackers could attempt to influence the agent's moderation decisions through carefully crafted content.
- Ingestion points: The
reddit-mod.pyscript fetches submissions, comments, and report reasons from the Reddit API (subcommands:queue,reports,scan). - Boundary markers: The prompt template in
references/classification-prompt.mdwraps raw Reddit data in<untrusted-content>delimiters. - Capability inventory: The skill possesses significant capabilities, including the ability to
approve,remove,lock, andbanon the Reddit platform. - Sanitization: The
wrap_untrustedfunction inscripts/reddit-mod.pyprevents tag-based escaping by stripping existing delimiters from user data. The classification prompt contains explicit security instructions to treat text resembling system commands as a signal for manipulation rather than directives to obey. - [COMMAND_EXECUTION]: The
scripts/reddit-automod-cron.shscript facilitates automated moderation by running theclaudeCLI with--permission-mode auto. This configuration allows the agent to execute moderation actions based on its classification of untrusted data without per-action human approval. While mitigated by confidence thresholds and safety rules (e.g., skipping auto-bans), it represents a fully autonomous loop involving untrusted content.
Audit Metadata