id: age-identity-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
  tags: file,keys,age-encryption,token

file:
  - extensions:
      - all

    extractors:
      - type: regex
        part: body
        regex:
          - '\bAGE-SECRET-KEY-1[0-9A-Z]{58}\b'
# digest: 490a0046304402205c32ea50c56d293598d9def38e08fa1a3b2a35e92acf6bf49573096e4649e54f02201d0279378b479b77a97258ed7f2c8699ad1997c4706f6bb3b9897439b0259385:922c64590222798bb761d5b6d8e72950