r/javascript • • Jan 06 '17

Ultrasounds emitted by ads or JavaScript code hidden on a page accessed through the Tor Browser can deanonymize Tor users by making nearby phones or computers send identity beacons back to advertisers

https://science.slashdot.org/story/17/01/05/2159219/ultrasound-tracking-could-be-used-to-deanonymize-tor-users
378 Upvotes

65 comments sorted by

76

u/Jestar342 Jan 06 '17

11

u/i_ate_god Jan 06 '17

the comments in slashdot can sometimes be quite insightful

49

u/davesidious Jan 06 '17 edited Jan 06 '17

About 10 years ago, I'd agree. These days it's like a fight is breaking out in a retirement home for cantankerous right wingers. Anything new is bad, old things were the best, immigrants are evil, and gays should die not have rights. It's tragic what's happened there. I started reading it in the late 90s, and it used to be filled with wonderfully insightful technical comments. Go back and read some of the comments from back then and you can see it clearly. Such a shame.

8

u/Arancaytar Jan 06 '17

You're right, of course, but think the parent was going for the comment moderation joke. :P

10

u/jacksonmills Jan 06 '17

Damn. You really put into words why I stopped reading / about 4 years ago.

9

u/TheSpanxxx Jan 06 '17

It's the reason I stopped 10 years ago =/

5

u/arcticblue Jan 07 '17

I wish Reddit would adopt the system they have there where comments are flagged as funny or insightful or whatever. I'd love to be able to filter out "funny" comments in certain threads on Reddit sometimes. It's almost become a habit to me to just automatically collapse the top comment in a Reddit post.

2

u/davesidious Jan 07 '17

That is a nice feature, but they're not always accurate :)

4

u/Fiddlebums Jan 06 '17

So it's not just reddit then?

4

u/[deleted] Jan 06 '17

Reddit is for circlejerking left wingers. Anyone old is bad, new things are the best, immigrants are great, and gay rights are supreme.

8

u/davesidious Jan 07 '17

If you can't find opinions on Reddit that differ from that, you really aren't trying!

3

u/Fiddlebums Jan 06 '17

I only frequent /r/mapporncirclejerk what does that say about me? :<

2

u/brtt3000 Jan 07 '17

When will this happen to reddit?

1

u/i_ate_god Jan 06 '17

It's because they introduced politics. But even in politics you can find some very insightful discussion.

I agree there are a lot of trolls, but even if the ratio of good to bad is not what it used to be, it's still high enough to keep me reading.

2

u/Jestar342 Jan 06 '17

Fair point. :)

2

u/mishugashu Jan 06 '17

I wonder what slashdot would say if I submitted a reddit post.

4

u/BadAdviceBot Jan 06 '17

Wow...slashdot? Does that site still exist?

Edit: Yup, just checked. Still looks like the 90's design too. Font is different.

4

u/liquidpele Jan 06 '17

Some little shop bought slashdot back from dice, so it's been getting a little better recently. Still don't comment anymore because they still haven't replicated reddit's "new mail" feature. I mean, how fuckin' hard is that?

1

u/Arancaytar Jan 06 '17

On the other hand, they had email notifications all along (I think reddit added those last year or so). Still, it seems like the on-site feature would be much easier to implement so wtf?

1

u/[deleted] Jan 07 '17

I'm also assuming the article was written due to a 33C3 talk.

https://media.ccc.de/v/33c3-8336-talking_behind_your_back

53

u/9thHokageHimawari Jan 06 '17
  1. so, target has to be targeted both on PC and Mobile device.

  2. he has to enable Javascript on Tor.

I doubt it works outside or theory

30

u/Jestar342 Jan 06 '17

the article itself actually says "could be used" and is presenting the theory. OP decided to sensationalise.

7

u/kenman Jan 06 '17

To be fair, OP did use the phrase "can deanonymize" (emphasis mine), which doesn't imply that it's actually being done.

10

u/JitGoinHam Jan 06 '17

The PC also has to have unmuted speakers capable of generating rather loud ultrasound frequencies.

16

u/stackmutt Jan 06 '17

I'll have to unplug my dolphin.

1

u/HorseVaginaBeholder Jan 07 '17

I have a USB-bat.

6

u/PlNG Jan 06 '17

What does TOR have to do with it?

While de-anonymization on TOR is a larger and more noteworthy threat, I am seriously not chill with advertisers casually farming my mobile information just because I keep my phone near my PC.

5

u/jocull Jan 06 '17

Let's ask OK Google, Hey Siri, Amazon Alexa, etc etc what they think about this. I'm sure they're listening.

1

u/Mr-Yellow Jan 06 '17

Unless you're a state actor who already has access to all of the above.

There are many devices with microphones which feature very poor implementations, wide open, in the same way IP cameras are.

1

u/[deleted] Jan 06 '17

2) he has to enable Javascript on Tor.

Not necessarily. The article mentions that an easier method is to embed the ultrasonic audio in a video or audio file that the user has downloaded.

That won't necessarily get you the Tor information, but it will get you other information. The theory is still sound.

5

u/myrrlyn Jan 07 '17

The theory is quite sound. Ultra sound, even

sorrynotsorry

1

u/bcgoss Jan 09 '17

Target has to be using a device which can emit ultrasound and a device that can listen to ultrasound which has been configured to report data upon hearing a given ultrasound signal. The two devices will become associated based on the specifics of the signal, devices and timing.

The specifics of PC or mobile, Javascript or not are not nailed down. They are for a proof of concept for one version of this attack.

0

u/[deleted] Jan 06 '17

[deleted]

0

u/[deleted] Jan 06 '17

[deleted]

5

u/Ajedi32 Jan 06 '17

In which chase you need an app or website with "record audio" permission on the mobile device.

9

u/InconsiderateBastard Jan 06 '17

Like how the Cast/Home app can hear the ultrasound tones Chromecast puts out of a TV and react to them.

But Google isn't interested in better tracking of people on the internet, are they?

2

u/Ajedi32 Jan 06 '17

Interesting, I wasn't aware the Chromecast did that, though it's pretty neat if true. I thought it just used WiFi.

10

u/InconsiderateBastard Jan 06 '17

It does it for transmitting the pin for guest mode. It sends inaudible tones over the TV speakers that the cast app on your phone picks up and then it can send the pin back to the chromecast to verify. It was a clever way to make it so a guest standing right in front of the TV doesn't have to manually type in the pin without broadcasting it to all devices within wifi distance.

It's mentioned here: https://support.google.com/chromecast/answer/6109292?hl=en

1

u/EternallyMiffed Jan 07 '17

So what you're saying is, I need a parabolic directional microphone or a laser microphone and can take over random people's TV's from outside their houses. Neat.

0

u/[deleted] Jan 06 '17

[deleted]

2

u/nodealyo Jan 06 '17

Yes, though it sounds like the audio played is generated via code rather than through audio files.

1

u/bcgoss Jan 09 '17

HTML is easy to inspect and filter. That is a possible vector, but its also the easiest to block. Browsers add and remove elements from html documents all the time, it would be trivial to write a script that disabled <audio autoplay='true'> tags.

11

u/parlezmoose Jan 06 '17

Are standard speakers capable of putting out ultrasonic frequencies?

8

u/[deleted] Jan 06 '17

Most are if they are of any quality.

3

u/aerandir92 Jan 06 '17

I would expect so, we use ultrasound in our products at work and we have some cheap monitors where the build in speakers have no trouble playing the ultrasound

1

u/Daniel15 React FTW Jan 07 '17

Curious, what types of products use ultrasound frequencies?

2

u/aerandir92 Jan 07 '17 edited Jan 25 '17

We use it for automatic pairing between our apps for smartphones and PCs, and our hardware products. It's part of the Cisco Spark ecosystem.
Edit: http://www.crn.com/slide-shows/networking/300083506/12-reasons-why-ciscos-spark-board-is-its-coolest-product-ever.htm/pgno/0/2?itc=hp_slideshow

1

u/Daniel15 React FTW Jan 08 '17

Oh cool! Samsung's "Smart Switch" app uses ultrasound frequencies for a similar purpose.

1

u/bcgoss Jan 09 '17

lol literally the "attack" described above.

7

u/BHSPitMonkey Jan 06 '17

The idea of needing to think of and treat audio (and video?) output as a kind of networking instead of just an IO device is pretty interesting. Part of securing a workstation will have to include "firewalling" sound in addition to IP.

17

u/myrrlyn Jan 07 '17

Where I work, the really secure computers are airgapped, have neither microphones nor speakers, and are kept in insulated rooms with the monitors facing away from the doors. Among other features.

Our security briefing specifically mentioned cell phones and ultrasound as a threat vector, which is one reason that phones are left outside and the PA system can't reach inside those rooms.

Security is wild

11

u/[deleted] Jan 06 '17

inb4 people start to tape over their speakers

13

u/Ajedi32 Jan 06 '17

Or just mute them. It's not like a JavaScript program embedded in a webpage can unmute them.

11

u/paypaypayme Jan 06 '17

Just disable javascript on tor. Pretty sure most people trying to stay anonymous on tor have it disabled.

9

u/acbabis Jan 06 '17

Does disabling JS disable <video> tags?

6

u/paypaypayme Jan 06 '17

No but you could probably get an extension to block certain types e.g. https://addons.mozilla.org/en-US/firefox/addon/image-video-block/?src=search. Didn't think of that though, good catch :D

1

u/jvnk Jan 06 '17

uMatrix does, I believe. You can block/allow every kind of request the browser can make on a subdomain basis.

0

u/[deleted] Jan 06 '17

[deleted]

2

u/ThePenultimateOne Jan 07 '17

Tor browser is Firefox-based, so it's trivial to disable autoplaying videos. There's an option in about:config that I usually turn on.

8

u/Mr-Yellow Jan 06 '17

"Advertisers"

3

u/Arancaytar Jan 06 '17

Solution: headphones.

9

u/fingerofchicken Jan 06 '17

But malicious advertisers COULD play audio which hypnotizes you and compels you to enter your identity into a form on their site.

6

u/dzScritches Jan 07 '17

The best mind control defense is this thin metallic headgear I have for sale on my website. Just $19.99!

3

u/Arancaytar Jan 07 '17

This is laughable now, but just wait until we get the first malware targeting brain implants.

3

u/agentf90 Jan 07 '17

it really has nothing to do with javascript since its audio based. If someone downloads a video or audio file over Tor and plays it in VLC, their other devices that are listening (ie: Amazon Echo, iPhone w/ audio recording app permission enabled) can hear the ultrasonic frequencies and report back to mother ship.

1

u/[deleted] Jan 07 '17

So basically disable sound output when using TOR and I'm immune from this. Correct?

1

u/hunyeti Jan 07 '17

I don't know about you, but i'd be suspicious when i see the speaker icon, but i don't hear anything (which is kind of unlikely since anyone with good hearing will hear it, because at 20 khz there is a VERY steep filter, so you'd probably hear something.)

The only solution is to make websites request permission to output sound, just like the input. The only problem is that it would annoy most people.

1

u/icantthinkofone Jan 07 '17

And Martians! Don't forget the Martians!!

0

u/[deleted] Jan 07 '17

[deleted]

2

u/mattstreet Jan 07 '17

C(X)ross Site Sound.