id: age-secret-key

info:
  name: Age Identity (X22519 secret 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:
          - '\bAGE-SECRET-KEY-1[0-9A-Z]{58}\b'
# digest: 4b0a00483046022100f06f6059b1c75141a4d2fef2122859c91af41af0d1f24d88df70db6cf553cb09022100a9c3a91c9aeb7035f9a46bbad58ef60da0d9a68f8a43de61de71f1271be0d955:922c64590222798bb761d5b6d8e72950