LeakSnitchInstall free

Generic Private Key detection

A publicly auditable detection pattern in the LeakSnitch engine. Category: Infrastructure and Internal Systems. Severity: Critical.

Short answer

LeakSnitch detects generic private key with a base score of 95 (Critical severity). The pattern below is fully public, so any security team can verify exactly what gets flagged before rollout.

regex / gpattern v1
-----BEGIN\s+(?:RSA|EC|DSA|OPENSSH|PRIVATE)\s+KEY-----\s*[\r\n]+[A-Za-z0-9+/=\s\r\n]+-----END\s+(?:RSA|EC|DSA|OPENSSH|PRIVATE)\s+KEY-----

Base score

95 / 100

Severity

Critical

Category

Infrastructure and Internal Systems

Why it matters

Infrastructure details map your internal systems for anyone who reads the conversation, including the AI provider and its reviewers.

In the LeakSnitch engine this pattern is one of 58 public rules combined with context signals, entropy analysis, and checksum validators. A single match never blocks by itself; the full context aware scoring decides whether generic private key in a prompt is a real leak or a false positive.

Frequently asked questions

Why is the generic private key pattern public?

LeakSnitch's competitive advantage is the context aware engine, not hidden regexes. Publishing every pattern lets security teams audit, test, and trust the detection before it ships to their organization.

Can I test this generic private key pattern?

Yes. Paste sample text into the free LeakSnitch scanner in your browser and watch the exact detection in action, including severity and scoring.

Does LeakSnitch use other signals for generic private key?

This public pattern is the format based layer. The engine adds context signals, disclosure phrasing, entropy fallback, and checksum validation to confirm high confidence before blocking.

Related patterns

Stop AI leaks on the device, not in the cloud.

Install LeakSnitch in under 30 seconds and protect every prompt sent to ChatGPT, Claude, Gemini, and 25+ AI tools. Free for individuals.