id: age-recipient-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
  metadata:
    verified: true
  tags: file,keys,age-encryption,token

file:
  - extensions:
      - all

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