8 ms·
The author of this blog must have uploaded an image without the big red block to mask the private key, realized their error, and replaced it with an image of it
by netinstructions 8y ago
The author of this blog must have uploaded an image without the big red block to mask the private key, realized their error, and replaced it with an image of it blocked. However they didn't remove the unblocked image first. Ghost (the blog engine here) just appends a number to the image when you replace it without changing the filename, so it's easy to find. See the two URLs below:
https://blog.ropnop.com/content/images/2018/05/base64_decode_openssh.png https://blog.ropnop.com/content/images/2018/05/base64_decode...
https://blog.ropnop.com/content/images/2018/05/base64_decode_openssh-1.png https://blog.ropnop.com/content/images/2018/05/base64_decode...
This is probably a good reason to use burner keys for proof of concepts.
- e1ven 8y agoWhile I agree it's good to use a burner key, you could have emailed him instead of posting links to both keys on HN...
- netinstructions 8y agoI read that they were burner keys. With people discussing reverse-engineering the pixelated images to access the keys, the merits of masks, security, etc it seemed like a lesson worth sharing for everyone's benefit here that an email wouldn't have accomplished.
- ropnop 8y agoAuthor here...heh nice find. All keys used were burner keys anyway. The only reason I blurred and obfuscated where I could was just for "best practice" not for real security. I knew if I didn't people would comment that I should've ;)
- dspillett 8y ago> I knew if I didn't people would comment that I should've ;) That and following good practise even when not actually necessary due to other mitigations, you obviously hint to less experienced readers what good practise is.
- ryan-c 8y agoEven just the half of the key in that secreenshot is likely to be sufficient to recover the whole thing as well - RSA private key formats have a ton of redundant data.
- zx2c4 8y agoAlso, see the Coppersmith method: https://en.wikipedia.org/wiki/Coppersmith_method https://en.wikipedia.org/wiki/Coppersmith_method