QuestionQ66

VerifiedDevSecOps Pipeline-Code Stage

Cindy Williams recently joined an IT company as a DevSecOps engineer. She configured Bundler-Audit in Travis CI and detected a vulnerability in the Gemfile dependencies, which she resolved by adding some lines of code. How does Bundler scan the Gemfile.lock file for insecure versions of gems?

Explanation

Bundler-audit reads the gem names and locked versions from the Gemfile.lock (which is generated from the Gemfile) and checks them against the Ruby Advisory Database (ruby-advisory-db), a maintained repository of known Ruby gem security vulnerabilities. If a gem's version in the lock file matches a version flagged in this known-vulnerabilities database, bundler-audit reports it as insecure. The .travis.yml file is only used to configure how and when the CI job runs the bundler-audit check; it is not the source of vulnerability data used for comparison, and the comparison is against known (not unknown) vulnerabilities.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!