Skip to content

Commit 1b4e30e

Browse files
author
Luís Ferreira
committed
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>
1 parent ccdf02d commit 1b4e30e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pre_commit_hooks/detect_private_key.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
b'BEGIN SSH2 ENCRYPTED PRIVATE KEY',
1313
b'BEGIN PGP PRIVATE KEY BLOCK',
1414
b'BEGIN ENCRYPTED PRIVATE KEY',
15+
b'BEGIN OpenVPN Static key V1',
1516
]
1617

1718

tests/detect_private_key_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
(b'PuTTY-User-Key-File-2: ssh-rsa', 1),
1212
(b'---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----', 1),
1313
(b'-----BEGIN ENCRYPTED PRIVATE KEY-----', 1),
14+
(b'-----BEGIN OpenVPN Static key V1-----', 1),
1415
(b'ssh-rsa DATA', 0),
1516
(b'ssh-dsa DATA', 0),
1617
# Some arbitrary binary data

0 commit comments

Comments
 (0)