id: cratesio-api-key

info:
  name: Crates.io API Key - Detect
  author: DhiyaneshDK
  severity: info
  description: Crates.io API key was detected.
  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
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    verified: true
  tags: keys,file,crates,token
file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - '\bcio[a-zA-Z0-9]{32}\b'

# Enhanced by md on 2023/05/04
# digest: 4a0a0047304502206a47e9c8ad07dcd2da2adf35304b7e0d208257f20bfb1eb91b2b6de4cbe660a9022100d2f798c6d7bcd5e8b8c7201cde4f16090987154267967ab9b8e5c332fb84a10e:922c64590222798bb761d5b6d8e72950