praetorian-inc / noseyparker

Nosey Parker is a command-line program that finds secrets and sensitive information in textual data and Git history.
Apache License 2.0
1.66k stars 79 forks source link

Add WireGuard PrivateKey/PresharedKey rule #104

Closed gemesa closed 9 months ago

gemesa commented 9 months ago

This is a rule I regularly use to look for WireGuard .conf files (specifically private and preshared WG keys). Maybe it makes sense to add it to the defaults. I generated the 2 keys in the example myself just for this purpose.

gemesa commented 9 months ago

Thank you @gemesa! This looks really good. This will allow Nosey Parker to detect more secrets with precision.

Would you please split this new WireGuard PrivateKey/PresharedKey rule into two new rules? They are conceptually different things, even if they have the same format. WireGuard Private Key and WireGuard Preshared Key are good names for them.

I split them and fixed the review findings, please check it out.

bradlarsen commented 9 months ago

Thank you for your contribution, @gemesa!