rails-activity-timeline
Pass
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The AI-generated change summary feature in
references/ai-summaries.mdintroduces an indirect prompt injection vulnerability. Untrusted data from model fields is interpolated directly into an LLM prompt without sufficient security measures. - Ingestion points: User-controlled content from model attributes (e.g.,
event.from_field_value,event.to_field_value) is processed in theuser_promptmethod withinreferences/ai-summaries.md. - Boundary markers: The implementation lacks explicit delimiters (like XML tags or unique markers) or system instructions to ignore embedded commands within the user-provided content.
- Capability inventory: The skill performs network calls to external LLM providers via OpenRouter, updates database records with the resulting summary, and broadcasts these updates to connected clients using Turbo Streams.
- Sanitization: The implementation only uses basic truncation (
.truncate(1000)), which does not prevent an attacker from crafting malicious instructions that could influence the LLM's summary output or subsequent agent behavior. - [EXTERNAL_DOWNLOADS]: The documentation in
references/ai-summaries.mdinstructs the user to add and install an external dependency, theraix-railsgem, which facilitates LLM integrations. - [COMMAND_EXECUTION]: The setup instructions in
references/setup.mdandreferences/ai-summaries.mdrequire the user to execute shell commands such asbundle installandbin/rails generate migrationto configure the application environment.
Audit Metadata