News for hackers. Stuff that matters.
[dead]
Re:Click by Sephr on Friday March 19, 2021 @07:19PM (#26519161)
I don't make ad tech. I work on privacy tech that forces advertisers into compliance with privacy laws at my current employer.

That's a pinned tweet from May 2020, and I still stand behind it.

Here's something that will definitely blow your mind: I've unironically experimented with making an ad blocker blocker (i.e. forces ads to re-display after being removed) before, just to see if it could be done. This helped me understand what is currently possible. It was quite an interesting and educational experience which helped me improve an actual ad blocker in practice.

A good defense requires a good understanding of offense.

If you don't like the capabilities present in a browser, appeal to the browser vendor's developers in their public mailing lists.

[dead]
Re:Click by dang on Sunday March 21, 2021 @02:43AM (#26528572)
Whoa, crossing into personal attack like this will get you banned here. Please don't post in the flamewar style generally.

If you wouldn't mind reviewing https://news.ycombinator.com/newsguidelines.html and taking the intended spirit of the site more to heart, we'd be grateful.

Re:Click by Sephr on Friday March 19, 2021 @07:37PM (#26519255)
> How is client core count contributing to this in any way?

I maintain an open source encryption/decryption library[1] for E2EE privacy request fulfillment at my current employer. We use navigator.hardwareConcurrency to distribute decryption jobs across multiple CPU cores so that you can get your E2EE files downloaded in a timely manner.

> It's not really blowing my mind that you are an disingenuous douchebag

If it can be done, it will be done. Real progress lies in the social norms that we perpetuate through the standards and policies of the applications that we use. Try to be the force that makes changes for a world that you want to live in.

1. https://github.com/transcend-io/penumbra/

[dead]
Re:Click by TeMPOraL on Saturday March 20, 2021 @06:34AM (#26522064)
> Sorry, but what is that even supposed to mean?

I usually frame it as: if something is within reach of our technological capabilities and there's a way to make money on it, someone will eventually do it, no matter how evil that thing is.

Technology is mostly a ratchet - once something becomes possible, it usually never stops being. So if you want to stop or prevent some wrong behavior, you have to address the economics of it: make it not profitable to pursue.

In this particular case: adtech scoundrels find it profitable to know your core count. Explicit API for this information doesn't change much for them, as it's easy to reliably infer that information with a bit of clever code. That clever code, however, will tax your CPU and battery. They don't care, because they're not paying for your electricity. The solution to this problem isn't to oppose the API (that, beyond saving you battery life, has many beneficial applications). It's to make fingerprinting unprofitable.

To make fingerprinting unprofitable, you can make it harder to perform (removing this API doesn't achieve that). But that's pretty much impossible without completely lobotomizing the browser, or without technologies that don't exist yet. So the best avenue of attack is changing (widely understood) social norms to make adtech fingerprinting unprofitable. In case of as widespread practice as this, pretty much the only effective way is regulatory - try to get your government to make this stuff illegal.

Re:Click by trulyme on Saturday March 20, 2021 @11:46AM (#26523919)
Nice analysis, but you left out another possible solution, by Google: monitor resource consumption of web pages and penalize wasteful ones by giving them worse SE positions. Not sure if this is in G's interest though.
Re:Click by Sephr on Friday March 19, 2021 @07:59PM (#26519379)
> Why do you think you need my core count when that number is useless for any sort of performance indication?

You're clearly being disingenuous, but I will answer your question in more detail. I already answered it above, but you don't seem to have the time to review the linked open source project.

If I use every core on your device for a decryption job that uses 100% of the resources that you provide it, your decryption job will undoubtedly finish sooner if you provide more resources. It doesn't matter how fast or slow your cores are, or if your computer runs on a big.LITTLE architecture or not.

Re:Click by seniorgarcia on Friday March 19, 2021 @08:04PM (#26519407)
So, why do you need to know how many cores my platform will provide if you can not judge the performance of the cores anyway?
Re:Click by Sephr on Friday March 19, 2021 @08:36PM (#26519650)
I answered that question in the comment that you are replying to.
Re:Click by seniorgarcia on Friday March 19, 2021 @08:46PM (#26519715)
And it is up to the client to manage all this. You do not gain anything by knowing the clients thread count. Which is what I have been complaining about all along.
Re:Click by jtsiskin on Saturday March 20, 2021 @01:27AM (#26520984)
What do you mean “you do not gain anything”? It seems you are confusing GHz with parallelism. The thread count matters, regardless of cpu speed
Re:Click by moron4hire on Friday March 19, 2021 @07:13PM (#26519127)
I actually use this feature for a VR app I'm building.

I'm so sick of the privacy fetishism. You're fingerprintable, ok. You're so fingerprintable that to make you not fingerprintable, we'd have to make browsers only do static document retrieval. Oh, wait, no, not even that would really be enough. Your IP address plus the pages you visit at which times of day is enough.

The browser hasn't been a document-reading platform since CGI was invented. What is that, 30 years now? You don't like that apps are built in browsers? I don't care. Functionally nobody cares. If we couldn't, we'd be building Java apps instead, someone would have invented an open source, live, searchable, distributed system for finding apps, and then you'd still be fingerprintable.

Go sit in a cave if you don't want anybody to know who you are. The rest of us have work to do.

Re:Click by andrewzah on Friday March 19, 2021 @07:26PM (#26519199)
Let's avoid straw man arguments. There is nothing wrong with wanting to reduce the amount of information collection possible to the absolute minimum. You don't need all, or even most of that information either. Reducing information down to IP address and window size would be a significant win.
Re:Click by moron4hire on Friday March 19, 2021 @07:33PM (#26519232)
You don't need it. I do. I use a ton of the browsers APIs. Every single one of them improves the experience in some way. Several of them that people poo pop the most would make the apps I make fundamentally impossible.

What is so special about the browser that this one place you don't want apps to function? If I couldn't do it in the browser, then I'd have 5x more work to build my app for all the platforms I support. It wouldn't stop my app being made, it would just cost more. What possible purpose is there to artificially inflate the cost of development?

Or are you under some illusion that native apps are not tracking you?

Re:Click by mopsi on Friday March 19, 2021 @11:33PM (#26520607)
> Every single one of them improves the experience in some way.

As would a full read-write access to the system, no doubt.

Re:Click by andrewzah on Sunday March 21, 2021 @05:22PM (#26534205)
"What is so special about the browser that this one place you don't want apps to function? "

This is where the disconnect is. I am not saying "I don't want apps to function". I am saying "app developers request way too much data, and could absolutely live without most of it". I don't care if your and my jobs are made harder. Boo-hoo. The world does not revolve around software developers. We don't do ethical things only when it's convenient.

"Or are you under some illusion that native apps are not tracking you?"

This sentiment clearly also applies to native applications. Clearly, system calls weren't designed with invasive data collection in mind. This is why I support what Apple is doing in its latest updates. Give an inch, and a greedy dev will take a mile.

"It wouldn't stop my app being made, it would just cost more."

If a system is not perfect, we're not allowed to adopt it? Good, let it cost 5x as much.

Re:Click by moron4hire on Monday March 22, 2021 @09:21AM (#26540395)
I understand what you've written to mean that you're advocating for artificially crippling software.

This whole conservation thread has been about `navigator.hardwareConcurrency`. I understand what you're saying (browser apps shouldn't have access to this field and native apps should also have the same anti-fingerprinting restrictions you want for browser apps) to mean that even native applications shouldn't be allowed to know the number of threads they can run. That would cripple lots of software.

If that's not what you're saying, then I re-iterate my question to another user from down-thread: what is your proposal? How would you suggest we make it possible to maximize software performance without leaking the user's fingerprint?

I submit that, whatever proposal you make, would either not significantly impact fingerprintability or be fundamentally useless for running software. It's not just that the systems that we have are imperfect, it is that the ideal is impossible to achieve.

Browsing habits alone identify you. Ad networks and shady app developers collude on the backend, selling their databases to each other. No browser-side security policy could prevent it. If you could force a fantasy world where all software running on your local machine was written exclusively by your own self, including a browser that could only send GET requests that you initiate from the address bar, or linked images from the same domain--100% trust in your local systems, 100% trust in no transmission of internal state--you're still completely trackable.

This is why I call it privacy fetishism. You can't create a technology solution to this problem. The very act of connecting to the network requires you put a huge degree of trust into the organizations that run the stuff you're connecting to, otherwise even benevolent actors won't be able to deliver the products and fulfill the services you actively request of them. You want privacy? You will have to stop doing business with anyone doing business with Facebook.

I'm not saying "give up on privacy and share everything in the open". I'm saying these foolhardy attempts at obscuring identity online do nothing torwards their goal, can do nothing torwards their goal, and only achieve making the browser a bad platform for software. All else being equal, I'd rather the browser be good at running software.

Re:Click by smoldesu on Friday March 19, 2021 @08:19PM (#26519526)
What's stopping someone from forking Firefox and making obfuscated local APIs for it? Things like core count, history length and amount of memory are all arbitrary, so there's no reason a website wouldn't work if I randomized them each time I visit a site.
Re:Click by moron4hire on Friday March 19, 2021 @08:55PM (#26519773)
"Haha! I lied to you on this form about how many fingers I have! I actually have 10! Now you can't pick me out of a crowd!"

"You're the only person here, and I can clearly see your face, Jerry. And now I need to make you a new set of gloves."

Re:Click by smaudet on Friday March 19, 2021 @08:22PM (#26519548)
'Privacy fetishism' - eh, no. People do care except tweats like yourself (remind me you need to be doxed and have your life ruined, maybe you will care then)....but that's beside the point.

Native apps can in theory do everything and more a web app does...but there is a big difference between an app platform which mostly serves to protect sec. interests and one which serves primarily ad networks and data brokers.

'it would just cost more' - fantastic, we want to discourage widespread data trawling, things costing more is an excellent way to do that.

Re:Click by seniorgarcia on Friday March 19, 2021 @07:20PM (#26519170)
And I do not get this at all. For my desktop you would get 12, I'm on a i7-8700k with a base frequency of 3.7GHZ and a permanent boost of 5.1GHZ. This rig runs Oculus VR/Steam VR all the time.

If I ran that site from my Surface laptop the response would be 12 as well. The 12 cores on my surface boost is 12 1.3GHZ cores though if they boost. The cooling might work out to boost 2 cores to 1.9GHZ. Or however the Intel boosting works out in this thermal constraint.

So, what is the useful info you get for your VR app from these values?

Re:Click by MauranKilom on Friday March 19, 2021 @08:26PM (#26519578)
If I spawn 8 threads to do some kind of processing while you have 12 logical cores, I am missing out on a 50% performance boost (assuming the work is CPU bound).

If I spawn 20 threads when you only have 4 logical cores, they will just stand in each other's way (caches, context switches, etc.) and possibly eat 5x as much memory as needed on top of that.

I don't want to skirt the HN rules, but let me be clear that your replies appear as aggressive and incendiary while hinting at a lack of understanding for basic concurrency concepts. I don't know whether that's what it actually is or whether there's some miscommunication happening, but either way you're coming off as an ass. Be kind.

Re:Click by Sephr on Friday March 19, 2021 @07:26PM (#26519193)
Your native VR games need to know how many CPU threads you have to efficiently allocate game processes. Some processes can run at a lower priority, and your OS scheduler figures out the rest.

I can assure you that most of your VR games are using this same data.

Re:Click by seniorgarcia on Friday March 19, 2021 @07:38PM (#26519263)
But how is my CPU count useful to you in that situation? My i7-8700k has 12 threads, my Surface book 2 pretends to have 16 threads, my iPad Pro pretends to have 16 cores, my iPhone pretends to have 12 cores.

What is the API I can use to map that to any sort of useful 3D performance? How are 3d game processes using this data to evaluate what they are supposed to be doing?

Re:Click by moron4hire on Friday March 19, 2021 @07:46PM (#26519296)
Never said it was for the 3D rendering. If all my app did was 3D rendering, it wouldn't be an app, it'd be a tech demo.
Re:Click by seniorgarcia on Friday March 19, 2021 @07:54PM (#26519354)
So, considering the amount of responses for thread count that you can not count on for any sort of performance, why do you need the thread count? Since you already answered downstream, I'll spare you the bother of doing it here...

>You don't need it. I do. blabla, it makes it easier for me blabla native apps are tracking you as well

Re:Click by moron4hire on Friday March 19, 2021 @08:08PM (#26519433)
Do you... Do you maybe not know how concurrency works?

It's not about hitting a minimum threshold of performance. It's about achieving the best possible performance for whatever system it's running on.

Maybe you think because I said VR it must mean I need to be running on massive gaming rigs. We run quite nicely on 5 year old smartphones, too. We run a pancake mode for people without VR. We run on every headset on the market, and we don't have to pay a lick of attention to what Facebook or Google or Apple thinks should and should not be in their app stores. And we can do this because of the broad range of browser APIs.

Re:Click by seniorgarcia on Friday March 19, 2021 @08:26PM (#26519582)
Maybe you do not know what words in the English language mean? I have a Quest and an Oculus VR and a Samsung Gear VR and a shitty cardboard daydream.

I get how concurrency works. I do not get how you get any sort of useful information from my desktop claiming 12 threads, to my phone claiming 8 threads, to my quest claiming 6 threads, to my ipad/samsung tablet claiming however many threads over webxr.

I do not see how you can do anything useful with the thread count which is what I have been disputing. CPU thread count seems especially useless since it has no relation to VR performance.

Re:Click by moron4hire on Friday March 19, 2021 @08:37PM (#26519662)
I told you what usefulness I get out of it. Any one of those cores can decode a texture in T time. Do you want me to take T*N time to decode them on the render thread, or would you rather I took T*N/C off render thread on a system with C logical cores? I don't care that T is different on different machines. I don't care that C is different. Even small values of C makes up for some very large values of T on old CPUs.
Re:Click by seniorgarcia on Friday March 19, 2021 @08:42PM (#26519688)
And that is totally fine. If you don't care you don't need to know.

That has been my issue all along. Client computation of course needs to know how many threads are available to distribute computation in an efficient way. Why would the host need to know this though?

Re:Click by moron4hire on Friday March 19, 2021 @08:52PM (#26519747)
Who said anything about the host?
Re:Click by seniorgarcia on Friday March 19, 2021 @09:02PM (#26519810)
>Why does a webpage get to know how many CPU cores I have?

The question we have been replying too? Nobody gives a shit what you can do within the client. Fingerprinting the client as the host is an issue though, you might at least appreciate that...

Re:Click by moron4hire on Friday March 19, 2021 @09:21PM (#26519916)
What is your proposal? Forget the browser for a minute. Just any way, short of airgapping, that a user could receive an app, want that app to perform maximally, but also not have information about the system being egressed?

I don't appreciate it because it's childish. You want to make this out to be a privacy issue when it's not. It adds nothing meaningful to how easily you can be fingerprinted, but removing it would detract significantly from how performant a browser-based application can be made. Without it, you're pushing developers towards having to build native apps instead, giving even MORE access to the hardware fingerprint, where they are now stuck having to pay fealty to the platform gods, while also gaining nothing in reducing fingerprinting in the browser.

Re:Click by seniorgarcia on Friday March 19, 2021 @10:03PM (#26520136)
I do not dispute that you can use this in your app, my issue is with the server knowing about it (as it is in the demo here) and everything the server can call back from the client. It is not about airgapping but about realizing that current browsers can exfiltrate basically anything.

Your JS app wants to compute the amount of threads it can use on a client, that's great. If your JS app can calculate me switching browsers and using independent websites and their usage, that's cool. Why would you send that back to your server though?

If you do not think that current browser implementations have an issue with the amount of fingerprinting they can do, that is up to you as well. I think that the amount fingerprinting is at the very least difficult though. It is not about building native apps, it is about the amount of information that is send back. Or I'm drunk at this point and should go to sleep, I think I'm done in any case. Sorry about being an ass.

Re:Click by moron4hire on Friday March 19, 2021 @07:26PM (#26519197)
How many concurrent operations I can run. I use it to download and decode textures and audio data. Without it, you're waiting 15 second between scene transitions, massively dropping frames all the while. With it, is 1 second and there is never a hitch.