Steven Galbraith

324 Followers
86 Following
1.7K Posts
Mathematician, cryptographer, father, husband, musician, bonsai, etc. Mathematics Department, University of Auckland, New Zealand
Some more #bonsai from the auckland show

During #39c3 Nadia Heninger introduced me to Keegan Ryan, and we talked about things that could go wrong in RSA, and how to detect keys with suspicious patterns created by defect RNGs. At some point, Keegan said: "You could check the Hamming Weight of the Modulus." And I replied: "I don't know what that means."
But it's actually quite simple. The Hamming Weight is the ratio of symbols, if we look at bits, how many 0s vs 1s are there. For a "proper", randomly generated RSA key, the ratio should be close to 0.5. If it's significantly different from that, it's likely not randomly generated.
We ended up finding some keys with repeating zero-byte patterns.It is possible to represent those as polynomials. Unlike integer numbers, polynomials can be factored efficiently, which means these keys can be broken.

We found SSH host keys that we could trace back to a software called CompleteFTP (which, furthermore, had another RSA vulnerability in its Linux version and also generated vulnerable DSA keys - all fixed in the latest version of CompleteFTP, but keys need to be regenerated). We furthermore identified another class of vulnerable keys (with a different width of zero byte patterns) in TLS certs (both self-signed and WebPKI-signed, but all expired, so no revocations), most of them from Verizon+Yahoo, but we were unable to identify the vulnerable RSA implementation.

If you're interested in the details of the attack, check Keegan's blog post:
https://blog.trailofbits.com/2026/06/12/factoring-short-sleeve-rsa-keys-with-polynomials/

The latest badkeys version 0.0.18 detects all affected vulnerable keys.

Factoring "short-sleeve" RSA keys with polynomials

We found hundreds of weak RSA and DSA keys with biased bits that we could quickly factor using a new polynomial-based cryptanalytic technique.

The Trail of Bits Blog
Great Pohutukawa at Auckland #bonsai show
If you are in Aotearoa New Zealand then vote for Kai
https://www.voteforkai.nz/
Vote for Kai | Join the Food Justice Movement

Explore Vote for Kai, a movement advocating for a just, sustainable, and culturally respectful food system in Aotearoa New Zealand. Join us to support equitable access to healthy kai.

VOTE FOR KAI

Are you in Tāmaki Makaurau? Do you like socialist literature at bargain prices?

The Socialist Library Project is selling surplus books at Trades Hall on July 25

https://facebook.com/events/s/socialist-booksale-to-support-/1444222294402883/

Crossposted with @openvibe

Socialist Booksale to support the Socialist Library Project

Event in Auckland, New Zealand by Daphne Lawless and Cyprian de Castro-Robinson on Saturday, July 25 2026

Assoc editor of Frontiers in Systems #Neuro:

Over the last month I saw that human editors are now stripped of control. I could no longer stop the system from auto-inviting "reviewers" with zero relevant expertise. Even worse - the AI began actively revoking the invitations I manually sent out to actual, qualified experts.

I emailed and met with the editorial office to ask for the AI assistant to be turned off. I was told this is not possible.

https://bsky.app/profile/michael-okun.bsky.social/post/3mnxkxte55s25

Michael Okun (@michael-okun.bsky.social)

I’ve officially resigned as Associate Editor for Frontiers in Systems Neuroscience. It used to be a reputable journal, but became a case study in how forced automation destroys academic integrity. 👇

Bluesky Social
Its great that the way to improve teaching and learning at universities is to increase the number of Associate Deans and Deputy Pro Vice Chancellors

Sometimes you can really tell a Wikipedia article is gonna be good from the table of contents.

https://en.wikipedia.org/wiki/Blue_Peacock

Our statement on the UK government’s demand that all content on all devices sold or used in the country be scanned, on the presumption of nudity, using a dystopian combination of age verification and content scanning. This proposal will not safeguard children. It endangers us all.

https://signal.org/blog/pdfs/2026-06-08-uk-surveillance-is-not-safety.pdf