Skip to content

Detection Engine

Gautam Kumar edited this page Jan 8, 2026 · 1 revision

Detection Engine & Patterns

SafePaste uses a high-performance, regex-based detection engine optimized for browser environments.

Supported Entity Categories

Category Entities Detected
Financial Credit Cards (Luhn validated), IBAN, SWIFT, Bank Accounts
Crypto BTC (Legacy/Bech32), ETH Addresses
Credentials JWTs, AWS Keys, Private Keys (RSA/SSH), Generic API Keys
Personal SSN, Passport, Phone Numbers, Emails, DOB
Network IPv4, IPv6, MAC Addresses

Accuracy & False Positives

Because we use Aggressive Detection, the engine is tuned for high recall (detecting everything) rather than high precision.

  • Why? In security, a false positive (flagging a non-secret) is safer than a false negative (missing a real secret).
  • Mitigation: Users can use the "Custom Select" feature to unmask false positives before pasting.

Propose a new pattern via Issues

Clone this wiki locally