News for hackers. Stuff that matters.
Re:Backdooring Rust crates for fun and profit by dane-pgp on Thursday November 18, 2021 @10:02AM (#29266182)
> Actually, my num_cpu crate has been downloaded 24 times in less than 24 hours, but I’m not sure if it’s by bots or real persons.

Presumably the author could include some payload which phones home with a randomly generated ID, to detect how many machines the package could take control over. That's probably more meaningful than trying to decide whether the package was downloaded by a "bot", and wouldn't involve any GDPR-breaking information.

Re:Backdooring Rust crates for fun and profit by CloselyChunky on Thursday November 18, 2021 @10:15AM (#29266330)
The easier, less invasive but also less accurate option would be to publish an empty crate with a random name that does not exploit typos (just some random junk) and check how often that crate is downloaded. You can assume that almost all downloads for this crate are bot downloads and just subtract that amount from the downloads of the typo-squatted crate
Re:Backdooring Rust crates for fun and profit by rectang on Thursday November 18, 2021 @10:20AM (#29266400)
Do we really need hard proof of real downloads for an example like this? Typosquatting is obviously a scary problem regardless, with a history of successful exploitation in web domains, other package managers, etc.
Re:Backdooring Rust crates for fun and profit by wizzwizz4 on Thursday November 18, 2021 @10:09AM (#29266257)
> and wouldn't involve any GDPR-breaking information.

Actually, this would (in my non-legal opinion) be a GDPR violation. See https://gdpr-info.eu for details.

Re:Backdooring Rust crates for fun and profit by dane-pgp on Thursday November 18, 2021 @12:40PM (#29268166)
You want me to read the entire GDPR? It's apparently 261 pages long.

https://www.enterpriseready.io/gdpr/how-to-read-gdpr/

Re:Backdooring Rust crates for fun and profit by wizzwizz4 on Thursday November 18, 2021 @12:50PM (#29268293)
It's not that long, and you don't need to read the entire thing. The first few articles make it clear that you can't do this.

Article 4

> ‘personal data’ means any information relating to an identified or identifiable natural person (‘data subject’); an identifiable natural person is one who can be identified, directly or indirectly, in particular by reference to an identifier such as a name, an identification number, location data, an online identifier or to one or more factors specific to the physical, physiological, genetic, mental, economic, cultural or social identity of that natural person;

Creating a random identifier to identify individuals means you're working with personal data. (And it's coupled with the IP address, and hence crude location data – and OS information, and metadata about their behaviour…)

Article 6

> Processing shall be lawful only if and to the extent that at least one of the following applies:

None of them do. If you had consent, then this would be fine, but the whole idea is going behind people's backs to secretly reprogram their computers to phone home, for your own curiosity. That's not allowed.

Re:Backdooring Rust crates for fun and profit by dane-pgp on Thursday November 18, 2021 @01:48PM (#29268968)
There is, I think, some legal uncertainty about what it means for someone to be "identified indirectly", so a court might agree with you, but I think there is also a widely accepted opinion that if data can't be connected back to a specific natural person by the data controller/processor, then it is no longer "personal data".

Here's what the University College London's guidance[0] says:

"Once data is truly anonymised and individuals are no longer identifiable, the data will not fall within the scope of the GDPR and it becomes easier to use."

Obviously in the system I am proposing, the data controller/processor would have to deliberately not log the IP address or a user agent string. It's true that timestamps could give an idea of which timezone the user is in, but that shouldn't necessarily reveal even the country the user is in.

[0] https://www.ucl.ac.uk/data-protection/guidance-staff-student...

Re:Backdooring Rust crates for fun and profit by wizzwizz4 on Friday November 19, 2021 @05:40AM (#29275831)
> but I think there is also a widely accepted opinion that if data can't be connected back to a specific natural person by the data controller/processor, then it is no longer "personal data".

It can't be defined that way. Consider:

• Company A collects data that it can't connect back to a specific natural person, and sells it to Facebook.

• Company B collects data that it can't connect back to a specific natural person, and sells it to Facebook.

• Company C collects data that it can't connect back to a specific natural person, and sells it to Facebook.

• Facebook identifies a specific natural person.

GDPR protects against this.

> Obviously in the system I am proposing, the data controller/processor would have to deliberately not log the IP address or a user agent string.

Good – GDPR calls this the principle of data minimisation. But the data is still going through your systems, when it doesn't really need to be created (however briefly) in the first place. Certainly not via software that people had no reason to expect would be executing on their computer. Honestly, GDPR is the least of your worries; one might consider that malicious software, and then you've got the whole book ready to be thrown at your head.

Re:Backdooring Rust crates for fun and profit by dane-pgp on Friday November 19, 2021 @07:41AM (#29276555)
> • Facebook identifies a specific natural person.

This is the point when the GDPR kicks in, and Facebook would be expected to know that the combination of the data they obtain from A, B, and C is enough to identify someone (even if Facebook never actually combined the data to produce those identities). The fact that Facebook are paying money for the data (in this hypothetical scenario) means they should know the value of the data and what can be done with it.

> one might consider that malicious software, and then you've got the whole book ready to be thrown at your head.

I'd love there to be a case where some company got the book thrown at them for anonymous (or even non-anonymous) telemetry. Did anything happen after the Irish and Dutch investigations into Windows 10 telemetry?

https://www.techradar.com/uk/news/windows-10-could-still-be-...

Re:Backdooring Rust crates for fun and profit by wizzwizz4 on Saturday November 20, 2021 @03:57PM (#29291774)
> This is the point when the GDPR kicks in,

In the real world, Facebook doesn't trade money, but services, for this data. (Mostly.) And the GDPR applies all the time.

Do companies have a “legitimate interest” to give pseudonymised transaction data to Facebook (pseudonymised using Facebook's answer key), in return for “marketing and business insights”, without the consent of those whose data is being traded? I'm pretty sure that doesn't fall under legitimate interest, and there isn't another GDPR reason that might apply.