News for hackers. Stuff that matters.
Re:Cryptographers Solve Decades-Old Privacy Problem by NortySpock on Saturday November 18, 2023 @11:41AM (#38321375)
The general concept is "I want to keep this data private and confidential, but I want to be able to rent elastic compute for it". Previously, at the end of the day, the processor could only do useful work on unencrypted data.

But something like "analyze this list of customer records for fraud" or "analyze this proprietary data for trends" has previously either required a lot of trust that your cloud provider isn't going to siphon your data, or just required on-prem hardware that you cannot scale as easily.

If "math on encrypted data" works, we could keep our data confidential while still sending of batches of it to be number-crunched at a cloud provider.

Or even start talking about distributed / peer-to-peer computing, where a swarm of users (or, say, businesses that wish to cooperate) can send compute jobs to each other without having to trust that the other members weren't going to go snooping through the data that was sent.

Re:Cryptographers Solve Decades-Old Privacy Problem by alwa on Saturday November 18, 2023 @12:33PM (#38322036)
And for that matter if I were a provider of some kind of computational service for hire, I (and my insurers) might feel a great deal of relief at the idea that we’re no longer having to sit on a big attractive ransomable pile of our clients’ data.
Re:Cryptographers Solve Decades-Old Privacy Problem by Out_of_Characte on Sunday November 19, 2023 @01:30AM (#38329756)
Denial of service is still by far the most common tactic, encrypt the data and no one can use it.
Re:Cryptographers Solve Decades-Old Privacy Problem by Obscurity4340 on Saturday November 18, 2023 @12:34PM (#38322047)
Has any world government implemented this in a similar/relevant fashion that illustrates this in action?
Re:Cryptographers Solve Decades-Old Privacy Problem by fragmede on Saturday November 18, 2023 @01:04PM (#38322404)
No because this is the very bleeding edge of technology so there are only very limited (but very cool) tech demos of the technology? Nothing at scale yet.

https://spiralwiki.com/

Re:Cryptographers Solve Decades-Old Privacy Problem by calamari4065 on Saturday November 18, 2023 @04:40PM (#38324803)
Wait, so they're doing computation on encrypted data and inferring some information about the relationships between data in the encrypted set?

How is that even possible? That seems to defeat the purpose of encryption, or at least show that our encryption is severely flawed.

This is the first time I've heard of this and it's kind of blowing my mind

Re:Cryptographers Solve Decades-Old Privacy Problem by fiddlerwoaroof on Saturday November 18, 2023 @04:50PM (#38324908)
The idea is the result is encrypted too such that, when the person that holds the key gets it back they can decrypt it and see the result. So you can run an inference algorithm on data without ever having to decrypt it and see what the data actually is.

It seems to me that this intrinsically is vulnerable to side-channel attacks, but it will be interesting to see if we can avoid those with constant-time algorithms or something.

Re:Cryptographers Solve Decades-Old Privacy Problem by l33t7332273 on Saturday November 18, 2023 @05:45PM (#38325494)
What about this seems vulnerable to side channels?
Re:Cryptographers Solve Decades-Old Privacy Problem by fiddlerwoaroof on Saturday November 18, 2023 @05:58PM (#38325629)
Because, if you have a mechanism to run arbitrary computations on encrypted data, I’d be a bit concerned about an attacker running carefully crafted computations on the data and deducing information about the encrypted data based on how the ciphertext changes or the time/memory usage of the computation.

This isn’t really a particularly well-informed suspicion: it’s partly based on a sense that FHE is a “have your cake and eat it too” sort of technology that’s too good to be true and partly based on the recent discoveries that fairly well-understood things like speculative execution in CPUswere vulnerable to serious side-channel attacks.

Re:Cryptographers Solve Decades-Old Privacy Problem by HeadsUpHigh on Saturday November 18, 2023 @06:44PM (#38326227)
zk proofs are used in public blockchains to transmit millions in value so I would assume they aren't vulnerable to side channel attacks at least not on a superficial level.
Re:Cryptographers Solve Decades-Old Privacy Problem by l33t7332273 on Saturday November 18, 2023 @09:05PM (#38327630)
If running computations on encrypted data is enough to compromise the integrity of the encryption then that encryption algorithm is not even EAV secure, and EAV secure is a pretty low bar.
Re:Cryptographers Solve Decades-Old Privacy Problem by jkhdigital on Saturday November 18, 2023 @11:24PM (#38328925)
There is no side-channel because FHE effectively considers the computational hardware itself to be the adversary.
Re:Cryptographers Solve Decades-Old Privacy Problem by PeterisP on Saturday November 18, 2023 @08:08PM (#38327135)
No, FHE is not intrinsically vulnerable to any side-channel attacks, by definition; the properties hold no matter how the "executor" executes the operations and they include the assumption that obviously they can see (or change!) everything that happens during the execution.

However, that effectively means that any FHE approach has to be "anti-optimized", always touching all the data that might get touched, always taking all the conditional paths, not just the worst case path as in constant time algorithms, since the execution must return the correct result for any encrypted input data.

It's not that you can "see if we can avoid those with constant-time algorithms or something", the basic table stakes (which all FHE methods actually implement) is the constant-time algorithm approach taken to the extreme and then squared.

It does have "some" unavoidable performance impact because of that.

Re:Cryptographers Solve Decades-Old Privacy Problem by fiddlerwoaroof on Saturday November 18, 2023 @08:18PM (#38327209)
I suspect that you’re right, but my concern is more about unknown unknowns here: new tech like this often has failure modes we can’t imagine until the tech itself becomes commonplace.
Re:Cryptographers Solve Decades-Old Privacy Problem by l33t7332273 on Saturday November 18, 2023 @05:44PM (#38325488)
A homomorphism is a function so that f(ab) = f(a) f(b). So you can imagine the cloud customer wants to compute ab, but the use a homomorphic encryption function, f, to ask the cloud provider to computer f(ab) given f(a) and f(b).

Then the customer decrypts f(ab). This doesn’t imply any weakness in encryption.

FHE is a bit stronger than what I’ve described, but that’s the idea.

Re:Cryptographers Solve Decades-Old Privacy Problem by noman-land on Saturday November 18, 2023 @10:57PM (#38328715)
It's pretty damn insane. I implemented the simplest form of this in Javascript as a sort of test a while back and it's just so cool.

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

https://gist.github.com/noman-land/a65520aa4f2ce7ba3bf9f13d2...

Re:Cryptographers Solve Decades-Old Privacy Problem by PeterisP on Saturday November 18, 2023 @09:28PM (#38327876)
The issue with this use-case is that the "I want to be able to rent elastic compute for it" is not a fundamental need or desire, but effectively a desire to save costs for hardware and other infrastructure.

Like, for a true need you could imagine someone saying "I really want this, no matter how it costs" - but you wouldn't do that for elastic compute if doing that locally was 100x cheaper; and in a similar way, the "wish to cooperate" by sending compute jobs to each other is meaningful if and only if you can actually save effort this way, but if there's a 100x overhead cost for FHE (and in reality it's far worse than mere 100x), that doesn't make sense, and you'd simply be better off doing it without distributed / peer-to-peer / cloud computing and just buy and maintain your own non-shared hardware even if it's used only 5% of the time.

And I'm not sure if FHE can ever get to overhead rates so low that these use cases would start to make sense, like, there's no good reason to assume that a mere 10x overhead FHE is even theoretically possible.