RSA, EC, OpenSSH, PGP, WireGuard, age and other private-key material.
Updated 02 Nov 2026Checked against cli@de9b52a
14 rules, kind secrets. They run under vulnetix secrets and the secrets stage of vulnetix scan, not under vulnetix sast. Each is generated from one entry in internal/sast/secretsgen/catalog.json.
Detection: keyword means the pattern is tried only on lines that contain one of the listed keywords (case-insensitive); entropy means the matched token must also reach the entry’s minimum Shannon entropy. Every catalog rule skips test files, lockfiles, minified and generated files, and paths under testdata/, fixtures/, vendor/, node_modules/, dist/, build/ and src/test/ (the skip_path list in internal/sast/rules/lib_secrets.rego), and documented example tokens.
Rule ID
Name
Severity
Detection
Keywords
CWE
VNX-SEC-641
OpenSSH private key block
Critical
regex
beginprivate keyopenssh
CWE-798
VNX-SEC-642
RSA private key block
Critical
regex
beginprivate keyrsa
CWE-798
VNX-SEC-643
EC private key block
Critical
regex
beginprivate keyec
CWE-798
VNX-SEC-644
DSA private key block
Critical
regex
beginprivate keydsa
CWE-798
VNX-SEC-645
PKCS8 private key block
Critical
regex
beginprivate key
CWE-798
VNX-SEC-646
Encrypted private key block
High
regex
beginprivate keyencrypted
CWE-798
VNX-SEC-647
PuTTY private key file (.ppk)
Critical
regex
putty-user-key-file
CWE-798
VNX-SEC-648
SSH2 private key block
Critical
regex
begin ssh2private key
CWE-798
VNX-SEC-649
PKCS12 keystore reference
High
keyword + regex + entropy
p12pkcs12pfxkeystore
CWE-798
VNX-SEC-650
Certificate bundled with private key
Medium
keyword + regex + entropy
begin certificateprivate key
CWE-798
VNX-SEC-651
JWT HS256 hardcoded signing secret
Critical
keyword + regex + entropy
jwt_secretjwt secretsigning keyhmac
CWE-798
VNX-SEC-697
SSH private key beginning marker (generic)
Critical
regex
beginprivate key
CWE-798
VNX-SEC-731
Hardcoded session/cookie signing secret
High
keyword + regex + entropy
session_secretcookie secretsigning keysecret_key
CWE-798
VNX-SEC-732
Hardcoded encryption key (AES/Fernet context)
High
keyword + regex + entropy
encryption_keyaes keyfernetsecret box
CWE-798
Suppress one with // nosec <rule-id> on the line, or vulnetix ignore add --rule <rule-id>. See Suppressing findings.
Edit this pageSources: cli/internal/sast/secretsgen/catalog.json, cli/internal/sast/secretsgen/main.go