Skip to content

Add secret detection rule for Age private keys

Brian Williams requested to merge bwill/age-private-key into master

What does this MR do?

This MR adds a new secret detection rule to detect Age private keys. Age is a file encryption tool that is intended to be a modern replacement for PGP. It has asymmetric encryption keys that are uniquely identifiable with the AGE-SECRET-KEY prefix, and use a Bech32 encoding.

I've tested this regex against 10 newly generated private keys: https://regex101.com/r/8hAgyj/1/

Screen_Shot_2021-09-23_at_5.44.25_AM

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Edited by Zach Rice

Merge request reports