id: age-secret-key

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