News for hackers. Stuff that matters.
Re:Block YouTube Ads on AppleTV by Decrypting and Stripping ... by redrove on Sunday August 27, 2023 @02:09AM (#37279860)
>I propose heuristically scanning for query and path parameters of ad URLs with high entropy and using those as keys (fingerprints).

>https://xn--rr6sn-uxa0n-t8gz-vg6i.googlevideo.com/initplayba... &orc=1&oeis=1&c=IOS&oss=1&oda=1&oad=5500&ovd=5500&oaad=11000&oavd=11000 &ocs=700&oputc=1&oses=1&ofpcc=1&osbr=1&osnz=1&msp=1&odeak=1&odepv=1 &osfc=1&id=58cc678216d6aaca&ip=121.35.98.26&initcwndbps=2125000 &mt=1640373902

This is one of the many things that make it _exactly_ like malware. Ads are delivered the same way malicious code or artifacts would be delivered to your device.

Weird-ass random subdomains, obfuscated query params -- no legitimate service that works for the user's benefit should behave like this.

Re:Block YouTube Ads on AppleTV by Decrypting and Stripping ... by thrdbndndn on Sunday August 27, 2023 @02:15AM (#37279884)
>_exactly_ like malware

But it's googlevideo.com. I know this is Google/YouTube's domain so the rest doesn't matter.

Re:Block YouTube Ads on AppleTV by Decrypting and Stripping ... by redrove on Sunday August 27, 2023 @02:38AM (#37280009)
Which is besides the point and a minor nitpick at best.

The fact of the matter is these techniques are well established black hat ways of preventing the user from discovering what you're doing on their device.

Re:Block YouTube Ads on AppleTV by Decrypting and Stripping ... by thrdbndndn on Sunday August 27, 2023 @04:01AM (#37280451)
Discovering what exactly? To bad they don't use a subdomain called "adplayback" I guess, but the query parameters are obviously only useful for YouTube internal, not the users.

And I won't even call them "obfuscated" -- it's just a batch of switches and plain IP and ID hash.

Re:Block YouTube Ads on AppleTV by Decrypting and Stripping ... by BLKNSLVR on Sunday August 27, 2023 @04:05AM (#37280468)
But it's googlevideo.com, how could it be a video of some shyster pimping get-rich-quick investment schemes that are convincing enough to appear totally legit to anyone below the half-way point of the bell curve?

But it's a google ad, how could it link to a scam that looks exactly like my bank's website?

Re:Block YouTube Ads on AppleTV by Decrypting and Stripping ... by thrdbndndn on Sunday August 27, 2023 @07:04AM (#37281439)
We're talking about why this URL does not look like malware. The content of the video itself is irrelevant.
Re:Block YouTube Ads on AppleTV by Decrypting and Stripping ... by userbinator on Sunday August 27, 2023 @02:32AM (#37279977)
Back when YouTube wasn't owned by Google, replacing /watch?v=... with /get_video?video_id=... in the URL would immediately give you the video file (in FLV format, of course.)
Re:Block YouTube Ads on AppleTV by Decrypting and Stripping ... by redrove on Sunday August 27, 2023 @02:34AM (#37279988)
There was also a relatively brief time when YT was owned by google but ads were delivered from a separate (sub)domain so DNS adblocking would work wonders.

Those days are gone as the distinction between ads and malware becomes a technicality.

Re:Block YouTube Ads on AppleTV by Decrypting and Stripping ... by veavo on Sunday August 27, 2023 @03:30AM (#37280277)
In HN I expect a better analysis than "this looks complicated so it must be bad". That's the kind of logic that someone who knows nothing about computers has.
Re:Block YouTube Ads on AppleTV by Decrypting and Stripping ... by redrove on Sunday August 27, 2023 @03:35AM (#37280293)
Yes, I evidently compared the obfuscation techniques to malicious actors because I know nothing about computers!