Check out the gem at – https://rubygems.org/gems/PwnedCheck.