detect_private_key: add OpenVPN shared-secret key block
'OpenVPN Static key V1' label is often used by OpenVPN for providing hardening security with additional HMAC signatures to the SSL/TLS handshake packets. They are shared secrets and should be kept private. Signed-off-by: Luís Ferreira <contact@lsferreira.net>
This commit is contained in:
parent
ccdf02dfd4
commit
1b4e30e9aa
|
@ -12,6 +12,7 @@ BLACKLIST = [
|
|||
b'BEGIN SSH2 ENCRYPTED PRIVATE KEY',
|
||||
b'BEGIN PGP PRIVATE KEY BLOCK',
|
||||
b'BEGIN ENCRYPTED PRIVATE KEY',
|
||||
b'BEGIN OpenVPN Static key V1',
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ TESTS = (
|
|||
(b'PuTTY-User-Key-File-2: ssh-rsa', 1),
|
||||
(b'---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----', 1),
|
||||
(b'-----BEGIN ENCRYPTED PRIVATE KEY-----', 1),
|
||||
(b'-----BEGIN OpenVPN Static key V1-----', 1),
|
||||
(b'ssh-rsa DATA', 0),
|
||||
(b'ssh-dsa DATA', 0),
|
||||
# Some arbitrary binary data
|
||||
|
|
Loading…
Reference in New Issue