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

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

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