id: rubygems-key

info:
  name: RubyGems API Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/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: 490a00463044022062a4e13510156d9686fbe571e568ca39f32866ef42438a0bce4c53a7ec1db70002206a2f0e073e5ab807abe046d69afe37df327ba61ea79bc23f410be205d5609bd1:922c64590222798bb761d5b6d8e72950