id: crates-api-key

info:
  name: Crates.io API Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/crates.io.yml
    - https://crates.io/data-access
    - https://github.com/rust-lang/crates.io/blob/master/src/util/token.rs
  metadata:
    verified: true
    max-request: 1
  tags: crates,token,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    extractors:
      - type: regex
        part: body
        regex:
          - '\bcio[a-zA-Z0-9]{32}\b'
# digest: 490a00463044022019d5cf311801102dbd9e6b59b3f4054ab03532092ec0aa5bded342bce9bafa9e02204744e27f509fe86ac784accb9f4f417c5c23e054a80fe40aaf035d9a05850e71:922c64590222798bb761d5b6d8e72950