News for hackers. Stuff that matters.
Re:A simple, (as-of-yet unidentified) asymmetric Authenticat... by pclmulqdq on Tuesday March 26, 2024 @07:04PM (#39833829)
This is how roll-your-own cryptography often works out. You set the parameters of the attacks you want to defend against, defend against them perfectly, and ignore the practical realities of what attacks are actually coming.

If you are great at it, you will come up with something very efficient that defends only against the attack surface you need. If you are not great at it, you will have an insecure system.

Re:A simple, (as-of-yet unidentified) asymmetric Authenticat... by mike_d on Tuesday March 26, 2024 @07:33PM (#39834065)
Re:A simple, (as-of-yet unidentified) asymmetric Authenticat... by cobratbq on Tuesday March 26, 2024 @10:07PM (#39835005)
I understand the "roll-your-own-crypto" comment. Note that I am taking the perspective of the protocol here, right? So, sure, vulnerabilities in the program are definitely a possibility. (See also other comments explaining more details about the device.) This is part of an experiment to see what can be accomplished with the TKey, which offers an interesting combo of security features.

Feel free to pour me an avalanche of missed attacks. I would be interested to know if your attacks are on the protocol level or in other ways. C programming risks are obviously there. RNG risks are obviously there. You are right that there are plenty of considerations in the program too. They are just not part of this post. (I also commented on the RNG remarks in other replies.)

Re:A simple, (as-of-yet unidentified) asymmetric Authenticat... by pclmulqdq on Wednesday March 27, 2024 @06:46AM (#39837461)
I think if you read the comments aimed at this protocol, we're all saying that if this is a fun/school project, it sounds good, but if this is a commercial product, use something that has been proven to work.

No protocol exists completely separate from its implementation.

Re:A simple, (as-of-yet unidentified) asymmetric Authenticat... by cobratbq on Wednesday March 27, 2024 @03:43PM (#39843669)
> No protocol exists completely separate from its implementation.

That's a fair point. I am well aware of this.

Re:A simple, (as-of-yet unidentified) asymmetric Authenticat... by mike_d on Wednesday March 27, 2024 @02:06PM (#39842556)
> Feel free to pour me an avalanche of missed attacks.

Sure. Based on your other comments you are using a USB device that explicitly provides no security guarantees when someone has physical access to it, so any attempt to secure the communications between the host and device are moot.

Re:A simple, (as-of-yet unidentified) asymmetric Authenticat... by cobratbq on Wednesday March 27, 2024 @03:42PM (#39843655)
I'd love to respond to this, but your comment "... that explicitly provides no security guarantees when someone has physical access to it, .." is too abstract for me. I'll make a few guesses.

- Is the device hackable? AFAIK not at this moment. The firmware is minimal. It is a relatively new device, so maybe I am not fully informed.

- Is the device stealable/swappable? Yes. However, it isn't possible/easy to access the internal device-secret (UDS) therefore, swapping it out leads to different secret for the program, cascading into the identity, therefore authentication would fail. (Also, if you steal it, then it's gone. :-P)

- There are protections against opening it up. I'm not an expert on this, so I cannot reliably reproduce from memory the ways it is resistant to this. However, it already means your destroying hardware in the process.

Re:A simple, (as-of-yet unidentified) asymmetric Authenticat... by mike_d on Thursday March 28, 2024 @04:46AM (#39848933)
> Is the device hackable? AFAIK not at this moment. The firmware is minimal. It is a relatively new device

It is just a package around an inexpensive FPGA chip. Published and un-published attacks against it exist. For these reasons the TKey developers call out "[a]ll physical and electrical attacks applied to the board [are out of scope]" in the threat model.

https://hackaday.com/2018/09/27/three-part-deep-dive-explain...

https://github.com/sylefeb/Silice/blob/draft/projects/ice40-...

> There are protections against opening it up.

I'd love to see photos if yours is any different than what is on the website.

Re:A simple, (as-of-yet unidentified) asymmetric Authenticat... by cobratbq on Thursday March 28, 2024 @12:14PM (#39853484)
You're right. I misremembered; read up on a lot of things in last months. Doesn't really matter, because we're discussing a protocol anyways.