> For clean Markdown of this page, append .md to its URL. For the complete documentation index, see https://www.superagent.sh/llms.txt.


Review a Ruby repository for Ruby2Shell exposure in its runtime and source code, including Rails and Sinatra projects.

# Ruby2Shell testing for repositories


[← Back to attack scenarios](https://www.superagent.sh/docs/products/red-teaming/attack-scenarios)

A Ruby application's runtime and source code determine whether Ruby2Shell applies to it. This scenario examines that relationship in a repository, where the report can explain which runtime the application uses and whether the affected behavior is relevant to its code.

Use the report alongside Ruby's advisory when reviewing an upgrade. It separates runtime exposure from confirmed application impact and can explain whether a proposed runtime update addresses the identified issue.

For a deployed service, see [Ruby2Shell testing for web applications](https://www.superagent.sh/docs/products/red-teaming/attack-scenarios/ruby2shell-applications).

The app lists this scenario as **Ruby2Shell — Ruby application code execution** (`REPO-16`) in [Repository Red Teaming](https://www.superagent.sh/docs/products/red-teaming/repositories).

## Standards and guidance

[Ruby security advisory GHSA-34m4-m9fh-gqp5](https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5)

---
Source: https://www.superagent.sh/docs/products/red-teaming/attack-scenarios/ruby2shell-repositories
Index: https://www.superagent.sh/llms.txt
