-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(pii): Add private keys as secret key name #1376
Conversation
Somebody was sending a private key to their Sentry instance via breadcrumbs: https://twitter.com/MoonRankNFT/status/1554911833617641472/photo/1 The hashes and "mnemonic" seem not very useful for pattern matching, but we can at least filter out the string if it contains the word "privatekey" (case-insensitive)
@untitaker |
@lucas-zimerman how? I didn't see any pattern there we could detect. But yeah if you have an idea feel free to send a PR |
also btw keep in mind. with this PR, the entire json string will be deleted anyway, because it contains |
Basically the mnemonic phrase, is made up of 12, 18, or 24 words, based on BIP39,. TL;DR It can be used to generate a Private key.
Indeed, The entire json string will be removed ,but the user could remove the |
I see, so there's a standard with predefined words. I think if you want to put up a PR for this feel free to. I suspect the regex will be large and imperformant. We could denylist the word mnemonic as well 🤔 |
https://twitter.com/MoonRankNFT/status/1554911833617641472/photo/1
Its been reported that someone was - likely accidentally - sending a private key to their Sentry instance. There's not a great use case to allow storing that kind of value, so we are adding it to our default blocklists.
The hashes and "mnemonic" seem not very useful for pattern matching, but
we can at least filter out the string if it contains the word
"privatekey" (case-insensitive)