id: age-public-key

info:
  name: Age Recipient (X25519 public key)
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/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
  metadata:
    verified: true
    max-request: 1
  tags: age-encryption,exposure,tokens

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

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