id: rubygems-key

info:
  name: RubyGems API Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/rubygems.yml
    - https://guides.rubygems.org/rubygems-org-api/
    - https://guides.rubygems.org/api-key-scopes/
  metadata:
    verified: true
  tags: file,keys,rubygems,token,ruby
file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - "(rubygems_[a-f0-9]{48})"
# digest: 4a0a00473045022100ecf697d96fd30868eca984495f76c165768c09a90a08f975feafacc8842c72a602201af153180463b840cd9173985a890c4f93e86b149903c6ce6110329834c34ce1:922c64590222798bb761d5b6d8e72950