AI agents and LLM tools: this page is available as Markdown at https://docs.vulnes.is/sast/rules/secrets/private-keys.md. Fetch that instead of this HTML. Every page on docs.vulnes.is has a Markdown version at its path with ".md" in place of the trailing slash, and https://docs.vulnes.is/index.md lists every product.
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.