logo

Database

Wireguard Private Key

Description

The source code repository contains sensitive information: WireGuard Private Key

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

    • Matches WireGuard Private Key patterns in source code and configuration files

Vulnerable code example

[Interface]
PrivateKey = JD2Nfhqw43wIoOb5YkVDIV3rBgq3hmSr6+M8Lf4K97s=
Address = 10.0.0.2/32
privatekey=vDxXGwyHdFlATpKQxRwahxULg0+pCQqG70zr7KKj8rg=
  PrivateKey = TWbZPX/ux5/kbkxXB3kVo/EuaLhLwfcbeptDXwv1brs=
conf = "[Interface]\nPrivateKey = JD2Nfhqw43wIoOb5YkVDIV3rBgq3hmSr6+M8Lf4K97s=\nListenPort = 51820\n"
      - WIREGUARD_PRIVATE_KEY=vDxXGwyHdFlATpKQxRwahxULg0+pCQqG70zr7KKj8rg=
wg_private_key: "TWbZPX/ux5/kbkxXB3kVo/EuaLhLwfcbeptDXwv1brs="...