id: age-public-key

info:
  name: Age Recipient (X25519 public key)
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/age.yml
    - https://github.com/FiloSottile/age/blob/main/doc/age.1.html
    - https://github.com/C2SP/C2SP/blob/8b6a842e0360d35111c46be2a8019b2276295914/age.md#the-x25519-recipient-type
    - https://age-encryption.org
  metadata:
    verified: true
    max-request: 1
  tags: age-encryption,exposure,tokens,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - '\bage1[0-9a-z]{58}\b'
# digest: 4a0a00473045022100b931094c1eacfeae2041425d87cccd6438e9dc50963df9e87b9f84f0c33652540220466bc0668ef554836e849823307ba236e31ce39de2bb47d95839d6fd7dee0d28:922c64590222798bb761d5b6d8e72950