{"version":"2.1.336","anchor":"token-redaction-regex-covers-more-credential-formats","canonical_anchor":"token-redaction-regex-covers-more-credential-formats","heading":"Secret detection recognises more kinds of keys and tokens","tier":"notice","area":"Elsewhere","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/token-redaction-regex-covers-more-credential-formats","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Secret detection recognises more kinds of keys and tokens\n\nThe pattern Claude Code uses to spot secret-shaped text now matches more credential formats, such as Vault, npm and PyPI tokens\n\n**Unclear.** Where Claude Code applies this pattern, and so which output now has these secrets hidden, is not stated.\n\n**What**\n\nClaude Code has a pattern for spotting text that looks like a secret, such as an API key or access token. It now matches more formats:\n\n- Keys starting with `sk-`\n\n- Google tokens starting with `ya29.`\n\n- HashiCorp Vault tokens\n\n- npm tokens starting with `npm_`\n\n- PyPI tokens starting with `pypi-AgE`\n\n- Webhook secrets starting with `whsec_`\n\n- AGE secret keys\n\n**Why**\n\nWherever this pattern is used to hide secrets, more types of credentials are now caught.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: yes"}