Skip to content

LS-WG-001: WireGuard Private Key

Severity CRITICAL
Blast radius VPN/internal network access
Rotate at https://www.wireguard.com/quickstart/

If this leaks

Allows establishing a VPN tunnel as this peer, granting whatever network access the WireGuard configuration permits, often a path into an internal network.

What to do

  1. Rotate or revoke the credential at https://www.wireguard.com/quickstart/.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

(?im)^(?:PrivateKey|PresharedKey)\s*=\s*[A-Za-z0-9+/]{43}=\s*$

Suppress

On one line: # leakscan:ignore LS-WG-001. For the whole project:

disable_rules: [LS-WG-001]