rails-audit-thoughtbot
Pass
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes shell commands to collect application metrics. This includes running the project's full test suite via
bundle exec rspecorbundle exec rails test, and runningbundle exec rubycritic. Executing a test suite involves running arbitrary code defined within the audited project. - [EXTERNAL_DOWNLOADS]: The skill may perform external package installations using
bundle installto set upsimplecovandrubycriticif they are not already present in the project. While these are well-known development tools, the process involves fetching packages from external registries. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and analyze entire codebases, which act as untrusted input. A malicious codebase could contain embedded instructions in comments or strings designed to manipulate the agent's audit report or behavior.
- Ingestion points: Reads files from
app/,spec/,test/,config/,db/, andlib/(SKILL.md). - Boundary markers: The skill does not explicitly define delimiters for external code when processing it for analysis.
- Capability inventory: Uses
Glob,Grep, andReadtools for analysis, shell execution for metrics collection, andWriteto generateRAILS_AUDIT_REPORT.md. - Sanitization: There is no explicit sanitization or filtering mentioned for the content read from the codebase before it is used to generate the report.
- [DYNAMIC_EXECUTION]: The subagents dynamically modify the project's configuration files at runtime, specifically prepending instrumentation code to test helpers (
spec/rails_helper.rbortest/test_helper.rb) and modifying theGemfileto inject new dependencies.
Audit Metadata