Custom Rules
Pass
Audited by Gen Agent Trust Hub on Aug 31, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes shell commands for environment detection (
ruby -v,rails -v) and file operations (mkdir,test -f). These are standard operations for a development toolkit. - [COMMAND_EXECUTION]: The skill supports executing user-defined commands through
phase-injectandverification-gatetypes. The instructions include a 'Command safety' section in the engine reference that strictly tokenizes these commands and rejects shell metacharacters (|,;,&&,||,>,<, backticks,$()) to prevent command injection. - [CREDENTIALS_UNSAFE]: The skill handles private gem sources (e.g., Rails LTS) by referencing environment variables (
credentials_env). The engine reference explicitly mandates that credential values are never stored or logged, only their presence is checked. This follows best practices for secret management. - [DYNAMIC_EXECUTION]: The skill supports regex-based code transformations. To mitigate ReDoS attacks, the engine reference requires a catastrophic-backtracking check using
safe-regexheuristics and validates patterns as Ruby regexes before authoring. - [INDIRECT_PROMPT_INJECTION]: The skill reads a
.ruby-upgrade-toolkit/rules.ymlfile from the project root. While this is an ingestion point for external data, the skill implements a strict schema validation pipeline (described inschema.md) that restricts inputs to known enums and whitelisted settings, minimizing the risk of indirect injection.
Audit Metadata