piighost/jwt

JSON Web Token in compact serialisation: two base64url segments that both start with ey, the encoding of an opening brace and quote, then a signature segment. Expired and sample tokens match as readily as live ones, which is usually what you want, and a signature shorter than ten characters is missed. The payload of a JWT routinely carries an email, a subject and a name, so this pattern is personal data cover as much as secret cover. No whole-span collision, but a long digit run inside the token body triggers credit-card, uk-nhs or de-phone on a sub-span, so jwt must be resolved before those.

Label: JWT

Pattern

\bey[A-Za-z0-9_-]{10,}\.ey[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_=-]{10,}(?![\w=-])

Must be caught

Must be left alone

Tags: international, secrets, software-dev

Download the detector as TOML