News for hackers. Stuff that matters.
Re:macOS is background scanning and following downloaded QR ... by crazygringo on Wednesday October 05, 2022 @11:19AM (#33096686)
"Background scanning" sounds more nefarious than what's probably really going on -- which is probably either generating thumbnail previews (for Finder) or indexing (for Spotlight), both of which are desired. Or maybe malware scanning to put files in quarantine if they point to dangerous content? macOS is also becoming more intelligent about text in images, e.g. it OCR's images so you can select text. I don't know if it indexes text in images for Spotlight the way Google has already done in Drive for years.

But I wouldn't be surprised if it fetches URL's in QR codes in order to index the title text associated with the URL for Spotlight. It's not so different from when you text someone a URL in Messages, it automatically shows a title and thumbnail to both parties. Or, if it's just a shared "preview" library used across thumbnails and iMessage.

I'm not sure what to think about it. Previews, smart text, showing URL information on hover, prefetching, indexing, etc. -- it's all pretty standard stuff. On the other hand, it does feel a little weird for previews on a local filesystem to query the internet -- we're totally used to it in e-mail and messaging though. But, I used to keep bookmarks as URL (.url) files. It would seem natural for a thumbnail of the page to show up in Finder (though I don't think it does this?).

As for it being an "attack" to get someone's IP -- seems like that ship has long since sailed, as it's common for any messaging and e-mail client to already show previews. If you need to protect yourself against all of those, you pretty much need to figure out what level of Little Snitch or turning off internet or airgapping is required for your security concerns.

Re:macOS is background scanning and following downloaded QR ... by smoldesu on Wednesday October 05, 2022 @11:42AM (#33097014)
I feel like there are better ways to do this, to the point that this 'feature' actually looks really out-of-place. Why wouldn't you get these thumbnail previews when you actually scan the QR Code? You're going to be fetching/caching the favicon and framebuffer for the page anyways, there's literally no reason not to get that data at runtime rather than 3 hours later.

It's not exactly malicious, but weird "we know better than you" behavior like this ultimately drove me away from MacOS as a daily-driver.

Re:macOS is background scanning and following downloaded QR ... by LeifCarrotson on Wednesday October 05, 2022 @12:52PM (#33098041)
> Why wouldn't you get these thumbnail previews when you actually scan the QR Code?

These aren't scanned, they're located inside .png image files you can download or generate locally on your computer.

> You're going to be fetching/caching the favicon and framebuffer for the page anyways, there's literally no reason not to get that data at runtime rather than 3 hours later.

No one asked the OS to fetch the favicon/framebuffer. Also, I would prefer the favicon of an image containing a QR code to be a thumbnail of the QR code, not the page it points to. I expect this delay is not a nefarious Little Snitch bypassing tool but a search cache update process that only runs when the computer is very idle. Better to run background tasks lazily than every time you commit an image that might contain a QR code to the filesystem.

Re:macOS is background scanning and following downloaded QR ... by smoldesu on Wednesday October 05, 2022 @01:54PM (#33098911)
That's definitely a more sane analysis of the situation, thank you for your two cents.

In general, these things frustrate me just as much as they did on Windows. I don't want random processes jumping up to use 100% of my CPU for no reason. I can't even count the number of times my Mac gets pinned by mdworker processes running in the background. It's reminiscent of pulling my hair out trying to understand why OneDrive or Edge is pinning one of my cores even though it isn't open.

My overall gripe is this pattern of behavior. I'd rather spend 2-5 seconds waiting for my QR code to load instead of my OS deciding to randomly cache it at some indeterminate point. Maybe other people disagree, though. Us HN users don't really tend to reflect the opinions of Joe Shmoe and his feelings towards modern computing.

Re:macOS is background scanning and following downloaded QR ... by lilyball on Wednesday October 05, 2022 @03:16PM (#33100047)
mdworker runs at background priority though, anything else using the CPU should preempt it.
Re:macOS is background scanning and following downloaded QR ... by smoldesu on Wednesday October 05, 2022 @04:23PM (#33100846)
That's a very comforting thought for when my Mac is idling at 80c and I have to join a video conference.
Re:macOS is background scanning and following downloaded QR ... by grooot on Wednesday October 05, 2022 @12:12PM (#33097391)
There is absolutely nothing malicious that has been shown.
Re:macOS is background scanning and following downloaded QR ... by vorpalhex on Wednesday October 05, 2022 @12:14PM (#33097417)
Scanning your images and followong links in them without user consent is pretty malicious.
Re:macOS is background scanning and following downloaded QR ... by JimDabell on Wednesday October 05, 2022 @12:37PM (#33097750)
How is it malicious? “Malicious” doesn’t mean “unwanted behaviour”. You are saying that Apple intend to do harm with this. How?
Re:macOS is background scanning and following downloaded QR ... by smoldesu on Wednesday October 05, 2022 @01:57PM (#33098952)
On the one hand, I get where you're coming from and I agree that this specific example isn't malicious (as I've highlighted elsewhere in the thread)

...on the other hand, this is the exact same technology Apple lets China use to hunt down their religious and political minorities. Maybe they don't intend harm to Americans, but one thing is for certain; Apple doesn't treat privacy as a human right. If you can live with that, then more power to you.

Re:macOS is background scanning and following downloaded QR ... by JimDabell on Wednesday October 05, 2022 @02:31PM (#33099434)
> this is the exact same technology Apple lets China use to hunt down their religious and political minorities.

QR codes? HTTP requests? I’m not sure what technology you’re referring to.

> one thing is for certain; Apple doesn't treat privacy as a human right.

They have put a huge amount of effort into privacy technology; more than any comparable company I can think of. I don’t think your certainty is even remotely justified.

Re:macOS is background scanning and following downloaded QR ... by 0xFEE1DEAD on Wednesday October 05, 2022 @02:24PM (#33099311)
Seems a bit like a witch hunt to me. It's your PC executing the request. Nowhere does it say this data gets send to apple servers.
Re:macOS is background scanning and following downloaded QR ... by grooot on Wednesday October 05, 2022 @12:18PM (#33097459)
What are you talking about? It sounds like you don’t understand what is going on here. Perhaps you think some data is going to Apple?
Re:macOS is background scanning and following downloaded QR ... by vorpalhex on Wednesday October 05, 2022 @12:21PM (#33097495)
Having read the article I entirely understand what is going on here.

Do you expect your images to be scanned on disk and the links in them to be opened, leaking your ip? What if you do something as simple as screenshot an address bar in a browser? Save a menu QR code?

Now you are sending out traffic, accidentally, with your full ip to random places due to a service Apple inserted that you have no knowledge of.

Re:macOS is background scanning and following downloaded QR ... by dev_tty01 on Wednesday October 05, 2022 @01:25PM (#33098499)
I don't know, but I wouldn't be surprised if this is being done via Apple's private relay. If so, your IP address is not being leaked to anyone.
Re:macOS is background scanning and following downloaded QR ... by martin_a on Wednesday October 05, 2022 @01:37PM (#33098694)
The thread says she got an information that somebody requested the URL and it was her own IP address. So no private relay here.
Re:macOS is background scanning and following downloaded QR ... by grooot on Wednesday October 05, 2022 @12:23PM (#33097530)
Do you seriously believe that your IP is private?

Do you know every site that has received your ip address?

I think the honest answer to both of these questions has to be no.

Re:macOS is background scanning and following downloaded QR ... by vorpalhex on Wednesday October 05, 2022 @12:48PM (#33097963)
http://letstrack.you/?id=grooot

Throw that to disk for me so I can map where you are, where you go, when your machine is up and how often your search indexing runs.

Re:macOS is background scanning and following downloaded QR ... by _justinfunk on Wednesday October 05, 2022 @12:35PM (#33097716)
I think the idea is that it is a way for your IP address to leak without a user-initiated request.

I could send you a QR code that I've setup specifically to get your IP address.

Re:macOS is background scanning and following downloaded QR ... by flyinghamster on Wednesday October 05, 2022 @12:30PM (#33097635)
If you have the misfortune of living in a country where accessing $BANNED_WEBSITE can get you a nighttime visit from the local goon squad, this could well get you tortured or killed.
Re:macOS is background scanning and following downloaded QR ... by cycomanic on Wednesday October 05, 2022 @01:26PM (#33098513)
There have been reported cases of using qr codes for phishing/malware distribution. Previously they still required users to actually use a qr code scanner, now I need to simply glue some qr code at a famous tourist photo spot and bang lots of people accessing the site (does the indexer execute js?).
Re:macOS is background scanning and following downloaded QR ... by smoldesu on Wednesday October 05, 2022 @12:40PM (#33097796)
I agree. The problem is that it's rather annoying, and there are many such behaviors on MacOS (many of which you can't disable). Stuff like this is another good example of esoteric, almost curious behavior taking place without any input or prompt from the user. It's really absurd stuff.
Re:macOS is background scanning and following downloaded QR ... by divbzero on Wednesday October 05, 2022 @03:01PM (#33099860)
OP reached a similar conclusion farther down in the Twitter thread:

facebookexternalhit/1.1 Facebot Twitterbot/1.0

What.

"This is the iMessages app's crawler [...] Apple has chosen to use this useragent in their iMessages app to ensure the unfurling of the URL and the rich preview works more often than not."²

² https://webmasters.stackexchange.com/a/138992

Re:macOS is background scanning and following downloaded QR ... by fishywang on Wednesday October 05, 2022 @12:45PM (#33097897)
>It's not so different from when you text someone a URL in Messages, it automatically shows a title and thumbnail to both parties.

And that's how the pegasus/etc. pwned iPhones

Re:macOS is background scanning and following downloaded QR ... by grooot on Wednesday October 05, 2022 @12:46PM (#33097926)
It was before the zero day was closed.
Re:macOS is background scanning and following downloaded QR ... by fishywang on Wednesday October 05, 2022 @12:51PM (#33098010)
so you are saying apple is doing something they already knew is a bad idea?
Re:macOS is background scanning and following downloaded QR ... by grooot on Wednesday October 05, 2022 @12:52PM (#33098022)
No. I’m saying your information is outdated and wrong.
Re:macOS is background scanning and following downloaded QR ... by cycomanic on Wednesday October 05, 2022 @01:53PM (#33098900)
What do you mean? The OP said that this is how Pegasus pwned (notice the past tense) the iPhone. That's correct. Moreover while Apple might have closed that specific vulnerability, would you bet your money (or even your live) on there not being other vulnerabilities in the apple indexer?
Re:macOS is background scanning and following downloaded QR ... by fishywang on Wednesday October 05, 2022 @01:05PM (#33098224)
how can you be so confident that it's "closed"? the last time apple announced the high protection mode for state sponsored targets in new ios (whatever it's called), they disable all auto previews in that mode. if they are as confident as you are that it's "closed" that doesn't seem necessary?
Re:macOS is background scanning and following downloaded QR ... by lilyball on Wednesday October 05, 2022 @03:18PM (#33100071)
Disabling link previews in high protection mode is more likely to be a combination of not issuing any network requests that could accidentally leak your IP, and being able to see the full URL so link previews can't pretend to be a different site to trick you into clicking on it.
Re:macOS is background scanning and following downloaded QR ... by grooot on Wednesday October 05, 2022 @01:07PM (#33098255)
I’m confident that it’s closed because they claimed to have closed it.

As for the high protection mode - of course that reduces the attack surface.

Re:macOS is background scanning and following downloaded QR ... by DNied on Wednesday October 05, 2022 @02:17PM (#33099209)
If this forum were to live up to its name, you would be laughed out of here after that comment.
Re:macOS is background scanning and following downloaded QR ... by nixpulvis on Wednesday October 05, 2022 @12:46PM (#33097924)
Automatic link following is pretty bad, nefarious or not. Intent is kinda beside the point of issue here; it's not like we're trying to sue Apple...

Or maybe we should group up a massive list of poor decisions into a formal complaint?

Re:macOS is background scanning and following downloaded QR ... by rcarmo on Wednesday October 05, 2022 @01:52PM (#33098891)
Regardless, theis shouldn't happen. Indexing the URL, fine. Fetching it is a very poor idea and a can of worms.
Re:macOS is background scanning and following downloaded QR ... by michaelcampbell on Wednesday October 05, 2022 @02:57PM (#33099808)
> which is probably either generating thumbnail previews (for Finder) or indexing (for Spotlight)

Neither of which require, nor to be honest even makes any sense to, go to the URL that the QR code represents.